Revert "rename hud.odin to overlay.odin, add clay button to start wave"

This reverts commit d097e36419.
This commit is contained in:
2026-06-18 00:53:49 -07:00
parent d097e36419
commit 6b68ce3fa1
6 changed files with 57 additions and 102 deletions
+6 -3
View File
@@ -15,9 +15,6 @@ Command :: struct {
}
gather_commands :: proc(world: ^World) -> Command {
overlay_cmd := poll_overlay_command()
if overlay_cmd.kind != .None do return overlay_cmd
if world.phase == .Build && rl.IsKeyPressed(.N) {
return Command{kind = .Start_Wave}
}
@@ -28,6 +25,12 @@ gather_commands :: proc(world: ^World) -> Command {
return Command{kind = .Place_Tower, gx = gx, gy = gy}
}
if rl.IsMouseButtonPressed(.LEFT) {
mouse := rl.GetMousePosition()
gx, gy := screen_to_grid(mouse.x, mouse.y)
return Command{kind = .Place_Tower, gx = gx, gy = gy}
}
return Command{kind = .None}
}