a-little-org-called-mario/a-little-game-called-mario

marwing, both the crosshair and the mouse cursor are visible

Closed this issue · 2 comments

In marwing, both the crosshair and mouse cursors are visible while the game runs.

The mouse cursor is hidden when marwing starts, as expected.

But pressing esc once while playing, shows both the crosshair and the mouse cursor.
Pressing esc again, shows the paused menu.

The mouse cursor also remains visible when the paused menu is closed:

  • by choosing, back to game
  • pressing esc

Expected

Pressing esc once while playing should show the paused menu and the mouse cursor.

The mouse cursor should be hidden when the paused menu is closed.

  • either with back to game
  • or by pressing esc

We actually can't properly use Esc, it's browser limitation: first Esc press is reserved by browser to take away focus from game. Using P instead of Esc is working just fine.

But we can make the experience smoother if we grab focus back in marwing on any game window click

stale commented

This issue has been automatically marked as stale because it has not had recent activity. You can comment on this (or do anything else) to keep it open, otherwise it'll be automatically closed in two week. Thanks!