added main game loop
This commit is contained in:
commit
bfd9971cfb
4 changed files with 27 additions and 0 deletions
7
constants.py
Normal file
7
constants.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
SCREEN_WIDTH = 1280
|
||||
SCREEN_HEIGHT = 720
|
||||
|
||||
ASTEROID_MIN_RADIUS = 20
|
||||
ASTEROID_KINDS = 3
|
||||
ASTEROID_SPAWN_RATE = 0.8 # seconds
|
||||
ASTEROID_MAX_RADIUS = ASTEROID_MIN_RADIUS * ASTEROID_KINDS
|
||||
Loading…
Add table
Add a link
Reference in a new issue