Scene loading fixes

This commit is contained in:
Daniel Bross
2025-01-09 22:02:23 +01:00
parent 4d97d7bc39
commit 040a5fa23a
5 changed files with 21 additions and 4 deletions

View File

@@ -29,8 +29,9 @@ cmd_new_scene :: (arguments: [] string) {
unload_scene(engine.current_scene);
}
engine.current_scene = create_scene(arguments[0]);
make_directory_if_it_does_not_exist(scene_path);
engine.current_scene = create_scene(arguments[0]);
switch_to_scene(arguments[0]);
console_success("Scene '%' loaded\n", arguments[0]);