Screen width/height to properties, call akgl_game_init_screen()

This commit is contained in:
2026-05-13 04:55:48 -04:00
parent 34149ac9bf
commit 4f9b40fb9f
2 changed files with 3 additions and 4 deletions

2
deps/libakgl vendored

View File

@@ -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));