71 lines
2.2 KiB
PHP
71 lines
2.2 KiB
PHP
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Dino Land</title>
|
|
<link rel="stylesheet" href="styles.css" />
|
|
</head>
|
|
<body>
|
|
<div id="hud">
|
|
<div id="hearts"></div>
|
|
<div id="score">Score: 0</div>
|
|
</div>
|
|
|
|
<canvas id="game" width="960" height="540" aria-label="Dino Land game canvas"></canvas>
|
|
<button id="musicToggle" type="button" aria-pressed="false" aria-label="Toggle music">🔇 Music: Off</button>
|
|
|
|
<div id="startScreen">
|
|
<div class="panel">
|
|
<img
|
|
class="start-logo"
|
|
src="assets/images/dinoland-logo.png"
|
|
alt="Dino Land logo"
|
|
width="320"
|
|
height="180"
|
|
/>
|
|
<h1>Start Dino Land</h1>
|
|
<form id="startForm">
|
|
<label for="startPassword">Password</label>
|
|
<input id="startPassword" type="password" required placeholder="Enter password" />
|
|
|
|
<label for="accessMode">Access Mode</label>
|
|
<select id="accessMode">
|
|
<option value="standard" selected>Standard (5 hearts)</option>
|
|
<option value="vip">VIP (10 hearts)</option>
|
|
</select>
|
|
|
|
<div style="display: none; !important;">
|
|
<label for="difficulty" style="display: none; !important;">Difficulty</label>
|
|
<select id="difficulty" style="display: none; !important;">
|
|
<option value="easy" selected>Easy</option>
|
|
<option value="medium">Medium</option>
|
|
<option value="hard">Hard</option>
|
|
</select>
|
|
</div>
|
|
|
|
<p id="startError" class="error"></p>
|
|
<button type="submit">Start Game</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="deathScreen" class="hidden">
|
|
<div class="panel">
|
|
<h1>TRex Down!</h1>
|
|
<p id="finalScore"></p>
|
|
<h2>Top 10</h2>
|
|
<ol id="leaderboard"></ol>
|
|
<form id="saveScoreForm" class="hidden">
|
|
<label for="playerName">You made top 10! Enter name:</label>
|
|
<input id="playerName" maxlength="20" required />
|
|
<button type="submit">Save Score</button>
|
|
</form>
|
|
<button id="restartBtn">Restart</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="js/game.js"></script>
|
|
</body>
|
|
</html>
|