-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsettings.py
More file actions
75 lines (59 loc) · 2.47 KB
/
Copy pathsettings.py
File metadata and controls
75 lines (59 loc) · 2.47 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
WIDTH = 1133
HEIGHT = 744
FPS = 30
TILESIZE = 64
# ui
BAR_HEIGHT = 20
HEALTH_BAR_WIDTH = 200
ENERGY_BAR_WIDTH = 140
ITEM_BOX_SIZE = 80
UI_FONT = './assets/chrono/font/joystix.ttf'
UI_FONT_SIZE = 18
# controllers
BTN_HEIGHT = 32
BTN_WIDTH = 32
UP_BTN_X = WIDTH * 0.0950
DOWN_BTN_X = WIDTH * 0.0950
LEFT_BTN_X = WIDTH * 0.0397
RIGHT_BTN_X = WIDTH * 0.1488
ATTACK_BTN_X = WIDTH * 0.9121
MAGIC_BTN_X = WIDTH * 0.8236
SWITCH_BTN_X = WIDTH * 0.8236
SWITCH_M_BTN_X = WIDTH * 0.5326
UP_BTN_Y = HEIGHT * 0.59
DOWN_BTN_Y = HEIGHT * 0.76
LEFT_BTN_Y = HEIGHT * 0.6720
RIGHT_BTN_Y = HEIGHT * 0.6720
ATTACK_BTN_Y = HEIGHT * 0.6048
MAGIC_BTN_Y = HEIGHT * 0.6720
SWITCH_BTN_Y = HEIGHT * 0.8065
SWITCH_M_BTN_Y = HEIGHT * 0.7392
# general colors
WATER_COLOR = '#71ddee'
UI_BG_COLOR = '#222222'
UI_BORDER_COLOR = '#111111'
TEXT_COLOR = '#EEEEEE'
# ui colors
HEALTH_COLOR = 'red'
ENERGY_COLOR = 'blue'
UI_BORDER_COLOR_ACTIVE = 'gold'
# weapons
weapon_data = {
'sword': {'cooldown': 100, 'damage': 15, 'graphic':'./assets/chrono/weapons/sword/full.png'},
'lance': {'cooldown': 400, 'damage': 30, 'graphic':'./assets/chrono/weapons/lance/full.png'},
'axe': {'cooldown': 300, 'damage': 20, 'graphic':'./assets/chrono/weapons/axe/full.png'},
'rapier': {'cooldown': 50, 'damage': 8, 'graphic':'./assets/chrono/weapons/rapier/full.png'},
'sai': {'cooldown': 80, 'damage': 10, 'graphic':'./assets/chrono/weapons/sai/full.png'}
}
# magic
magic_data = {
'flame': {'strength': 5, 'cost': 5, 'graphic':'./assets/chrono/particles/flame/fire.png'},
'heal': {'strength': 5, 'cost': 8, 'graphic':'./assets/chrono/particles/heal/heal.png'}
}
# enemies
monster_data = {
'squid': {'health': 100, 'exp': 100, 'damage': 20, 'attack_type': 'slash', 'attack_sound': './assets/chrono/audio/attack/slash.wav', 'speed': 3, 'resistance': 3, 'attack_radius': 80, 'notice_radius': 360},
'raccoon': {'health': 300, 'exp': 250, 'damage': 40, 'attack_type': 'claw', 'attack_sound': './assets/chrono/audio/attack/claw.wav', 'speed': 2, 'resistance': 3, 'attack_radius': 120, 'notice_radius': 400},
'spirit': {'health': 100, 'exp': 110, 'damage': 8, 'attack_type': 'thunder', 'attack_sound': './assets/chrono/audio/attack/fireball.wav', 'speed': 4, 'resistance': 3, 'attack_radius': 60, 'notice_radius': 350},
'bamboo': {'health': 70, 'exp': 120, 'damage': 6, 'attack_type': 'leaf_attack', 'attack_sound': './assets/chrono/audio/attack/slash.wav', 'speed': 3, 'resistance': 3, 'attack_radius': 50, 'notice_radius': 300}
}