Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Smus committed Aug 12, 2011
1 parent bd23c43 commit ac89d40
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/client.js
Expand Up @@ -6,7 +6,6 @@ socket = io.connect('http://localhost:5050');
game = new Game();
playerId = null;
totalSkew = 0;
loopTimer = null;

var renderer = new Renderer(game);
var input = new Input(game);
Expand All @@ -21,7 +20,7 @@ socket.on('start', function(data) {
// Get the initial time to calibrate synchronization.
var startDelta = new Date().valueOf() - data.state.timeStamp;
// Setup the game progress loop
loopTimer = game.updateEvery(Game.UPDATE_INTERVAL, startDelta);
game.updateEvery(Game.UPDATE_INTERVAL, startDelta);

// Start the renderer.
renderer.render();
Expand Down Expand Up @@ -114,7 +113,6 @@ function gameover(msg) {
window.location.reload();
} else {
smoke.signal('fine, keep watching');
clearInterval(loopTimer);
}
});
}
Expand Down

0 comments on commit ac89d40

Please sign in to comment.