| 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"; |