-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlevel2.html
More file actions
59 lines (56 loc) · 1.52 KB
/
Copy pathlevel2.html
File metadata and controls
59 lines (56 loc) · 1.52 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
50
51
52
53
54
55
56
57
58
59
<html>
<head>
<title>Man on a Mission</title>
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700" rel="stylesheet">
<!-- <script type="text/javascript" src="js/three.min.js"></script> -->
<script type="text/javascript" src="js/three.js"></script>
<script type="text/javascript" src="js/level2.js"></script>
<link href="style.css" rel="stylesheet">
</head>
<body>
<div class="panel">
<div class="game-title">
<div class="title">Man on a mission</div>
<label>Score</label>
<p id="score">0</p>
<label>Coins</label>
<p id="coins">0</p>
</div>
<div class="level">
<button onclick="level1()" class="button">Level 1</button>
<br><button style="background-color: green;" class="button">Level 2</button>
<br><button onclick="level3()" class="button">Level 3</button>
</div>
<table class="instructions" id="controls">
<tr>
<td>Up:</td>
<td>Jump</td>
</tr>
<tr>
<td>Left:</td>
<td>Left lane switch</td>
</tr>
<tr>
<td>Right:</td>
<td>Right lane switch</td>
</tr>
<tr>
<td>p:</td>
<td>Pause</td>
</tr>
</table>
<!-- <table id="ranks"></table> -->
<div class="animate-flicker" id="variable-content">Press any button to begin</div>
</div>
<div id="world"></div>
</div>
<script>
function level1() {
window.location = "index.html";
}
function level3() {
window.location = "level3.html";
}
</script>
</body>
</html>