mirror of
https://github.com/kuhyx/slavic_game_jam.git
synced 2026-07-04 13:23:08 +02:00
43 lines
1.8 KiB
HTML
43 lines
1.8 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>Use WASD or Arrow Keys to move</p>
|
|
<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">🗣️ Speech directions: "left", "right", "up", "down"</p>
|
|
<p class="probe-hint">👁️ Hold Shift + direction to detect invisible dangers!</p>
|
|
</div>
|
|
<canvas id="gameCanvas" width="800" height="600"></canvas>
|
|
<div class="controls">
|
|
<button id="soundToggle">🔊 Sound: ON</button>
|
|
<button id="speechToggle">🗣️ Speech: ON</button>
|
|
<button id="vibrationToggle">📳 Vibration: ON</button>
|
|
<button id="debugToggle">🐛 Debug: OFF</button>
|
|
</div>
|
|
<div id="debugControls" class="debug-controls" style="display: none;">
|
|
<h3>🐛 Debug Audio Tests</h3>
|
|
<div class="debug-buttons">
|
|
<button id="testUp">Test "Up"</button>
|
|
<button id="testDown">Test "Down"</button>
|
|
<button id="testLeft">Test "Left"</button>
|
|
<button id="testRight">Test "Right"</button>
|
|
<button id="testMultiple">Test "Up and Right"</button>
|
|
<button id="testAllDirections">Test "Up, Down, Left, and Right"</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="module" src="/src/main.js"></script>
|
|
</body>
|
|
</html>
|