feat: add player gold

This commit is contained in:
2026-07-05 20:57:17 +02:00
parent 354c8b8a5d
commit a167e38d3c
5 changed files with 87 additions and 102 deletions
+4 -2
View File
@@ -6,8 +6,10 @@ void RenderOverlay(Mouse *mouse) {
// Health
Player *player = GetPlayer();
const char *healthText = TextFormat("%d", player->health);
DrawText(healthText, 0, 0, 25, WHITE);
const char *text = TextFormat("Health: %i\n"
"Gold: %i\n",
player->health, player->gold);
DrawText(text, 0, 0, 25, WHITE);
// Mouse
Rectangle mouseRectangle = (Rectangle){0, 0, mouse->cursorTexture.width,