-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
143 lines (140 loc) · 6.7 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
<!DOCTYPE html>
<html translate="no" lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>El pollo loco</title>
<link rel="stylesheet" href="./style.css">
<link rel="icon" type="image/x-icon" href="img/12_icons/favicon_chicken.png">
<script src="./models/drawable-object.class.js"></script>
<script src="./models/movable-object.class.js"></script>
<script src="./models/character.class.js"></script>
<script src="./models/chicken.class.js"></script>
<script src="./models/cloud.class.js"></script>
<script src="./models/status-bar.class.js"></script>
<script src="./models/coin.class.js"></script>
<script src="./models/bottles.class.js"></script>
<script src="./models/endboss-healthbar.class.js"></script>
<script src="./models/coin-bar.class.js"></script>
<script src="./models/bottle-bar.class.js"></script>
<script src="./models/world.class.js"></script>
<script src="./models/background-object.class.js"></script>
<script src="./models/keyboard.class.js"></script>
<script src="./models/level.class.js"></script>
<script src="./models/throwable-object.class.js"></script>
<script src="./models/endboss.class.js"></script>
<script src="./levels/level1.js"></script>
<script src="./js/audio.js"></script>
<script src="./js/game.js"></script>
<script src="./js/eventListeners.js"></script>
</head>
<body>
<div class="rotate-container">
<div class="rotate">
Please,
<img src="./img/12_icons/ROTATE_icon.png" alt="">
rotate your device
</div>
</div>
<div class="title">
<h1>El Pollo Loco</h1>
</div>
<div id="canvas-container" class="canvas-container">
<div id="startScreen" class="start-screen" style="display:flex">
<div id="menu" class="menu">
<button class="button-99" onclick="init()">Play</button>
<button class="button-99" onclick="openControls()">Controls</button>
<button class="button-99" onclick="openStory()">Story</button>
<button class="button-99" onclick="openSettings()">Settings</button>
</div>
</div>
<div id="ig-menu" class="ingame-menu">
<img id="sound-icon" onclick="toggleSoundAndImage()" class="ig-btn" src="./img/12_icons/SOUND_ON_icon.png">
</div>
<div id="settingsScreen" class="settings-screen" style="display:none">
<div class="button-container">
<button class="button-99" onclick="closeSettings()">Back</button>
</div>
<div class="fs-centered">
<div class="screen-title">
<h2>Settings</h2>
</div>
<div id="settings" class="settings">
<button class="button-99 fullscreen-toggle" onclick="toggleFullScreen()">Fullscreen On</button>
<button id="music-toggle-button" class="button-99" onclick="toggleSoundAndImage()">Sound
On</button>
</div>
</div>
</div>
<div id="controlsScreen" class="controls-screen">
<div class="button-container">
<button class="button-99" onclick="closeControls()">Back</button>
</div>
<div class="fs-centered">
<div class="screen-title">
<h2>Controls</h2>
</div>
<div class="controls">
<div class="controls-container">
<div class="box jc-center">
<img src="./img/12_icons/LEFT_icon.png" alt="Left Icon">
<img src="./img/12_icons/RIGHT_icon.png" alt="Right Icon">
</div>
<div class="box jc-center">
<img src="./img/12_icons/SPACE_icon.png" alt="Space Icon">
</div>
<div class="box jc-center">
<img src="./img/12_icons/D_icon.png" alt="D Icon">
</div>
</div>
<div class="controls-container">
<div class="box jc-left">
<span>Use LEFT AND RIGHT Arrow Keys to move left or right</span>
</div>
<div class="box jc-left">
<span>Press <b>SPACE</b> to jump</span>
</div>
<div class="box jc-left">
<span>Press <b>D</b> to throw bottles at enemies</span>
</div>
</div>
</div>
</div>
</div>
<div id="storyScreen" class="story-container" style="display:none">
<div class="button-container">
<button class="button-99" onclick="closeStory()">Back</button>
</div>
<div class="fs-centered">
<div class="screen-title">
<h2>The Legend of Pepe</h2>
</div>
<div class="story">
<p>Pepe, a courageous Mexican villager, resides in a peaceful little village that finds itself
unexpectedly threatened by a flock of wild chickens. Known for his agility and bravery, Pepe
bravely
accepts the challenge to protect his village. With a calm resolve and a dash of heroism, he
faces
the feathered foes, aiming to bring back peace and order to the place he calls home.</p>
</div>
</div>
</div>
<div id="endScreen" class="end-screen" style="display:none">
<button class="button-99" onclick="returnToMenu()">Back to Menu</button>
</div>
<div id="content" class="content" style="display:none">
<canvas width="720" height="480" id="canvas"></canvas>
</div>
<div class="mobile-button-container">
<div class="m-btn-image-container m-left">
<img id="mobile-left" class="m-btn-img" src="./img/12_icons/MOBILE_LEFT_icon.png" alt="Walk Left">
<img id="mobile-right" class="m-btn-img" src="./img/12_icons/MOBILE_RIGHT_icon.png" alt="Walk Right">
</div>
<div class="m-btn-image-container m-right">
<img id="mobile-throw" class="m-btn-img" src="./img/12_icons/MOBILE_THROW_icon.png" alt="Throw">
<img id="mobile-jump" class="m-btn-img" src="./img/12_icons/MOBILE_JUMP_icon.png" alt="Jump">
</div>
</div>
</div>
</body>
</html>