-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
49 lines (48 loc) · 1.66 KB
/
index.html
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
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Canvas Background</title>
<link rel="stylesheet" href="css/style.css">
<style type = "text/css">
@import url('https://fonts.googleapis.com/css?family=VT323');
</style>
</head>
<body>
<div class="container-all"></div>
<div class="container">
<div class="header">
<img src="img/stress_logo.png" alt="Stress Logo" class="logo">
</div>
<div id="scoreboard">
Your score is 0!
</div>
<div class="instructions">
<p>It's project week! You're super stressed out by JavaScript. Jump over the obstacles and collect coffee mugs to keep going and stay awake.</p>
<div class="controls">
<ul>
<li><b>Move forward:</b> Arrow key right</li>
<li><b>Move backward:</b> Arrow key left</li>
<li><b>Jump:</b> Arrow key up <br>(careful, you can only jump twice in a row)</li>
</ul>
</div>
</div>
<div class="btn">
<button type="button" name="start-btn" class="button" id="button">Start Game</button>
</div>
<p class="note">(Click the button once to start the first game. Click twice to reload the game.)</p>
</div>
<div class="canvas">
<canvas width="1200" height="800"></canvas>
</div>
<script src="js/coffee.js"></script>
<script src="js/player.js"></script>
<script src="js/obstacles.js"></script>
<script src="js/cloudtwo.js"></script>
<script src="js/cloudone.js"></script>
<script src="js/background.js"></script>
<script src="js/main.js"></script>
</body>
</html>