add end screens
This commit is contained in:
@@ -18,5 +18,9 @@ render_overlay :: proc(world: ^World) {
|
||||
|
||||
hp := fmt.ctprintf("Health: %d", world.base_health)
|
||||
rl.DrawText(hp, x, y, font_size, OVERLAY_TEXT_COLOR)
|
||||
|
||||
if world.phase == .Game_Over || world.phase == .Victory {
|
||||
draw_end_screen(world)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user