forked from IRONKLADD/rakushki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
371 lines (357 loc) · 12.4 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
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
<!DOCTYPE html>
<html><head>
<title>Rakushki</title>
<meta name="viewport"
content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width, height=device-height" />
<meta charset="utf-8">
<link href="game.css" rel="stylesheet" />
</head><body class="">
<script src="libs/CutJS/dist/cut.web.js"></script>
<script src="index.js"></script>
<div id="game" class="hide">
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width, height=device-height" />
<canvas id="cutjs"></canvas>
<audio autoplay="autoplay" id="bgmusic">
<source src=""
type="audio/mp3"/>
</audio>
<script src="src/gameTypes/Shariki/Constants.js"></script>
<script src="src/gameTypes/Bombi/Constants.js"></script>
<script src="src/resources/basic-texture.js"></script>
<script src="src/resources/dice5.js"></script>
<script src="src/core/Sprites.js"></script>
<script src="src/core/Board.js"></script>
<script src="src/core/Configuration.js"></script>
<script src="src/core/Player.js"></script>
<script src="src/core/Shell.js"></script>
<script src="src/core/Util.js"></script>
<script src="src/core/Display.js"></script>
<script src="src/gameTypes/Shariki/GameType.js"></script>
<script src="src/gameTypes/Bombi/GameType.js"></script>
<script src="src/gameTypes/Bombi/Bomb.js"></script>
<script src="src/core/Main.js"></script>
<div class="meta">
<div class="inner">
<div id="menuButton">
<a href="#"
onclick="showPauseMenu()"
title="Pause Menu"
id="pauseMenuButton">
<img src="img/menu.png"/>
</a>
</div>
<div id="muteButton">
<a onclick="unmuteAudio()"
title="Unmute"
class="hide"
id="unmute">
<img alt="unmute" src="img/muted.png"/>
</a>
<a onclick="muteAudio()"
title="Mute"
id="mute">
<img alt="mute" src="img/unmuted.png"/>
</a>
</div>
<div id="feedbackButton">
<a href="http://goo.gl/forms/4U3dFCYGfn"id=feedback>
<img src="img/feedback.png"/>
</a>
</div>
<div id="fullscreen">
<a onclick="restoreCanvas()"
title="Restore"
class="hide"
id="restore">
<img alt="Restore" src="img/restore.png" />
</a>
<a onclick="maximizeCanvas()"
title="Maximize"
class="hide"
id="maximize">
<img alt="Maximize" src="img/maximize.png" />
</a>
</div>
<div id="help">
<a id="infoButton" href="#" onclick="showInfo()">
<img alt="Help" src="img/help.png" />
</a>
</div>
<div id="scoreBox">
Score <span id="score">0</span>
</div>
</div>
</div>
</div>
<div id="mainMenu">
<div class="center">
Select game type
<p>
<div class=button id=imageButton>
<a href="#"
onclick="rakushki.startSharikiGame(); rakushki.setLastGameShariki(); showGame()"
title="Shariki"
id="sharikiButton">
<img src=img/shariki.png>
</a>
</div>
<div class=button id=imageButton>
<a href="#"
onclick="rakushki.startBombiGame(); rakushki.setLastGameBombi(); showGame()"
title="Bombi"
id="bombiButton">
<img src=img/bombi.png>
</a>
</div>
<p>
<div class=button id=imageButton>
<a href="#"
onclick="showSettings()"
title="Settings"
id="settingsButton">
<img src=https://cdn3.iconfinder.com/data/icons/unicons-vector-icons-pack/32/settings-512.png>
</a>
</div>
</div>
</div>
<div id="settingsMenu">
<div class="center">
<!-- selected="true" -->
Width:
<select id="widthSelect">
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
</select>
Height:
<select id="heightSelect">
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
</select>
Turns:
<select id="turnsSelect" form="settingsForm">
<option value="100">100</option>
<option value="150">150</option>
<option value="200">200</option>
<option value="250">250</option>
<option value="300">300</option>
<option value="350">350</option>
<option value="400">400</option>
<option value="450">450</option>
<option value="500">500</option>
<option value="550">550</option>
<option value="600">600</option>
<option value="650">650</option>
<option value="700">700</option>
<option value="750">750</option>
<option value="800">800</option>
<option value="850">850</option>
<option value="900">900</option>
<option value="950">950</option>
<option value="1000">1000</option>
</select>
<br/>
<!-- checked="true" -->
<label class="redCheckBox">
<input type="checkbox" id="color_red" value="red" style="background-color: red">Red
</label>
<label class="blueCheckBox">
<input type="checkbox" id="color_blue" value="blue">Blue
</label>
<label class="yellowCheckBox">
<input type="checkbox" id="color_yellow" value="yellow">Yellow
</label>
<label class="greenCheckBox">
<input type="checkbox" id="color_green" value="green">Green
</label>
<label class="orangeCheckBox">
<input type="checkbox" id="color_orange" value="orange">Orange
</label>
<label class="darkCheckBox">
<input type="checkbox" id="color_dark" value="dark">Dark
</label>
<br/>
<label class="acceptButton">
<div class=button id=slimButton>
<a href="#"
onclick="saveSettings(); showMainMenu()"
title="Accept"
id="acceptSettingsButton">
Accept
</a>
</div>
</label>
<label class="cancelButton">
<div class=button id=slimButton>
<a href="#"
onclick="showMainMenu()"
title="Cancel"
id="cancelSettingsButton">
Cancel
</a>
</div>
</label>
</div>
</div>
<div id="pauseMenu" class="hide">
<div class="center">
<div class=button id=slimButton>
<a href="#"
onclick="showGame()"
title="Resume"
id="resume">
Resume
</a>
</div>
<p>
<div class=button id=slimButton>
<a href="#"
onclick="rakushki.restartGame(); showGame()"
title="Restart"
id="restart">
Restart
</a>
</div>
<p>
<div class=button id=slimButton>
<a href="#"
onclick="newGame()"
title="Quit"
id="quit">
Quit
</a>
</div>
</div>
</div>
<div id="info" class="hide">
<div class="center">
<div class="brand">
<a href="https://ironkladd.github.io/">IRONKLADD</a>
</div>
</div>
<div class="header">
<div class="center">
<div class="inner">
<a href="#"
onclick="rakushki.startGame()"
title="Start Game"
id="start">
</a>
<a class="play"
onclick="showGame()"
title="Play Rakushki"
id="play">
<img alt="Play"
src="img/play.png"/>
</a>
<a class="logo"
onclick="showGame()"
title="Play Rakushki">
<img src="logo.png">
</a>
<div class="title">Rakushki</div>
<div class="tagline">"The Shells"</div>
<div style="clear: both;"></div>
</div>
</div>
</div>
<div class="content">
<div class="center">
<div class="inner">
<div class="spacer"></div>
<div class="right-panel">
<div class="quotes">
</div>
</div>
<div class="section">
<h3>How to play</h3>
This game contains two game modes. In both, the goal of the game
is to swap shells in order to make matches and score points.
Click on two adjacent shells, or drag from one to the other, in
order to make a swap.
<h4>Shariki</h4>
Russian for "Balloons", Shariki is the original "match-three"
puzzle game.
<br/>
Make a row or column of 3+ shells to clear them and score points.
<br/>
Each swap <i>must</i> make a match, or it is not allowed.
<h4>Bombi</h4>
Russian for "Bombs", Bombi is a new puzzle game.
<br/>
Arrange shells of the same color into a 2x2 square in order to
create a bomb.
<br/>
When the bomb's timer reaches zero, it will destroy nearby shells
of the same color, and bombs of any color.
<br/>
The numbers on each shell signify two things:
<ul>
<li>
A bomb's timer is the sum of the numbers on the shells that
created it.
</li>
<li>
A bomb's blast radius is the lowest number on the shells that
created it.
</li>
</ul>
Any two shells may be swapped.
<br/>
Click on a bomb to see its blast radius.
</div>
<div class="section">
<h3>Credits</h3>
Rakushki was created by the Oswego CSC380 team, IRONKLADD.
KLADD is an abbreviation for the team's members:
<b>K</b>enny Roffo,
Hsueh Kuan <b>L</b>u,
<b>A</b>lexander Jansing,
<b>D</b>ean Tupper, and
<b>D</b>aniel Wysocki.
<p>
The game logo was contributed by Brandon Caruso.
<p>
The game was written in JavaScript using
<a href="http://piqnt.com/stage.js/">StageJS</a>
as the graphics engine.
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// load_ga=0;load_fonts=0;load_social=0;load_comments=0;
startUi('game');
</script>
</body></html>