forked from JanithKE/Hacktoberfest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.html
More file actions
26 lines (18 loc) · 714 Bytes
/
game.html
File metadata and controls
26 lines (18 loc) · 714 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="assets/css/style2.css">
</head>
<body>
<main style="display: flex; justify-content: center;">
<br>
<button onclick="startGame()">Start</button>
<button onmousedown="accelerate(-0.2)" onmouseup="accelerate(0.05)">FLY</button>
</main>
<p>Use the FLY button to stay in the air</p><br>
<p>How long can you stay alive?</p>
<footer>Made with ❤️ by <a href="https://github.com/charchit95">CHARCHIT BANSAL</a></footer>
<script src="js/game.js"></script>
</body>
</html>