endel / tanx

Fork of tanx project to demonstrate Colyseus (0.8.x)

Home Page:https://playcanvas.com/project/367035/overview/tanxcolyseus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 on state, bulled, pickable, and tank to 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 update event to handle Colyseus room patched state
  • View client

Related links

Tanx

Colyseus

License

See LICENSE file.

About

Fork of tanx project to demonstrate Colyseus (0.8.x)

https://playcanvas.com/project/367035/overview/tanxcolyseus

License:MIT License


Languages

Language:JavaScript 100.0%