Update index.html
integrazione schermata di caricamento
This commit is contained in:
+67
-58
@@ -1,59 +1,68 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="it">
|
<html lang="it">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Semplice Island FPS</title>
|
<title>Semplice Island FPS</title>
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="start">
|
<!-- SCHERMATA DI CARICAMENTO -->
|
||||||
<video autoplay muted loop id="bg-video">
|
<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;">
|
||||||
<source src="./video/background.mp4" type="video/mp4">
|
<div style="width: 80%; max-width: 600px; background: #222; height: 20px; border-radius: 10px; overflow: hidden; margin-bottom: 10px;">
|
||||||
</video>
|
<div id="loading-bar" style="width: 0%; height: 100%; background: #4CAF50; transition: width 0.3s;"></div>
|
||||||
<div class="overlay"></div>
|
</div>
|
||||||
<div class="content">
|
<div id="loading-text" style="color: #fff; font-family: monospace; font-size: 14px;">Loading...</div>
|
||||||
<div class="top-section">
|
</div>
|
||||||
<img src="titolo.png" alt="titolo" class="main-title" />
|
|
||||||
</div>
|
<!-- SCHERMATA INIZIALE -->
|
||||||
<div class="container bottom-section">
|
<div id="start">
|
||||||
<div class="item left">
|
<video autoplay muted loop id="bg-video">
|
||||||
<div class="controls-box">
|
<source src="./video/background.mp4" type="video/mp4">
|
||||||
<h3>Controlli</h3>
|
</video>
|
||||||
<p>Movimento</p>
|
<div class="overlay"></div>
|
||||||
<p><kbd>Freccia su</kbd> Avanti</p>
|
<div class="content">
|
||||||
<p><kbd>Freccia giù</kbd> Indietro</p>
|
<div class="top-section">
|
||||||
<p><kbd>Freccia destra</kbd> Destra</p>
|
<img src="titolo.png" alt="titolo" class="main-title" />
|
||||||
<p><kbd>Freccia sinistra</kbd> Sinistra</p>
|
</div>
|
||||||
<p><kbd>Mouse</kbd> Punto di vista</p>
|
<div class="container bottom-section">
|
||||||
</div>
|
<div class="item left">
|
||||||
</div>
|
<div class="controls-box">
|
||||||
<div class="item center">
|
<h3>Controlli</h3>
|
||||||
<span class="pulse-text">Clicca per giocare</span>
|
<p>Movimento</p>
|
||||||
</div>
|
<p><kbd>Freccia su / W</kbd> Avanti</p>
|
||||||
<div class="item right">
|
<p><kbd>Freccia giù / S</kbd> Indietro</p>
|
||||||
<div class="instructions-box">
|
<p><kbd>Freccia destra / D</kbd> Destra</p>
|
||||||
<h3>Istruzioni</h3>
|
<p><kbd>Freccia sinistra / A</kbd> Sinistra</p>
|
||||||
<p>Obiettivo: raccogliere tutti i rifiuti sull’isola</p>
|
<p><kbd>Mouse</kbd> Punto di vista</p>
|
||||||
<p>Attenzione allo scadere del tempo!</p>
|
</div>
|
||||||
<p>Usa i comandi per esplorare e ripulire</p>
|
</div>
|
||||||
</div>
|
<div class="item center">
|
||||||
</div>
|
<span class="pulse-text">Clicca per giocare</span>
|
||||||
|
</div>
|
||||||
<div class="item right"></div>
|
<div class="item right">
|
||||||
</div>
|
<div class="instructions-box">
|
||||||
</div>
|
<h3>Istruzioni</h3>
|
||||||
</div>
|
<p>Obiettivo: raccogliere tutti i rifiuti sull’isola</p>
|
||||||
<div id="punti">Rifiuti: <span id="score">0</span></div>
|
<p>Attenzione allo scadere del tempo!</p>
|
||||||
<div id="tempo">Tempo: <span id="time">XX:XX</span></div>
|
<p>Usa i comandi per esplorare e ripulire</p>
|
||||||
<div id="crosshair">+</div>
|
</div>
|
||||||
<script type="importmap">
|
</div>
|
||||||
{
|
</div>
|
||||||
"imports": {
|
</div>
|
||||||
"three": "https://unpkg.com/three@0.160.0/build/three.module.js",
|
</div>
|
||||||
"three/addons/": "https://unpkg.com/three@0.160.0/examples/jsm/"
|
|
||||||
}
|
<!-- INTERFACCIA GRAFICA DEL GIOCO -->
|
||||||
}
|
<div id="punti">Rifiuti: <span id="score">0</span></div>
|
||||||
</script>
|
<div id="tempo">Tempo: <span id="minuti">XX</span>:<span id="secondi">XX</span></div>
|
||||||
<script type="module" src="script.js"></script>
|
<div id="crosshair">+</div>
|
||||||
</body>
|
<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-test.js"></script>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user