-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.py
More file actions
154 lines (117 loc) · 2.72 KB
/
variables.py
File metadata and controls
154 lines (117 loc) · 2.72 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
import random
# Base Stats
health = 1
damage = 1
speed = 1
health_regen = 0
ultimate_regen = 1
ultimate_full = 100
health_on_kill = 0
ult_on_kill = 2
# Multipliers
random_multiplier = random.randint(1, 10)
elite_enemy_multiplier = 10
boss_multiplier = 1
final_boss_multiplier = 1
# Packs
health_pack = 1
big_health_pack = 2
boss_health_pack = 10
ultimate_pack = 10
big_ultimate_pack = 20
boss_ultimate_pack = 100
coin = 1
gem = 1
# Score Logic
score = 0
def add_score(value: int):
global score
score = value
def get_score() -> int:
return score
# Gem Inventory
gem_inv = 0
def add_gem(value: int):
global gem_inv
gem_inv = value
def get_gem():
return gem_inv
# Boosters
health_booster = 1
health_regen_booster = 1
ultimate_regen_booster = 1
ultimate_decreaser = -1
# Kill Effects
health_on_kill = 1
ult_on_kill = 1
# Difficulty multiplier for enemy attack chance (0.0 to 1.0)
# Higher values = enemies attack more frequently
# Default: 50% of base attack chance
difficulty = 0.5
def change_difficulty(value: float):
global difficulty
difficulty = value
def get_difficulty():
return difficulty
if get_difficulty() == 0.5:
no_drop_chance = 40
health_chance = 30
big_health_chance = 10
coin_chance = 20
gem_chance = 5
skill_chance = 5
elif get_difficulty() > 0.5:
no_drop_chance = 50
health_chance = 25
big_health_chance = 10
coin_chance = 15
gem_chance = 5
skill_chance = 5
else:
no_drop_chance = 30
health_chance = 30
big_health_chance = 15
coin_chance = 25
gem_chance = 10
skill_chance = 5
skill_drop_sky_chance = 0.001
poison_duration_ms = 4000
poison_tick_interval_ms = 500
poison_tick_damage = 1
fire_duration_ms = 3500
fire_tick_interval_ms = 400
fire_tick_damage = 2
ice_duration_ms = 3000
enemy_sprite_paths = {
"red": "game_assets/enemies/crab_red1.png",
"orange": "game_assets/enemies/crab_orange1.png",
"yellow": "game_assets/enemies/crab_yellow1.png",
"blue": "game_assets/enemies/crab_blue1.png",
"green": "game_assets/enemies/crab_green1.png",
"purple": "game_assets/enemies/crab_purple1.png",
"rainbow": "game_assets/enemies/crab_rainbow1.png",
}
boss_sprite_paths = enemy_sprite_paths
# make them bigger
enemy_scale = 2.0
boss_scale = 2.5
enemy_hitbox_scale = 0.7
boss_hitbox_scale = 0.7
# Secret Key
SECRET_KEY = b"-Xq3s_-117e4TAaQuEWids4s4Vt-kKHl97ace9FBh-8="
# Paths
save_path = "save.dat"
main_theme = "game_assets/sound_files/test_music.mp3"
# Default Save Data
DEFAULT_DATA = {
"difficulty": 0.5,
"coins": 0,
"high_score": 0,
"name": "Jane Doe",
"gems": 0,
"skilltree_hb": 0,
"skilltree_rf": 0,
"skilltree_ds": 0,
"skilltree_sh": 0,
"skilltree_su": 0,
}