1
0
mirror of https://github.com/danog/2048.git synced 2025-01-09 22:48:21 +01:00
2048/js/application.js
Tim Petricola 664546ef9a Store best score in localStorage
Dependency injection and hide best score for incompatible browsers
2014-03-10 16:21:05 -04:00

7 lines
267 B
JavaScript

document.addEventListener("DOMContentLoaded", function () {
// Wait till the browser is ready to render the game (avoids glitches)
window.requestAnimationFrame(function () {
new GameManager(4, KeyboardInputManager, HTMLActuator, LocalScoreManager);
});
});