aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-12-22 01:08:20 -0700
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-12-22 01:08:20 -0700
commitfd0c7d4a5a23f6e8bfbafbed7d9bde319607451d (patch)
treed781d63da06d55ab23440e2a3baf919df2e4b826 /src/game.c
parent123e581f76d58df67bcf041f510c529601dae502 (diff)
Started working on the how to play screen
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 594646d..e39901e 100644
--- a/src/game.c
+++ b/src/game.c
@@ -19,6 +19,9 @@ void initGame(Game * game) {
// Main menu.
initMainMenu(game);
+ // How to play screen.
+ initHowToPlayScreen(game);
+
// Camera.
initCameras(game, game->cameras);
@@ -49,6 +52,8 @@ void closeGame(Game * game) {
void gameResize(Game * game) {
resizeGameScreen(game, &game->gameScreen);
+ resizeMainMenu(game, &game->mainMenu);
+ resizeHowToPlayScreen(game, &game->howToPlayScreen);
}
void updateGame(Game * game) {
@@ -61,6 +66,8 @@ void updateGame(Game * game) {
case SCREEN_GAME:
updateGameScreen(game);
break;
+ case HOW_TO_PLAY_SCREEN:
+ updateHowToPlayScreen(game);
default:
break;
}