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