gameplay score board

This commit is contained in:
2025-12-06 21:07:17 +01:00
parent 1355ce49fe
commit ec9eb45cc3
14 changed files with 123 additions and 45 deletions

View File

@ -189,6 +189,7 @@ void PlayingState::render(SDL_Renderer* renderer, float logicalScale, SDL_Rect l
ctx.pixelFont,
ctx.lineEffect,
ctx.blocksTex,
ctx.scorePanelTex,
1200.0f, // LOGICAL_W
1000.0f, // LOGICAL_H
logicalScale,
@ -269,6 +270,7 @@ void PlayingState::render(SDL_Renderer* renderer, float logicalScale, SDL_Rect l
ctx.pixelFont,
ctx.lineEffect,
ctx.blocksTex,
ctx.scorePanelTex,
1200.0f,
1000.0f,
logicalScale,

View File

@ -40,6 +40,7 @@ struct StateContext {
// backgroundTex is set once in `main.cpp` and passed to states via this context.
// Prefer reading this field instead of relying on any `extern SDL_Texture*` globals.
SDL_Texture* blocksTex = nullptr;
SDL_Texture* scorePanelTex = nullptr;
SDL_Texture* mainScreenTex = nullptr;
int mainScreenW = 0;
int mainScreenH = 0;