-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (36 loc) · 1.03 KB
/
index.html
File metadata and controls
36 lines (36 loc) · 1.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta Tags -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dino Game</title>
<!-- Link the stylesheet -->
<link rel="stylesheet" href="styles.css" />
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="img/trex.png" />
</head>
<body>
<!-- Game Div -->
<h1>Dino Game</h1>
<p>
Press any button on your keyboard to jump, and use the "Play" and "Stop"
buttons to start or stop the game.
</p>
<div class="game">
<!-- Insert Dinosaur -->
<div id="dino"></div>
<!-- Insert Cactus -->
<div id="cactus"></div>
</div>
<!-- Controls Div -->
<div class="controls">
<!-- Play Button -->
<button onclick="startgame()">Play</button>
<!-- Stop Button -->
<button onclick="stopgame()">Stop</button>
</div>
<!-- Link the script -->
<script src="scripts.js"></script>
</body>
</html>