Update index.html

integrazione schermata di caricamento
This commit is contained in:
2026-03-23 09:45:47 +01:00
parent 3edcf891ff
commit 893ac3fae0
+19 -10
View File
@@ -6,6 +6,15 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- SCHERMATA DI CARICAMENTO -->
<div id="loading-screen" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999;">
<div style="width: 80%; max-width: 600px; background: #222; height: 20px; border-radius: 10px; overflow: hidden; margin-bottom: 10px;">
<div id="loading-bar" style="width: 0%; height: 100%; background: #4CAF50; transition: width 0.3s;"></div>
</div>
<div id="loading-text" style="color: #fff; font-family: monospace; font-size: 14px;">Loading...</div>
</div>
<!-- SCHERMATA INIZIALE -->
<div id="start">
<video autoplay muted loop id="bg-video">
<source src="./video/background.mp4" type="video/mp4">
@@ -20,10 +29,10 @@
<div class="controls-box">
<h3>Controlli</h3>
<p>Movimento</p>
<p><kbd>Freccia su</kbd> Avanti</p>
<p><kbd>Freccia giù</kbd> Indietro</p>
<p><kbd>Freccia destra</kbd> Destra</p>
<p><kbd>Freccia sinistra</kbd> Sinistra</p>
<p><kbd>Freccia su / W</kbd> Avanti</p>
<p><kbd>Freccia giù / S</kbd> Indietro</p>
<p><kbd>Freccia destra / D</kbd> Destra</p>
<p><kbd>Freccia sinistra / A</kbd> Sinistra</p>
<p><kbd>Mouse</kbd> Punto di vista</p>
</div>
</div>
@@ -38,13 +47,13 @@
<p>Usa i comandi per esplorare e ripulire</p>
</div>
</div>
</div>
</div>
</div>
<div class="item right"></div>
</div>
</div>
</div>
<!-- INTERFACCIA GRAFICA DEL GIOCO -->
<div id="punti">Rifiuti: <span id="score">0</span></div>
<div id="tempo">Tempo: <span id="time">XX:XX</span></div>
<div id="tempo">Tempo: <span id="minuti">XX</span>:<span id="secondi">XX</span></div>
<div id="crosshair">+</div>
<script type="importmap">
{
@@ -54,6 +63,6 @@
}
}
</script>
<script type="module" src="script.js"></script>
<script type="module" src="script-test.js"></script>
</body>
</html>