Skip to content

Instantly share code, notes, and snippets.

@iBiryukov
Created March 17, 2014 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iBiryukov/9602546 to your computer and use it in GitHub Desktop.
Save iBiryukov/9602546 to your computer and use it in GitHub Desktop.
var manager = new GameManager(4, KeyboardInputManager, HTMLActuator, LocalScoreManager);
function move(){ var i = 0; return function(){ var d = [ 1, 0, 3, 0 ]; manager.move( d[i] ); i++; if (i===4){i=0} } };
setInterval(move(), 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment