Spaces:
Running
Running
Update index.html
Browse files- index.html +11 -5
index.html
CHANGED
|
@@ -336,7 +336,16 @@
|
|
| 336 |
</div>
|
| 337 |
</div>
|
| 338 |
|
| 339 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 340 |
<script>
|
| 341 |
function startGame() {
|
| 342 |
document.getElementById('startScreen').style.display = 'none';
|
|
@@ -353,9 +362,6 @@
|
|
| 353 |
}
|
| 354 |
});
|
| 355 |
</script>
|
| 356 |
-
<script src="
|
| 357 |
-
<script src="https://cdn.jsdelivr.net/npm/three@0.155.0/examples/js/loaders/GLTFLoader.js"></script>
|
| 358 |
-
<script src="https://cdn.jsdelivr.net/npm/three@0.155.0/examples/js/controls/PointerLockControls.js"></script>
|
| 359 |
-
<script src="game.js"></script>
|
| 360 |
</body>
|
| 361 |
</html>
|
|
|
|
| 336 |
</div>
|
| 337 |
</div>
|
| 338 |
|
| 339 |
+
</div>
|
| 340 |
+
|
| 341 |
+
<script type="importmap">
|
| 342 |
+
{
|
| 343 |
+
"imports": {
|
| 344 |
+
"three": "https://unpkg.com/three@0.157.0/build/three.module.js",
|
| 345 |
+
"three/addons/": "https://unpkg.com/three@0.157.0/examples/jsm/"
|
| 346 |
+
}
|
| 347 |
+
}
|
| 348 |
+
</script>
|
| 349 |
<script>
|
| 350 |
function startGame() {
|
| 351 |
document.getElementById('startScreen').style.display = 'none';
|
|
|
|
| 362 |
}
|
| 363 |
});
|
| 364 |
</script>
|
| 365 |
+
<script type="module" src="game.js"></script>
|
|
|
|
|
|
|
|
|
|
| 366 |
</body>
|
| 367 |
</html>
|