reworked the code structure for better feature implementation

This commit is contained in:
IM23a-bachmannj2
2025-01-28 18:40:20 +01:00
parent 24a1284a35
commit 9e419baedd
7 changed files with 271 additions and 203 deletions
+23
View File
@@ -0,0 +1,23 @@
# Variables
#screen size
global height, width
height, width = 600, 450
#grid surface
g_height, g_width = 600, 300
#start surface size
HEIGHT, WIDTH = 600, 300
#score
game_score = 0
rows = 20
cols = 10
cell_size = 30
fps = 60
global gamestate # Add game state variable
gamestate = True