-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (55 loc) · 2.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=Oldenburg" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/"
crossorigin="anonymous" />
<title>Frogger</title>
<link type="text/css" rel="stylesheet" href="./canvas.css" />
</head>
<body>
<div class="game-container">
<div class="game-result">
<div class="score">Score: <span id="score"></span></div>
<div class="lives">Level: <span id="level"></span></div>
<div class="lives">Lives: <span id="lives"></span></div>
</div>
<div class="game-screen">
<canvas id="canvas" width="570" height="540"></canvas>
</div>
<div class="nonupcontrols">
<table>
<tr>
<td class="hidden"></td>
<td id="upcontrol" class="control">
<i class="fas fa-angle-up"></i>
</td>
<td class="hidden"></td>
</tr>
<tr>
<td id="leftcontrol" class="control">
<i class="fas fa-angle-left"></i>
</td>
<td class="hidden"></td>
<td id="rightcontrol" class="control">
<i class="fas fa-angle-right"></i>
</td>
</tr>
<tr>
<td class="hidden"></td>
<td id="downcontrol" class="control">
<i class="fas fa-angle-down"></i>
</td>
<td class="hidden"></td>
</tr>
</table>
<h3>navigate with arrow keys</h3>
</div>
</div>
<script src="./objects.js"></script>
<script src="./canvas.js" defer></script>
</body>
</html>