|
@@ -24,7 +24,7 @@ def main(map_dir_path: str, seed_value: int=42):
|
24
|
24
|
seed(seed_value)
|
25
|
25
|
|
26
|
26
|
config = Config()
|
27
|
|
- config.load_files(['sandbox/tile/config.yaml'])
|
|
27
|
+ config.load_yaml('sandbox/tile/config.yaml')
|
28
|
28
|
logger = get_default_logger(level=logging.ERROR)
|
29
|
29
|
|
30
|
30
|
map_file_path = 'sandbox/tile/{}.tmx'.format(os.path.join(map_dir_path, os.path.basename(map_dir_path)))
|
|
@@ -61,7 +61,7 @@ def main(map_dir_path: str, seed_value: int=42):
|
61
|
61
|
map_dir_path=map_dir_path,
|
62
|
62
|
)]
|
63
|
63
|
),
|
64
|
|
- cycles_per_seconds=1 / config.core.cycle_duration,
|
|
64
|
+ cycles_per_seconds=1 / config.resolve('core.cycle_duration'),
|
65
|
65
|
)
|
66
|
66
|
core.run()
|
67
|
67
|
|