Updated example docs

This commit is contained in:
Jeremiah Billmann
2013-08-18 15:28:21 -04:00
parent c670fdf909
commit 80c5b28d85
+3 -1
View File
@@ -6,4 +6,6 @@ A sample application using GarageServer.IO
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.
Execute `$ npm install` in the `example/` root directory and `$ node app.js` to run the application.
NOTE: The example has `clientSidePrediction` and `interpolation` enabled. If you're running it locally (no ping), you may want to disable these (`false`).