-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (54 loc) · 2.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Bubble Trouble</title>
<link rel="stylesheet" href="./styles/styles.css"/>
<link rel="shortcut icon" type="image/jpg" href="./favicon.ico"/>
</head>
<body>
<div class="container">
<!-- SPLASH SCREEN -->
<div id="splash-screen" class="container">
<img src="./images/start-main.jpg" width="1000" alt="logo"/>
<div id="instructions" class="container, custom-font"><p>Controls:<br>
▪️ Move Right 👉 Right Arrow<br>
▪️ Move Left 👉 Left Arrow<br>
▪️ Jump 👉 SpaceBar or Up Arrow<br>
▪️ Shoot 👉 Control</p>
</div>
<button id="start-btn">
<img src="./images/start-button.png" alt="play button"/>
</button>
</div>
<!-- GAME SCREEN -->
<div id="game-screen">
<canvas id="my-canvas" width="800" height="600"></canvas>
<div id="lives">
<img id="live1" class="lives-prop" src="./images/lives.png" alt="lives">
<img id="live2" class="lives-prop" src="./images/lives.png" alt="lives">
<img id="live3" class="lives-prop" src="./images/lives.png" alt="lives">
<div id="level-text" class="custom-font">Level: <span>1</span></div>
</div>
<div id="game-score" class="custom-font">
Score: <span>10</span>
</div>
</div>
<!-- GAME OVER SCREEN -->
<div id="gameover-screen" class="container">
<img src="./images/gameover.png" width="640" alt="gameover image"/>
<div id="gameover-details">
<h2 id="score-text" class="custom-font">Your Score: <span>0</span></h2>
<button id="restart-btn" class="custom-font">Play Again!</button>
</div>
</div>
</div>
<script src="./javascript/main.js"></script>
<script src="./javascript/game.js"></script>
<script src="./javascript/player.js"></script>
<script src="./javascript/enemy.js"></script>
<script src="./javascript/attack.js"></script>
</body>
</html>