from pathlib import Path from game_loop import start_game from logging_setup import configure_logging from scenario_loader import load_scenario, save_scenario SCENARIO_PATH = Path(__file__).with_name("demo.json") if __name__ == "__main__": configure_logging() scenario = load_scenario(SCENARIO_PATH) start_game( scenario.entities, scenario.player_id, world_time=scenario.metadata.get("world_time"), location=scenario.metadata.get("location", "Unknown"), world_state=scenario.world_state, spatial_graph=scenario.spatial_graph, ) save_scenario(SCENARIO_PATH, scenario)