-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
144 lines (137 loc) · 6.38 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Murder On My Mind</title>
<link rel="shortcut icon" href="othermedia/icon.gif" />
</head>
<body>
<div id="overlay" onclick="off()">
<div id="overlayText">⚠ Warning: This game contain squishy sound effects (off by default) and includes cartoon violence ⚠</div>
</div>
<ul class="tree">
<li class="section">
<input type="checkbox" id="groupA">
<label for="groupA">Settings</label>
<ul>
<li>
<input type="checkbox" class="settings" id="sfx">
<label for="sfx">Squishy SFX</label>
</input>
</li>
</ul>
</li>
</ul>
<main id="gameFrame" class="firstGame">
<div id="hurtOverlay"></div>
<div id="filter">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<defs>
<filter id="goo">
<feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur" />
<feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 19 -9" result="goo" />
<feComposite in="SourceGraphic" in2="goo" operator="atop"/>
</filter>
</defs>
</svg>
</div>
<canvas id="canvas1"></canvas>
<canvas id="canvas2"></canvas>
<div class="creamWall" id="fireMode"><h3 class="para" id="fireText">Firemode: rifle</h3></div>
<div id="gameContainer" 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" name="20"></div>
<div class="enemy" id="enemy2" name="20"></div>
<div class="enemy" id="enemy3" name="20"></div>
<div class="enemy" id="enemy4" style="left: 430px;" name="20"></div>
<div class="enemy" id="enemy5" style="left: 500px;" name="20"></div>
<div class="enemy" id="enemy6" style="left: 640px;" name="20"></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" name="20"></div>
<div class="enemy" id="enemy8" name="20"></div>
<div class="enemy" id="enemy9" name="20"></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" name="20"></div>
<div class="enemy" id="enemy11" name="20"></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" name="20"></div>
<div class="enemy" id="enemy14" name="20"></div>
<div class="enemy" id="enemy16" name="20"></div>
<div class="wall truckBody"></div>
<div class="enemy" id="enemy12" name="20"></div>
<div class="enemy" id="enemy15" name="20"></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" name="15"></div>
<div class="enemy" id="heliCockpitEnemyMiddle" name="15"></div>
<div class="enemy" id="heliCockpitEnemyRight" name="15"></div>
<div class="enemy" id="heliCockpitEnemyLeft" name="15"></div>
<div class="enemy" id="heliCockpitEnemyMiddle" name="15"></div>
<div class="enemy" id="heliCockpitEnemyRight" name="15"></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>
<div id="healthBar"></div>
<button onclick="newGame()" id="newGame" style="display: auto;"> <span class="messageWon">
<span class="emoji">👏</span> You made it! Congrats! You win! </span> <span class="messageDead">
<span class="emoji">💀</span> You died… game over </span> <span class="messageWelcome">
<span class="emoji">👋</span> Welcome to Murder On My Mind!</span>
<span class="para">👉 Start/continue game</span>
</button>
</main>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript" src="script.js"></script>
<!--<script type="text/javascript" src="modules/blood.js"></script>-->
</body>
</html>