35 lines
1.0 KiB
HTML
Executable File
35 lines
1.0 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Pong de Caleb</title>
|
|
<link rel="stylesheet" href="pong.css">
|
|
</head>
|
|
<body>
|
|
<div id="start-screen" class="screen">
|
|
<h1>PONG</h1>
|
|
<button id="start-button">Jouer</button>
|
|
<div class="controls">
|
|
<h3>Contrôles :</h3>
|
|
<p>Joueur 1 (Gauche) : W (haut) et S (bas)</p>
|
|
<p>Joueur 2 (Droite) : Flèches Haut/Bas</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="game-container" style="display: none;">
|
|
<div id="score">
|
|
<span id="player1-score">0</span> - <span id="player2-score">0</span>
|
|
</div>
|
|
<canvas id="board"></canvas>
|
|
</div>
|
|
|
|
<div id="game-over" class="screen" style="display: none;">
|
|
<h1>Fin de la partie !</h1>
|
|
<h2 id="winner-text"></h2>
|
|
<button id="restart-button">Rejouer</button>
|
|
</div>
|
|
|
|
<script src="pong.js"></script>
|
|
</body>
|
|
</html> |