void globals_init() { globals.randomSeed = 0; globals.screen.width = 0; globals.screen.height = 0; globals.screen.fullscreen = false; globals.world.width = 0; globals.world.height = 0; game_time_initialize(&globals.time); globals.window = NULL; globals.renderer = NULL; globals.game = NULL; }
bool app_start(char *err_str) { // initialize timing game_time_initialize(); // physics ray tracing if (!ray_trace_initialize(err_str)) return(FALSE); // OS network initialization net_initialize(); // read setup preferences setup_xml_read(); // client network defaults net_setup.mode=net_mode_none; // initialize server if (!server_initialize(err_str)) return(FALSE); // initialize view // if not running in dedicated host mode if (!app.dedicated_host) { if (!view_initialize(err_str)) { server_shutdown(); return(FALSE); } console_initialize(); } return(TRUE); }