-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (52 loc) · 1.52 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/addons/p5.dom.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/bmoren/[email protected]/p5.collide2d.min.js"></script>
<script src="js/ray.js"></script>
<script src="js/mob.js"></script>
<script src="js/timebar.js"></script>
<script src="js/boundary.js"></script>
<script src="js/player.js"></script>
<script src="sketch.js"></script>
<title>Flashy</title>
<style>
body {
padding: 0;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
font-size: 16px;
line-height: 1.5;
}
canvas {
display: flex;
vertical-align: middle;
margin: auto;
justify-content: center;
align-items: center;
margin-top: 80px;
border-radius: 15px;
border-radius: 15px;
}
p {
color: #6d6d6d;
text-align: center;
font-size: 14px;
}
code {
color: #ffffff;
background-color: #b7b5b5;
padding: 3px;
border-radius: 3px;
}
</style>
</head>
<body>
<div id="sketch-holder">
</div>
<p>Use <code>WASD</code> or <code>arrow keys</code> to move the player and the mouse to look around.</p>
</body>
</html>