mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-08-02 12:20:49 +08:00
Moved interpolation & prediction options to server.
This commit is contained in:
@@ -47,5 +47,7 @@ sockets.set('log level', 0);
|
||||
|
||||
garageServer.createGarageServer(sockets,{
|
||||
logging: true,
|
||||
interpolation: true,
|
||||
clientSidePrediction: true,
|
||||
onUpdatePlayerPhysics: gamePhysics.onUpdatePlayerPhysics
|
||||
});
|
||||
|
||||
@@ -6,8 +6,6 @@ $(function () {
|
||||
|
||||
GarageServerIO.initializeGarageServer('http://garageserver_io.jbillmann.c9.io', {
|
||||
logging: true,
|
||||
clientSidePrediction: true,
|
||||
interpolation: true,
|
||||
onUpdatePlayerPhysics: onUpdatePlayerPhysics,
|
||||
onInterpolation: function (id, previousState, targetState, amount) {
|
||||
var interpolationState = {};
|
||||
|
||||
Reference in New Issue
Block a user