refactor base health

This commit is contained in:
2026-06-27 00:38:22 -07:00
parent 28165ed399
commit e7806dcd66
4 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ render_overlay :: proc(world: ^World) {
rl.DrawText(gold, OVERLAY_PADDING, OVERLAY_PADDING, 18, OVERLAY_GOLD_COLOR)
x += rl.MeasureText(gold, font_size) + gap
hp := fmt.ctprintf("Health: %d", world.base_health)
hp := fmt.ctprintf("Health: %d", world.player.base_health)
rl.DrawText(hp, x, y, font_size, OVERLAY_TEXT_COLOR)
x += rl.MeasureText(hp, font_size) + gap