-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
82 lines (81 loc) · 3.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>El Pollo Loco</title>
<link
rel="icon"
type="image/x-icon"
href="./img/3_enemies_chicken/chicken_normal/1_walk/1_w.png"
/>
<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=Permanent+Marker&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css"
/>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div id="gameContainer">
<canvas width="720" height="480" id="canvas"></canvas>
<div class="icon-container">
<i class="bi bi-volume-mute" onclick="playGameSound();"></i>
<i class="bi bi-arrows-fullscreen" onclick="enterFullScreen();"></i>
<i class="bi bi-controller" onclick="renderGameManual();"></i>
</div>
<div class="startscreen-container">
<button onclick="startGame();">Start</button>
<div class="manual-overlay">
<h1>Game manual</h1>
<div>
<i class="bi bi-arrow-left-square"></i>
<p>Move left</p>
</div>
<div>
<i class="bi bi-arrow-right-square"></i>
<p>Move right</p>
</div>
<div>
<i class="bi bi-distribute-vertical"></i>
<p>Jump (Spacebar)</p>
</div>
<div>
<p style="padding-left: 7px; font-weight: bold">E</p>
<p>Throw Bottle</p>
</div>
<p style="color: #FFD101; margin-top: 2rem;">Alert! Be aware that you need three to four bottles hits to kill the endboss</p>
</div>
<p id="closeOverlay" onclick="closeGameManual();">X</p>
</div>
<div class="endscreen-container" id="endscreen">
<img src="img/9_intro_outro_screens/game_over/game over!.png">
<button onclick="newGame()">New Game</button>
</div>
</div>
<h2 class="flip-screen-alert">Please rotate your phone by 90°<i class="bi bi-phone"></i></h2>
<script src="classes/world.class.js"></script>
<script src="classes/statusbar.class.js"></script>
<script src="classes/healthbar.class.js"></script>
<script src="classes/bottlebar.class.js"></script>
<script src="classes/coinbar.class.js"></script>
<script src="classes/background.class.js"></script>
<script src="classes/movableObject.class.js"></script>
<script src="classes/character.class.js"></script>
<script src="classes/chicken.class.js"></script>
<script src="classes/endboss.class.js"></script>
<script src="classes/cloud.class.js"></script>
<script src="classes/keyboard.class.js"></script>
<script src="classes/bottle.class.js"></script>
<script src="classes/collectableObject.class.js"></script>
<script src="classes/coin.class.js"></script>
<script src="classes/collectableBottle.class.js"></script>
<script src="js/game.js"></script>
</body>
</html>