From 6cc405dac68eeb71d6c86dcf34cf953c8e232b60 Mon Sep 17 00:00:00 2001 From: Jeremiah Billmann Date: Fri, 26 Jul 2013 21:39:15 -0400 Subject: [PATCH] Progress: Documentation --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index a43826b..5dd09fd 100644 --- a/README.md +++ b/README.md @@ -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;