-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlvl2.html
104 lines (98 loc) · 4.12 KB
/
lvl2.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
101
102
103
104
<DOCTYPE = html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#ffffff">
<title>Chaser</title>
<link rel="icon" href="logo.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="lvl2.css" />
<script src="sweetalert.min.js"></script>
<link rel="stylesheet" type="text/css" href="sweetalert.css">
<link href="https://fonts.googleapis.com/css?family=Baloo" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Amaranth" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-85637981-5', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<h1 class="title">Level 2</h1>
<button class="backButton" id="back" onclick="toMenu()">Level Select</button>
<button class="resetHighscore" id="reset" onclick="resetHighscore()">Reset Highscore</button>
<button class="helpBtn" id="help" onclick="helpBtn()">Help</button>
<h3 class="seconds" id="seconds">Seconds: 0 Highscore: 0</h3>
<canvas id="myCanvas" class="canvas" width="750" height = "750"></canvas>
<div id="pauseOverlay" class="pauseOverlay">
<div id="text" class="pauseText">
<i class="material-icons" style="font-size:70px">pause</i>
</br>
<label style="font-family: 'Baloo', sans-serif">PAUSED</label>
</div>
</div>
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
</br>
<h2 style="font-family: 'Amaranth', sans-serif">Help</h2>
</br>
</div>
<div class="modal-body">
</br>
<label style="font-family: 'Amaranth', sans-serif"><b><u>Controls</u></b></label>
</br>
</br>
<table style="width:100%">
<tr>
<td></td>
<td style="font-family: 'Amaranth', sans-serif" class="leftRightBorder">Chaser (green) :</td>
<td style="font-family: 'Amaranth', sans-serif" class="leftRightBorder">Runner (blue) :</td>
</tr>
<tr>
<td style="font-family: 'Amaranth', sans-serif" class="topBottomBorder">Left:</td>
<td style="font-family: 'Amaranth', sans-serif" class="fullBorder">A</td>
<td style="font-family: 'Amaranth', sans-serif" class="fullBorder">←</td>
</tr>
<tr>
<td style="font-family: 'Amaranth', sans-serif" class="topBottomBorder">Right:</td>
<td style="font-family: 'Amaranth', sans-serif" class="fullBorder">D</td>
<td style="font-family: 'Amaranth', sans-serif" class="fullBorder">→</td>
</tr>
<tr>
<td style="font-family: 'Amaranth', sans-serif" class="topBottomBorder">Up:</td>
<td style="font-family: 'Amaranth', sans-serif" class="fullBorder">W</td>
<td style="font-family: 'Amaranth', sans-serif" class="fullBorder">↑</td>
</tr>
<tr>
<td style="font-fa mily: 'Amaranth', sans-serif" class="topBottomBorder">Down:</td>
<td style="font-family: 'Amaranth', sans-serif" class="fullBorder">S</td>
<td style="font-family: 'Amaranth', sans-serif" class="fullBorder">↓</td>
</tr>
</table>
</br>
</br>
<label style="font-family: 'Amaranth', sans-serif"><b><u>Rules/Information</u></b></label>
</br>
</br>
<label style="font-family: 'Amaranth', sans-serif">The aim of the game is for the runner to stay alive for as long as possible</label>
</br>
<label style="font-family: 'Amaranth', sans-serif">The chaser must collide with the runner to stop him</label>
</br>
<label style="font-family: 'Amaranth', sans-serif">The runner cannot touch the sides. In doing so, the runner will die!</label>
</br>
<label style="font-family: 'Amaranth', sans-serif">The chaser can however move freely and will not die on touching the borders</label>
</br>
</br>
</div>
</div>
</div>
<script type="text/javascript" src="lvl2.js"></script>
</body>
</html>