aboutsummaryrefslogtreecommitdiff
path: root/src/gameScreen.h
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-12-22 00:38:28 -0700
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-12-22 00:38:28 -0700
commit123e581f76d58df67bcf041f510c529601dae502 (patch)
tree8814977a4b5e6dd9d5f1f2dcf5f68461aeeb54db /src/gameScreen.h
parent95bdaa95050696cd36f12ea58c5df65dad23c4f5 (diff)
Finally have a real game play loop
Diffstat (limited to 'src/gameScreen.h')
-rw-r--r--src/gameScreen.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gameScreen.h b/src/gameScreen.h
index 5637feb..d2b058d 100644
--- a/src/gameScreen.h
+++ b/src/gameScreen.h
@@ -8,7 +8,7 @@
#define GAME_SCREEN_H
#define GAME_SCREEN_TEXT_SIZE 20.0
-#define GAME_SCREEN_NEXT_LEVEL_DELAY 2.0
+#define GAME_SCREEN_NEXT_LEVEL_DELAY 4.0
#define GAME_SCREEN_TARGET_INFO_MAX 20
#define GAME_SCREEN_ZOOM_VIEW_SIZE 100 // Size it renders at.
@@ -16,9 +16,12 @@
#define GAME_SCREEN_SKY_BOX_SIZE 1020.0
-#define GAME_SCREEN_SHOW_GAME_OVER_FOR 2.0
+#define GAME_SCREEN_SHOW_GAME_OVER_FOR 4.0
#define GAME_SCREEN_GAME_OVER_FONT_SIZE 100
+#define GAME_SCREEN_GAME_COMPLETE_SHOW_FOR 6.0
+#define GAME_SCREEN_GAME_COMPLETE_FONT_SIZE 100
+
// Gui stuff and shit.
typedef struct GameScreen {
Vector2 infoTextPosition;
@@ -40,6 +43,9 @@ typedef struct GameScreen {
bool gameOver;
double gameOverAt;
+ bool gameComplete;
+ double gameCompleteAt;
+
RenderTexture zoomViewTexture;
Vector2 zoomViewPosition;