Skip to content

endel/tanx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%