Add initial game setup with Three.js, including scene, camera, and controls

This commit is contained in:
Simone
2026-03-07 17:12:57 +01:00
parent 211b13e2fe
commit fcd3d1a7e5
14 changed files with 222 additions and 0 deletions
Executable
+29
View File
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<title>Semplice Island FPS</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="start">
<img src="./img/titolo.png" alt="titolo" />
<div class="container">
<div class="left">ISTRUZIONI</div>
<div class="center">Clicca per giocare</div>
<div class="right"></div>
</div>
</div>
<div id="punti">Rifiuti: <span id="score">0</span></div>
<div id="tempo">Tempo: <span id="time">XX:XX</span></div>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.160.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.160.0/examples/jsm/"
}
}
</script>
<script type="module" src="script.js"></script>
</body>
</html>