-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
63 lines (54 loc) · 1.4 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import string
RED = (255, 0, 0)
GREEN = (0, 255, 0)
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
PINK = (235, 64, 54)
BLUE = (0, 60, 255)
FADE_ALL:int = 1
FADE_GO_DOWN:int = 2
HEALTH_BAR_WIDTH:int = 150
HEALTH_BAR_HEIGHT:int = 20
ACTION_IDLE:int = 0
ACTION_RUN:int = 1
ACTION_JUMP:int = 2
ACTION_DEATH:int = 3
ANIMATION_COOLDOWN:int = 100
#TEMPORARY_AMMO:int = 20
RETREAT_TIME = 20
RETREAT_COOLDOWN = 10000
PLAYER_HP:int = 100
ENEMY_UDIN_HP:int = 50
BOSS_HP:int = 9999
PLAYER_SPEED:int = 4
ENEMY_UDIN_SPEED:int = 2
DEFAULT_ANIMATION_SPEED = 100
PLAYER_TAKE_DAMAGE:int = 10 # TODO input argument instead because depend on level and boss?
ENEMY_TAKE_DAMAGE:int = 20
GRENADE_ON_ENEMY:int = 100
GRENADE_ON_PLAYER:int = 20
ENEMY_VALUE_COIN:int = 20
BULLET_RANGE:float = 0.75
BULLET_SPEED:int = 10
SHOOT_COOLDOWN:int = 20
GRENADE_TIMER:int = 100
GRENADE_SPEED:int = 7
GRENADE_NUMBER:int = 5
EXPLOSION_SPEED:int = 4
FPS:int = 60
GRAVITY:float = 0.75
SCROLL_THRESH:int = 400
SCREEN_WIDTH:int = 800
SCREEN_HEIGHT:int = int(SCREEN_WIDTH * 0.8)
BASE_GROUND:int = 300
ROWS:int = 16
COLS:int = 420
TILE_SIZE:int = SCREEN_HEIGHT // ROWS
TILE_TYPES:int = 21
ITEM_BOX_NAME_HEALTH:string = 'Health'
ITEM_BOX_NAME_GRENADE:string = 'Grenade'
ITEM_BOX_NAME_COIN:string = 'Coin'
ITEM_BOX_VALUE_HEALTH:int = 30
ITEM_BOX_VALUE_COIN:int = 100
ITEM_BOX_VALUE_GRENADE:int = 2
MAX_LEVELS:int = 2