-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (43 loc) · 1.74 KB
/
index.html
File metadata and controls
49 lines (43 loc) · 1.74 KB
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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
<title>Ravine Racer</title>
<link href="style.css" rel="stylesheet" />
</head>
<body>
<audio id="music-player" src="audio/prance_through_the_ravine-alt_instr.mp3" loop></audio>
<!-- Canvas width must be odd! -->
<!-- Canvas height must be greater than 1! -->
<canvas id="canvas" width="65" height="37">
Your browser does not support the canvas tag.
</canvas>
<div id=gui-container>
<div id="score-display">Score: 0</div>
<div id="level-display">Level: 0</div>
<input id="mute-button" type="checkbox"></input>
<label for="mute-button"></label>
<div id="tutorial" class="popup centered">
<h1>How to Play</h1>
<span>
<img id="tutorial-animation" src="textures/tutorial_animation.gif"></img>
</span>
<button class=start-button>Play</button>
</div>
<div id="game-over" class="popup centered" style="display: none">
<h1>Game Over</h1>
<div class=centered>
<h3 id="game-over-score">Score: 9999</h3>
<button class=start-button>Play Again?</button>
</div>
</div>
</div>
<noscript>
Your browser does not support JavaScript.
</noscript>
<script src="javascript/canvasScaling.js"></script>
<script src="javascript/input.js"></script>
<script src="javascript/main.js"></script>
</body>
</html>