Removed pygame-menu and code cleanup

Added game class
This commit is contained in:
2024-02-06 22:28:14 +01:00
parent caad5c9dbc
commit 2a60195960
6 changed files with 163 additions and 106 deletions

View File

@@ -23,9 +23,9 @@
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="0.72426347"
inkscape:cx="673.78795"
inkscape:cy="482.5592"
inkscape:zoom="1.4485269"
inkscape:cx="314.11221"
inkscape:cy="493.95008"
inkscape:window-width="1920"
inkscape:window-height="1009"
inkscape:window-x="-8"
@@ -55,9 +55,22 @@
id="path7"
inkscape:path-effect="#path-effect7"
inkscape:original-d="m 110.14207,106.30627 c -9.19373,4.56642 0.36531,-7.6107 0.36531,-11.507378 0,-3.89668 -1.64391,-6.94096 -2.37454,-10.228783 -0.73063,-3.287821 2.43543,-11.50738 3.83579,-17.169741 1.40037,-5.662361 4.14022,-7.123616 6.02768,-10.95941 1.88745,-3.835794 6.88007,-1.826567 10.59409,-2.374537 3.71403,-0.547971 3.4096,2.73985 4.93174,4.018449 1.52214,1.278599 1.46125,4.201107 2.19188,6.027677 0.73063,1.826567 1.33948,6.575644 2.00923,10.046123 0.66974,3.470481 1.21771,6.027676 1.82656,9.132842 0.60886,3.105166 -1.21771,5.784133 -1.82656,8.584869 -0.60886,2.800739 -2.131,7.854244 -3.28783,11.690039 -1.15682,3.83579 -0.18265,1.88745 -0.18265,2.92251"
transform="translate(-27.763837,-35.435424)"
transform="translate(-30.914667,30.458026)"
inkscape:export-filename="snake_head_1.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<circle
id="path8"
style="fill:#000000;stroke:none;stroke-width:0.264583"
cx="110.69003"
cy="103.74908"
r="0.39687499" />
<path
style="fill:#ff9955;stroke-width:0.266018"
d="m 79.273061,136.13284 v 46.76014 H 103.27676 V 136.49815 H 79.273061 Z"
id="path9"
inkscape:export-filename="snake_body_1.png"
inkscape:export-xdpi="32.247917"
inkscape:export-ydpi="32.247917" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB