-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
153 lines (150 loc) · 4.25 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
<html>
<head><title>CoDev ZombieHunt</title>
<link rel="stylesheet" href="gameF.css">
<link rel="stylesheet" href="cursor.css">
<link href="https://fonts.googleapis.com/css2?family=Piedra&display=swap" rel="stylesheet">
<style>
h1 {font-family: 'Piedra', cursive;
font-size: 80px;
font-weight: lighter;
color: orangered;
}
h6{font-family: 'Piedra', cursive;
font-size: 40px;
font-weight: lighter;
color: orangered;
}
</style>
</head>
<body>
<div id="gameFrame" onclick="gunShot.play()">
<div id="healthBar"></div>
<div class="enemy" id="enemy1" onclick="iShoot(this)">
<div class="container">
<div class="hair">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="head">
<div class="scar"></div>
<div class="eye"></div>
<div class="mouth"></div>
<div class="bolt"></div>
</div>
</div>
</div>
<div class="enemy" id="enemy2" onclick="iShoot(this)">
<div class="container">
<div class="hair">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="head">
<div class="scar"></div>
<div class="eye"></div>
<div class="mouth"></div>
<div class="bolt"></div>
</div>
</div></div>
<div class="enemy" id="enemy3" onclick="iShoot(this)">
<div class="container">
<div class="hair">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="head">
<div class="scar"></div>
<div class="eye"></div>
<div class="mouth"></div>
<div class="bolt"></div>
</div>
</div></div>
<div class="enemy" id="enemy4" onclick="iShoot(this)">
<div class="container">
<div class="hair">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="head">
<div class="scar"></div>
<div class="eye"></div>
<div class="mouth"></div>
<div class="bolt"></div>
</div>
</div></div>
<div class="enemy" id="enemy5" onclick="iShoot(this)">
<div class="container">
<div class="hair">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="head">
<div class="scar"></div>
<div class="eye"></div>
<div class="mouth"></div>
<div class="bolt"></div>
</div>
</div></div>
<div class="enemy" id="enemy6" onclick="iShoot(this)">
<div class="container">
<div class="hair">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="head">
<div class="scar"></div>
<div class="eye"></div>
<div class="mouth"></div>
<div class="bolt"></div>
</div>
</div></div>
<div class="enemy" id="enemy7" onclick="iShoot(this)">
<div class="container">
<div class="hair">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="head">
<div class="scar"></div>
<div class="eye"></div>
<div class="mouth"></div>
<div class="bolt"></div>
</div>
</div></div>
<button onclick="newGame();"><h6>CoDev<br> Zombie Hunt</h6><h1> New Game</h1></button>
</div>
<div class="cursor"></div>
<script src = "hP.js"></script>
<script>
const cursor = document.querySelector('.cursor');
document.addEventListener('mousemove', e => {cursor.setAttribute("style", "top: "+(e.pageY - 10) +"px; left: "+(e.pageX - 10)+"px;")
})
document.addEventListener('click', () => { cursor.classList.add("expand");
setTimeout(() => {
cursor.classList.remove("expand");
}, 500)
})
</script>
</body>
</html>