fishfolk / jumpy

Tactical 2D shooter in fishy pixels style. Made with Rust-lang 🦀 and Bevy 🪶
https://fishfolk.org/games/jumpy/
Other
1.6k stars 115 forks source link

Map select menu cannot be exited when online #941

Open MaxCWhitehead opened 4 months ago

MaxCWhitehead commented 4 months ago

Description

Pressing escape on map select screen seems to flicker play select but go back to map select.

This means the match may not be exited during online play. If the host never selects a map or leaves, other players are stuck and have to restart game.

To Reproduce

  1. Join online game (use two clients to get through player select)
  2. Try to leave menu on either client with Escape or back button on gamepad

Expected Behavior

Player should be taken back to main menu if trying to exit map selection. This should be confirmed with a dialogue box to make sure not accidentally leaving match on single button press.

Additionally, if other player leaves so only one player, should probably let player know and invite them to leave game. If there are > 2 players and only some leave, if "host" (player 0) is gone nobody will select the map. May need to transfer ownership, or abort game. This should probably be a second issue, but noting here for now. Fixing the first bit in not being able to exit is a sufficient fix for now.

Additional Context

No response

Log Messages

No response