-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (49 loc) · 1.43 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>James in the Dungeon of Slime</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="headline">.</div>
<!-- All JS game files loaded here -->
<script src="js/resources.js"></script>
<script src="js/audio.js"></script>
<script src="js/engine.js"></script>
<script src="js/entities.js"></script>
<script src="js/game.js"></script>
<script src="js/screens.js"></script>
<script src="js/debugging.js"></script>
<script>
/**
* Once resources load properly, callback function is fired.
*/
resources.onReady(() => { // callback function
Game.createCanvas(); // creates the canvas we'll be using for our game and screens.
Game.addSounds(); // adds game audio resources
screens.intro.init(); // initializes the intro screen
window.sounds.intro.playSound(); // play intro sound
});
</script>
<!-- Google Font Loader -->
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
<script>
WebFont.load({
google: {
families: ["VT323:400"]
}
});
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-120201846-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag () {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-120201846-1");
</script>
</body>
</html>