window.requestAnimationFrame(function () {window._manager = new GameManager(4, KeyboardInputManager, HTMLActuator);}); window._i = 0; setInterval(function(){window._manager.inputManager.emit('move', window._i);window._i++;if (window._i > 3) _i = 0;},250);