Getting to the way it's supposed to be!
This commit is contained in:
44
module.jai
44
module.jai
@@ -1,10 +1,10 @@
|
||||
#load "core/entity.jai";
|
||||
#load "core/scene.jai";
|
||||
EDITOR :: true;
|
||||
DEBUG :: true;
|
||||
|
||||
#if EDITOR {
|
||||
//#load "../editor/scene_editor.jai";
|
||||
//#load "../ui/new_ui/new_ui.jai";
|
||||
#load "../editor/editor.jai";
|
||||
#load "editor/editor.jai";
|
||||
|
||||
editor: Editor;
|
||||
}
|
||||
@@ -17,9 +17,9 @@ time: float;
|
||||
dt: float;
|
||||
quit: bool;
|
||||
|
||||
init :: (window_title: string, window_width: u32, window_height: u32, fullscreen: bool) {
|
||||
window = Coven.create_window(GAME_NAME, 1400, xx (1400.0*aspect), true);
|
||||
renderer = Coven.create_renderer(window);
|
||||
coven_init :: (window_title: string, window_width: u32, window_height: u32, fullscreen: bool) {
|
||||
window = create_window(GAME_NAME, 1400, xx (1400.0*aspect), true);
|
||||
renderer = create_renderer(window);
|
||||
renderer.vsync = true;
|
||||
|
||||
init_input();
|
||||
@@ -27,7 +27,7 @@ init :: (window_title: string, window_width: u32, window_height: u32, fullscreen
|
||||
init_console();
|
||||
}
|
||||
|
||||
run :: (update_func: (float)) {
|
||||
coven_run :: (update_func: (float)) {
|
||||
time = xx seconds_since_init();
|
||||
|
||||
while !quit {
|
||||
@@ -56,4 +56,32 @@ run :: (update_func: (float)) {
|
||||
SDL_DestroyWindow(window);
|
||||
|
||||
SDL_Quit();
|
||||
}
|
||||
}
|
||||
|
||||
#load "input/input.jai";
|
||||
#load "networking/networking.jai";
|
||||
#load "renderer/renderer.jai";
|
||||
#load "windowing/window.jai";
|
||||
#load "physics/physics.jai";
|
||||
|
||||
#load "core/string_helpers.jai";
|
||||
#load "core/math.jai";
|
||||
#load "core/ray.jai";
|
||||
#load "animation/animator.jai";
|
||||
#load "core/entity.jai";
|
||||
#load "core/parray.jai";
|
||||
#load "core/scene.jai";
|
||||
#load "core/transform.jai";
|
||||
#load "core/camera.jai";
|
||||
#load "core/console.jai";
|
||||
#load "audio/audio.jai";
|
||||
|
||||
#import "Bucket_Array";
|
||||
#import "Basic";
|
||||
#import "String";
|
||||
#import "System";
|
||||
#import "Flat_Pool";
|
||||
#import "Hash_Table";
|
||||
#import "File";
|
||||
#import "File_Watcher";
|
||||
#import "File_Utilities";
|
||||
Reference in New Issue
Block a user