-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
338 lines (296 loc) · 16.1 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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>IronHarch - IronHack Game Project by manucaralmo</title>
<meta name="description" content="IronHarch is a recreation of the famous Archero game, made entirely in JavaScript, HTML, and CSS for the IronHack Module 1 project.">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<!-- IronHarch CSS -->
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<!-- FAVICON -->
<link rel="apple-touch-icon" sizes="57x57" href="assets/favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="assets/favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="assets/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="assets/favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="assets/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="assets/favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="assets/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="assets/favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="assets/favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="assets/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon/favicon-16x16.png">
<!-- meta tags -->
<meta property="og:title" content="IronHarch - IronHack Game Project by manucaralmo">
<meta property="og:description"
content="IronHarch is a recreation of the famous Archero game, made entirely in JavaScript, HTML, and CSS for the IronHack Module 1 project.">
<meta property="og:image" content="https://manucaralmo.github.io/ironharch/assets/images/portada.jpg">
<meta property="og:url" content="https://manucaralmo.github.io/ironharch/">
<meta property="og:site_name" content="IronHarch">
<meta property="og:locale" content="es_ES">
<meta property="og:type" content="website" />
<meta name="twitter:title" content="IronHarch - IronHack Game Project by manucaralmo">
<meta name="twitter:description"
content="IronHarch is a recreation of the famous Archero game, made entirely in JavaScript, HTML, and CSS for the IronHack Module 1 project.">
<meta name="twitter:image" content="https://manucaralmo.github.io/ironharch/assets/images/portada.jpg">
<meta name="twitter:card" content="website">
<script src="https://cdn.jsdelivr.net/gh/manucaralmo/[email protected]/src/glowCookies.min.js" async></script>
<script>
AnalyticsCode = "G-EWC48F6H8X"; // Your Analytics tracking code (Optional)
bannerPosition = 'right';
bannerBackground = '#1a1a1a';
descriptionColor = "#fff"
manageColor = "#fff"
manageBackground = "#1a1a1a"
border = "none"
btn1Background = "#fff"
btn1Color = "#000"
hideAfterClick = true
</script>
<!-- GITHUB -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
</head>
<body>
<!-- HOME SCREEN -->
<div class="container-fluid pt-5" id="intro">
<div class="row row justify-content-lg-evenly justify-content-sm-between align-items-xl-center h-100">
<div class="col-sm-12 col-lg-4 col-md-5 mb-5 mb-md-0">
<div class="card px-3 py-4">
<div class="card-body p-4 px-md-5">
<img src="assets/images/icons/IronHarch.png" class="pt-3 img-fluid" alt="">
<br><br><br>
<p class="text-custom-light">IronHarch is a recreation of the famous Archero game, made entirely in JavaScript, HTML, and CSS for the IronHack Module 1 project.</p>
<p class="text-custom-light">The game consists of different waves that you must overcome by facing different enemies and final monsters.</p>
<p class="text-custom-light">Shoot the enemies only when you are standing still and kill them all to win the game.</p>
<br><br>
<div id="gameInfo">
<div class="row">
<div class="col">
<h3 class="text-light"><img src="assets/images/icons/coin.png" height="30px" alt="coin"> <span id="coins"></span></p>
</div>
<div class="col">
<h3 class="text-light"><img src="assets/images/icons/best.png" height="30px" alt="coin"> <span id="best"></span></p>
</div>
</div>
</div>
</div>
</div>
<div class="card mt-3">
<div class="card-body px-3">
<p class="text-light p-0 m-0">
<a class="github-button" href="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/manucaralmo/ironhack-game-project" data-color-scheme="no-preference: dark; light: light; dark: dark;" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star manucaralmo/ironhack-game-project on GitHub">Star</a>
<a class="github-button" href="/manucaralmo/ironhack-game-project/subscription" data-color-scheme="no-preference: dark; light: light; dark: dark;" data-icon="octicon-eye" data-size="large" data-show-count="true" aria-label="Watch manucaralmo/ironhack-game-project on GitHub">Watch</a>
<a class="github-button" href="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/manucaralmo" data-color-scheme="no-preference: dark; light: light; dark: dark;" data-size="large" data-show-count="true" aria-label="Follow @manucaralmo on GitHub">Follow @manucaralmo</a>
</p>
</div>
</div>
</div>
<div class="col-sm-12 col-lg-6 col-md-7">
<div id="nameInput" class="pb-4">
<h2 class="text-light font-weight-bold mb-4">Introduce tu nombre</h2>
<input class="form-control form-control-lg" id="playerName" type="text" placeholder="Nombre del jugador">
</div>
<div id="nameSet" class="pb-4">
<h2 class="text-light font-weight-bold">Welcome back <span id="playerNamePrint"></span></h2>
<p class="text-custom-light">I hope you are enjoying the IronHarch experience.
If you like the game, I invite you to leave me a star in my <a class="text-light" target="_blank" href="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/manucaralmo/ironhack-game-project">GitHub</a> project.</p>
</div>
<h4 class="text-light font-weight-bold mb-4">Choose Player</h4>
<div class="row">
<div class="col-6 col-md-4">
<div id="player1select" class="card text-light py-2 px-3 backgroundSelectBtn">
<div class="row align-items-center">
<div class="col-3">
<img src="assets/images/player/player-1-preview.png" width="35px" alt="">
</div>
<div class="col-9">
Classic Archer
</div>
</div>
</div>
</div>
<div class="col-6 col-md-4">
<div id="player2select" class="card text-light py-2 px-3 backgroundSelectBtn opacity-img">
<div class="row align-items-center">
<div class="col-3">
<img src="assets/images/player/player-2-preview.png" width="35px" alt="">
</div>
<div class="col-9">
IronHarcher
</div>
</div>
</div>
</div>
</div><br><br>
<h4 class="text-light font-weight-bold">Choose Scenario</h4>
<br>
<div class="row">
<div class="col-4">
<img src="assets/images/backgrounds/1.png" id="map-1" class="img-fluid backgroundSelectBtn">
</div>
<div class="col-4">
<img src="assets/images/backgrounds/2-blocked.png" id="map-2"
class="img-fluid opacity-img backgroundSelectBtn">
</div>
<div class="col-4">
<img src="assets/images/backgrounds/3-blocked.png" id="map-3"
class="img-fluid opacity-img backgroundSelectBtn">
</div>
</div>
<br>
<img src="assets/images/buttons/comenzar.png" id="openCanvas" class="game-btn">
</div>
</div>
</div>
<!-- GAME CANVAS SCREEN -->
<main id="mainGame" class="py-md-5">
<div class="container">
<div class="row align-items-center justify-content-center">
<div class="col-sm-6 d-none d-lg-block text-center">
<img src="assets/images/screens/instrucciones.png" id="instrucciones" alt="">
<br><br>
<img src="assets/images/buttons/home.png" onclick="window.location.reload()" class="game-btn-animation"
height="50px" alt="">
<img src="assets/images/buttons/music.png" id="soundBtn" class="game-btn-animation" height="50px" alt="">
</div>
<div class="col-sm-6 px-0">
<div id="GameBoard">
<div id="canvasBoard">
<canvas id="ironHarchCanvas" style='width:400px; height:700px;'></canvas>
<button class="btn btn-dark btn-sm" id="pauseGame"><i class="fas fa-pause"></i></button>
<button class="btn btn-dark btn-sm" id="restartGame"><i class="fas fa-play"></i></button>
</div>
<div id="homeScreen">
<a href="#" id="startGame">
<img src="assets/images/buttons/btn-play.png" class="game-btn" alt="">
</a>
<img src="assets/images/hero.png" class="hero-img" alt="">
</div>
<div id="resumeScreen" class="w-100 mx-auto text-center boardScreen">
<div class="row h-100 w-100 align-items-center justify-content-center" style="--bs-gutter-x: 0;">
<div class="col px-0 mx-0">
<a href="#" class="" id="resumeGame">
<img src="assets/images/buttons/btn-resume.png" class="game-btn" alt="">
</a>
<br><br><br><br><br><br>
</div>
</div>
</div>
<div id="selectAdvantage" class="w-100 mx-auto text-center boardScreen">
<div class="row h-100 w-100 align-items-center justify-content-center" style="--bs-gutter-x: 0;">
<div class="col px-0 mx-0">
<img src="assets/images/icons/level-up.png" height="120px" alt="">
<br><br>
<img src="assets/images/icons/habilidad.png" height="55px" alt="">
<br><br><br>
<a href="#" class="noStyle advantageSelect" data-power="">
<img src="" id='advantaje0' class="game-advantage game-btn-animation" alt="">
</a>
<a href="#" class="noStyle advantageSelect" data-power="">
<img src="" id='advantaje1' class="game-advantage game-btn-animation" alt="">
</a>
<a href="#" class="noStyle advantageSelect" data-power="">
<img src="" id='advantaje2' class="game-btn-animation" height="85px" alt="">
</a>
<br><br><br><br><br><br>
</div>
</div>
</div>
<div id="loseScreen" class="w-100 mx-auto text-center boardScreen">
<div class="row h-100 w-100 align-items-center justify-content-center" style="--bs-gutter-x: 0;">
<div class="col px-0 mx-0">
<img src="assets/images/screens/lose-img.png" width="95%" alt="">
<h1 id="levelToScreenLose" class="level-to-show-lose text-light"></h1>
</div>
</div>
</div>
<div id="winScreen" class="w-100 mx-auto text-center boardScreen">
<div class="row h-100 w-100 align-items-center justify-content-center" style="--bs-gutter-x: 0;">
<div class="col px-0 mx-0">
<img src="assets/images/screens/win-img.png" width="95%" alt="">
<h1 id="levelToScreenWin" class="level-to-show text-light"></h1>
</div>
</div>
</div>
<div id="newBestScreen" class="w-100 mx-auto text-center boardScreen">
<div class="row h-100 w-100 align-items-center justify-content-center" style="--bs-gutter-x: 0;">
<div class="col px-0 mx-0">
<div class="position-relative">
<img src="assets/images/screens/newbest-img.png" width="95%" alt="">
<h1 id="levelToScreen" class="level-to-show text-light"></h1>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- SHOP -->
<!-- Modal background 2 -->
<div class="modal fade" id="theCapital" tabindex="-1" aria-labelledby="theCapitalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body text-center rounded py-5 px-4">
<img src="assets/images/backgrounds/2.png" height="250px">
<br>
<h2 class="text-light">The Capital</h2>
<p class="text-light">An ancient castle in catastrophic ruins. Today it is inhabited by wandering ghosts.
</p>
<br>
<img src="assets/images/buttons/back-btn.png" data-bs-dismiss="modal" aria-label="Close" class="game-btn"
alt="">
<img src="assets/images/buttons/50-btn.png" id="buy-background2" class="game-btn" alt="">
</div>
</div>
</div>
</div>
<!-- Modal background 3 -->
<div class="modal fade" id="castilloPerdido" tabindex="-1" aria-labelledby="castilloPerdidoLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body text-center rounded py-5 px-4">
<img src="assets/images/backgrounds/3.png" height="250px">
<br>
<h2 class="text-light">Castillo Perdido</h2>
<p class="text-light">A castle over a thousand years old. Many unknown creatures nest inside</p>
<br>
<img src="assets/images/buttons/back-btn.png" data-bs-dismiss="modal" aria-label="Close" class="game-btn"
alt="">
<img src="assets/images/buttons/150-btn.png" id="buy-background3" class="game-btn" alt="">
</div>
</div>
</div>
</div>
<!-- PRELOADER -->
<div class="i-preloader text-center m-0 p-0">
<img src="assets/images/icons/IronHarch.png" height="70px" class="img-preloader" alt="Logo preloader">
</div>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous">
</script>
<!-- IronHarch JS -->
<script src="assets/js/levels.js"></script>
<script src="assets/js/constants.js"></script>
<script src="assets/js/models/background.js"></script>
<script src="assets/js/models/obstacles.js"></script>
<script src="assets/js/models/bullet.js"></script>
<script src="assets/js/models/coin.js"></script>
<script src="assets/js/models/gift.js"></script>
<script src="assets/js/models/enemyBullet.js"></script>
<script src="assets/js/models/enemy.js"></script>
<script src="assets/js/models/player.js"></script>
<script src="assets/js/models/game.js"></script>
<script src="assets/js/models/topBar.js"></script>
<script src="assets/js/index.js"></script>
</body>
</html>