Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mamayaya1
GitHub Repository: mamayaya1/game
Path: blob/main/projects/doge2048/js/application.js
4626 views
1
// Wait till the browser is ready to render the game (avoids glitches)
2
window.requestAnimationFrame(function () {
3
new GameManager(4, KeyboardInputManager, HTMLActuator, LocalScoreManager);
4
});
5
6
7
var imageList = [
8
"img/212/doge-derp-212.gif",
9
"img/212/doge-fat-212.gif",
10
"img/212/doge-gradient-212.gif",
11
"img/212/doge-hat-212.gif",
12
"img/212/doge-peepers-212.gif",
13
"img/212/doge-prizza-212.gif",
14
"img/212/doge-rainbow-212.gif",
15
"img/212/doge-shake-space-212.gif",
16
"img/212/doge-sunglasses-212.gif",
17
"img/212/doge-shake-212.gif",
18
"img/212/doge-wink-212.gif",
19
"img/114/doge-derp-114.gif",
20
"img/114/doge-fat-114.gif",
21
"img/114/doge-gradient-114.gif",
22
"img/114/doge-hat-114.gif",
23
"img/114/doge-peepers-114.gif",
24
"img/114/doge-prizza-114.gif",
25
"img/114/doge-rainbow-114.gif",
26
"img/114/doge-shake-space-114.gif",
27
"img/114/doge-sunglasses-114.gif",
28
"img/114/doge-shake-114.gif",
29
"img/114/doge-wink-114.gif",
30
];
31
for(var i = 0; i < imageList.length; i++ )
32
{
33
var imageObject = new Image();
34
imageObject.src = imageList[i];
35
}
36
37