draw overlay + move gold to overlay in pure raylib
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user