From cb6d023ffb7e24d024b2ab9603ced1684a62d137 Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Fri, 15 Mar 2024 11:07:47 -0600 Subject: Moved thingies around a ittle bitty --- src/gameScreen.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/gameScreen.c b/src/gameScreen.c index bd28042..6d772f1 100644 --- a/src/gameScreen.c +++ b/src/gameScreen.c @@ -39,6 +39,19 @@ void updateGameScreenClickyDesktop(GameScreen* gameScreen, Game* game) updateClickies(game, &game->clickies); } +void updateGameScreenNavigation(GameScreen* gameScreen, Game* game) +{ + // Navigation buttons. + if (updateTexturedButton(&gameScreen->toGameButton)) + { + gameScreen->place = CLICKY_DESKTOP_PLACE; + } + if (updateTexturedButton(&gameScreen->toEmperorsEmporiumButton)) + { + gameScreen->place = SHOP_PLACE; + } +} + void updateGameScreen(GameScreen* gameScreen, Game* game) { // Draw background. @@ -53,16 +66,6 @@ void updateGameScreen(GameScreen* gameScreen, Game* game) WHITE ); - // Navigation buttons. - if (updateTexturedButton(&gameScreen->toGameButton)) - { - gameScreen->place = CLICKY_DESKTOP_PLACE; - } - if (updateTexturedButton(&gameScreen->toEmperorsEmporiumButton)) - { - gameScreen->place = SHOP_PLACE; - } - // assssssss hehehe switch (gameScreen->place) { @@ -92,7 +95,7 @@ void updateGameScreen(GameScreen* gameScreen, Game* game) snprintf(stonesBuf, sizeof(stonesBuf), "%d", game->stones); DrawText(stonesBuf, 40.0, 5.0, 30, BLACK); - //DrawFPS(0, 0); + updateGameScreenNavigation(gameScreen, game); } void closeGameScreen(GameScreen* gameScreen) -- cgit v1.2.3