Fixed gameplay
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user