Files
functional-programming-snake/js/pong.html
T

23 lines
813 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pure Pong</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 Pong</h1>
<canvas id="game" width="640" height="400"></canvas>
<p>Up/Down arrows (or W/S) move your paddle. First to 5 wins. R restarts.</p>
<script type="module" src="src/pong/main.js"></script>
</body>
</html>