-
Notifications
You must be signed in to change notification settings - Fork 4
/
game.html
39 lines (36 loc) · 1.13 KB
/
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
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Brick Breaker Legacy</title>
<link rel="icon" href="./img/favicon.ico" />
<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"
/>
<link rel="stylesheet" href="game.css" />
</head>
<body>
<div class="container">
<div class="top-text">
<div class="sound">
<img src="img/music.png" alt="" id="sound" />
</div>
<div id="gameover">
<img src="img/youwon.png" alt="" id="youwon" />
<img src="img/gameover.png" alt="" id="youlose" />
<div id="restart">Play Again!</div>
</div>
</div>
<div class="brick-breaker">
<canvas id="game" width="500px" height="600px"></canvas>
</div>
<div class="pause-btn">
<img src="img/play.png" id="pause" alt="Pause Button" />
</div>
</div>
<script src="game.js"></script>
</body>
</html>