forked from DishpitDev/Slopify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkatamari.html
36 lines (36 loc) · 987 Bytes
/
katamari.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
<!DOCTYPE html>
<html>
<head>
<title>SLOPAMARI DAMACY</title>
<style>
body { margin: 0; }
canvas { width: 100%; height: 100%; }
#info {
position: absolute;
top: 10px;
left: 10px;
color: white;
font-family: monospace;
pointer-events: none;
z-index: 1000;
}
#elementContainer {
position: absolute;
visibility: hidden;
}
</style>
</head>
<body>
<div id="info">Roll up the slop! Use WASD to move, C to toggle camera. Built by @lofimichael</div>
<div id="elementContainer"></div>
<script type="importmap">
{
"imports": {
"three/addons/": "https://unpkg.com/[email protected]/examples/jsm/"
}
}
</script>
<script type="module" src="katamari.js"></script>
</body>
</html>