generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (78 loc) · 3.83 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Sedan+SC&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="icon" type="image/x-icon" href="assets/img/flavicon/favicon-32x32.png">
<title>Knight's Run</title>
</head>
<body>
<!-- Title & Highscore -->
<div class="banner">
<h1> Knight's Run </h1>
<h2 id="highScore"> High Score: 0</h2>
</div>
<!-- Game Canvas -->
<canvas id="canvas1"></canvas>
<!-- Player assets -->
<img id="idel" src="assets/img/hero/idle.png" alt="">
<img id="attack" src="assets/img/hero/attack.png" alt="">
<img id="crouch" src="assets/img/hero/crouching.png" alt="">
<img id="dash" src="assets/img/hero/dashing.png" alt="">
<img id="fall" src="assets/img/hero/falling.gif" alt="">
<img id="hurt" src="assets/img/hero/hurt.png" alt="">
<img id="jump" src="assets/img/hero/jump.gif" alt="">
<img id="walk" src="assets/img/hero/walking.png" alt="">
<!-- Background assets -->
<img id="layer0" src="assets/img/para-bg/layer-0.png" alt="">
<img id="layer1" src="assets/img/para-bg/layer-1.png" alt="">
<img id="layer2" src="assets/img/para-bg/layer-2.png" alt="">
<img id="layer3" src="assets/img/para-bg/layer-3.png" alt="">
<img id="layer4" src="assets/img/para-bg/layer-4.png" alt="">
<img id="layer5" src="assets/img/para-bg/layer-5.png" alt="">
<img id="layer6" src="assets/img/para-bg/layer-6.png" alt="">
<img id="layer7" src="assets/img/para-bg/layer-7.png" alt="">
<img id="layer8" src="assets/img/para-bg/layer-8.png" alt="">
<img id="layer9" src="assets/img/para-bg/layer-9.png" alt="">
<img id="layer10" src="assets/img/para-bg/layer-10.png" alt="">
<img id="layer11" src="assets/img/para-bg/layer-11.png" alt="">
<!-- Enemy assets -->
<img id="fly" src="assets/img/enemies/enemy_fly.png" alt="">
<img id="plant" src="assets/img/enemies/enemy_plant.png" alt="">
<img id="spider" src="assets/img/enemies/enemy_spider_big.png" alt="">
<!-- Particles -->
<img id="boom" src="assets/img/particles/boom.png" alt="">
<!-- Utility -->
<img id="heart" src="assets/img/utility/heart.png" alt="">
<!-- Background -->
<img id="indexbg" src="assets/img/background/night-woods.jpg" alt="">
<!-- Tutorial modal -->
<button id="btn" data-open-modal title="Tutorial" type="button"><i class="fa fa-info-circle" aria-hidden="true"></i></button>
<dialog data-modal class="modal">
<div>
<h2>Knight's Run Tutorial</h2>
<h3>How to Play</h3>
<br>
<p>Use the left / right arrow keys or swipes to move left and right. </p>
<p>Use the up arrow key or swipe to jump.</p>
<p>The down arrow key or swipe to crouch.</p>
<p>Use the space bar or tap to attack.</p>
<p>Use the hash # key or long swipe to dash.</p>
<br>
<p>The goal of the game is to collect <b>10 points</b> from monsters before you run out of time.</p>
<p>Good luck!</p>
<br>
</div>
<button data-close-modal class="close" title="Close" type="reset">Close</button>
</dialog>
<!-- Refresh Button -->
<button id="refresh" onclick="location.reload()" title="Page Refresh" type="reset"><i class="fa fa-refresh" aria-hidden="true"></i></button>
<!-- Script -->
<script type="module" src="assets/js/main.js"></script>
</body>
</html>