aboutsummaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
authornathansmith117 <thenathansmithsmith@gmail.com>2024-05-06 17:51:39 +0000
committernathansmith117 <thenathansmithsmith@gmail.com>2024-05-06 17:51:39 +0000
commitc475f3de248a25a999dafd4792d0454eb55191c1 (patch)
tree9fed15b875176bf7bd6ca6d26c9b0d1e3fa8e984 /src/game.c
parenta62dd3774512041a71f708c0e891893febb8b19e (diff)
downloadPenguinYippies-c475f3de248a25a999dafd4792d0454eb55191c1.tar.gz
PenguinYippies-c475f3de248a25a999dafd4792d0454eb55191c1.tar.bz2
PenguinYippies-c475f3de248a25a999dafd4792d0454eb55191c1.zip
Builtin shooter thingy going well
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index c8b711c..6f74c58 100644
--- a/src/game.c
+++ b/src/game.c
@@ -12,6 +12,7 @@ void initGame(Game* game)
game->currentScreen = MAIN_MENU_SCREEN;
initMainMenu(&game->mainMenu, game);
initGameScreen(&game->gameScreen, game);
+ initShooterScreeen(&game->shooterScreen, game);
// Clickies lol.
initClickies(&game->clickies);
@@ -28,7 +29,7 @@ void initGame(Game* game)
game->madeWithUnity = createAnimation(&game->assets.animations[MADE_WITH_UNITY_ANIMATION], 0.2);
game->madeWithUnity.repeat = false;
- playAnimation(&game->madeWithUnity);
+ //playAnimation(&game->madeWithUnity);
}
void updateGame(Game* game)
@@ -64,6 +65,9 @@ void updateGame(Game* game)
case GAME_SCREEN:
updateGameScreen(&game->gameScreen, game);
break;
+ case SHOOTER_SCREEN:
+ updateShooterScreen(&game->shooterScreen, game);
+ break;
default:
break;
}
@@ -90,6 +94,7 @@ void closeGame(Game* game)
closeAssets(&game->assets);
closeMainMenu(&game->mainMenu);
closeGameScreen(&game->gameScreen);
+ closeShooterScreen(&game->shooterScreen);
closeClickies(&game->clickies);
UnloadRenderTexture(game->screenTexture);