mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-09-12 12:06:39 +08:00
Jazzing up the example
This commit is contained in:
+3
-2
@@ -7,14 +7,15 @@ function Game (sockets) {
|
||||
this.physicsInterval = 15;
|
||||
this.physicsDelta = this.physicsInterval / 1000;
|
||||
this.physicsIntervalId = 0;
|
||||
this.worldState = { height: 400, width: 800, playerSize: 15, entitySize: 5 };
|
||||
this.worldState = { playerSize: 40, entitySize: 15 };
|
||||
|
||||
this.server = garageServer.createGarageServer(sockets,
|
||||
{
|
||||
logging: true,
|
||||
interpolation: true,
|
||||
clientSidePrediction: true,
|
||||
worldState: this.worldState
|
||||
worldState: this.worldState,
|
||||
smoothingFactor: 0.2
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user