forked from udacity/frontend-nanodegree-arcade-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
31 lines (31 loc) · 773 Bytes
/
game.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Ahmed's Frogger Clone</title>
<link rel="stylesheet" href="css/style.css">
<audio id="bgm" autoplay loop src="audio/bensound-moose.mp3"></audio>
</head>
<body>
<div class="container">
<div class="score">
<h1 id="score">Score: 0</h1>
</div>
<div class="lives">
<img class="heart" src="images/Heart.png">
<h1 id="lives">3</h1>
</div>
</div>
<hr>
<script src="js/resources.js"></script>
<script src="js/app.js"></script>
<script src="js/engine.js"></script>
<hr>
<p>
Controls: Use ↑ ↓ ← → to move.
<br>
Goal: Avoid bugs and reach the water.
</p>
<div><em>Music: https://www.bensound.com</em></div>
</body>
</html>