diff --git a/example/public/javascripts/game.js b/example/public/javascripts/game.js index 74820ca..684ec4c 100644 --- a/example/public/javascripts/game.js +++ b/example/public/javascripts/game.js @@ -6,10 +6,8 @@ $(function () { onUpdatePlayerPhysics: OnProcessGamePhysics, onInterpolation: function (currentState, previousState, targetState, amount) { var interpolationState = {}; - interpolationState.x = (previousState.x + amount * (targetState.x - previousState.x)); interpolationState.y = (previousState.y + amount * (targetState.y - previousState.y)); - return interpolationState; } }); @@ -47,11 +45,8 @@ $(function () { update = function () { requestAnimFrame(update); - processClientInput(); - draw(); - $('#fps').html('FPS: ' + GarageServerIO.getFPS()); };