Skip to content

Instantly share code, notes, and snippets.

@teramotodaiki
Last active June 6, 2016 05:46
Show Gist options
  • Save teramotodaiki/2ce7640bb546f5459bace9bef403b3e8 to your computer and use it in GitHub Desktop.
Save teramotodaiki/2ce7640bb546f5459bace9bef403b3e8 to your computer and use it in GitHub Desktop.
// Game start
var __beginTime = new Date().getTime();
var __dump = new Array(15).fill(0);
var __stopper = function (id) {
var elapsed = new Date().getTime() - __beginTime;
__dump[id] ++;
return elapsed < 1500;
};
game.on('load', function () {
console.log(__dump.join('\n'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment