-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatomixlevels.py
38 lines (36 loc) · 969 Bytes
/
atomixlevels.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
from random import randint
atomix_molecule_names = [
"Water",
"Methane",
"Methanol",
"Ethylene",
"Propylene",
"Ethanal",
"Ethanol",
"Acetic Acid",
"Dimethyl Ether",
"Methanal",
"Acetone",
"Trans Butylen",
"Butanol",
"Propanal",
"Pyran",
"Cyclobutane",
"Ethane",
"Lactic Acid",
"Glycerin",
]
atomix_levels = []
for i, molecule_name in enumerate(atomix_molecule_names):
atomix_levels.append({
"n": 20 + (i + 1) / 100,
"name": "Atomix: %s" % molecule_name,
"bg_image": "bg/chemistry-%d.webp" % randint(1, 2),
"theme": ("stoneage1", "stoneage2", "default", "modern1", "moss")[randint(0, 4)],
"music": ("playful_sparrow", "film", "forest_walk", "epic_cinematic_trailer", "adventures")[randint(0, 4)] + ".mp3",
"map_file": "maps/atomix/" + molecule_name.replace(" ", "-").lower() + ".map",
"goal": "Compose %s molecule" % molecule_name,
"num_enemies": 0,
"char_health": None,
"atomix_puzzle": { "molecule_name": molecule_name },
})