Fixed a bug in akgl_heap_next_string, made screen width and height load from properties, not on the game object

This commit is contained in:
2026-05-13 04:55:19 -04:00
parent 23dbc7d985
commit 36dfd47a06
6 changed files with 70 additions and 13 deletions

View File

@@ -31,8 +31,6 @@ typedef struct {
char version[32];
char name[256];
char uri[256];
int16_t screenwidth;
int16_t screenheight;
akgl_GameState state;
int16_t fps;
SDL_Time gameStartTime;
@@ -56,6 +54,7 @@ extern akgl_Game game;
#define AKGL_BITMASK_CLEAR(x) x = 0;
akerr_ErrorContext AKERR_NOIGNORE *akgl_game_init();
akerr_ErrorContext AKERR_NOIGNORE *akgl_game_init_screen();
void akgl_game_updateFPS();
akerr_ErrorContext AKERR_NOIGNORE *akgl_game_save(char *fpath);
akerr_ErrorContext AKERR_NOIGNORE *akgl_game_load(char *fpath);