-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (39 loc) · 1.18 KB
/
index.html
File metadata and controls
42 lines (39 loc) · 1.18 KB
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
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Survive the Horde</title>
<link rel="stylesheet" href="game.css">
<style>
#instructions {
width: 300px;
padding: 15px;
background-color: rgba(0, 0, 0, 0.8);
color: white;
border-radius: 10px;
position: absolute;
top: 20px;
left: 20px;
font-family: Arial, sans-serif;
}
</style>
</head>
<body>
<div id="gameContainer">
<canvas id="gameCanvas"></canvas>
<div id="score">Score: 0</div>
</div>
<div id="instructions">
<h2>How to Play</h2>
<ul>
<li>Use <strong>Arrow Keys</strong> to move the player.</li>
<li>Press <strong>Space</strong> to shoot in four directions.</li>
<li>Survive as long as possible against incoming zombies.</li>
<li>Shooting zombies increases your score.</li>
<li>Getting touched by a zombie ends the game.</li>
</ul>
</div>
<script src="game.js"></script>
</body>
</html>