add resources

This commit is contained in:
David Husicka 2021-12-14 17:18:34 +01:00
parent 9e3009d302
commit 516155670a
26 changed files with 864 additions and 7 deletions

BIN
res/1024.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

70
res/1024.svg Normal file
View File

@ -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

BIN
res/128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

70
res/128.svg Normal file
View File

@ -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

BIN
res/16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

70
res/16.svg Normal file
View File

@ -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

BIN
res/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

70
res/2.svg Normal file
View File

@ -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

BIN
res/2048.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

70
res/2048.svg Normal file
View File

@ -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

BIN
res/256.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

70
res/256.svg Normal file
View File

@ -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

BIN
res/32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

70
res/32.svg Normal file
View File

@ -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

BIN
res/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

70
res/4.svg Normal file
View File

@ -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

BIN
res/512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

70
res/512.svg Normal file
View File

@ -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

BIN
res/64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

70
res/64.svg Normal file
View File

@ -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

BIN
res/8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

70
res/8.svg Normal file
View File

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 958 B

51
res/tile.svg Normal file
View File

@ -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

View File

@ -39,7 +39,6 @@ void game_destroy(Game game) {
}
uint8_t game_move(Game *game, Direction direction) {
// just one direction for testing purposes
for (int i = 0; i < game->field_size_y; i++) {
uint16_t **field = game->field;
// move everything on one side

View File

@ -6,12 +6,21 @@
#include <SDL_ttf.h>
const SCREEN_WIDTH = 800;
const SCREEN_HEIGHT = 600;
const SCREEN_HEIGHT = 920;
SDL_Window* window = NULL;
// SDL_Surface* screenSurface = NULL;
SDL_Renderer *window_renderer = 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() {
@ -38,9 +47,22 @@ void gui_init() {
// SDL_UpdateWindowSurface(window);
// load up textures
SDL_Surface *tile_surface = IMG_Load("res/tile.png");
tile_texture = SDL_CreateTextureFromSurface( window_renderer, tile_surface);
SDL_FreeSurface(tile_surface);
tile_texture = texture_from_png("res/tile.png");
tile_textures[0] = tile_textures;
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() {
@ -55,10 +77,13 @@ void gui_destroy() {
void gui_loop(Game *game) {
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;
while(!quit) {
while( SDL_PollEvent( &e ) != 0 )
{
needs_redraw = true;
//User requests quit
if( e.type == SDL_QUIT )
{
@ -66,8 +91,20 @@ void gui_loop(Game *game) {
}
}
SDL_RenderCopy( window_renderer, tile_texture, NULL, NULL );
SDL_RenderPresent(window_renderer);
if (needs_redraw) {
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;
}
}
}