Files
GarageServer.IO/example
Jeremiah Billmann 3e869e6d9b Merged changes
2014-10-23 16:40:07 +00:00
..
2014-10-23 16:40:07 +00:00
2013-08-02 23:45:26 -04:00
2013-08-02 22:28:29 -04:00
2013-08-09 15:17:17 -04:00
2013-08-02 23:45:26 -04:00
2014-10-23 16:40:07 +00:00
2013-09-20 10:53:13 -05:00

GarageServer.IO Example

A sample application using GarageServer.IO

Demo

A playable demo of this example using GarageServer.IO.

Install

Change the path parameter of GarageServerIO.initializeGarageServer that is found in file, /public/javascripts/game.js, to point to the URL where your Node app runs. I.e. http://127.0.0.1:3000. Note that the example app uses a default port of process.env.PORT || 3000. This can be changed in app.js.

Execute $ npm install in the example/ root directory and $ node app.js to run the application.

NOTE: The example has options.clientSidePrediction and options.interpolation enabled on the server. If you're running it locally (no ping), you may want to disable these (false).