From 9e0433b442e62ad39a92fdb6580eba32afd787e4 Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Fri, 15 Mar 2024 11:01:21 -0600 Subject: Removed silly little panel --- src/gameScreen.c | 54 ------------------------------------------------------ src/gameScreen.h | 7 ------- 2 files changed, 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; -- cgit v1.2.3