slavic_game_jam/index.html

45 lines
2.3 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Danger Field Game</title>
</head>
<body>
<div id="app">
<div class="game-container">
<h1>Danger Field Game</h1>
<div class="game-info">
<p>Type an animal name to move in that direction:</p>
<div class="animal-directions">
<div class="direction-item" data-direction="up">🦅 <strong>Bird, Eagle, Hawk</strong> → Move UP</div>
<div class="direction-item" data-direction="down">🦔 <strong>Mole, Hedgehog, Badger</strong> → Move DOWN</div>
<div class="direction-item" data-direction="left">🐺 <strong>Wolf, Dog, Fox</strong> → Move LEFT</div>
<div class="direction-item" data-direction="right">🐎 <strong>Horse, Stallion, Mare</strong> → Move RIGHT</div>
</div>
<p class="visual-warning">⚠️ Red squares are deadly - avoid them!</p>
<p class="audio-warning">🔊 Hidden dangers end the game - listen for directions!</p>
<p class="audio-hint">🗣️ Animal sounds indicate movement success or danger!</p>
</div>
<canvas id="gameCanvas" width="800" height="600"></canvas>
<div id="debugInfo" class="debug-info" style="display: none;">
<h3>🐛 Debug Information</h3>
<p><strong>🔊 Audio Danger Squares:</strong> Blue squares with speaker icon</p>
<p><strong>⚠️ Note:</strong> These squares look normal during gameplay but trigger danger sounds when you get close!</p>
<p><strong>🎯 Current Animals:</strong> <span id="currentAnimals">Loading...</span></p>
</div>
<div class="controls">
<button id="newGameBtn">🎲 New Game</button>
<button id="debugToggle">🐛 Debug: OFF</button>
<button id="testAudioBtn">🔊 Test Audio</button>
<button id="soundToggle">🔊 Sound: ON</button>
<button id="speechToggle">🗣️ Speech: ON</button>
<button id="vibrationToggle">📳 Vibration: ON</button>
</div>
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>