diff options
author | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-12-18 12:06:26 -0700 |
---|---|---|
committer | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-12-18 12:06:26 -0700 |
commit | 2016fd3e8a39205843f770df7e80df27f720abad (patch) | |
tree | 926eebf9d5c332f6827a88ed35fba24330ddebef /src/gameScreen.h | |
parent | ef8583564b648f6fdda73711a18b469416c1fdfc (diff) |
Health from last level now saved
Diffstat (limited to 'src/gameScreen.h')
-rw-r--r-- | src/gameScreen.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gameScreen.h b/src/gameScreen.h index 5890350..92e6934 100644 --- a/src/gameScreen.h +++ b/src/gameScreen.h @@ -33,6 +33,9 @@ typedef struct GameScreen { double timeAtLevelComplete; int lastLevel; + // Since the player entity gets reallocated each level we use this to remember its health. + float healthAtLevelEnd; + bool gameOver; double gameOverAt; |