generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
279 lines (255 loc) · 13.6 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<!-- Metas -->
<meta name="description" content="A side-scrolling game with the character Tux, the Linux mascot"/>
<meta name="keywords" content="Tux, penguin, game, side-scroll, side, scroll, side-scroller, shoot, snowman"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="canonical" href="https://abibubble.github.io/icecapades/"/>
<meta name="robots" content="index, follow" />
<title>Icecapades</title>
<!-- Facebook, LinkedIn, Google -->
<meta property="og:type" content="article" />
<meta property="og:title" content="Icecapades" />
<meta property="og:description" content="A side-scrolling game with the character Tux, the Linux mascot"/>
<meta name="image" property="og:image" content="static/docs/finalpage.png"/>
<meta property="og:image:alt" content="An image of the final site on a range of screen sizes"/>
<meta property="og:url" content="https://abibubble.github.io/icecapades/"/>
<meta property="og:site_name" content="Icecapades" />
<meta name="author" content="1-Bit Short of a Flappy Disc" />
<!-- Twitter -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Icecapades" />
<meta name="twitter:description" content="A side-scrolling game with the character Tux, the Linux mascot"/>
<meta name="twitter:image" content="static/docs/finalpage.png" />
<meta name="twitter:image:alt" content="An image of the final site on a range of screen sizes"/>
<!-- Local stylesheets -->
<link href="static/css/style.css" rel="stylesheet" />
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous"/>
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png"/>
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png"/>
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png"/>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body>
<header>
<div class="header-box">
<div>
<img src="static/header/tux-transparent.png" alt="Tux the Penguin" class="header-character"/>
</div>
<div>
<h1 class="snowtopfont">Icecapades</h1>
</div>
<div>
<img src="static/header/snowman-transparent.png" alt="Snowman" class="header-character" />
</div>
</div>
</header>
<noscript>
<div class="dead-tux"></div>
<p>
Sorry, this game uses JavaScript and you don't seem to have it enabled!
</p>
<div class="dead-tux"></div>
</noscript>
<main>
<canvas id="canvas1"></canvas>
<div id="rotate-message">
<!-- Icon made by "Pixel perfect" "https://www.flaticon.com/authors/pixel-perfect" from "https://www.flaticon.com/" -->
<div id="message-content">
<p>
Please rotate your device or resize the window to landscape
</p>
<img src="static/rotate/rotate.png" alt="Please Rotate Device">
</div>
</div>
<div class="progress-container">
<div class="progress-grid">
<div class="audio-buttons grid-item">
<i class="fas fa-volume-up play-icon" id="play-icon" onclick="toggleAudio()" ></i>
<img class="height audio-button" id="play-button" onclick="toggleAudio()" src="static/background/block_UI_blank.png" alt="A block for the play button"/>
<i class="fas fa-volume-mute pause-icon hide" id="pause-icon" onclick="toggleAudio()"></i>
<img class="height audio-button hide" id="pause-button" onclick="toggleAudio()" src="static/background/block_UI_blank.png" alt="A block for the pause button"/>
<i class="fas fa-info instructions-i" onclick="toggleInstructions()"></i>
<img src="static/background/block_UI_blank.png" alt="A block for instructions" class="height instructions-click" onclick="toggleInstructions()"/>
</div>
<div class="snowball-bar grid-item">
<img class="height progress-icon snowflake-icon" id="snowflake-icon-block" src="static/background/block_UI_snowflake.png" alt="An snowflake on a block"/>
<img class="height snowball-bar-back" id="snowball-bar-back" src="static/background/lifebar_back.png" alt="The back of the snowball bar"/>
<div class="height progress-overlay snowball-bar-div">
<div class="progress-bar-inner" id="snowball-bar"></div>
</div>
</div>
<div class="health-bar grid-item">
<img class="height progress-icon heart-icon" id="heart-icon" src="static/background/block_UI_heart.png" alt="An image of a heart"/>
<img class="height health-bar-back" id="health-bar-back" src="static/background/lifebar_back.png" alt="The back of the health bar"/>
<div class="height progress-overlay health-bar-div">
<div class="progress-bar-inner" id="health-bar"></div>
</div>
</div>
</div>
</div>
<div class="boss-health-container invisible" id="boss-health-container">
<div class="grid-item-boss">
<div id="snowman-name"><span class="snowtopfont">Brian SHADY GRADY</span></div>
<div class="height boss-progress-overlay health-bar-div">
<div class="" id="boss-health-bar"></div>
</div>
</div>
</div>
<div class="score-container">
</div>
<div id="instructions-modal" class="opaque-overlay invisible">
<div id="i-inner" class="modal">
<div class="header">
<h2 class="modal-header">Instructions</h2>
<i class="far fa-times-circle fa-3x close-button" onclick="toggleInstructions()"></i>
</div>
<hr />
<div class="modal-text">
<p class="modal-p">
<strong>Welcome to Icecapades!</strong>
</p>
<p class="modal-p">
You play as Tux, the Linux mascot, in this retro-style side-scrolling game
</p>
<p class="modal-p">
Your job is to help Tux make it home safely, as quickly as possible
</p>
<div class="modal-grid">
<ul>
<li>
Avoid being hurt by enemies on your journey
</li>
<li>Collect fish for extra health</li>
<li>
Collect snowflakes to turn into snowballs
</li>
<li>Throw snowballs at your enemies</li>
</ul>
<ul>
<li>Press Up Arrow / W to Jump</li>
<li>Press Down Arrow / S to Slide</li>
<li>Press Space Bar to Throw Snowballs</li>
<li>The lower your time, the better!</li>
</ul>
</div>
</div>
</div>
</div>
<div id="game-over-modal" class="opaque-overlay invisible">
<div id="game-over-inner" class="modal">
<div class="header">
<h2 class="modal-header">Game Over!</h2>
</div>
<hr />
<div class="modal-text">
<p class="modal-p"><strong>Oh no!</strong></p>
<p class="modal-p">
Tux was too badly hurt to make it home
</p>
<p class="modal-p">Now his friends will be worried</p>
<p class="modal-p">
You don't want them to worry, do you?
</p>
<p class="modal-p">Why don't you try again?</p>
<div class="modal-grid">
<button class="replay game-over-button" onclick="restartGame()">
Of course!
</button>
<button class="replay game-over-button" onclick="restartGame()">
Definitely!
</button>
</div>
<button class="quit-bad text-small" id="quit-bad" onclick="movingQuitButton()" style="bottom: 2px; right: 2px">
I'm a monster, leave Tux to fend for himself
</button>
</div>
</div>
</div>
<div id="win-modal" class="opaque-overlay invisible">
<div id="win-inner" class="modal">
<div class="header">
<h2 class="modal-header">You Win!</h2>
</div>
<hr />
<div class="modal-text">
<p class="modal-p">
<strong>Tux got home safely!</strong>
</p>
<p class="modal-p">
Tux and all his friends are very grateful
</p>
<p class="modal-p">It's a scary world out there!</p>
<p class="modal-p">Thanks for playing</p>
<p class="modal-p">Would you like to play again?</p>
<div class="modal-grid">
<button class="replay" onclick="restartGame()">Definitely!</button>
<button class="quit-good" onclick="location.href='outro.html'" type="button">
Not right now
</button>
</div>
</div>
</div>
</div>
</main>
<footer>
<br/>
<!-- Auto-updating copyright -->
<p class="copyright">
Copyright ©
<span class="snowtopfont">1-Bit Short of a Flappy Disc</span>
<span id="copyright"></span>
</p>
<ul class="team-github-links">
<li>
The <span class="snowtopfont">Icecapades</span> Dev Team:
</li>
<li>
<a href="https://github.com/Abibubble" target="_blank" rel="noopener">Abi</a>
</li>
<li>
<a href="https://github.com/aidant842" target="_blank" rel="noopener">Aidan</a>
</li>
<li>
<a href="https://github.com/alexandergrib" target="_blank" rel="noopener">Alex</a>
</li>
<li>
<a href="https://github.com/DaveyJH" target="_blank" rel="noopener">Dave</a>
</li>
<li>
<a href="https://github.com/manni8436" target="_blank" rel="noopener">Manni</a>
</li>
<li>
<a href="https://github.com/MadStu" target="_blank" rel="noopener">Stu</a>
</li>
</ul>
</footer>
<!-- Local scripts -->
<script src="static/js/events.js"></script>
<script src="static/js/variables.js"></script>
<script src="static/js/canvas-sizing.js"></script>
<script src="static/js/timeConvert.js"></script>
<script src="static/js/level-control.js"></script>
<script src="static/js/handle-background.js"></script>
<script src="static/js/slug.js"></script>
<script src="static/js/shoot-and-health.js"></script>
<script src="static/js/snowballs.js"></script>
<script src="static/js/audio.js"></script>
<script src="static/js/snowman.js"></script>
<script src="static/js/worm.js"></script>
<script src="static/js/tux.js"></script>
<script src="static/js/fish.js"></script>
<script src="static/js/snowflake.js"></script>
<script src="static/js/carrot.js"></script>
<script src="static/js/character-control.js"></script>
<script src="static/js/modals.js"></script>
<script src="static/js/moving-button.js"></script>
<script src="static/js/copyright.js"></script>
<script src="static/js/restart-game.js"></script>
</body>
</html>