-
Notifications
You must be signed in to change notification settings - Fork 0
/
generator.py
53 lines (31 loc) · 1.46 KB
/
generator.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
from polygon_generator import to_convex_contour
from GenerationSettings import GenerationSettings
from LevelInfo import LevelInfo
def generate_boundaries(lvl: LevelInfo, gen_settings: GenerationSettings) -> list[tuple]:
size_mod = gen_settings.level_scale
size = gen_settings.chunk_size * size_mod
contour = to_convex_contour(gen_settings.edges_count) # Нужно упростить генерацию
boundaries = [(x * size, y * size) for x, y in contour]
lvl.boundaries = boundaries
def generate_exits(lvl: LevelInfo, gen_settings: GenerationSettings):
return None
def generate_roads(lvl: LevelInfo, gen_settings: GenerationSettings):
return None
def generate_rooms(lvl: LevelInfo, gen_settings: GenerationSettings):
return None
def generate_doors(lvl: LevelInfo, gen_settings: GenerationSettings):
return None
def generate_traps(lvl: LevelInfo, gen_settings: GenerationSettings):
return None
def generate_enemies(lvl: LevelInfo, gen_settings: GenerationSettings):
return None
def generate_lights(lvl: LevelInfo, gen_settings: GenerationSettings):
return None
def generate_loot(lvl: LevelInfo, gen_settings: GenerationSettings):
return None
def generate_static_environment(lvl: LevelInfo, gen_settings: GenerationSettings):
return None
def generate_new_gen_settings(lvl: LevelInfo, gen_settings: GenerationSettings, prev_gen_settings: GenerationSettings):
if not prev_gen_settings:
pass
return None