aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornathansmith117 <thenathansmithsmith@gmail.com>2024-03-15 17:01:21 +0000
committernathansmith117 <thenathansmithsmith@gmail.com>2024-03-15 17:01:21 +0000
commit9e0433b442e62ad39a92fdb6580eba32afd787e4 (patch)
treec465c45cf34f29afc2b52f485578841decb8f31d /src
parent409ea3517b46440f447e35280f399fb5c95e8d9d (diff)
downloadPenguinYippies-9e0433b442e62ad39a92fdb6580eba32afd787e4.tar.gz
PenguinYippies-9e0433b442e62ad39a92fdb6580eba32afd787e4.tar.bz2
PenguinYippies-9e0433b442e62ad39a92fdb6580eba32afd787e4.zip
Removed silly little panel
Diffstat (limited to 'src')
-rw-r--r--src/gameScreen.c54
-rw-r--r--src/gameScreen.h7
2 files changed, 0 insertions, 61 deletions
diff --git a/src/gameScreen.c b/src/gameScreen.c
index f9594f0..bd28042 100644
--- a/src/gameScreen.c
+++ b/src/gameScreen.c
@@ -30,64 +30,11 @@ void initGameScreen(GameScreen* gameScreen, Game* game)
BLACK
);
- // Button pannel thingy.
- gameScreen->buttonPanelSharedAnimation = createAnimation(&assets->animations[BUTTON_BOX_ANIMATION], ANIMATION_DEFAULT_DELAY);
- playAnimation(&gameScreen->buttonPanelSharedAnimation);
-
- Texture* buttonTexture = &gameScreen->buttonPanelSharedAnimation.texture;
- int buttonWidth = width / 4;
- int buttonHeight = buttonWidth / 2;
- int buttonY = height - buttonHeight;
-
- gameScreen->upgradesButton = createTexturedButton(
- buttonTexture,
- (Rectangle){0.0, buttonY, buttonWidth, buttonHeight},
- "Upgrades",
- WHITE,
- BLACK
- );
-
- gameScreen->achievementsButton = createTexturedButton(
- buttonTexture,
- (Rectangle){buttonWidth, buttonY, buttonWidth, buttonHeight},
- "Achievements",
- WHITE,
- BLACK
- );
-
- gameScreen->rebirthButton = createTexturedButton(
- buttonTexture,
- (Rectangle){buttonWidth * 2.0, buttonY, buttonWidth, buttonHeight},
- "Rebirth",
- WHITE,
- BLACK
- );
-
- gameScreen->statisticsButton = createTexturedButton(
- buttonTexture,
- (Rectangle){buttonWidth * 3.0, buttonY, buttonWidth, buttonHeight},
- "Statistics",
- WHITE,
- BLACK
- );
-
initShop(&gameScreen->shop, game);
}
-void updateGameScreenButtonPanel(GameScreen* gameScreen, Game* game)
-{
- // Button panel.
- runAnimation(&gameScreen->buttonPanelSharedAnimation);
- updateTexturedButton(&gameScreen->upgradesButton);
- updateTexturedButton(&gameScreen->achievementsButton);
- updateTexturedButton(&gameScreen->rebirthButton);
- updateTexturedButton(&gameScreen->statisticsButton);
-}
-
void updateGameScreenClickyDesktop(GameScreen* gameScreen, Game* game)
{
- updateGameScreenButtonPanel(gameScreen, game);
-
// Clickies clickies.
updateClickies(game, &game->clickies);
}
@@ -150,7 +97,6 @@ void updateGameScreen(GameScreen* gameScreen, Game* game)
void closeGameScreen(GameScreen* gameScreen)
{
- closeAnimation(&gameScreen->buttonPanelSharedAnimation);
closeShop(&gameScreen->shop);
}
diff --git a/src/gameScreen.h b/src/gameScreen.h
index 5c9953d..e25af53 100644
--- a/src/gameScreen.h
+++ b/src/gameScreen.h
@@ -18,13 +18,6 @@ typedef struct GameScreen {
TexturedButton toGameButton;
TexturedButton toEmperorsEmporiumButton;
- // The little button panel at the bottom.
- Animation buttonPanelSharedAnimation;
- TexturedButton upgradesButton;
- TexturedButton achievementsButton;
- TexturedButton rebirthButton;
- TexturedButton statisticsButton;
-
Shop shop;
} GameScreen;