-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
100 lines (97 loc) · 3.8 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html>
<head>
<title>BERZERK</title>
<meta charset="utf-8"/>
<style>
body {
margin: 0;
padding: 0;
}
#outer {
position: relative;
}
canvas {
background: #000;
}
#info {
position: absolute;
color: #FFF;
padding: 10px;
font-family: Monospace;
}
.box {
width: 352px;
position: absolute;
left: 50%;
background-color: rgba(0, 0, 0, 0.7);
margin-left: -200px; /* half the width */
color: #FFF;
top: 100px;
font-family: Monospace;
padding: 25px;
border: 1px solid #FFF;
}
.box a:link,
.box a:visited,
.box a:active {
color:#FFF;
}
.box a:hover {
color: #0663fd;
}
.hidden {
display: none;
}
</style>
<script type="text/javascript" src="js/libs/jquery-1.7.1.js"></script>
<script type="text/javascript" src="https://unpkg.com/[email protected]/build/three.min.js"></script>
<script type="text/javascript" src="js/libs/three.js/Stats.js"></script>
<script type="text/javascript" src="js/libs/three.js/Detector.js"></script>
<script type="text/javascript" src="js/libs/mouseWheel.js"></script>
<script type="text/javascript" src="js/libs/SimpleJavascriptInheritance.js"></script>
<script type="text/javascript" src="js/GameScreen.js"></script>
<script type="text/javascript" src="js/IntroScreen.js"></script>
<script type="text/javascript" src="js/IntroStars.js"></script>
<script type="text/javascript" src="js/Player.js"></script>
<script type="text/javascript" src="js/PlayerInput.js"></script>
<script type="text/javascript" src="js/Game.js"></script>
<script type="text/javascript" src="js/Sphere.js"></script>
<script type="text/javascript" src="js/StarField.js"></script>
<script type="text/javascript" src="js/Bot.js"></script>
<script type="text/javascript" src="js/Obstacles.js"></script>
<!-- <script type="text/javascript" src="js/libs/three.js/GLTFLoader.js"></script> -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/mrdoob/three.js@r108/examples/js/loaders/GLTFLoader.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/mrdoob/three.js@r108/examples/js/loaders/FBXLoader.js"></script>
</head>
<body>
<div id="outer">
<div id="intro" class="box hidden">
<strong>Welcome to Berzerk!</strong><br /><br />
Kill the robots and don't collide with the walls or them. Escape through the wall opening to win!<br />
Beware, the robots have shooting abilities!
Controls: Keys WASD or arrows up/down/left/right, shoot with space.<br />
<br />
Camera: Click and drag to change camera angle.
Mousewheel to zoom.<br/>
<br /><br />
<a href="javascript:;">Click here to play!</a>
</div>
<div id="info" class="hidden">
<span class="level">Level 1</span> - Score: <span class="score">000000000</span> | <span id="debug"></span>
<br />
<br />
Goal: <span id="goal"></span><br /><br />
</div>
<div id="gameover" class="box hidden">
GAME OVER!<br /><br />
Final score: <strong><span class="score"></span></strong><br /><br /><br />
<a href="javascript:;">Play again?</a>
</div>
<div id="done" class="box hidden">
Take a bow! :D
</div>
<div id="container"></div>
</div>
</body>
</html>