-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
85 lines (81 loc) · 3.33 KB
/
index.html
File metadata and controls
85 lines (81 loc) · 3.33 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bomberman</title>
<link rel="stylesheet" href="css/playground.css">
<link rel="stylesheet" href="css/bonus-summary.css">
<link rel="stylesheet" href="css/players.css">
<link rel="stylesheet" href="css/bombs.css">
<link rel="stylesheet" href="css/explosions.css">
<link rel="stylesheet" href="css/obstacles.css">
<link rel="stylesheet" href="css/bonus.css">
<link rel="stylesheet" href="css/gameover.css">
<link rel="stylesheet" href="css/buttons.css">
<link rel="stylesheet" href="css/controls.css">
</head>
<body>
<main>
<section id="playground">
<div class="players player-red-base" id="player_red"></div>
<div class="players player-blue-base" id="player_blue"></div>
</section>
<aside>
<h1>Bomberman</h1>
<div id="controls">
<div class="controls-box">
<h3 id="player_red_name">Red Player</h3>
<div class="hud">
<span id="lives_red"> 3 </span> <span class="css-heart"></span>
</div>
<ul>
<li><b>Move:</b> Arrow keys</li>
<li><b>Drop Bomb:</b> Space</li>
</ul>
</div>
<div class="controls-box">
<h3 id="player_blue_name">Blue Player</h3>
<div class="hud">
<span id="lives_blue"> 3 </span><span class="css-heart"></span>
</div>
<ul>
<li><b>Move:</b> Z Q S D</li>
<li><b>Drop Bomb:</b> A</li>
</ul>
</div>
</div>
<div class="bonus-summary">
<h3>Bonuses & Effects</h3>
<ul>
<li>
<span class="bonus multi-bomb"></span>
<b>Multi-bomb</b> (yellow triangle) : Place up to 3 bombs simultaneously (3 uses)
</li>
<li>
<span class="bonus invincibility"></span>
<b>Invincibility</b> (pink triangle): Immune to bombs and deadly bonus for 5 seconds
</li>
<li>
<span class="bonus blast-radius"></span>
<b>Blast Radius</b> (green circle): Bombs explode in a 3x3 area for 30 seconds
</li>
<li>
<span class="bonus speed-boost"></span>
<b>Speed Boost</b> (purple circle): Move two cells at once for 10 moves
</li>
<li>
<span class="bonus deadly"></span>
<b>Deadly</b> (black cross): Lose one life instantly on contact
</li>
</ul>
</div>
</aside>
<div id="gameover" style="display:none;">
<span id="gameover_message"></span><br>
<button id="restart_btn">Restart</button>
</div>
</main>
<script type="module" src="js/game.js"></script>
</body>
</html>