1// Wait till the browser is ready to render the game (avoids glitches) 2window.requestAnimationFrame(function () { 3 new GameManager(4, KeyboardInputManager, HTMLActuator, LocalScoreManager); 4 }); 5