-
Notifications
You must be signed in to change notification settings - Fork 0
/
Constants.py
39 lines (34 loc) · 1.02 KB
/
Constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
RESOURCES = "http://127.0.0.1:8083/resources/"
#IMAGES
# art assets created by Kim Lathrop
DEBRIS = RESOURCES + "debris2_blue.png"
NEBULA = RESOURCES + "nebula_blue.f2013.png"
SPLASH = RESOURCES + "splash.png"
#https://googledrive.com/host/0B0ugO7CFvC4yNEVvc3dpamN6SFU/ricerocksgameover.png
GAMEOVER = RESOURCES + "ricerocksgameover.png"
SHIP = RESOURCES + "double_ship.png"
ASTEROID = RESOURCES + "asteroid_blue.png"
EXPLOSION = RESOURCES + "explosion_alpha.png"
BONUS1 = RESOURCES + "bonus01.png"
BONUS2 = RESOURCES + "bonus02.png"
BONUS3 = RESOURCES + "bonus03.png"
BONUS4 = RESOURCES + "bonus04.png"
#SOUNDS
# purchased from sounddogs.com
SOUNDTRACK = RESOURCES + "soundtrack.ogg"
EXPLOSIONSOUND = RESOURCES + "explosion.ogg"
TICKTOCKSOUND = RESOURCES + "ticktock.ogg"
THRUST = RESOURCES + "thrust.ogg"
SHOT = RESOURCES + "shot2.png"
MISSILE = RESOURCES + "missile.ogg"
#USER INTERFACE
WIDTH = 800
HEIGHT = 600
FONT = "monospace"
#GAME
FRICTION = 0.97
FACTOR = 2
MAX_ROCKS = 12
MAX_BONUS = 4
SAFEDISTANCE = 45
difficulty = [-1, 0.5]