-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
52 lines (47 loc) · 1.75 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Effective JavaScript: Frogger</title>
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=Gloria+Hallelujah" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Alegreya" rel="stylesheet">
</head>
<body>
<!-- game header -->
<div class="header">
<h1>ARCADE GAME</h1>
</div>
<!-- dark overlay -->
<div class="overlay"></div>
<!-- modal for starting the game -->
<div class="start-game">
<h1>Welcome to Frogger game</h1>
<h3>Instructions</h3>
<p>Use your arrow keys to move the player: up, down, left, right. Ensure your player doesn't collide with the bugs. You loose 50pts on any collison.</p>
<h3>Challenge</h3>
<p>Try to get to the water blocks at the top and gain 5 keys to win game.</p>
<h4>You have 3 lives. Good luck!</h4>
<button onclick="startGame()"> I accept Challenge </button>
</div>
<!-- modal for when player looses all lives -->
<div class="game-over">
<h1>Game Over</h1>
<p> Welldone!</p>
<p>You're here because you lost all 3 lives</p>
<h3>Play again to win the game</h3>
<button onclick="resetGame()"> Play Again </button>
</div>
<!-- Modal for when player wins the game -->
<div class="winner">
<h1>You're a Winner! 🎉 🎉 </h1>
<p>Yaay! Welldone! You just won!</p>
<h3>Play again to win again</h3>
<button onclick="resetGame()"> Play Again </button>
</div>
<!-- all javascript -->
<script src="js/resources.js"></script>
<script src="js/app.js"></script>
<script src="js/engine.js"></script>
</body>
</html>