From 529bec904716fc91ecd937a06bf81ea150cf3c72 Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Mon, 6 May 2024 18:49:50 -0600 Subject: As end of level thing for the shooter --- src/shooterScreen.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/shooterScreen.h') 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); -- cgit v1.2.3