This is a fork of tanx client and server, modified to show Colyseus usage advantages as a game server.
What has been changed in the server?
- Lobby and room creation were removed.
- Messages to ensure sync state were removed.
- Added
Stateclass to handle synchronized room state. - Added
toJSONmethod onstate,bulled,pickable, andtankto expose public data to the clients. - View room handler
What has been changed in the client?
- Removed
users.js(used to manage user-related events) - Removed specific game event handling (
init,tank.new,tank.delete,user.add,user.sync,user.remove,user.name) - Modified
updateevent to handle Colyseus room patched state - View client
Tanx
Colyseus
See LICENSE file.