fbaiodias / phaser-multiplayer-game

:video_game: Simple real-time multiplayer phaser game example which uses node and websockets.
https://phaser-multiplayer-game.herokuapp.com/
304 stars 80 forks source link

Send angle along with player location. #7

Closed greg-1-anderson closed 7 years ago

greg-1-anderson commented 7 years ago

Made a minor enhancement to experiment with how the client/server model works.

This PR adds an 'angle' data component to the 'new player' and 'move player' events. Including the angle in the data allows all players to see up-to-date rotation information for all players on the playfield, even those that are rotating in place.

fbaiodias commented 7 years ago

Thanks @greg-1-anderson!!