Progress: Client Physics Loop

This commit is contained in:
Jeremiah Billmann
2013-06-08 11:33:06 -04:00
parent f1efb63483
commit d6b6c34846
2 changed files with 53 additions and 14 deletions
+14
View File
@@ -1,5 +1,19 @@
var garageServerGame = require('./garageservergame');
/*
options = {
onUpdatePhysics(state, input),
physicsInterval: 15,
playersInterval: 45,
logging: true,
onPlayerConnect(socket),
onPlayerDisconnect(socket),
onPlayerInput(socket, input),
onPlayerDisconnect(socket),
onPing(socket, data),
}
*/
function GarageServer (socketio, options) {
this.io = socketio;
this.game = null;