Added editor code

This commit is contained in:
2024-10-11 23:37:33 +02:00
parent 327e4be1c9
commit 84729f9d27
2 changed files with 9 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ build :: (main_path: string, game_name: string) {
new_path: [..] string; new_path: [..] string;
array_add(*new_path, ..opts.import_path); array_add(*new_path, ..opts.import_path);
array_add(*new_path, "../../modules");
array_add(*new_path, "modules"); array_add(*new_path, "modules");
opts.import_path = new_path; opts.import_path = new_path;

View File

@@ -1,6 +1,14 @@
#load "core/entity.jai"; #load "core/entity.jai";
#load "core/scene.jai"; #load "core/scene.jai";
#if EDITOR {
//#load "../editor/scene_editor.jai";
//#load "../ui/new_ui/new_ui.jai";
#load "../editor/editor.jai";
editor: Editor;
}
window: *Window; window: *Window;
renderer: *Renderer; renderer: *Renderer;
input : Input_State; input : Input_State;