make enemy move
This commit is contained in:
@@ -18,6 +18,14 @@ render_world :: proc(world: ^World) {
|
||||
if world.enemy.active {
|
||||
e := world.enemy
|
||||
rl.DrawCircle(i32(e.position.x), i32(e.position.y), 11, rl.MAROON)
|
||||
rl.DrawText(
|
||||
fmt.ctprintf("%d", e.health),
|
||||
i32(e.position.x) - 4,
|
||||
i32(e.position.y) - 18,
|
||||
12,
|
||||
rl.WHITE,
|
||||
)
|
||||
|
||||
}
|
||||
rl.DrawText(fmt.ctprintf("Gold: %d", world.gold), 10, 10, 20, rl.BLACK) // Gold HUD
|
||||
rl.DrawText(fmt.ctprintf("Base HP: %d", world.base_health), 10, 32, 20, rl.BLACK) // HP HUD
|
||||
|
||||
Reference in New Issue
Block a user