reworked the code structure for better feature implementation
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user