GithubHelp home page GithubHelp logo

qgqceo / tanx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from endel/tanx

0.0 1.0 0.0 153 KB

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

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

License: MIT License

JavaScript 100.00%

tanx's Introduction

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.

tanx's People

Contributors

maksims avatar endel avatar cvan avatar mquandalle avatar

Watchers

Qiu GuoQian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.