mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-06-27 16:10:34 +08:00
Progress: Documentation
This commit is contained in:
@@ -76,9 +76,7 @@ GarageServerIO.initializeGarageServer('http://insertmygameurlhere.com', {
|
||||
}
|
||||
},
|
||||
onInterpolation: function (previousState, targetState, amount) {
|
||||
var interpolationState = {};
|
||||
interpolationState.x = (previousState.x + amount * (targetState.x - previousState.x));
|
||||
return interpolationState;
|
||||
return { x: (previousState.x + amount * (targetState.x - previousState.x)) };
|
||||
},
|
||||
onWorldState: function (state) {
|
||||
document.getElementById('gameCanvas').style.width = state.width;
|
||||
|
||||
Reference in New Issue
Block a user