-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
30 lines (29 loc) · 905 Bytes
/
Copy pathindex.html
File metadata and controls
30 lines (29 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Burung Terbang</title>
<link href="styles.css" rel="stylesheet" />
</head>
<body>
<div id="gameContainer">
<canvas id="gameCanvas" width="480" height="640"></canvas>
<div id="gameInfo">
<div>Skor: <span id="score">0</span></div>
<div>Terbaik: <span id="highScore">0</span></div>
</div>
<div id="instructions">
<h2>Burung Terbang</h2>
<p>Klik atau tekan SPASI untuk terbang!</p>
<p>Hindari pipa hijau!</p>
</div>
<div id="gameOver">
<h2>Game Over!</h2>
<p>Skor Akhir: <span id="finalScore">0</span></p>
<button onclick="restartGame()">Main Lagi</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>