Giter Club home page Giter Club logo

gordon-examples's Introduction

Gordon Server Logo Gordon Examples

The included examples show some basic strategies to get started with Gordon. ####Live demo


Install

git clone https://github.com/bma73/gordon-examples.git
cd gordon-examples
npm install

See also gordon-client and gordon-server.


###Examples ####01 - Basics This example just shows how to connect to the server and join a session and a room. ####02 - Chat Rooms There are three chat rooms the users can join in and change to. Users can post chat messages. ####03 - DataObjects This examples shows how to mimic 'fake clients' using their DataObjects. ####04 - Game Logic 1 The server creates some 'things' which change their states periodically by updating and broadcasting the DataObject values. ####05 - Game Logic 2 The server creates some 'things' which change their states periodically by updating and broadcasting the DataObject values. There are three different rooms the users can change to. Every rooms has its own things inside... Users can click the things to remove them by sending a custom message. ####06 - Logic Modifiers Using 'logic modifiers' the standard protocol flow, like user joins or change room requests can be influenced or even canceled. ####07 - Query Stats This example shows how to get some infos about the current sessions, rooms and users. ####08 - Pathfinding The server controls some bots moving on grid. An additional process is spawned to calculate paths from a start to an end point using an A* algorithm.


###Usage ####Server The according server examples can be found in the server folder. To start the server change to the server folder and run node.

cd server
node app.js

####Client The HTML5 version is located at client/js.
The Adobe Flash/Air version is located at client/as3. The AS3 version provides a FlashDevelop project.

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.