-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
executable file
·79 lines (59 loc) · 2.33 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en-gb">
<head>
<meta charset="utf-8">
<meta name="author" content="Graham Smith">
<title>Super JS Adventure!</title>
<link rel="icon" href="/favicon.png">
<style type="text/css" media="screen">
* { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow: hidden }
#container { position: relative; width: 256px; height: 224px; margin: 20px auto 0 auto; }
canvas {
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: pixelated; /* Chrome */
}
#stats { width: 256px; margin: 20px auto 0 auto; font-size: 12px; font-family: monospace; }
#debugger { display: none; position: absolute; top: 0; right: -280px; width: 260px; padding: 1rem; border: 1px solid #ccc; font-family: monospace; font-size: 12px; }
#debugger > div { display: flex; justify-content: space-between; }
#debugger hr { margin: 0.5rem 0; }
</style>
</head>
<body>
<div id="container">
<canvas id="super-js-adventure" width="256" height="224"></canvas>
<div id="debugger"></div>
</div>
<div id="stats"></div>
<!--*****************************************
Scripts
******************************************-->
<!-- Config -->
<script src="js/data/config.js"></script>
<!-- Data -->
<script src="js/data/world.js"></script>
<script src="js/data/game_data.js"></script>
<!-- Helpers -->
<script src="js/tools/stats.js"></script>
<script src="js/tools/debugger.js"></script>
<script src="js/lib/grid.js"></script>
<!-- Engine -->
<script src="js/engine/utils.js"></script>
<script src="js/engine/input.js"></script>
<script src="js/engine/layer.js"></script>
<script src="js/engine/room.js"></script>
<script src="js/engine/enemy.js"></script>
<script src="js/engine/entity.js"></script>
<script src="js/engine/tween.js"></script>
<!-- Custom Objects -->
<script src="js/hud.js"></script>
<script src="js/inventory.js"></script>
<script src="js/projectile.js"></script>
<script src="js/link.js"></script>
<script src="js/map.js"></script>
<script src="js/main.js"></script>
<script>
Game.init();
</script>
</body>
</html>