-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (44 loc) · 1.69 KB
/
Copy pathindex.html
File metadata and controls
48 lines (44 loc) · 1.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="js/game.js" defer></script>
<script type="text/javascript" src="js/ball.js" defer></script>
<script type="text/javascript" src="js/bouncingBox.js"></script>
<script type="text/javascript" src="js/blocks.js"></script>
<script type="text/javascript" src="js/bar.js" defer></script>
<script type="text/javascript" src="js/main.js" defer></script>
<title>Solo-pong</title>
</head>
<body>
<div class="screen">
<section id="initial-screen">
<h3> Welcome to Solo-pong</h3>
<img src="images/initial-screen.png">
<br>
<button class="btn" id="start-btn" type="button">Start game</button>
</section>
<section style="display:none" id="game-screen">
<canvas id="screen" width="550" height="560"></canvas>
<button class="btn" id="pause" type="button">Pause</button>
<span id="score">Score: </span>
<span id="level">Level: </span>
<img id="bar" src="images/bar.png">
<img id="block" src="images/block.jpeg">
</section>
<section2 style="display:none" id="winner-screen">
<img class="block img" src="images/youwin.png">
<br>
<button class="btn" id="reinitate-game" type="button">Reinitate Game</button>
</section2>
<section3 style="display:none" id="gameover-screen">
<img class="block img" src="images/gameover.jpeg">
<br>
<button class="btn" id="restart" type="button">Try again</button>
</section3>
</div>
</body>
</html>