nighthawkcoders / game_levels_mp

Engineering game repository
Apache License 2.0
1 stars 13 forks source link

Multiplayer: Multiplayer Switch #55

Closed Trystan-Schmits closed 7 months ago

Trystan-Schmits commented 7 months ago

Added a new button in settings to turn on and off multiplayer.

Settings.js created get multiplayerButton which returns a div to be appended to the sidebar also made it append said button to the side bar on click the button switches between send/receiving socket messages, and ignoring them; changes text to match

GameControl/GameLevel moved level loading setup from GameControl's transitionToLevel() to GameLevel's load()

Multiplayer.js setup for aws (multiple devices) removeAllListeners() stops listening to all sockets on client changeStatus() new function for switching between online and offline