-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (80 loc) · 2.23 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!--favicon -->
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="../../css/favicon/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="../../css/favicon/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="../../css/favicon/favicon-16x16.png"
/>
<link rel="manifest" href="../../css/favicon/site.webmanifest" />
<link
rel="mask-icon"
href="../../css/favicon/safari-pinned-tab.svg"
color="#5bbad5"
/>
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=RocknRoll+One&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
<title>Flappy Flyer</title>
</head>
<body>
<div id="instructions">
<p class="instructions">
This game was developed by Jorge Sader as part of a ThreeJS course on 3D
web game development.
</p>
<p class="instructions">
The goal is to Collect as many stars as possible while avoiding bombs.
</p>
<p class="instructions">
Use Spacebar, mousedown or touch to climb. Let go to decline. Enjoy ;)
</p>
</div>
<div id="info">
<div id="life">
<img src="../../assets/plane/plane-icon.png" />
<div id="lives">3</div>
</div>
<div id="score-panel">
<div id="score">0</div>
<img src="../../assets/plane/star-icon.png" />
</div>
</div>
<p id="gameover">Game over</p>
<button id="playBtn">PLAY</button>
<script type="module">
import { Game } from './Game.js';
document.addEventListener('DOMContentLoaded', () => {
const game = new Game();
window.game = game;
});
</script>
</body>
</html>