-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (60 loc) · 2.13 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
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>PAC-MAN</title>
<link rel="stylesheet" href="styles/main.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<script src="scripts/app.js" charset="utf-8"></script>
</head>
<body>
<main>
<section class = "panels">
<div class ="left-panel">
<div class = "logo-container">
<img class = "logo-image" src="assets/logo.png">
</div>
<div class="game-instructions">
<h2> INSTRUCTIONS </h2>
<p>Use arrow keys to move Pac-Man around the maze.</p>
<p>Eat all pellets to win.</p>
<p>Ghosts will make you lose a life if they touch you, so be careful!</p>
<p>Power pellets turn ghosts blue and allow you to eat them for points and send them back to their cell.</p>
<p>Collect fruit for extra points.</p>
<p>Have fun!</p>
</div>
<div class="start-button-container">
<button class ="start-button">PLAY</button>
</div>
</div>
<div class ="right-panel">
<div class ="score-container">
<p class="score-paragraph">SCORE:
<span class = "score"></span>
</p>
</div>
<div class="grid-wrapper">
<div class="grid"></div>
</div>
<div class="game-over">
<h3>GAME OVER</h3>
</div>
<div class="you-won">
<h3>YOU WON</h3>
</div>
<div class="lives-and-fruit-container">
<p class="lives-paragraph">LIVES: <span class="lives"></span></p>
<div class="fruit-collected-container">
<p class="fruit-paragraph">FRUIT:
<span class="fruit"></span>
</p>
<img class="fruit">
</div>
</div>
</div>
</section>
</main>
</body>
</html>