|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <title>Gravity Flip Pinball</title> |
| 7 | + <link rel="stylesheet" href="style.css" /> |
| 8 | + </head> |
| 9 | + <body> |
| 10 | + <div class="hud"> |
| 11 | + <h1>Gravity Flip Pinball</h1> |
| 12 | + <div class="hud-row"> |
| 13 | + <span class="hud-label">Score:</span> |
| 14 | + <span class="hud-value" id="score">0</span> |
| 15 | + </div> |
| 16 | + <div class="hud-row"> |
| 17 | + <span class="hud-label">Gates:</span> |
| 18 | + <span class="hud-value" id="gates">0/3</span> |
| 19 | + </div> |
| 20 | + <div class="hud-row"> |
| 21 | + <span class="hud-label">Status:</span> |
| 22 | + <span class="hud-value" id="status">Ready</span> |
| 23 | + </div> |
| 24 | + <div class="controls"> |
| 25 | + <button id="startBtn" class="btn">Start</button> |
| 26 | + <button id="replayBtn" class="btn">Replay</button> |
| 27 | + </div> |
| 28 | + <p class="hint"> |
| 29 | + W/A/S/D — change gravity<br /> |
| 30 | + Double-click canvas to quick reset |
| 31 | + </p> |
| 32 | + </div> |
| 33 | + |
| 34 | + <div class="mode-toggle"> |
| 35 | + <label> |
| 36 | + <input type="checkbox" id="challengeMode" /> |
| 37 | + <span>Challenge Mode (60s)</span> |
| 38 | + </label> |
| 39 | + </div> |
| 40 | + |
| 41 | + <div class="timer-display" id="timer">60</div> |
| 42 | + |
| 43 | + <div class="gravity-indicator"> |
| 44 | + <button class="gravity-btn" data-key="w">↑</button> |
| 45 | + <button class="gravity-btn" data-key="a">←</button> |
| 46 | + <button class="gravity-btn" data-key="s">↓</button> |
| 47 | + <button class="gravity-btn" data-key="d">→</button> |
| 48 | + </div> |
| 49 | + |
| 50 | + <div class="victory-modal" id="victoryModal"> |
| 51 | + <h2 id="victoryTitle">Victory!</h2> |
| 52 | + <p id="victoryMessage">You collected all gates and reached the end!</p> |
| 53 | + <button class="btn" onclick="replay()">Play Again</button> |
| 54 | + </div> |
| 55 | + |
| 56 | + <canvas id="gameCanvas"></canvas> |
| 57 | + <script src="script.js"></script> |
| 58 | + </body> |
| 59 | +</html> |
0 commit comments