Files
GarageServer.IO/lib/server/garageservergame.js
T
2013-05-21 19:36:03 -04:00

17 lines
500 B
JavaScript

function GarageServerGame (options) {
this.physicsIntervalId = setInterval(this.updatePhysics, options.physicsInterval ? options.physicsInterval : 15);
this.playersIntervalId = setInterval(this.updatePlayers, options.playersInterval ? options.playersInterval : 45);
}
GarageServerGame.prototype.updatePlayers = function () {
};
GarageServerGame.prototype.updatePhysics = function () {
};
exports.createGame = function (options){
return new GarageServerGame(options);
};