-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
85 lines (81 loc) · 1.93 KB
/
settings.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import os
PROJECT_DIR = os.path.dirname(__file__)
WIDTH = 1100
HEIGHT = 720
TILESIZE = 64
FPS = 60
ATTACK_DELAY = 500
FONT_SIZE = 25
HEALTH_BAR_WIDTH = 100
HEALTH_BAR_HEIGHT = 10
ENERGY_BAR_WIDTH = 100
ENERGY_BAR_HEIGHT = 10
ITEM_BOX_SIZE = 100
SPEED = 5
DAMAGE = 10
LOWER_LAYER_COLOR = (58, 0, 59)
HEALTH_COLOR = (255, 102, 0)
ENERGY_COLOR = (0, 126, 255)
EXP = 0
UPGRADE_BOX_SIZE = 150, HEIGHT - 200
GEAR_SIZE = (50, 25)
magic_data = {
"flame": {
"type": "flame",
"strength": 20,
"burn_strength": 5,
"cost": 20,
"image": os.path.join(PROJECT_DIR, "graphics/particles/flame/fire.png"),
"frames": os.path.join(PROJECT_DIR, "graphics/particles/flame/frames/"),
},
"heal": {
"type": "heal",
"strength": 20,
"cost": 10,
"image": os.path.join(PROJECT_DIR, "graphics/particles/heal/heal.png"),
"frames": os.path.join(PROJECT_DIR, "graphics/particles/heal/frames/"),
},
}
monster_data = {
"squid": {
"health": 100,
"exp": 100,
"damage": 20,
"attack_type": "slash",
"speed": 3,
"resistance": 3,
"attack_radius": 80,
"notice_radius": 360,
},
"raccoon": {
"health": 300,
"exp": 250,
"damage": 40,
"attack_type": "claw",
"speed": 2,
"resistance": 3,
"attack_radius": 120,
"notice_radius": 400,
},
"spirit": {
"health": 100,
"exp": 110,
"damage": 8,
"attack_type": "thunder",
"speed": 4,
"resistance": 3,
"attack_radius": 60,
"notice_radius": 350,
},
"bamboo": {
"health": 70,
"exp": 120,
"damage": 6,
"attack_type": "leaf_attack",
"attack_sound": os.path.join(PROJECT_DIR, "graphics/audio/attack/slash.wav"),
"speed": 3,
"resistance": 3,
"attack_radius": 50,
"notice_radius": 300,
},
}