-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
310 lines (285 loc) · 9.94 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
<!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>Gensokyo</title>
<link rel="stylesheet" href="style.css">
<script defer src="./sound.js"></script>
<script defer src="./menu.js"></script>
<script defer src="./main.js"></script>
</head>
<body>
<div class="scoreCounter">
<span>Score: </span><span id="scoreNum">0</span>
</div>
<div class="menu">
<div class="menu-shadow"></div>
<div class="title-section">
<div class="title-btn" onclick="uiGMSelect(1, false)">
<p>
Start Game
</p>
</div>
<div class="title-btn" onclick="uiGamemodeUI()">
<p>
Gamemodes
</p>
</div>
<div class="title-btn" onclick="uiManualUI()">
<p>
How to Play
</p>
</div>
<div class="title-btn" onclick="uiSettingUI()">
<p>
Settings
</p>
</div>
<div class="title-btn" onclick="uiCreditUI()">
<p>
Credits
</p>
</div>
</div>
<div class="difficulty-section">
<p>
Please select a difficulty
</p>
<div class="flex">
<div class="difficulty-selector" onclick="uiDiffSelect(1)">
<p>
Easy
</p>
</div>
<div class="difficulty-selector" onclick="uiDiffSelect(2)">
<p>
Normal
</p>
</div>
<div class="difficulty-selector" onclick="uiDiffSelect(3)">
<p>
Hard
</p>
</div>
<div class="difficulty-selector" onclick="uiDiffSelect(4)">
<p>
Lunatic
</p>
</div>
</div>
<div class="difficulty-cancel" onclick="uiBackToTitle()">
Back to Title
</div>
</div>
<div class="gamemode-section">
<h1>
Select a Gamemode
</h1>
<div class="gamemode-line"></div>
<p>
Custom Gamemodes
</p>
<div class="gamemode-flex">
<div class="gamemode-selector" onclick="uiGMSelect(2, false)">
<p>
Graze
</p>
</div>
<div class="gamemode-selector" onclick="uiGMSelect(3, false)">
<p>
Randomizer
</p>
</div>
<div class="gamemode-selector" onclick="uiGMSelect(4, false)">
<p>
Touhou
</p>
</div>
</div>
<div class="gamemode-flex">
<div class="gamemode-selector" onclick="uiGMSelect(2, true)">
<p>
Graze-Pratice
</p>
</div>
<div class="gamemode-selector" onclick="uiGMSelect(3, true)">
<p>
Randomizer-Pratice
</p>
</div>
<div class="gamemode-selector" onclick="uiGMSelect(4, true)">
<p>
Touhou-Pratice
</p>
</div>
</div>
<div class="gamemode-line"></div>
<p>
Base Gamemode with no Death
</p>
<div class="gamemode-flex">
<div class="gamemode-selector" onclick="uiGMSelect(1, true)">
<p>
Normal-Pratice
</p>
</div>
</div>
<div class="gamemode-cancel" onclick="uiBackToTitle()">
Close
</div>
</div>
<div class="manual-section">
<h1>
How To Play:
</h1>
<div class="manual-display">
<div class="manual-container">
<img src="./manual-img-1.jpg">
<img src="./manual-img-2.jpg">
<img src="./manual-img-3.jpg">
</div>
</div>
<div class="flex">
<div class="manual-btn" onclick="uiManualDisplay(-1)">
<
</div>
<div class="manual-btn" onclick="uiManualDisplay(1)">
>
</div>
</div>
<div class="manual-cancel" onclick="uiBackToTitle()">
Close
</div>
</div>
<div class="setting-section">
<div class="setting-nav">
<div class="setting-nav-item setting-nav-active" id="settingNavGraphics" onclick="uiSettingNav(1)">
Graphics&Game
</div>
<div class="setting-nav-item" id="settingNavControls" onclick="uiSettingNav(2)">
Controls
</div>
</div>
<!-- Graphics -->
<div class="setting-container" id="settingNav1">
<div class="setting-option">
<label for="gameRule_particles">Disable Particles:</label>
<input type="checkbox" onclick="uiSettingOpt_Particles()" id="gameRule_particles">
</div>
<hr>
<div class="setting-option">
<label for="opt2">TEST</label>
<input type="checkbox" onclick="playAudioYes()" id="opt2">
</div>
<hr>
<div class="setting-option">
<label for="gameRule_BGM">Mute Music</label>
<input type="checkbox" onclick="uiSettingOpt_Music()" id="gameRule_BGM">
</div>
<div class="setting-option">
<label for="gameRule_SFX">Mute Sound</label>
<input type="checkbox" onclick="uiSettingOpt_SFX()" id="gameRule_SFX">
</div>
<hr>
<div class="setting-option">
<label>SFX Volume</label>
<input type="range" onclick="uiSettingOpt_SFX_Vol()" id="gameRule_SFX_Vol">
<span id="settingOpt_SFX_Vol">X%</span>
</div>
<div class="setting-option">
<label>Music Volume</label>
<input type="range" onclick="uiSettingOpt_Music_Vol()" id="gameRule_BGM_Vol">
<span id="settingOpt_BGM_Vol">X%</span>
</div>
</div>
<!-- Controls -->
<div class="setting-container" id="settingNav2">
<div class="setting-option2">
<label>Move Left:</label>
<span id="" onclick="">X</span>
</div>
<div class="setting-option2">
<label>Move Down:</label>
<span id="" onclick="">X</span>
</div>
<div class="setting-option2">
<label>Move Right:</label>
<span id="" onclick="">X</span>
</div>
<div class="setting-option2">
<label>Move Up:</label>
<span id="" onclick="">X</span>
</div>
<hr>
<div class="setting-option2">
<label>Shoot:</label>
<span id="" onclick="">X</span>
</div>
<div class="setting-option2">
<label>Alt. Shoot:</label>
<span id="" onclick="">X</span>
</div>
</div>
<div class="setting-nav2">
<div onclick="uiSettingClose()">
Close
</div>
<div onclick="uiSettingSave()">
Save
</div>
<div onclick="uiSettingApply()">
Apply
</div>
</div>
</div>
<div class="credit-section">
<h1>
Credits!
</h1>
<div class="credit-line"></div>
<p>
Music: <span>...</span>
</p>
<p>
SFX: <span>Team Shanghai Alice - Touhou Koumakyou: The Embodiment of Scarlet Devil</span>
</p>
<p>
Sprite Art: <span>Team Shanghai Alice - Touhou Seirensen: Undefined Fantastic Object</span>
</p>
<p>
Sprite Art: <span>Team Shanghai Alice - Touhou Tenkuushou: Hidden Star in Four Seasons</span>
</p>
<p>
Art: <span>YunruKnowledge - Github.com/YunruKnowledge</span>
</p>
<div class="credit-cancel" onclick="uiBackToTitle()">
Close
</div>
</div>
</div>
<div class="death-section">
<div class="death-container">
<h2>
You've earned a total of:
</h2>
<p id="scoreEndNum">
0
</p>
<p>
Points
</p>
</div>
<div class="flex">
<div class="death-btn" onclick="uiGameToTitle()">
Back to Title
</div>
<div class="death-btn" onclick="uiRestartGame()">
Restart
</div>
</div>
</div>
<canvas></canvas>
</body>
</html>