|
|
|
|
@ -45,6 +45,11 @@
|
|
|
|
|
#include "gooey.h" |
|
|
|
|
#include "orbits.h" |
|
|
|
|
|
|
|
|
|
// TODO: move globals to config file?
|
|
|
|
|
#define DEFAULT_SIM_SPEED 4000 |
|
|
|
|
#define GAME_ARENA_SIZE 16 * 1024 * 1024 // 16MB
|
|
|
|
|
#define DEFAULT_MAX_ORBITS 10000 |
|
|
|
|
#define DEFAULT_MANUEVER_NODES 3 * DEFAULT_MAX_ORBITS |
|
|
|
|
|
|
|
|
|
const double SCALING = 0.001; |
|
|
|
|
const vec4 g_light_direction = vec4(-2, 1, 3, 1); |
|
|
|
|
@ -276,7 +281,7 @@ loadRandomOrbits(GameState* gs,
|
|
|
|
|
bool |
|
|
|
|
loadScene(GameState* gs, RenderState* rs) |
|
|
|
|
{ |
|
|
|
|
initCamera(rs, vec3(-30 / SCALING, -30 / SCALING, 30 / SCALING), vec3(0, 0, 0), vec3(0,0,1)); |
|
|
|
|
initCamera(rs, vec3(-70 / SCALING, -70 / SCALING, 70 / SCALING), vec3(0, 0, 0), vec3(0,0,1)); |
|
|
|
|
initLights(rs); |
|
|
|
|
gs->running = true; |
|
|
|
|
|
|
|
|
|
@ -378,10 +383,6 @@ postFrameCallback(RenderState* rs, void* user_data = nullptr)
|
|
|
|
|
gooDraw(rs->handles.window, (GameState*) user_data, rs); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#define DEFAULT_SIM_SPEED 1000 |
|
|
|
|
#define GAME_ARENA_SIZE 16 * 1024 * 1024 // 16MB
|
|
|
|
|
#define DEFAULT_MAX_ORBITS 10000 |
|
|
|
|
#define DEFAULT_MANUEVER_NODES 3 * DEFAULT_MAX_ORBITS |
|
|
|
|
int |
|
|
|
|
main() |
|
|
|
|
{ |
|
|
|
|
|