-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
76 lines (61 loc) · 3.01 KB
/
index.html
File metadata and controls
76 lines (61 loc) · 3.01 KB
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Frogger</title>
<script defer src="scripts.js">
</script>
<link rel="stylesheet" href="styles.css" type="text/css">
</head>
<body>
<h1>frogger</h1>
<div id="game">
<img id="background" src="" alt=" game background">
<div id="gameElements">
<img class="smallLog float" src=" images/smalllog.png" alt="log">
<img class="smallLog float" src=" images/smalllog.png" alt="log">
<img class="smallLog float" src=" images/smalllog.png" alt="log">
<img class="longLog float" src=" images/longlog.png" alt="log">
<img class="longLog float" src=" images/longlog.png" alt="log">
<img class="mediumLog float" src=" images/mediumlog.png" alt="log">
<img class="mediumLog float" src=" images/mediumlog.png" alt="log">
<img class="mediumLog float" src=" images/mediumlog.png" alt="log">
<img class="threeturtles float" src=" images/threeturtles.png" alt="turtles">
<img class="threeturtles float" src=" images/threeturtles.png" alt="turtles">
<img class="twoturtles float" src=" images/twoTurtles.png" alt="turtles">
<img class="twoturtles float" src=" images/twoTurtles.png" alt="turtles">
<img id="frogger" class="frogger" src="images/frog.png" alt="frogger">
<img id="finalFrog1" src="images/finalFrog.png" alt="final">
<img id="finalFrog2" src="images/finalFrog.png" alt="final">
<img id="finalFrog3" src="images/finalFrog.png" alt="final">
<img id="finalFrog4" src="images/finalFrog.png" alt="final">
<img id="finalFrog5" src="images/finalFrog.png" alt="final">
<img class="largeTruck" src=" images/largetruck.png" alt="large semi truck">
<img class="largeTruck" src=" images/largetruck.png" alt="large semi truck">
<img class="slowCar2" src=" images/yellowcar.png" alt="yellow car">
<img class="slowCar2" src=" images/yellowcar.png" alt="yellow car">
<img class="slowCar2" src=" images/yellowcar.png" alt="yellow car">
<img class="slowCar" src=" images/bluecar.png" alt="slow car">
<img class="slowCar" src=" images/bluecar.png" alt="slow car">
<img class="slowCar" src=" images/bluecar.png" alt="slow car">
<img class="copCar" src=" images/greencar.png" alt="slow car">
<img class="copCar" src=" images/greencar.png" alt="slow car">
<img class="fireTruck" src=" images/mediumtruck.png" alt="slow car">
<img class="fireTruck" src=" images/mediumtruck.png" alt="slow car">
</div>
<button id="reset" onclick="RESET()"> NEXT LEVEL</button>
<button id="gameOver" onclick="gameOver()"> NEW GAME</button>
<button id="continue" onclick="continueGame()"> CONTINUE</button>
<button id="start" onclick="startGame()"> START</button>
</div>
<div id="timer">
<div>
<div class="text">Time left:</div>
<span class="seconds" id="second"></span>
<p id="stage">Stage: </p>
<p id="lives">Lives: </p>
<p id="score">Score: </p>
</div>
</div>
</body>
</html>