Minor cleanup

This commit is contained in:
Jeremiah Billmann
2013-06-28 16:27:10 -04:00
parent bf8ddc5a7f
commit 6a8a2dbe54
-5
View File
@@ -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());
};