test/snake.c

changeset 44
b3da4096c607
parent 37
8a8cc6725b48
child 45
18de2af03531
equal deleted inserted replaced
43:5a8c31904e44 44:b3da4096c607
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

mercurial