tanx-colyseus
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
State
class to handle synchronized room state. - Added
toJSON
method onstate
,bulled
,pickable
, andtank
to expose state 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
update
event to handle Colyseus room patched state - View client
Related links
Tanx
Colyseus
License
See LICENSE file.