aboutsummaryrefslogtreecommitdiff
path: root/src/gameScreen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gameScreen.h')
-rw-r--r--src/gameScreen.h3
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;