-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (31 loc) · 1.06 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>WebGL 2D Shooter Game</title>
</head>
<body>
<noscript>This page contains webassembly and javascript content, please enable javascript in your browser.</noscript>
<section class="game">
<div id="instructions" class="overlay">
<h1>Instructions</h1>
<ul>
<li>Use the left and right arrows to change the cannon angle.</li>
<li>Use the up and down arrows to change the cannon power.</li>
<li>Press spacebar to launch a rocket!</li>
</ul>
<button id="play">Play</button>
</div>
<div id="game-over" class="overlay" style="visibility:hidden">
<h1 id="winner">Player <span id="winner-id">0</span> WON!</h1>
</div>
<div class="ui-container">
<h1 id="turn">Player <span id="player">1</span> Turn</h1>
<h1>Power: <span id="power">0</span></h1>
</div>
<canvas id="canvas">
</canvas>
<audio id="background-music" src="assets/Heroic Demise (New).mp3" loop preload></audio>
</section>
</body>
</html>