test/snake/snake.c

changeset 86
943bf9d7c6d6
parent 84
e4116b4b5774
child 88
6234b7ea48f3
equal deleted inserted replaced
85:f51eec4e7ccb 86:943bf9d7c6d6
80 if (asc_has_error()) { 80 if (asc_has_error()) {
81 SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, 81 SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
82 "Fatal Error",asc_get_error(),NULL); 82 "Fatal Error",asc_get_error(),NULL);
83 return 1; 83 return 1;
84 } 84 }
85 #ifdef TEST_BUILD
86 asc_set_font_path("../../fonts");
87 asc_set_shader_path("../../shader");
88 asc_set_texture_path("../../test/snake/textures");
89 #else
90 #warning "Live build not yet supported"
91 #endif
85 92
86 // create window 93 // create window
87 AscWindowSettings settings; 94 AscWindowSettings settings;
88 asc_window_settings_init_defaults(&settings); 95 asc_window_settings_init_defaults(&settings);
89 settings.title = "Snake"; 96 settings.title = "Snake";

mercurial