diff -r ac143db979dc -r 5231da78831e test/snake/snake.c --- a/test/snake/snake.c Sun Apr 27 15:17:12 2025 +0200 +++ b/test/snake/snake.c Mon Apr 28 21:13:01 2025 +0200 @@ -150,9 +150,11 @@ asc_window_initialize(0, &settings); // initialize the main scene (a 500x500 game field) - asc_scene_init(MAIN_SCENE); - asc_camera_ortho(&MAIN_SCENE->camera, (asc_recti){0, 0, 500, 500}); - MAIN_SCENE->camera.viewport_update_func = update_viewport_for_window_resize; + asc_scene_init(MAIN_SCENE, (AscCameraParams) { + .type = ASC_CAMERA_ORTHO, + .ortho.rect = (asc_recti){0, 0, 500, 500}, + .viewport_update_func = update_viewport_for_window_resize + }); // load textures init_textures();