--- a/test/snake/snake.c Tue May 13 20:27:43 2025 +0200 +++ b/test/snake/snake.c Wed May 14 20:14:18 2025 +0200 @@ -173,15 +173,17 @@ // initialize the scenes const int game_field_size = 500; - asc_scene_init(BACKDROP_SCENE, (AscCameraParams) { + asc_scene_init(BACKDROP_SCENE, .type = ASC_CAMERA_ORTHO, .projection_update_func = asc_camera_ortho_update_size - }); - asc_scene_init(MAIN_SCENE, (AscCameraParams) { + ); + asc_ink_rgb(0, 128, 90); + asc_scene_init(MAIN_SCENE, .type = ASC_CAMERA_ORTHO, .ortho.rect = asc_recti_new(0, 0, game_field_size, game_field_size), + .viewport_clear = true, .viewport_update_func = update_viewport_for_window_resize - }); + ); // backdrop for letterbox/pillarbox create_backdrop();