-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
66 lines (53 loc) · 1.54 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Glitch Rabbit</title>
<meta name="author" content="xenohunter">
<style>
body {
margin: 0;
padding: 70px;
background: #223;
}
canvas {
width: 1200px;
height: 576px;
display: block;
margin: 0 auto;
}
#mask {
position: relative;
width: 1200px;
height: 576px;
margin: -576px auto 0;
background: #000;
opacity: 0;
transition: opacity 0.5s; /* It makes fading smooth. */
}
#mask.on {
opacity: 1;
}
</style>
</head>
<body>
<canvas width="1200" height="576"></canvas>
<div id="mask" class="on"></div> <-- That's used for fading the screen in and out. -->
</body>
<script src="constants.js"></script> <-- Global parameters, texture colors, and music. -->
<script src="tools.js"></script> <-- Global tools like random(), loadImages(), etc. -->
<script src="timers.js"></script>
<script src="texture.js"></script>
<script src="animation.js"></script>
<script src="glitches.js"></script>
<script src="attacks.js"></script>
<script src="powerups.js"></script>
<script src="unit.js"></script>
<script src="hero.js"></script>
<script src="enemies.js"></script>
<script src="camera.js"></script>
<script src="levels.js"></script>
<script src="menu.js"></script>
<script src="music.js"></script>
<script src="game.js"></script>
</html>