Add minor improvements
This commit is contained in:
parent
7aca665d8e
commit
ab8bcd4605
8 changed files with 53 additions and 44 deletions
|
@ -11,8 +11,8 @@
|
|||
#define LCR_FPS_GET_MS SDL_GetTicks() // uncomment for FPS measuring
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
#define LCR_SETTING_RESOLUTION_X 640
|
||||
#define LCR_SETTING_RESOLUTION_Y 480
|
||||
#define LCR_SETTING_RESOLUTION_X 512
|
||||
#define LCR_SETTING_RESOLUTION_Y 400
|
||||
#define LCR_SETTING_MUSIC 0
|
||||
#define LCR_SETTING_CAR_SHADOW 0
|
||||
#define LCR_SETTING_TEXTURE_SUBSAMPLE 4
|
||||
|
@ -173,13 +173,13 @@ int main(int argc, char *argv[])
|
|||
fputs("could not open music file",stderr);
|
||||
#endif
|
||||
|
||||
LCR_log("initializing game");
|
||||
puts("initializing game");
|
||||
LCR_gameInit(argc,(const char **) argv);
|
||||
|
||||
LCR_log("initializing SDL");
|
||||
puts("initializing SDL");
|
||||
SDL_Init(SDL_INIT_AUDIO);
|
||||
|
||||
LCR_log("initializing audio");
|
||||
puts("initializing audio");
|
||||
SDL_AudioSpec audioSpec;
|
||||
SDL_memset(&audioSpec,0,sizeof(audioSpec));
|
||||
audioSpec.callback = audioFillCallback;
|
||||
|
@ -243,7 +243,7 @@ int main(int argc, char *argv[])
|
|||
SDL_PumpEvents();
|
||||
keyboardState = SDL_GetKeyboardState(NULL);
|
||||
|
||||
LCR_log("starting game loop");
|
||||
puts("starting game loop");
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
emscripten_set_main_loop(mainLoopIteration,0,1);
|
||||
|
@ -252,7 +252,7 @@ int main(int argc, char *argv[])
|
|||
mainLoopIteration();
|
||||
#endif
|
||||
|
||||
LCR_log("ending");
|
||||
puts("ending");
|
||||
|
||||
if (musicFile)
|
||||
fclose(musicFile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue