| 171 // load textures |
171 // load textures |
| 172 init_textures(); |
172 init_textures(); |
| 173 |
173 |
| 174 // initialize the scenes |
174 // initialize the scenes |
| 175 const int game_field_size = 500; |
175 const int game_field_size = 500; |
| 176 asc_scene_init(BACKDROP_SCENE, (AscCameraParams) { |
176 asc_scene_init(BACKDROP_SCENE, |
| 177 .type = ASC_CAMERA_ORTHO, |
177 .type = ASC_CAMERA_ORTHO, |
| 178 .projection_update_func = asc_camera_ortho_update_size |
178 .projection_update_func = asc_camera_ortho_update_size |
| 179 }); |
179 ); |
| 180 asc_scene_init(MAIN_SCENE, (AscCameraParams) { |
180 asc_ink_rgb(0, 128, 90); |
| |
181 asc_scene_init(MAIN_SCENE, |
| 181 .type = ASC_CAMERA_ORTHO, |
182 .type = ASC_CAMERA_ORTHO, |
| 182 .ortho.rect = asc_recti_new(0, 0, game_field_size, game_field_size), |
183 .ortho.rect = asc_recti_new(0, 0, game_field_size, game_field_size), |
| |
184 .viewport_clear = true, |
| 183 .viewport_update_func = update_viewport_for_window_resize |
185 .viewport_update_func = update_viewport_for_window_resize |
| 184 }); |
186 ); |
| 185 |
187 |
| 186 // backdrop for letterbox/pillarbox |
188 // backdrop for letterbox/pillarbox |
| 187 create_backdrop(); |
189 create_backdrop(); |
| 188 |
190 |
| 189 // create UI elements |
191 // create UI elements |