Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

This is kinda fun. I think it would have been fun to just see two AIs battling it out too.

I am really confused about the cursor locking. It looks like the cursor is locked every time the left mouse button is pressed, and released on escape. What is this for? It even locked when I tried to drag the settings window out of the way, and after every setting I selected. It seems like you need to use the left mouse button to control your squads so I just don't get it. Am I seeing some platform-specific (macos) behavior? I did have the mouse get stolen on the web too, but seemingly less often.

The locking behavior is there so the camera rotation controls work without the cursor escaping from the window (or even onto a second monitor).
Pretty sure there is a bug in the bevy WASM target that hides the cursor even when it's explicitly set to "visible" in the bevy code.

(1 edit)

I learned while playing around with another entry that cursor locking is totally broken on macos, and it won't be fixed in winit 0.29, which is sad. It seems best to just not try to do it on that platform.