support full screen gameplay
This commit is contained in:
+1
-1
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user