80 SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, |
80 SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, |
81 "Fatal Error",asc_get_error(),NULL); |
81 "Fatal Error",asc_get_error(),NULL); |
82 return 1; |
82 return 1; |
83 } |
83 } |
84 |
84 |
|
85 // create window |
85 AscWindowSettings settings; |
86 AscWindowSettings settings; |
86 asc_window_settings_init_defaults(&settings); |
87 asc_window_settings_init_defaults(&settings); |
87 settings.title = "Snake"; |
88 settings.title = "Snake"; |
88 |
|
89 AscWindow *window = asc_window_initialize(0, &settings); |
89 AscWindow *window = asc_window_initialize(0, &settings); |
90 asc_shader_initialize_predefined(); |
|
91 |
90 |
92 // create UI elements |
91 // create UI elements |
93 create_fps_counter(); |
92 create_fps_counter(); |
94 create_score_counter(); |
93 create_score_counter(); |
95 |
94 |