forked from matheusmaldaner/JasonJourney
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
48 lines (38 loc) · 852 Bytes
/
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
OFFSET = 12
FPS = 60
# scaling constants
SCALE = 3
BUTTON_SCALE = 0.5
PLAYER_SCALE = 3
WEAPON_SCALE = 1.5
PROJECTILE_SCALE = 1.5
ITEM_SCALE = 3
FIREBALL_SCALE = 1
FIREBALL_SPEED = 4
TILE_SIZE = 16 * SCALE
DIFF_TILES = 26 # eg. tile0.png, ... tile17.png
# eg. idle animation loop time for character
ANIMATION_COOLDOWN = 100
# creates the game window (we can change these values)
SCREEN_WIDTH = 984
SCREEN_HEIGHT = 568
# used to control screen scrolling
SCROLL_THRESH = 250
# colors :)
RED = (255, 0, 0)
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
FADE_BLACK = (6, 11, 19)
PINK = (222, 111, 161)
GREY = (43, 62, 66)
BACKGROUND = (40, 40, 40)
MENU_BACKGROUND = (130, 0, 0)
PLAYER_SPEED = 5
PROJECTILE_SPEED = 10
ENEMY_SPEED = 4
RANGE = 50
ATTACK_RANGE = 60
HUD_COLOR = (75, 75, 75)
# used for loading csv 150x150 tile levels
ROWS = 150
COLS = 150