forked from udacity/frontend-nanodegree-arcade-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (36 loc) · 1.74 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
<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<html>
<head>
<meta charset="UTF-8">
<title>Effective JavaScript: Frogger</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body onload='overlay()'>
<div id="scoreboard">
<div id="score_info"><h4>Score</h4><span id="score"><h4>0</h4></span></div>
<div id="score_info"><h4>High Score</h4><span id="high_score"><h4>0</h4></span></div>
<div id="score_info"><h4>Bug Speed</h4><span id="bug_speed"><h4>1</h4></span></div>
</div>
<div id="overlay_outer">
<div id="overlay_inner">
<h3>Instructions:</h3>
<p>Reach the water without getting squashed by a bug! Use the arrow keys to move.<br/>
If you are struck, you will return to the start and your score will be reset.<br/>
If you reach the water you get a point and your position will reset for another try.<br/>
Be careful though...the speed of the bugs will also increase!</p>
<h3>Choose Avatar:</h3>
<div id="avatar"><a href='#' onclick="player.setAvatar('char-boy.png')"><img src="images/char-boy.png"></a></div>
<div id="avatar"><a href='#' onclick="player.setAvatar('char-cat-girl.png')"><img src="images/char-cat-girl.png"></a></div>
<div id="avatar"><a href='#' onclick="player.setAvatar('char-horn-girl.png')"><img src="images/char-horn-girl.png"></a></div>
<div id="avatar"><a href='#' onclick="player.setAvatar('char-pink-girl.png')"><img src="images/char-pink-girl.png"></a></div>
<p>Click here to [<a href='#' onclick='overlay()'>close</a>]</p>
</div>
</div>
<div id="gameboard">
<script src="js/resources.js"></script>
<script src="js/app.js"></script>
<script src="js/engine.js"></script>
</div>
</body>
</html>