-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
164 lines (119 loc) · 4.66 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html>
<head>
<title>Domino Mafia</title>
<meta charset="utf-8">
</head>
<body>
<main id="gameFrame" class="firstGame" onclick="myShootingEffects()">
<div id="level1" class="level current">
<div class="obstacle wall backWall">
<div class="panel" style="left: 5%;"></div>
<div class="panel" style="left: 30%;"></div>
<div class="panel" style="left: 55%;"></div>
<div class="panel" style="left: 80%;"></div>
<p>Level 1</p>
</div>
<div class="enemy" id="enemy1"></div>
<div class="enemy" id="enemy2"></div>
<div class="enemy" id="enemy3"></div>
<div class="enemy" id="enemy4" style="left: 430px;"></div>
<div class="enemy" id="enemy5" style="left: 500px;"></div>
<div class="enemy" id="enemy6" style="left: 640px;"></div>
<div class="obstacle wall creamWall" id="wall1"></div>
<div class="obstacle wall creamWall" id="wall2"></div>
</div>
<div id="level2" class="level ">
<div class="obstacle wall backWall">
<div class="panel" style="left: 30%;"></div>
<div class="panel" style="left: 55%;"></div>
</div>
<div class="wall creamWall" id="podium"></div>
<div class="enemy" id="enemy7"></div>
<div class="enemy" id="enemy8"></div>
<div class="enemy" id="enemy9"></div>
<div class="obstacle wall" id="wall5">
<p>Level 2</p>
</div>
<div class="obstacle wall" id="wall3">
<div class="panel" style="left: 4em; width: 10em; transform: scale(1.2);"></div>
</div>
<div class="obstacle wall darkBlueWall" id="wall4">
<div class="panel" style="left: 4em; width: 3em; transform: scale(1.2);"></div>
<div class="panel" style="left: 10em; width: 3em; transform: scale(1.2);"></div>
</div>
<div class="enemy" id="enemy10"></div>
<div class="enemy" id="enemy11"></div>
</div>
<div id="level3" class="level ">
<div class="roadContainer">
<div class="obstacle road">
<div class="inner" style="background-position-y: 400%"></div>
</div>
</div>
<div class="truck">
<div class="enemy" id="enemy13"></div>
<div class="enemy" id="enemy14"></div>
<div class="enemy" id="enemy16"></div>
<div class="wall truckBody"></div>
<div class="enemy" id="enemy12"></div>
<div class="enemy" id="enemy15"></div>
<div class="wheel left" onclick="shootWheel('left')"></div>
<div class="wheel right" onclick="shootWheel('right')"></div>
<div class="wall truckBoot">
<span>Level 3</span>
</div>
</div>
<div class="obstacle wall darkBlueWall" id="garageDoor">
<div class="panel" style="left: 5%;"></div>
<div class="panel" style="left: 30%;"></div>
<div class="panel" style="left: 55%;"></div>
<div class="panel" style="left: 80%;"></div>
</div>
</div>
<div id="level4" class="level ">
<p>Level 4</p>
<div id="chopper">
<div class="wall helice" id="smallerHelice" onclick="shootChopper(7)"></div>
<div class="wall helice" id="mainHelice" onclick="shootChopper(7)"></div>
<div class="wall" id="rotorBase" onclick="shootChopper(15)"></div>
<div class="wall" id="chopperBody" onclick="shootChopper(8)"></div>
<div class="enemy" id="heliCockpitEnemyLeft"></div>
<div class="enemy" id="heliCockpitEnemyMiddle"></div>
<div class="enemy" id="heliCockpitEnemyRight"></div>
<div class="wall" id="chopperFront" onclick="shootChopper(5)"></div>
<div class="wall ski" id="ski1" onclick="shootChopper(2)"></div>
<div class="wall ski" id="ski2" onclick="shootChopper(2)"></div>
</div>
</div>
<div id="level5" class="level ">
<div class="roadContainer">
<div class="obstacle road">
<div class="inner" style="background-position-x: 100000px"></div>
</div>
</div>
<div class="carLane" id="backLane">
<div class="obstacle wall car" onclick="this.classList.add('shot')" style="left: 1em;"></div>
<div class="obstacle wall car" onclick="this.classList.add('shot')" style="left: 14em;"></div>
<div class="obstacle wall car" onclick="this.classList.add('shot')" style="left: 28em;"></div>
<div class="obstacle wall car" onclick="this.classList.add('shot')" style="left: 40em;"></div>
</div>
</div>
<div id="healthBar"></div>
<button onclick="newGame()" id="newGame" style="display: auto;">
<span class="messageWon">
<span class="emoji">👏</span> Oh yes!
</span>
<span class="messageDead">
<span class="emoji">😵</span> Oh no…
</span>
<span class="messageWelcome">
<span class="emoji">🤖</span> Welcome
</span>
<p>👉 New game</p>
</button>
</main>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="script.js"></script>
</body>
</html>