-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (70 loc) · 2.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="./favicon.ico" />
<link rel="icon" href="./favicon.jpg" />
<link rel="stylesheet" href="./index.css" />
<script src="./index.js" defer></script>
<title>Flappy Bird</title>
</head>
<body>
<!-- This div is purely for taking screenshots of the game. -->
<div id="screenshot-container">
<header>
<details id="help">
<summary>Help</summary>
<div id="help-contents">
<p>
Minimal HTML, CSS and JavaScript demo game based on:
<br />
<a href="https://en.wikipedia.org/wiki/Flappy_Bird"
>https://en.wikipedia.org/wiki/Flappy_Bird</a
>
</p>
<p>
You are the yellow square. Your goal is to jump through the pipes. You die
if you touch a pipe.
</p>
<p>You gain a point every pipe you pass.</p>
<p>The game gets harder as you gain more points.</p>
<p>
The game is publicly hosted at:
<br />
<a href="https://nhooyr.github.io/flappybird"
>https://nhooyr.github.io/flappybird</a
>
</p>
<p>
The source code is available at:
<br />
<a href="https://github.com/nhooyr/flappybird"
>https://github.com/nhooyr/flappybird</a
>
</p>
<h4>Controls</h4>
<ol>
<li><p>Press enter or tap to start.</p></li>
<li><p>Press enter or tap to jump through the pipes.</p></li>
<li><p>Press enter or tap to play again after dying.</p></li>
</ol>
</div>
</details>
<div id="fps-meter">FPS: <span id="fps-meter-n">000</span></div>
</header>
<div id="sky">
<div id="bird"></div>
<div id="pipe-top"></div>
<div id="pipe-bot"></div>
<div id="prompt"><p>Press enter or tap to start.</p></div>
</div>
<footer>
<div id="score-board">
<div>Score: <span id="score-board-n">000</span></div>
<div>High Score: <span id="high-score-board-n">000</span></div>
</div>
</footer>
</div>
</body>
</html>