-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (26 loc) · 817 Bytes
/
Copy pathindex.html
File metadata and controls
26 lines (26 loc) · 817 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Three.js Doom</title>
<style>
html, body { margin: 0; padding: 0; background: #000; color: #fff; font-family: monospace; overflow: hidden; touch-action: none; }
#container { position: fixed; inset: 0; }
#overlay { position: fixed; inset: 0; pointer-events: none; }
</style>
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@0.184.0/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.184.0/examples/jsm/"
}
}
</script>
</head>
<body>
<div id="container"></div>
<canvas id="overlay"></canvas>
<script type="module" src="./src/i_main.js"></script>
</body>
</html>