Fixed gameplay

This commit is contained in:
2025-12-16 18:51:23 +01:00
parent 29c1d6b745
commit 3264672be0
7 changed files with 355 additions and 180 deletions

View File

@ -2,6 +2,7 @@
#include "MenuWrappers.h"
#include "../core/GlobalState.h"
#include "../graphics/Font.h"
#include "app/Fireworks.h"
#include <SDL3/SDL.h>
using namespace Globals;
@ -13,19 +14,19 @@ static void drawRect(SDL_Renderer* renderer, float x, float y, float w, float h,
}
void menu_drawFireworks(SDL_Renderer* renderer, SDL_Texture* blocksTex) {
GlobalState::instance().drawFireworks(renderer, blocksTex);
AppFireworks::draw(renderer, blocksTex);
}
void menu_updateFireworks(double frameMs) {
GlobalState::instance().updateFireworks(frameMs);
AppFireworks::update(frameMs);
}
double menu_getLogoAnimCounter() {
return GlobalState::instance().logoAnimCounter;
return AppFireworks::getLogoAnimCounter();
}
int menu_getHoveredButton() {
return GlobalState::instance().hoveredButton;
return AppFireworks::getHoveredButton();
}
void menu_drawEnhancedButton(SDL_Renderer* renderer, FontAtlas& font, float cx, float cy, float w, float h,