mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-09 00:20:03 +08:00
17 lines
500 B
JavaScript
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);
|
|
}; |