23 lines
816 B
HTML
23 lines
816 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Pure Snake</title>
|
|
<link rel="icon" href="data:,">
|
|
<style>
|
|
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center;
|
|
justify-content: center; gap: 12px; background: #1b1b1b; color: #ddd; font: 14px system-ui, sans-serif; }
|
|
h1 { margin: 0; font-size: 20px; }
|
|
canvas { background: #111111; border: 2px solid #333; }
|
|
p { margin: 0; color: #999; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Pure Snake</h1>
|
|
<canvas id="game" width="400" height="400"></canvas>
|
|
<p>Arrows / WASD to move. Space to pause, R to restart (after module 10).</p>
|
|
<script type="module" src="web/dist/snake.js"></script>
|
|
</body>
|
|
</html>
|