diff options
author | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-05-07 00:49:50 +0000 |
---|---|---|
committer | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-05-07 00:49:50 +0000 |
commit | 529bec904716fc91ecd937a06bf81ea150cf3c72 (patch) | |
tree | ebe586375dd2fc710f32d12a4b163ad320313b7c /src/shooterScreen.h | |
parent | 1aec85f04d08665ca386c58c982094acc67dd118 (diff) | |
download | PenguinYippies-529bec904716fc91ecd937a06bf81ea150cf3c72.tar.gz PenguinYippies-529bec904716fc91ecd937a06bf81ea150cf3c72.tar.bz2 PenguinYippies-529bec904716fc91ecd937a06bf81ea150cf3c72.zip |
As end of level thing for the shooter
Diffstat (limited to 'src/shooterScreen.h')
-rw-r--r-- | src/shooterScreen.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shooterScreen.h b/src/shooterScreen.h index 2499413..1c22814 100644 --- a/src/shooterScreen.h +++ b/src/shooterScreen.h @@ -19,6 +19,8 @@ #define SHOOTER_PENGUIN_CHANGE_DELAY_MAX 7 #define SHOOTER_PENGUIN_SPEED 8.0 +#define SHOOTER_END_LEVEL_TIME 7.0 + typedef struct ShooterPlayer { Camera3D camera; @@ -47,6 +49,13 @@ typedef struct ShooterScreen { ShooterPenguin penguins[SHOOTER_PENGUIN_COUNT]; double startTime; int killCount; // "Sleep" count. + + // Penguin naps per second. + float pnps; + float bestPNPS; + + bool atEndLevel; + double endLevelStartTime; } ShooterScreen; void initShooterScreeen(ShooterScreen* shooterScreen, Game* game); |