From 4f9b40fb9f3d421eda99cbe6a39f34806036beb3 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Wed, 13 May 2026 04:55:48 -0400 Subject: [PATCH] Screen width/height to properties, call akgl_game_init_screen() --- deps/libakgl | 2 +- src/akgltest.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/deps/libakgl b/deps/libakgl index 23dbc7d..36dfd47 160000 --- a/deps/libakgl +++ b/deps/libakgl @@ -1 +1 @@ -Subproject commit 23dbc7d985342adf96b54365c07dd0797827dc4b +Subproject commit 36dfd47a062952b35cc34c0fbe7b0433e99101ec diff --git a/src/akgltest.c b/src/akgltest.c index 6757902..2ad1d82 100644 --- a/src/akgltest.c +++ b/src/akgltest.c @@ -79,13 +79,12 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) strcpy((char *)&game.name, "sdl3-gametest"); strcpy((char *)&game.version, "0.0.1"); strcpy((char *)&game.uri, "net.aklabs.games.sdl3-gametest"); - game.screenwidth = 640; - game.screenheight = 480; //CATCH(errctx, akgl_game_load("assets/savegame.bin")); CATCH(errctx, akgl_game_init()); CATCH(errctx, akgl_registry_load_properties("assets/properties.json")); - + CATCH(errctx, akgl_game_init_screen()); + for ( int i = 0; i < numsprites ; i++) { strcpy((char *)&dirnamebuf, spritepaths[i]); CATCH(errctx, akgl_sprite_load_json((char *)&dirnamebuf));