1
0
Fork 0
EndG-2048-multiplayer/assets/js/application.js

7 lines
329 B
JavaScript

// Wait till the browser is ready to render the game (avoids glitches)
window.requestAnimationFrame(function (){
let storage = new RemoteStorageManager;
new GameManager(4, new KeyboardInputManager, new HTMLActuator("game1"), storage, "game1");
new GameManager(4, undefined, new HTMLActuator("game2"), storage, "game2");
});