gamegrid, falling, Tetrominos, collision and deleting rows, GUI Menus and Score

This commit is contained in:
IM23a-bachmannj2
2024-12-10 21:13:01 +01:00
parent 3eb8af9991
commit 6de87ac002
4 changed files with 156 additions and 40 deletions
+18 -1
View File
@@ -1,10 +1,27 @@
# Variables
#screen size
global height, width
height, width = 600, 300
#grid surface
g_height, g_width = 600, 300
#start surface size
HEIGHT, WIDTH = 600, 300
#state of the game
game_state = True
#score
game_score = 0
rows = 20
cols = 10
cell_size = 30
falling_speed = 5
fps = 60
global gamestate # Add game state variable
gamestate = "playing"