DinoLand/index.php

59 lines
1.7 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>
<div id="startScreen">
<div class="panel">
<h1>Start Dino Land</h1>
<form id="startForm">
<label for="startPassword">Password</label>
<input id="startPassword" type="password" required placeholder="Enter password" />
<label class="inline-option" for="vipMode">
<input id="vipMode" type="checkbox" /> VIP mode (6 hearts)
</label>
<label for="difficulty">Difficulty</label>
<select id="difficulty">
<option value="easy">Easy</option>
<option value="medium" selected>Medium</option>
<option value="hard">Hard</option>
</select>
<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">Play Again</button>
</div>
</div>
<script src="js/game.js"></script>
</body>
</html>