-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
97 lines (89 loc) · 5.36 KB
/
settings.py
File metadata and controls
97 lines (89 loc) · 5.36 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
import colorama
import os
monster_names = ["Xenomorph", "Nemesis", "Balrog",
"Demogorgon", "Godzilla", "Cthulhu", "Kaonashi",
"Sephiroth", "Tyrant", "Gorgon", "Dementor",
"Gengar", "Mothra", "Gremlin", "Dracula",
"Frieza", "Zergling", "Wendigo", "Behemoth",
"Smaug", "Ghoul", "Necromorph", "Rancor",
"Leviathan", "Predator", "Kaiju", "Balverine",
"Cerberus", "Sauron", "Majin Buu", "Reaper",
"Doom Slayer", "Kraid", "Jotun", "Revenant",
"Spectre", "Vamp", "Naga", "Hydralisk",
"Beholder", "Lich King", "Goliath", "Zeromus",
"Darkspawn", "Creeper", "Molten Man", "Nightmare",
"Orochi", "Poo", "Siren", "Rick Sanchez", "Thanos",
"Ultron", "Venom", "Wolverine", "Xenomorph",
"Yoda", "Aragorn", "Bane"
]
enemy_types = {
'goblin': {
'max_hp': 10,
'damage': [0, 2],
'heal_chance': 0.2,
'healing': [1, 2]
},
'skeleton': {
'max_hp': 15,
'damage': [0, 3],
'heal_chance': 0.2,
'healing': [1, 3]
},
'orc': {
'max_hp': 20,
'damage': [2, 4],
'heal_chance': 0.1,
'healing': [2, 4]
}
}
MAX_ENEMIES = 20
emoji_by_time = {
0: "🌅",
1: "🌞",
2: "🌇",
3: "🌙"
}
COLORS = {
'~': '\x1b[38;5;31m',
'≈': '\x1b[38;5;33m',
'.': '\x1b[38;5;148m',
'♣': colorama.Fore.GREEN,
'▲': colorama.Fore.WHITE,
'H': colorama.Fore.RED
}
VISIBILITY_X = 2
VISIBILITY_Y = 1
def clear():
os.system('cls' if os.name == 'nt' else 'clear')
full_map = [
["≈≈≈~.......▲♣♣♣....~≈≈≈~~....♣♣♣♣♣♣♣♣▲▲....≈≈~~♣♣....▲▲....♣♣..~~≈≈"],
["≈≈~~~.....♣▲.♣♣...~≈≈≈~~......♣....♣♣..~~≈≈▲▲..♣♣♣♣....~~≈≈♣♣....~≈"],
["~~......▲▲▲.....~~~♣♣.....≈~....♣♣....~~≈≈♣♣....▲▲....~~≈≈..▲▲♣♣..~"],
["....♣..▲▲▲▲.♣♣♣..~♣♣♣.▲▲~~≈≈~........~~≈≈▲▲..♣♣....~≈~~♣♣....▲▲...."],
["...♣♣♣♣♣♣......♣♣♣♣..~~~≈≈≈~~....♣♣....≈≈~~♣♣♣♣....~≈~~▲▲..♣♣......"],
["♣....♣♣♣.♣♣~♣♣.....♣♣~~≈≈≈≈~..♣....≈≈~~♣♣....▲▲..~~≈≈♣♣....▲▲......"],
["..♣♣..♣♣..♣~≈≈♣♣♣.....~~~≈~..♣♣....≈≈~~▲▲..♣♣♣♣..~~≈≈▲▲....♣♣......"],
["♣♣♣.......♣.~♣♣♣......♣♣♣~~.♣♣..▲▲..~~≈≈♣♣....▲▲..~~≈≈♣♣♣♣........."],
["▲▲.♣♣♣.......▲..♣♣♣...♣♣♣.▲♣♣.♣....≈≈~~♣♣♣♣....♣♣~~▲▲..♣♣.........."],
["▲~▲.♣.♣.......▲.▲..♣♣♣♣♣.▲▲▲♣♣♣....≈≈~~▲▲....♣♣..~~≈≈♣♣....▲▲......"],
["~▲▲..♣♣....▲▲♣▲.....♣♣♣..▲..▲...▲..~~≈≈♣♣♣♣....♣♣~~▲▲..♣♣♣♣........"],
["▲▲.♣...........♣♣♣♣......♣♣....▲....≈≈~~♣♣....▲▲....≈≈~~♣♣....▲▲..."],
["...♣.♣..▲....♣♣♣.♣♣♣♣.♣.~.♣♣..▲▲♣..≈≈~~▲▲..♣♣♣♣....≈≈~~♣♣♣♣........"],
["♣.▲▲...♣...♣♣.♣♣..♣♣..~~~≈≈≈.♣..♣..~~≈≈♣♣....▲▲..~~≈≈▲▲....♣♣......"],
["♣.♣▲▲▲....▲▲...♣♣...~~≈≈≈≈~...♣♣....≈≈~~♣♣♣♣...~≈≈~~▲▲..♣♣........."],
["≈≈~~♣♣....▲▲....♣♣..~~≈≈▲▲....♣♣....≈≈~~♣♣....▲▲...~≈≈~~♣♣♣♣......."],
["~≈≈≈▲▲..♣♣♣♣....~~≈≈♣♣....▲▲....~~≈≈♣♣♣♣....≈≈~~▲▲....♣♣..........."],
["~~≈≈≈♣♣...▲▲....~~≈≈▲▲..♣♣♣♣....≈≈~~♣♣....▲▲..~~≈≈♣♣....▲▲........."],
[".~~.~~......♣♣.............♣♣....~~~...♣♣♣....▲▲....♣♣♣▲▲....♣♣...."],
[".....~~~....▲▲....♣♣........~~....▲.▲▲..♣♣....▲▲♣♣.........♣.....♣♣"],
[".......~~....▲▲▲...♣♣♣.....~~▲▲▲▲....♣♣.....♣♣▲▲....♣♣....♣♣♣♣....~"],
[".......~~~▲▲...▲▲....▲▲.....~~.....♣♣.....▲▲♣♣....▲▲♣♣..♣♣▲▲......~"],
[".......~.~~▲▲....♣♣♣.......♣♣..♣.....♣♣♣♣........▲▲....♣♣♣▲▲.....~~"],
[".......▲▲▲▲~.....♣♣♣▲▲.............▲▲....♣♣♣♣....▲▲♣♣..▲▲......~~~~"],
[".............♣♣♣♣....▲▲....♣♣♣♣........♣▲▲♣....♣♣♣♣....▲▲......~≈≈~"],
["........♣♣♣♣....▲▲▲▲▲..▲♣♣....♣♣♣♣....▲▲♣♣........▲▲♣♣♣▲♣♣....~≈≈≈≈"],
["........♣♣▲▲........▲▲▲♣♣♣♣♣....♣♣♣♣...▲▲♣♣♣....♣♣▲▲....♣♣.....~~≈≈"],
["▲.▲....♣♣♣♣♣...........▲▲▲▲♣♣♣♣.~~.~~.♣♣▲♣♣....▲▲♣♣..▲♣.▲♣♣..~~~≈≈≈"],
[".▲▲▲♣♣....♣♣♣♣...........♣▲♣♣♣♣♣.~~~~~..♣▲♣♣♣....▲▲♣♣..▲▲▲▲♣...~~~≈"],
["▲▲▲▲▲▲♣....♣♣♣♣.......♣♣....♣♣♣..▲▲▲~~~▲.♣♣♣♣♣....▲▲♣♣...▲.♣♣....~~"]
]