Giter VIP home page Giter VIP logo

catchme-archived's Introduction

Usage

Install everything (including /public folder).

npm install

Run for live deployment of server and client. Client files are packed into the /public folder.

npm run build:live

Build server and client.

npm run build

Start server (server hosts /public folder).

npm start

Project Structure

- devDependencies # typescript dependencies
- public   # public available files
- src
  - client # client related logic
	- engine # basic game engine shared among server and client
	- game   # actual game
	- server # server logic

Server

Server-side code is located in src/server/.

Network Synchronization

The ServerNetworkController synchronizes server side world changes to the client. Changes are detected using a world listener and distributed after a defined interval. Changes are not sent directly after they happend but rather cached to not overload the network and client with messages.

Interpolation

Design

Colors from http://clrs.cc/.

Development

Timeline

Test Alpha

Network communication:

  1. [done] client connects to server
  2. [done] server sends basic sprite
  3. [done] client renders sprite

Framework:

  • logic is separated into
    • World (Data)
    • Network (Synchronization)
    • Server & Client

ToDos:

  • [done] add functionality to filter roles by class (use instanceof)
  • add Phaser role that is called when added to node

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.