-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (35 loc) · 1.14 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
<!DOCTYPE html>
<head>
<style>
body {
color: darkgrey;
font-family: verdana;
background: rgb(33, 33, 33);
}
h1 {
text-align: center;
font-size: 16px;
}
p {
text-align: left;
font-size: 9px;
}
p1 {
text-align: left;
font-size: 10px;
}
</style>
</head>
<body>
<h1>Press [A] to go left, [D] to right, [SPACE] to jump, <br>[F] to shot, [Q] to switch weapon, [R] to reload.<br><br>
<canvas></canvas>
</h1>
<p>Debug section: Press <U> to show collision and sprite boxes. Press <P> to spawn additional slimes.</p>
<p1>Trivia:
<br>Revolver deals 30 dmg, AK47 only 15.
<br>Green slime have 10hp and 10 attack, jumps infrequent. Blue slime have 30hp and 15 attack.
<br>Red slime have 50hp and 20 attack and jump very frequent! Restores 10hp after killing him.
<br>Be careful! Falling from a great height deals damage to player! </p1>
<script src="js/EventListeners.js"></script>
<script type="module" src="index.js"></script>
</body>