add resources
After Width: | Height: | Size: 3.5 KiB |
|
@ -0,0 +1,70 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="800"
|
||||||
|
height="920"
|
||||||
|
viewBox="0 0 211.66666 243.41667"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||||
|
sodipodi:docname="1024.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview7"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
showgrid="false"
|
||||||
|
units="px"
|
||||||
|
width="800px"
|
||||||
|
inkscape:zoom="1.0180501"
|
||||||
|
inkscape:cx="358.03739"
|
||||||
|
inkscape:cy="281.91147"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs2">
|
||||||
|
<rect
|
||||||
|
x="16.997874"
|
||||||
|
y="64.511345"
|
||||||
|
width="142.45095"
|
||||||
|
height="94.937476"
|
||||||
|
id="rect9954" />
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<rect
|
||||||
|
style="fill:#ffcc00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="rect38"
|
||||||
|
width="39.6875"
|
||||||
|
height="39.6875"
|
||||||
|
x="2.5"
|
||||||
|
y="2.5" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
transform="matrix(0.26458333,0,0,0.26458333,-1.0730707,-1.9593439)"
|
||||||
|
id="text9952"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9954);fill:#000000;fill-opacity:1;stroke:none"
|
||||||
|
x="36.551987"
|
||||||
|
y="0"><tspan
|
||||||
|
x="17.055664"
|
||||||
|
y="119.16772"
|
||||||
|
id="tspan46334"><tspan
|
||||||
|
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold';text-align:center;text-anchor:middle"
|
||||||
|
id="tspan46332">1024</tspan></tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 3.3 KiB |
|
@ -0,0 +1,70 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="800"
|
||||||
|
height="920"
|
||||||
|
viewBox="0 0 211.66666 243.41667"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||||
|
sodipodi:docname="128.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview7"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
showgrid="false"
|
||||||
|
units="px"
|
||||||
|
width="800px"
|
||||||
|
inkscape:zoom="1.0180501"
|
||||||
|
inkscape:cx="358.03739"
|
||||||
|
inkscape:cy="281.91147"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs2">
|
||||||
|
<rect
|
||||||
|
x="16.997874"
|
||||||
|
y="64.511345"
|
||||||
|
width="142.45095"
|
||||||
|
height="94.937476"
|
||||||
|
id="rect9954" />
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<rect
|
||||||
|
style="fill:#ffcc00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="rect38"
|
||||||
|
width="39.6875"
|
||||||
|
height="39.6875"
|
||||||
|
x="2.5"
|
||||||
|
y="2.5" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
transform="matrix(0.26458333,0,0,0.26458333,-1.0730707,-1.9593439)"
|
||||||
|
id="text9952"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9954);fill:#000000;fill-opacity:1;stroke:none"
|
||||||
|
x="36.551987"
|
||||||
|
y="0"><tspan
|
||||||
|
x="34.847656"
|
||||||
|
y="119.16772"
|
||||||
|
id="tspan36828"><tspan
|
||||||
|
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold';text-align:center;text-anchor:middle"
|
||||||
|
id="tspan36826">128</tspan></tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.4 KiB |
|
@ -0,0 +1,70 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="800"
|
||||||
|
height="920"
|
||||||
|
viewBox="0 0 211.66666 243.41667"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||||
|
sodipodi:docname="16.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview7"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
showgrid="false"
|
||||||
|
units="px"
|
||||||
|
width="800px"
|
||||||
|
inkscape:zoom="1.0180501"
|
||||||
|
inkscape:cx="358.03739"
|
||||||
|
inkscape:cy="281.91147"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs2">
|
||||||
|
<rect
|
||||||
|
x="16.997874"
|
||||||
|
y="64.511345"
|
||||||
|
width="142.45095"
|
||||||
|
height="94.937476"
|
||||||
|
id="rect9954" />
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<rect
|
||||||
|
style="fill:#ff5600;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="rect38"
|
||||||
|
width="39.6875"
|
||||||
|
height="39.6875"
|
||||||
|
x="2.5"
|
||||||
|
y="2.5" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
transform="matrix(0.26458333,0,0,0.26458333,-1.0730707,-1.9593439)"
|
||||||
|
id="text9952"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9954);fill:#000000;fill-opacity:1;stroke:none"
|
||||||
|
x="36.551987"
|
||||||
|
y="0"><tspan
|
||||||
|
x="52.639648"
|
||||||
|
y="119.16772"
|
||||||
|
id="tspan61680"><tspan
|
||||||
|
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold';text-align:center;text-anchor:middle"
|
||||||
|
id="tspan61678">16</tspan></tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
|
@ -0,0 +1,70 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="800"
|
||||||
|
height="920"
|
||||||
|
viewBox="0 0 211.66666 243.41667"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||||
|
sodipodi:docname="2.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview7"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
showgrid="false"
|
||||||
|
units="px"
|
||||||
|
width="800px"
|
||||||
|
inkscape:zoom="1.0180501"
|
||||||
|
inkscape:cx="358.03739"
|
||||||
|
inkscape:cy="281.91147"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs2">
|
||||||
|
<rect
|
||||||
|
x="16.997874"
|
||||||
|
y="64.511345"
|
||||||
|
width="142.45095"
|
||||||
|
height="94.937476"
|
||||||
|
id="rect9954" />
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<rect
|
||||||
|
style="fill:#ffcc73;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="rect38"
|
||||||
|
width="39.6875"
|
||||||
|
height="39.6875"
|
||||||
|
x="2.5"
|
||||||
|
y="2.5" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
transform="matrix(0.26458333,0,0,0.26458333,-1.0730707,-1.9593439)"
|
||||||
|
id="text9952"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9954);fill:#000000;fill-opacity:1;stroke:none"
|
||||||
|
x="36.551987"
|
||||||
|
y="0"><tspan
|
||||||
|
x="70.431641"
|
||||||
|
y="119.16772"
|
||||||
|
id="tspan54996"><tspan
|
||||||
|
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold';text-align:center;text-anchor:middle"
|
||||||
|
id="tspan54994">2</tspan></tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 4.5 KiB |
|
@ -0,0 +1,70 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="800"
|
||||||
|
height="920"
|
||||||
|
viewBox="0 0 211.66666 243.41667"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||||
|
sodipodi:docname="2048.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview7"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
showgrid="false"
|
||||||
|
units="px"
|
||||||
|
width="800px"
|
||||||
|
inkscape:zoom="1.0180501"
|
||||||
|
inkscape:cx="358.03739"
|
||||||
|
inkscape:cy="281.91147"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs2">
|
||||||
|
<rect
|
||||||
|
x="16.997874"
|
||||||
|
y="64.511345"
|
||||||
|
width="142.45095"
|
||||||
|
height="94.937476"
|
||||||
|
id="rect9954" />
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<rect
|
||||||
|
style="fill:#ffcc00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="rect38"
|
||||||
|
width="39.6875"
|
||||||
|
height="39.6875"
|
||||||
|
x="2.5"
|
||||||
|
y="2.5" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
transform="matrix(0.26458333,0,0,0.26458333,-1.0730707,-1.9593439)"
|
||||||
|
id="text9952"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9954);fill:#000000;fill-opacity:1;stroke:none"
|
||||||
|
x="36.551987"
|
||||||
|
y="0"><tspan
|
||||||
|
x="17.055664"
|
||||||
|
y="119.16772"
|
||||||
|
id="tspan48954"><tspan
|
||||||
|
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold';text-align:center;text-anchor:middle"
|
||||||
|
id="tspan48952">2048</tspan></tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 3.9 KiB |
|
@ -0,0 +1,70 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="800"
|
||||||
|
height="920"
|
||||||
|
viewBox="0 0 211.66666 243.41667"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||||
|
sodipodi:docname="256.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview7"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
showgrid="false"
|
||||||
|
units="px"
|
||||||
|
width="800px"
|
||||||
|
inkscape:zoom="1.0180501"
|
||||||
|
inkscape:cx="358.03739"
|
||||||
|
inkscape:cy="281.91147"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs2">
|
||||||
|
<rect
|
||||||
|
x="16.997874"
|
||||||
|
y="64.511345"
|
||||||
|
width="142.45095"
|
||||||
|
height="94.937476"
|
||||||
|
id="rect9954" />
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<rect
|
||||||
|
style="fill:#ffcc00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="rect38"
|
||||||
|
width="39.6875"
|
||||||
|
height="39.6875"
|
||||||
|
x="2.5"
|
||||||
|
y="2.5" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
transform="matrix(0.26458333,0,0,0.26458333,-1.0730707,-1.9593439)"
|
||||||
|
id="text9952"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9954);fill:#000000;fill-opacity:1;stroke:none"
|
||||||
|
x="36.551987"
|
||||||
|
y="0"><tspan
|
||||||
|
x="34.847656"
|
||||||
|
y="119.16772"
|
||||||
|
id="tspan37328"><tspan
|
||||||
|
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold';text-align:center;text-anchor:middle"
|
||||||
|
id="tspan37326">256</tspan></tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 3.0 KiB |
|
@ -0,0 +1,70 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="800"
|
||||||
|
height="920"
|
||||||
|
viewBox="0 0 211.66666 243.41667"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||||
|
sodipodi:docname="32.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview7"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
showgrid="false"
|
||||||
|
units="px"
|
||||||
|
width="800px"
|
||||||
|
inkscape:zoom="1.0180501"
|
||||||
|
inkscape:cx="358.03739"
|
||||||
|
inkscape:cy="281.91147"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs2">
|
||||||
|
<rect
|
||||||
|
x="16.997874"
|
||||||
|
y="64.511345"
|
||||||
|
width="142.45095"
|
||||||
|
height="94.937476"
|
||||||
|
id="rect9954" />
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<rect
|
||||||
|
style="fill:#ff5600;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="rect38"
|
||||||
|
width="39.6875"
|
||||||
|
height="39.6875"
|
||||||
|
x="2.5"
|
||||||
|
y="2.5" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
transform="matrix(0.26458333,0,0,0.26458333,-1.0730707,-1.9593439)"
|
||||||
|
id="text9952"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9954);fill:#000000;fill-opacity:1;stroke:none"
|
||||||
|
x="36.551987"
|
||||||
|
y="0"><tspan
|
||||||
|
x="52.639648"
|
||||||
|
y="119.16772"
|
||||||
|
id="tspan62378"><tspan
|
||||||
|
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold';text-align:center;text-anchor:middle"
|
||||||
|
id="tspan62376">32</tspan></tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
|
@ -0,0 +1,70 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="800"
|
||||||
|
height="920"
|
||||||
|
viewBox="0 0 211.66666 243.41667"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||||
|
sodipodi:docname="4.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview7"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
showgrid="false"
|
||||||
|
units="px"
|
||||||
|
width="800px"
|
||||||
|
inkscape:zoom="1.0180501"
|
||||||
|
inkscape:cx="358.03739"
|
||||||
|
inkscape:cy="281.91147"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs2">
|
||||||
|
<rect
|
||||||
|
x="16.997874"
|
||||||
|
y="64.511345"
|
||||||
|
width="142.45095"
|
||||||
|
height="94.937476"
|
||||||
|
id="rect9954" />
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<rect
|
||||||
|
style="fill:#ffcc73;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="rect38"
|
||||||
|
width="39.6875"
|
||||||
|
height="39.6875"
|
||||||
|
x="2.5"
|
||||||
|
y="2.5" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
transform="matrix(0.26458333,0,0,0.26458333,-1.0730707,-1.9593439)"
|
||||||
|
id="text9952"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9954);fill:#000000;fill-opacity:1;stroke:none"
|
||||||
|
x="36.551987"
|
||||||
|
y="0"><tspan
|
||||||
|
x="70.431641"
|
||||||
|
y="119.16772"
|
||||||
|
id="tspan55310"><tspan
|
||||||
|
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold';text-align:center;text-anchor:middle"
|
||||||
|
id="tspan55308">4</tspan></tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 3.0 KiB |
|
@ -0,0 +1,70 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="800"
|
||||||
|
height="920"
|
||||||
|
viewBox="0 0 211.66666 243.41667"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||||
|
sodipodi:docname="512.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview7"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
showgrid="false"
|
||||||
|
units="px"
|
||||||
|
width="800px"
|
||||||
|
inkscape:zoom="1.0180501"
|
||||||
|
inkscape:cx="358.03739"
|
||||||
|
inkscape:cy="281.91147"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs2">
|
||||||
|
<rect
|
||||||
|
x="16.997874"
|
||||||
|
y="64.511345"
|
||||||
|
width="142.45095"
|
||||||
|
height="94.937476"
|
||||||
|
id="rect9954" />
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<rect
|
||||||
|
style="fill:#ffcc00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="rect38"
|
||||||
|
width="39.6875"
|
||||||
|
height="39.6875"
|
||||||
|
x="2.5"
|
||||||
|
y="2.5" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
transform="matrix(0.26458333,0,0,0.26458333,-1.0730707,-1.9593439)"
|
||||||
|
id="text9952"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9954);fill:#000000;fill-opacity:1;stroke:none"
|
||||||
|
x="36.551987"
|
||||||
|
y="0"><tspan
|
||||||
|
x="34.847656"
|
||||||
|
y="119.16772"
|
||||||
|
id="tspan39810"><tspan
|
||||||
|
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold';text-align:center;text-anchor:middle"
|
||||||
|
id="tspan39808">512</tspan></tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.7 KiB |
|
@ -0,0 +1,70 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="800"
|
||||||
|
height="920"
|
||||||
|
viewBox="0 0 211.66666 243.41667"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||||
|
sodipodi:docname="64.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview7"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
showgrid="false"
|
||||||
|
units="px"
|
||||||
|
width="800px"
|
||||||
|
inkscape:zoom="1.0180501"
|
||||||
|
inkscape:cx="358.03739"
|
||||||
|
inkscape:cy="281.91147"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs2">
|
||||||
|
<rect
|
||||||
|
x="16.997874"
|
||||||
|
y="64.511345"
|
||||||
|
width="142.45095"
|
||||||
|
height="94.937476"
|
||||||
|
id="rect9954" />
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<rect
|
||||||
|
style="fill:#ff5600;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="rect38"
|
||||||
|
width="39.6875"
|
||||||
|
height="39.6875"
|
||||||
|
x="2.5"
|
||||||
|
y="2.5" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
transform="matrix(0.26458333,0,0,0.26458333,-1.0730707,-1.9593439)"
|
||||||
|
id="text9952"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9954);fill:#000000;fill-opacity:1;stroke:none"
|
||||||
|
x="36.551987"
|
||||||
|
y="0"><tspan
|
||||||
|
x="52.639648"
|
||||||
|
y="119.16772"
|
||||||
|
id="tspan64506"><tspan
|
||||||
|
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold';text-align:center;text-anchor:middle"
|
||||||
|
id="tspan64504">64</tspan></tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
|
@ -0,0 +1,70 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="800"
|
||||||
|
height="920"
|
||||||
|
viewBox="0 0 211.66666 243.41667"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||||
|
sodipodi:docname="8.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview7"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
showgrid="false"
|
||||||
|
units="px"
|
||||||
|
width="800px"
|
||||||
|
inkscape:zoom="1.0180501"
|
||||||
|
inkscape:cx="358.03739"
|
||||||
|
inkscape:cy="281.91147"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs2">
|
||||||
|
<rect
|
||||||
|
x="16.997874"
|
||||||
|
y="64.511345"
|
||||||
|
width="142.45095"
|
||||||
|
height="94.937476"
|
||||||
|
id="rect9954" />
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<rect
|
||||||
|
style="fill:#ffa104;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="rect38"
|
||||||
|
width="39.6875"
|
||||||
|
height="39.6875"
|
||||||
|
x="2.5"
|
||||||
|
y="2.5" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
transform="matrix(0.26458333,0,0,0.26458333,-1.0730707,-1.9593439)"
|
||||||
|
id="text9952"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9954);fill:#000000;fill-opacity:1;stroke:none"
|
||||||
|
x="36.551987"
|
||||||
|
y="0"><tspan
|
||||||
|
x="70.431641"
|
||||||
|
y="119.16772"
|
||||||
|
id="tspan60428"><tspan
|
||||||
|
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold';text-align:center;text-anchor:middle"
|
||||||
|
id="tspan60426">8</tspan></tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
BIN
res/tile.png
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 958 B |
|
@ -0,0 +1,51 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="800"
|
||||||
|
height="920"
|
||||||
|
viewBox="0 0 211.66666 243.41667"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||||
|
sodipodi:docname="tile.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview7"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
showgrid="false"
|
||||||
|
units="px"
|
||||||
|
width="800px"
|
||||||
|
inkscape:zoom="1.0180501"
|
||||||
|
inkscape:cx="358.03739"
|
||||||
|
inkscape:cy="281.91147"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs2" />
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<rect
|
||||||
|
style="fill:#eecfb9;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="rect38"
|
||||||
|
width="39.6875"
|
||||||
|
height="39.6875"
|
||||||
|
x="2.5"
|
||||||
|
y="2.5" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
|
@ -39,7 +39,6 @@ void game_destroy(Game game) {
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t game_move(Game *game, Direction direction) {
|
uint8_t game_move(Game *game, Direction direction) {
|
||||||
// just one direction for testing purposes
|
|
||||||
for (int i = 0; i < game->field_size_y; i++) {
|
for (int i = 0; i < game->field_size_y; i++) {
|
||||||
uint16_t **field = game->field;
|
uint16_t **field = game->field;
|
||||||
// move everything on one side
|
// move everything on one side
|
||||||
|
|
49
src/gui.c
|
@ -6,12 +6,21 @@
|
||||||
#include <SDL_ttf.h>
|
#include <SDL_ttf.h>
|
||||||
|
|
||||||
const SCREEN_WIDTH = 800;
|
const SCREEN_WIDTH = 800;
|
||||||
const SCREEN_HEIGHT = 600;
|
const SCREEN_HEIGHT = 920;
|
||||||
|
|
||||||
SDL_Window* window = NULL;
|
SDL_Window* window = NULL;
|
||||||
// SDL_Surface* screenSurface = NULL;
|
// SDL_Surface* screenSurface = NULL;
|
||||||
SDL_Renderer *window_renderer = NULL;
|
SDL_Renderer *window_renderer = NULL;
|
||||||
SDL_Texture* tile_texture = NULL;
|
SDL_Texture* tile_texture = NULL;
|
||||||
|
SDL_Texture* tile_textures[13];
|
||||||
|
SDL_Rect tile_size;
|
||||||
|
|
||||||
|
SDL_Texture *texture_from_png(char *n) {
|
||||||
|
SDL_Surface *s = IMG_Load(n);
|
||||||
|
SDL_Texture *t = SDL_CreateTextureFromSurface( window_renderer, s);
|
||||||
|
SDL_FreeSurface(s);
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
||||||
void gui_init() {
|
void gui_init() {
|
||||||
|
|
||||||
|
@ -38,9 +47,22 @@ void gui_init() {
|
||||||
// SDL_UpdateWindowSurface(window);
|
// SDL_UpdateWindowSurface(window);
|
||||||
|
|
||||||
// load up textures
|
// load up textures
|
||||||
SDL_Surface *tile_surface = IMG_Load("res/tile.png");
|
tile_texture = texture_from_png("res/tile.png");
|
||||||
tile_texture = SDL_CreateTextureFromSurface( window_renderer, tile_surface);
|
tile_textures[0] = tile_textures;
|
||||||
SDL_FreeSurface(tile_surface);
|
tile_textures[1] = texture_from_png("res/2.png");
|
||||||
|
tile_textures[3] = texture_from_png("res/4.png");
|
||||||
|
tile_textures[4] = texture_from_png("res/8.png");
|
||||||
|
tile_textures[5] = texture_from_png("res/16.png");
|
||||||
|
tile_textures[6] = texture_from_png("res/32.png");
|
||||||
|
tile_textures[7] = texture_from_png("res/64.png");
|
||||||
|
tile_textures[8] = texture_from_png("res/128.png");
|
||||||
|
tile_textures[9] = texture_from_png("res/256.png");
|
||||||
|
tile_textures[10] = texture_from_png("res/512.png");
|
||||||
|
tile_textures[11] = texture_from_png("res/1024.png");
|
||||||
|
tile_textures[12] = texture_from_png("res/2048.png");
|
||||||
|
tile_size.x = 0;
|
||||||
|
tile_size.y = 0;
|
||||||
|
SDL_QueryTexture(tile_texture, NULL, NULL, &tile_size.w, &tile_size.h);
|
||||||
}
|
}
|
||||||
|
|
||||||
void gui_destroy() {
|
void gui_destroy() {
|
||||||
|
@ -55,10 +77,13 @@ void gui_destroy() {
|
||||||
|
|
||||||
void gui_loop(Game *game) {
|
void gui_loop(Game *game) {
|
||||||
bool quit = false;
|
bool quit = false;
|
||||||
|
bool needs_redraw = true; // there's no need to redraw window when nothing's changed. will be set to false later. first run has to be always done
|
||||||
SDL_Event e;
|
SDL_Event e;
|
||||||
|
|
||||||
while(!quit) {
|
while(!quit) {
|
||||||
while( SDL_PollEvent( &e ) != 0 )
|
while( SDL_PollEvent( &e ) != 0 )
|
||||||
{
|
{
|
||||||
|
needs_redraw = true;
|
||||||
//User requests quit
|
//User requests quit
|
||||||
if( e.type == SDL_QUIT )
|
if( e.type == SDL_QUIT )
|
||||||
{
|
{
|
||||||
|
@ -66,8 +91,20 @@ void gui_loop(Game *game) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_RenderCopy( window_renderer, tile_texture, NULL, NULL );
|
if (needs_redraw) {
|
||||||
SDL_RenderPresent(window_renderer);
|
SDL_RenderClear(window_renderer);
|
||||||
|
SDL_Rect tile_rect = tile_size;
|
||||||
|
for (int i = 0; i < game->field_size_x; i++) {
|
||||||
|
tile_rect.x = i * 175;
|
||||||
|
for (int j = 0; j < game->field_size_y; j++) {
|
||||||
|
tile_rect.y = j * 175;
|
||||||
|
SDL_RenderCopy( window_renderer, tile_texture, NULL, &tile_rect);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
SDL_RenderPresent(window_renderer);
|
||||||
|
needs_redraw = false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|