support full screen gameplay

This commit is contained in:
2026-06-21 01:27:45 -07:00
parent ff341cb834
commit fcfd1e95d8
5 changed files with 82 additions and 16 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ gather_commands :: proc(world: ^World) -> Command {
}
if world.phase == .Build && rl.IsMouseButtonPressed(.LEFT) {
mouse := rl.GetMousePosition()
mouse := game_mouse()
gx, gy := screen_to_grid(mouse.x, mouse.y)
return Command{kind = .Place_Tower, gx = gx, gy = gy}
}