draw overlay + move gold to overlay in pure raylib

This commit is contained in:
2026-06-18 01:09:17 -07:00
parent c8d191e7c7
commit 75c29a4d5e
4 changed files with 21 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
package game
import "core:fmt"
import rl "vendor:raylib"
render_overlay :: proc(world: ^World) {
rl.DrawRectangle(0, 0, SCREEN_W, OVERLAY_BAR_H, OVERLAY_BAR_COLOR)
gold := fmt.ctprintf("Gold: %d", world.gold)
rl.DrawText(gold, OVERLAY_PADDING, OVERLAY_PADDING, 18, OVERLAY_GOLD_COLOR)
}