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