mirror of
https://github.com/danog/2048.git
synced 2025-01-10 06:58:16 +01:00
7 lines
262 B
JavaScript
7 lines
262 B
JavaScript
document.addEventListener("DOMContentLoaded", function () {
|
|
// Wait till the browser is ready to render the game (avoids glitches)
|
|
window.requestAnimationFrame(function () {
|
|
var manager = new GameManager(4, KeyboardInputManager, HTMLActuator);
|
|
});
|
|
});
|