move to a model where there is a sample game and a possible real game
This commit is contained in:
parent
a0845ed16f
commit
19803720a6
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
||||
.DS_Store
|
||||
.build/
|
||||
dist/
|
||||
game/
|
||||
first
|
||||
packs/*
|
||||
first.dSYM/Contents
|
||||
|
||||
17
first.jai
17
first.jai
@ -1,6 +1,7 @@
|
||||
#load "./src/meta/meta.jai";
|
||||
|
||||
Iprof :: #import "Iprof"(IMPORT_MODE = .METAPROGRAM);
|
||||
#import "File_Utilities";
|
||||
|
||||
#run {
|
||||
print("%\n", ascii_car);
|
||||
@ -80,6 +81,15 @@ Iprof :: #import "Iprof"(IMPORT_MODE = .METAPROGRAM);
|
||||
add_build_file("src/platform_specific/main_web.jai", w);
|
||||
add_build_string("HAS_TACOMA :: false;", w);
|
||||
add_build_string("HAS_IPROF :: false;", w);
|
||||
|
||||
if is_directory("./game") {
|
||||
add_build_string("USE_SAMPLE_GAME :: false;", w);
|
||||
} else {
|
||||
add_build_string("USE_SAMPLE_GAME :: true;", w);
|
||||
|
||||
}
|
||||
|
||||
|
||||
add_shaders_to_workspace(w);
|
||||
|
||||
while true {
|
||||
@ -157,6 +167,13 @@ Iprof :: #import "Iprof"(IMPORT_MODE = .METAPROGRAM);
|
||||
} else {
|
||||
add_build_string("HAS_TACOMA :: false;", w);
|
||||
}
|
||||
|
||||
if is_directory("./game") {
|
||||
add_build_string("USE_SAMPLE_GAME :: false;", w);
|
||||
} else {
|
||||
add_build_string("USE_SAMPLE_GAME :: true;", w);
|
||||
}
|
||||
|
||||
if profile {
|
||||
add_build_string("HAS_IPROF :: true;", w);
|
||||
iprof_plugin.add_source(iprof_plugin);
|
||||
|
||||
@ -25,7 +25,11 @@ stbi :: #import "stb_image";
|
||||
#load "ray.jai";
|
||||
#load "world.jai";
|
||||
|
||||
#if USE_SAMPLE_GAME {
|
||||
#load "../sample_game/game.jai";
|
||||
} else {
|
||||
#load "../game/game.jai";
|
||||
}
|
||||
|
||||
last_frame_time : float64;
|
||||
delta\ _time : float64;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user