mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-09-09 11:14:19 +08:00
Progress: Client Physics Loop
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user