-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (39 loc) · 1.3 KB
/
index.html
File metadata and controls
40 lines (39 loc) · 1.3 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
40
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Time Breaker</title>
<link type="text/css" href="index.css" rel="stylesheet">
</head>
<body>
<img src="assets/ground.png" id="ground">
<img src="assets/bullet.png" id="bullet">
<img src="assets/bat.png" id="bat">
<img src="assets/player.png" id="player">
<img src="assets/zombie.png" id="zombie">
<div class="Menu UI">
<h1>Welcome to the<br><span>Time Breaker</span></h1>
<button id="startGame">Play</button>
<ul title="Keys">
<li>A & D: Go left & right</li>
<li>W: Jump</li>
<li>Space: Shoot</li>
<li>Left Shift: Dash</li>
<li>C: Smash (Only while in air)</li>
</ul>
</div>
<div class="RoundScreen UI">
<h1 id="round">Round 0</h1>
<h2 id="enemies">Total Enemies: 0</h2>
</div>
<div class="DeathScreen UI">
<h1>Game Over!</h1>
<button id="startGame">Main Menu</button>
</div>
<canvas id="main"></canvas>
<audio src="./assets/shoot.mp3" id="shoot"></audio>
<audio src="./assets/Time-Breaker-Theme.mp3" id="theme" loop></audio>
<script defer type="module" src="game.js"></script>
</body>
</html>