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

@ -673,6 +673,11 @@ int main(int, char **)
SDL_SetRenderTarget(renderer, nullptr);
}
SDL_Texture* scorePanelTex = loadTextureFromImage(renderer, "assets/images/panel_score.png");
if (scorePanelTex) {
SDL_SetTextureBlendMode(scorePanelTex, SDL_BLENDMODE_BLEND);
}
Game game(startLevelSelection);
// Apply global gravity speed multiplier from config
@ -819,6 +824,7 @@ int main(int, char **)
ctx.logoSmallH = logoSmallH;
ctx.backgroundTex = backgroundTex;
ctx.blocksTex = blocksTex;
ctx.scorePanelTex = scorePanelTex;
ctx.mainScreenTex = mainScreenTex;
ctx.mainScreenW = mainScreenW;
ctx.mainScreenH = mainScreenH;
@ -1717,6 +1723,7 @@ int main(int, char **)
&pixelFont,
&lineEffect,
blocksTex,
scorePanelTex,
(float)LOGICAL_W,
(float)LOGICAL_H,
logicalScale,
@ -1956,6 +1963,8 @@ int main(int, char **)
resetLevelBackgrounds(levelBackgrounds);
if (blocksTex)
SDL_DestroyTexture(blocksTex);
if (scorePanelTex)
SDL_DestroyTexture(scorePanelTex);
if (logoSmallTex)
SDL_DestroyTexture(logoSmallTex);