Progress: Server Loops

This commit is contained in:
Jeremiah Billmann
2013-05-21 19:36:03 -04:00
parent c12bbbf0af
commit 864ab4eabf
3 changed files with 30 additions and 10 deletions
+8 -2
View File
@@ -1,8 +1,14 @@
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.update = function () {
GarageServerGame.prototype.updatePlayers = function () {
};
GarageServerGame.prototype.updatePhysics = function () {
};