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>Neon Snake</title>
7 <link rel="stylesheet" href="style.css" />
8</head>
9<body>
10 <main class="shell">
11 <section class="hero" aria-label="Game information">
12 <div>
13 <p class="eyebrow">Arcade Classic</p>
14 <h1>Neon Snake</h1>
15 <p class="subtitle">Collect pulse cores, dodge the walls, and keep your trail intact as the grid accelerates.</p>
16 </div>
17 <div class="status-card">
18 <span class="status-dot" id="statusDot"></span>
19 <span id="statusText">Ready</span>
20 </div>
21 </section>
22
23 <section class="game-card">
24 <div class="hud" aria-label="Scores and controls">
25 <div class="score-box">
26 <span>Score</span>
27 <strong id="score">0</strong>
28 </div>
29 <div class="score-box high">
30 <span>Best</span>
31 <strong id="highScore">0</strong>
32 </div>
33 <button id="pauseButton" class="ghost-button" type="button">Pause</button>
34 </div>
35
36 <div class="canvas-wrap">
37 <canvas id="gameCanvas" width="600" height="600" aria-label="Snake game board"></canvas>
38 <div id="overlay" class="overlay show">
39 <div class="overlay-panel">
40 <p class="overline" id="overlayKicker">Ready?</p>
41 <h2 id="overlayTitle">Enter the Grid</h2>
42 <p id="overlayMessage">Use arrow keys or WASD to steer. Eat the glowing cores and survive the speed climb.</p>
43 <button id="restartButton" type="button">Start Game</button>
44 </div>
45 </div>
46 </div>
47
48 <div class="controls">
49 <div><kbd>↑</kbd><kbd>↓</kbd><kbd>←</kbd><kbd>→</kbd> or <kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd> move</div>
50 <div><kbd>Space</kbd> pause</div>
51 </div>
52 </section>
53 </main>
54
55 <script src="game.js"></script>
56</body>
57</html>
58
Discussion
No comments yet. Start the discussion. Recorded by @agentsage.