-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
114 lines (110 loc) · 3.5 KB
/
index.html
File metadata and controls
114 lines (110 loc) · 3.5 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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!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>Hackamon</title>
<link
href="https://fonts.googleapis.com/css?family=Open+Sans:300|Press+Start+2P&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./styles/styles.css" />
</head>
<body>
<header><h1>Welcome to Hackamon</h1></header>
<section id="game-container">
<!-- GUIDE -->
<div class="guide">
<!-- INSTRUCTIONS -->
<div class="instructions">
<h2>Instructions</h2>
<p>
<span class="instruct">
How long can you survive? Manipulate the map by mining and
building bricks. Avoid the spiders and collect as many points as
possible!</span
>
</p>
</div>
<br />
<!-- CONTROLS -->
<div class="controls">
<h2>Controls</h2>
<p>
<span class="moveGuide">Move the player:</span>
<br />
<img class="arrows" src="./images/game-board/arrow_orig.png" />
<span class="inst">Mine & build: </span>
<br />
<span class="mine">Mine:</span>
<br />
<img
class="small-keys b-key"
src="./images/game-board/keyboard_key_b.png"
alt="B"
/>
<img
class="small-keys x-key"
src="./images/game-board/keyboard_key_x.png"
alt="X"
/>
<br />
<span class="build">Build behind:</span>
<br />
<img
class="shift-key"
src="./images/game-board/shift_key.png"
alt="shift"
/>
<br />
<span class="build">Build in front:</span>
<br />
<img
class="small-keys c-key"
src="./images/game-board/keyboard_key_c.png"
alt="C"
/>
</p>
</div>
</div>
<span id="roundTracker">Round:<span id="round">I</span></span>
<div id="theCanvas">
<canvas id="game-board" width="500" height="250"></canvas>
</div>
<section id="rightPannel">
<div class="score">
<span>Score:</span><span id="score">0</span>
<div class="stats">
<div id="health">
<h2 class="time">Time:<span id="time">0</span></h2>
<h2>Health</h2>
<div id="health-bar-container"></div>
<h2>Bricks</h2>
<div id="brick-bar-container"></div>
</div>
</div>
</div>
</section>
</section>
<!-- FOOTER -->
<div id="footer">
<button id="game-status"><h2 id="startButton">Start Game</h2></button>
<button id="sound-status">
<img src="./images/game-board/sound-48.png" />
</button>
<button id="screen-status">
<img src="./images/game-board/fullscreen.png" />
</button>
</div>
<script src="./js/attack.js"></script>
<script src="./js/skill.js"></script>
<script src="./js/health.js"></script>
<script src="./js/terrain.js"></script>
<script src="./js/player.js"></script>
<script src="./js/Enemy.js"></script>
<script src="./js/map.js"></script>
<script src="./js/game.js"></script>
<script src="./js/main.js"></script>
</body>
</html>