Moved some game code into engine code

This commit is contained in:
2024-10-14 00:51:50 +02:00
parent 9939c84f09
commit 55adf0971e
6 changed files with 228 additions and 200 deletions

View File

@@ -2,11 +2,13 @@
#import "Basic";
#import "String";
#import "Sort";
#import "File";
build_release := false;
build :: (main_path: string, game_name: string, working_dir: string = #filepath) {
set_working_directory(working_dir);
make_directory_if_it_does_not_exist("../../bin");
w := compiler_create_workspace("Game");
opts := get_build_options(w);
@@ -22,9 +24,9 @@ build :: (main_path: string, game_name: string, working_dir: string = #filepath)
array_add(*new_path, "modules");
opts.import_path = new_path;
if build_release {
//if build_release {
set_optimization(*opts, .VERY_OPTIMIZED);
}
//}
compiler_begin_intercept(w);