Spaces:
Running
Running
Update play.html
Browse files
play.html
CHANGED
|
@@ -14,18 +14,18 @@
|
|
| 14 |
.scanlines { background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1)); background-size: 100% 4px; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 10; }
|
| 15 |
.ui-panel { backdrop-filter: blur(5px); background: rgba(20, 20, 20, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.2s; }
|
| 16 |
|
| 17 |
-
|
|
|
|
| 18 |
.btn:hover { transform: scale(1.05); background: #fff; box-shadow: 0 0 40px rgba(0, 255, 65, 0.6); }
|
| 19 |
|
| 20 |
.flow-container { width: 200px; height: 12px; background: #333; border-radius: 6px; overflow: hidden; position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 20; border: 2px solid #555; }
|
| 21 |
.flow-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #ffb700, #00ff41); transition: width 0.1s linear; }
|
| 22 |
.flow-text { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); font-size: 0.8rem; color: #fff; text-transform: uppercase; font-weight: bold; text-shadow: 0 2px 4px #000; width: 100%; text-align: center; }
|
| 23 |
|
| 24 |
-
/* MODIFICATO: Animazione più lenta e posizione iniziale spostata */
|
| 25 |
.floating-message {
|
| 26 |
position: absolute;
|
| 27 |
font-weight: 800;
|
| 28 |
-
font-size: 1.2rem;
|
| 29 |
text-align: left;
|
| 30 |
pointer-events: none;
|
| 31 |
text-shadow: 2px 2px 0px #000;
|
|
@@ -75,42 +75,46 @@
|
|
| 75 |
<div class="flow-container"><div id="flow-bar" class="flow-bar"></div></div>
|
| 76 |
|
| 77 |
<div id="start-screen" style="position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 30; background: rgba(0,0,0,0.92); backdrop-filter: blur(8px); padding: 1rem;">
|
| 78 |
-
<h1 id="title-main" style="font-size: 3.5rem; font-weight: bold; color: white; margin-bottom: 0.5rem; text-align: center; text-shadow: 0 0 20px #00ff41; line-height: 1.1;"></h1>
|
| 79 |
-
<h2 id="subtitle-main" style="color: #00ff41; font-size: 1rem; margin-bottom: 2rem; font-weight: bold; text-align: center; max-width: 600px;"></h2>
|
| 80 |
|
| 81 |
-
<
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
<div style="display: flex; align-items: center;">
|
| 84 |
-
<span id="icon-legacy" style="font-size:
|
| 85 |
-
<div><span id="title-legacy" style="color: #ffb700; font-weight: bold;"></span><p id="desc-legacy" style="color: #999; font-size:
|
| 86 |
</div>
|
| 87 |
<div style="display: flex; align-items: center;">
|
| 88 |
-
<span id="icon-ai" style="font-size:
|
| 89 |
-
<div><span id="title-ai" style="color: #00ff41; font-weight: bold;"></span><p id="desc-ai" style="color: #999; font-size:
|
| 90 |
</div>
|
| 91 |
<div style="display: flex; align-items: center;">
|
| 92 |
-
<span id="icon-obs" style="font-size:
|
| 93 |
-
<div><span id="title-obs" style="color: #ff0055; font-weight: bold;"></span><p id="desc-obs" style="color: #999; font-size:
|
| 94 |
</div>
|
| 95 |
<div style="display: flex; align-items: center;">
|
| 96 |
-
<span style="font-size:
|
| 97 |
-
<div><span id="title-bar" style="color: white; font-weight: bold;"></span><p id="desc-bar" style="color: #999; font-size:
|
| 98 |
</div>
|
| 99 |
</div>
|
| 100 |
</div>
|
| 101 |
|
| 102 |
<button id="btn-start" class="btn" onclick="initGame()"></button>
|
| 103 |
-
<p id="controls-hint" style="margin-top:
|
| 104 |
</div>
|
| 105 |
|
| 106 |
<div id="game-over" class="hidden" style="position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; z-index: 40; background: rgba(0,0,0,0.95);">
|
| 107 |
-
|
| 108 |
-
<
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
<
|
| 112 |
-
<
|
| 113 |
-
<
|
|
|
|
|
|
|
| 114 |
</div>
|
| 115 |
<button id="btn-restart" class="btn" onclick="initGame()"></button>
|
| 116 |
</div>
|
|
@@ -280,8 +284,8 @@ const dom = {
|
|
| 280 |
};
|
| 281 |
|
| 282 |
function setupUI() {
|
| 283 |
-
|
| 284 |
-
|
| 285 |
document.getElementById('lbl-phase').innerText = GAME_CONFIG.TEXTS.LBL_PHASE;
|
| 286 |
document.getElementById('lbl-metrics').innerText = GAME_CONFIG.TEXTS.LBL_METRICS;
|
| 287 |
document.getElementById('lbl-score').innerText = GAME_CONFIG.TEXTS.LBL_SCORE;
|
|
|
|
| 14 |
.scanlines { background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1)); background-size: 100% 4px; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 10; }
|
| 15 |
.ui-panel { backdrop-filter: blur(5px); background: rgba(20, 20, 20, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.2s; }
|
| 16 |
|
| 17 |
+
/* BTN PIÙ GRANDE */
|
| 18 |
+
.btn { background: var(--neon-green); color: #000; padding: 20px 50px; font-size: 1.5rem; font-weight: 800; text-transform: uppercase; cursor: pointer; border-radius: 4px; box-shadow: 0 0 20px rgba(0, 255, 65, 0.4); transition: 0.2s; border: none; }
|
| 19 |
.btn:hover { transform: scale(1.05); background: #fff; box-shadow: 0 0 40px rgba(0, 255, 65, 0.6); }
|
| 20 |
|
| 21 |
.flow-container { width: 200px; height: 12px; background: #333; border-radius: 6px; overflow: hidden; position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 20; border: 2px solid #555; }
|
| 22 |
.flow-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #ffb700, #00ff41); transition: width 0.1s linear; }
|
| 23 |
.flow-text { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); font-size: 0.8rem; color: #fff; text-transform: uppercase; font-weight: bold; text-shadow: 0 2px 4px #000; width: 100%; text-align: center; }
|
| 24 |
|
|
|
|
| 25 |
.floating-message {
|
| 26 |
position: absolute;
|
| 27 |
font-weight: 800;
|
| 28 |
+
font-size: 1.2rem;
|
| 29 |
text-align: left;
|
| 30 |
pointer-events: none;
|
| 31 |
text-shadow: 2px 2px 0px #000;
|
|
|
|
| 75 |
<div class="flow-container"><div id="flow-bar" class="flow-bar"></div></div>
|
| 76 |
|
| 77 |
<div id="start-screen" style="position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 30; background: rgba(0,0,0,0.92); backdrop-filter: blur(8px); padding: 1rem;">
|
|
|
|
|
|
|
| 78 |
|
| 79 |
+
<h1 id="title-main" style="font-size: 5rem; font-weight: bold; color: white; margin-bottom: 0.5rem; text-align: center; text-shadow: 0 0 20px #00ff41; line-height: 1.1;"></h1>
|
| 80 |
+
|
| 81 |
+
<h2 id="subtitle-main" style="color: #00ff41; font-size: 1.5rem; margin-bottom: 2rem; font-weight: bold; text-align: center; max-width: 800px;"></h2>
|
| 82 |
+
|
| 83 |
+
<div style="background: #111; border: 1px solid #444; padding: 2rem; border-radius: 0.5rem; max-width: 40rem; width: 100%; margin-bottom: 2rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);">
|
| 84 |
+
<div style="display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.1rem;">
|
| 85 |
<div style="display: flex; align-items: center;">
|
| 86 |
+
<span id="icon-legacy" style="font-size: 2.8rem; margin-right: 1rem;"></span>
|
| 87 |
+
<div><span id="title-legacy" style="color: #ffb700; font-weight: bold; font-size: 1.2rem;"></span><p id="desc-legacy" style="color: #999; font-size: 1rem; margin: 0;"></p></div>
|
| 88 |
</div>
|
| 89 |
<div style="display: flex; align-items: center;">
|
| 90 |
+
<span id="icon-ai" style="font-size: 2.8rem; margin-right: 1rem;"></span>
|
| 91 |
+
<div><span id="title-ai" style="color: #00ff41; font-weight: bold; font-size: 1.2rem;"></span><p id="desc-ai" style="color: #999; font-size: 1rem; margin: 0;"></p></div>
|
| 92 |
</div>
|
| 93 |
<div style="display: flex; align-items: center;">
|
| 94 |
+
<span id="icon-obs" style="font-size: 2.8rem; margin-right: 1rem;"></span>
|
| 95 |
+
<div><span id="title-obs" style="color: #ff0055; font-weight: bold; font-size: 1.2rem;"></span><p id="desc-obs" style="color: #999; font-size: 1rem; margin: 0;"></p></div>
|
| 96 |
</div>
|
| 97 |
<div style="display: flex; align-items: center;">
|
| 98 |
+
<span style="font-size: 2.8rem; margin-right: 1rem;">⚡</span>
|
| 99 |
+
<div><span id="title-bar" style="color: white; font-weight: bold; font-size: 1.2rem;"></span><p id="desc-bar" style="color: #999; font-size: 1rem; margin: 0;"></p></div>
|
| 100 |
</div>
|
| 101 |
</div>
|
| 102 |
</div>
|
| 103 |
|
| 104 |
<button id="btn-start" class="btn" onclick="initGame()"></button>
|
| 105 |
+
<p id="controls-hint" style="margin-top: 1.5rem; font-size: 1rem; color: #ccc; animation: pulse 2s infinite; font-weight: bold;"></p>
|
| 106 |
</div>
|
| 107 |
|
| 108 |
<div id="game-over" class="hidden" style="position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; z-index: 40; background: rgba(0,0,0,0.95);">
|
| 109 |
+
|
| 110 |
+
<h2 id="go-title" style="font-size: 4.5rem; font-weight: bold; color: white; margin-bottom: 1.5rem; text-align: center;"></h2>
|
| 111 |
+
|
| 112 |
+
<div style="text-align: center; font-size: 1.2rem; color: #ccc; margin-bottom: 2.5rem; background: #1a1a1a; padding: 2.5rem; border: 1px solid #444; border-radius: 0.5rem; max-width: 35rem; width: 100%;">
|
| 113 |
+
<p id="go-reason" style="color: #ff0055; font-weight: bold; margin-bottom: 1.5rem; font-size: 1.4rem;"></p>
|
| 114 |
+
<div style="display: flex; justify-content: space-between; margin-bottom: 0.8rem;"><span>MVP Score:</span><span id="final-score" style="color: #00ff41; font-weight: bold;">0</span></div>
|
| 115 |
+
<div style="display: flex; justify-content: space-between; margin-bottom: 1.5rem;"><span>Modernizzazione:</span><span id="final-legacy" style="color: #ffb700; font-weight: bold;">0%</span></div>
|
| 116 |
+
<hr style="border-color: #444; margin: 1.5rem 0;">
|
| 117 |
+
<p id="death-quote" style="font-style: italic; color: #999; font-size: 1rem;"></p>
|
| 118 |
</div>
|
| 119 |
<button id="btn-restart" class="btn" onclick="initGame()"></button>
|
| 120 |
</div>
|
|
|
|
| 284 |
};
|
| 285 |
|
| 286 |
function setupUI() {
|
| 287 |
+
document.getElementById('title-main').innerText = GAME_CONFIG.TEXTS.TITLE;
|
| 288 |
+
document.getElementById('subtitle-main').innerText = GAME_CONFIG.TEXTS.SUBTITLE;
|
| 289 |
document.getElementById('lbl-phase').innerText = GAME_CONFIG.TEXTS.LBL_PHASE;
|
| 290 |
document.getElementById('lbl-metrics').innerText = GAME_CONFIG.TEXTS.LBL_METRICS;
|
| 291 |
document.getElementById('lbl-score').innerText = GAME_CONFIG.TEXTS.LBL_SCORE;
|