Progress: Documentation

This commit is contained in:
Jeremiah Billmann
2013-07-26 21:39:15 -04:00
parent 23f38fed0a
commit 6cc405dac6
+1 -3
View File
@@ -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;