27 lines
336 B
Python
27 lines
336 B
Python
|
|
# 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
|
|
|
|
fps = 60
|
|
|
|
global gamestate # Add game state variable
|
|
gamestate = "playing" |