-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
422 lines (396 loc) · 19.5 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
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="ext/queryString.js"></script>
<script>
var pageTitle;
pageTitle = '<title>' + document.domain + ': Galapago';
if( QueryString.cheat ) {
pageTitle += ' cheat mode';
}
pageTitle += '</title>';
document.writeln(pageTitle);
</script>
<link rel="stylesheet" href="css/debugConsole.css"/>
<link rel="stylesheet" href="css/global.css"/>
<link rel="stylesheet" href="css/dialogMenu.css"/>
<link rel="stylesheet" href="css/mainMenuScreen.css"/>
<link rel="stylesheet" href="css/map.css"/>
<script>
var sdkApi, galapagoVersion;
galapagoVersion = 'Ver. 2.0.11';
function loadGame(){
//redefine local storage to support cookie fallback
window.store = new Store();
if( typeof jsErrLog !== 'undefined' ) {
jsErrLog.debugMode = false;
jsErrLog.info = "Galapago debugging";
}
if( typeof TGH5 !== 'undefined' ) {
TGH5.Api.init("Galapago", {supportedLanguages: ["en", "ru", "es", "fr", "de"]}, { sdkHome: "../../sdk/" }).done(function (api) {
sdkApi = api;
// SDK successfully initialized
api.preferredLanguage().always(function (language) {
/* Update the UI to use the selected language */
//i18n.init({ lng: 'en' , fallbackLng: 'en'});
});
}).fail(function (error) {
console.log(error);
});
}
i18n.init({ lng: 'en' , fallbackLng: 'en'});
LoadingScreen.init();
}
</script>
<!--script src="js/debugConsole.js"></script-->
<!--script src="ext/profiler.js"></script-->
<!--script src="ext/stacktrace-min-0.4.js"></script-->
</head>
<body onload="loadGame()">
<div id="image-cache"></div>
<div id="debug-console"></div>
<div id="screen-loading" class="canvas-fullscreen" tabindex="0">
<canvas id="layer-progress-bar" style="z-index: 2;"></canvas>
<span id="copyright">I-play is a trademark and trading name of Oberon Media, Inc. and its subsidiaries. © 2008 Oberon Media. All Rights Reserved.<br/>
© 2013 TransGaming Interactive Corp. ALL RIGHTS RESERVED.</span>
</div>
<div id="screen-map" class="canvas-fullscreen" tabindex="1">
<canvas id="layer-map" width="1" height="1" tabindex="2"></canvas>
<div id="lava-animation"></div>
<div id="bombs-animation"></div>
<div id="map-level-info">
<span id="map-level-name"></span>
<img id="map-level-complete-indicator" style="visibility:hidden;"/><div class="difficulty-stars" id="map-difficulty-level-gray"></div>
<div class="difficulty-stars" id="map-difficulty-level-gold"></div>
<span id="map-level-score-label"></span><span id="map-level-score"></span>
</div>
<ul id="map-nav" tabindex="3">
<li><div class="vertical-align-shiv"><div id="button-play-map" class="nav-button"><p>PLAY</p></div></div></li>
<li><div class="vertical-align-shiv"><div id="button-start-map" class="nav-button"><p>START NEXT LEVEL</p></div></div></li>
<li><div class="vertical-align-shiv"><div id="button-reset-map" class="nav-button"><p>RESET MAP</p></div></div></li>
<li><div class="vertical-align-shiv"><div id="button-menu-map" class="nav-button"><p>MENU</p></div></div></li>
<li><div class="vertical-align-shiv"><div id="button-quit-map" class="nav-button"><p>QUIT</p></div></div></li>
</ul>
</div>
<div id="screen-game" class="canvas-fullscreen" tabindex="0">
<canvas id="layer-creature" width="1" height="1" tabindex="1"></canvas>
<div id="div-hilight" style="z-index: 2;"></div>
<div id="current-score"></div>
<div id="level-name"></div>
<div id="power-up-label">PP points:<span id="ppoints"></span><br/><br/>PP timer:<span id="ptime"></span> sec</div>
<div id="div-power-up"></div>
<div id="div-flip-flop-power-up"></div>
<div id="div-fire-power-up"></div>
<div id="div-shuffle-power-up"></div>
<div id="div-fill-power-up"></div>
<div id="div-flip-flop-animation-power-up" tabindex="2"></div>
<div id="div-fire-animation-power-up" tabindex="3"></div>
<div id="div-shuffle-animation-power-up"tabindex="4" ></div>
<div id="div-danger-bar" width="1" height="1"></div>
<div id="div-animation-danger-bar" width="1" height="1"></div>
<canvas id="layer-collection-key" width="1" height="1"></canvas>
<canvas id="layer-bob-cervantes" width="1" height="1"></canvas>
<div id="game-nav-button-menu" class="game-nav-button" tabindex="5"><div id="game-nav-hilight-menu">MENU</div></div>
<div id="game-nav-button-quit" class="game-nav-button" tabindex="6"><div id="game-nav-hilight-quit">QUIT</div></div>
</div>
<div id="div-level-loading"></div>
<div id="screen-main-menu" class="canvas-fullscreen" tabindex="0">
<!-- hidden until after IFA exhibition
div id="button-change-player">
<span id="hello-player">Hello Tim!</span>
<span id="click-here">Click here to change player</span>
</div-->
<div id="button-timed" class="main-menu-mode"></div>
<div id="button-relaxed" class="main-menu-mode"></div>
<table id="main-menu-button-group">
<tr>
<td id="button-how-to-play" class="main-menu-button">How To Play</td>
<td id="button-quit" class="main-menu-button">Quit</td>
<!-- hidden until after IFA exhibition td id="button-top-scores" class="main-menu-button">Top Scores</td-->
</tr>
<!-- hidden until after IFA exhibition
<tr>
<td id="button-set-language" class="main-menu-button">Set Language</td>
<td id="button-quit" class="main-menu-button">Quit</td>
</tr>
-->
</table>
<!--
<ul class="galapago-drop-down">
<li>English</li>
<li>French</li>
<li>German</li>
<li>Russian</li>
<li>Spanish</li>
</ul>
-->
</div>
<div id="dialog-leaderboards" class="overlay2" tabindex="0">
<div class="dialog-title dialog-title-wide" data-i18n="Dialog Leaderboards.Title">Top Scores</div>
<div class="dialog-content">
<!--div class="button-big" data-i18n="Dialog Leaderboards.Timed">Timed</div-->
<table>
<caption class="button-big" data-i18n="Dialog Leaderboards.OptionTimed">Timed</caption>
<thead>
<tr><th>Rank</th><th>Name</th><th>Score</th></tr>
</thead>
<tbody>
<tr><td>1</td><td>Yaely</td><td>45367</td></tr>
<tr><td>2</td><td>Anat</td><td>34897</td></tr>
<tr><td>3</td><td> </td><td> </td></tr>
<tr><td>4</td><td> </td><td> </td></tr>
<tr><td>5</td><td> </td><td> </td></tr>
<tr><td>6</td><td> </td><td> </td></tr>
<tr><td>7</td><td> </td><td> </td></tr>
<tr><td>8</td><td> </td><td> </td></tr>
<tr><td>9</td><td> </td><td> </td></tr>
<tr><td>10</td><td> </td><td> </td></tr>
</tbody>
</table>
<table>
<caption class="button-big" data-i18n="Dialog Leaderboards.OptionRelaxed">Relaxed</caption>
<thead>
<tr><th>Rank</th><th>Name</th><th>Score</th></tr>
</thead>
<tbody>
<tr><td>1</td><td>Yaely</td><td>95367</td></tr>
<tr><td>2</td><td>Anat</td><td>64897</td></tr>
<tr><td>3</td><td> </td><td> </td></tr>
<tr><td>4</td><td> </td><td> </td></tr>
<tr><td>5</td><td> </td><td> </td></tr>
<tr><td>6</td><td> </td><td> </td></tr>
<tr><td>7</td><td> </td><td> </td></tr>
<tr><td>8</td><td> </td><td> </td></tr>
<tr><td>9</td><td> </td><td> </td></tr>
<tr><td>10</td><td> </td><td> </td></tr>
</tbody>
</table>
<ul class="vertical-button-nav">
<li id="dialog-leaderboards-option-close" data-i18n="Dialog Leaderboards.OptionClose" class="button-big button-big-hilight">Back to main menu</li>
</ul>
</div>
<div class="vertical-align-helper"></div><!-- see http://jsfiddle.net/kizu/7Fewx/ -->
</div>
<div id="dialog-quit" class="overlay2" tabindex="1">
<div class="dialog-content">
<span data-i18n="Dialog Quit.Title" style="width: 360px; text-align: center">Your game will be saved, are you sure you want to quit the game?</span>
<ul class="vertical-button-nav">
<li id="option-yes" data-i18n="Dialog Quit.OptionYes" class="button-huge">Yes</li>
<li id="option-no" data-i18n="Dialog Quit.OptionNo" class="button-huge button-huge-hilight">No</li>
</ul>
</div>
<div class="vertical-align-helper"></div><!-- see http://jsfiddle.net/kizu/7Fewx/ -->
</div>
<div id="dialog-game-menu" class="overlay2" tabindex="1">
<div class="dialog-title" data-i18n="Dialog Game Menu.Title">Menu</div>
<div class="dialog-content">
<ul class="vertical-button-nav">
<li id="option-continue-playing" data-i18n="Dialog Game Menu.OptionContinuePlaying" class="button-huge button-huge-hilight">Continue Playing</li>
<li id="option-main-menu" data-i18n="Dialog Game Menu.OptionMainMenu" class="button-huge">To the Main Menu</li>
<li id="option-new-game" data-i18n="Dialog Game Menu.OptionNewGame" class="button-huge">New Game</li>
<li id="option-how-to-play" data-i18n="Dialog Game Menu.OptionHowToPlay" class="button-huge">How to play</li>
Game Tips <li id="option-game-tip" class="button-regular">
<img id="arrow-left" src="" class="game-option-arrow" width="37" height="27">
<span id='gameTipsSelection'>On</span>
<img id="arrow-right" src="" class="game-option-arrow" width="37" height="27">
</li>
</ul>
</div>
<div class="vertical-align-helper"></div><!-- see http://jsfiddle.net/kizu/7Fewx/ -->
</div>
<div id="dialog-time-out" class="overlay2" tabindex="0">
<div class="dialog-title" data-i18n="Dialog Time Out.Title">Out of Time</div>
<div class="dialog-content">
<div data-i18n="Dialog Time Out.BodyText">
<p>Don't despair, Galapago's creatures are rooting for you!</p>
<p>Play at your own pace in relaxed mode</p>
<p>Final Score: <span id="final-score">43200</span></p>
</div>
<ul class="vertical-button-nav">
<li id="option-close" data-i18n="Dialog Time Out.OptionClose" class="button-medium button-medium-hilight">Close</li>
</ul>
</div>
<div class="vertical-align-helper"></div><!-- see http://jsfiddle.net/kizu/7Fewx/ -->
</div>
<div id="dialog-game-over" class="overlay2" tabindex="0">
<div class="dialog-title" data-i18n="Dialog Game Over.Title">Game Over</div>
<div class="dialog-content">
<ul class="vertical-button-nav">
<li id="option-game-over-close" data-i18n="Dialog Game Over.OptionClose" class="button-medium button-medium-hilight">Close</li>
</ul>
</div>
<div class="vertical-align-helper"></div><!-- see http://jsfiddle.net/kizu/7Fewx/ -->
</div>
<div id="dialog-level-won" class="overlay2" tabindex="0">
<div class="dialog-title" data-i18n="Dialog Level Won.Title">Level Won!</div>
<div class="dialog-content">
<span data-i18n="Dialog Level Won.NicelyPlayed">Nicely played,<br/>you are uncovering Galapago's mysteries.</span>
<table id="score-breakdown">
<tr><th>Level</th><td id="level-score"></td></tr>
<tr><th>Bonus Frenzy</th><td id="bonus-frenzy"></td></tr>
<tr><th>Bonus Points</th><td id="bonus-points"></td></tr>
<tr id="row-time-bonus"><th>Time Bonus</th><td id="time-bonus"></td></tr>
<tr><th>Level Score</th><td id="total-level-score"></td></tr>
<tr><th>Score</th><td id="total-score"></td></tr>
</table>
<ul class="vertical-button-nav">
<li id="option-level-won-close" data-i18n="Dialog Level Won.OptionClose" class="button-medium button-medium-hilight">Close</li>
</ul>
</div>
<div class="vertical-align-helper"></div><!-- see http://jsfiddle.net/kizu/7Fewx/ -->
</div>
<div id="dialog-you-won" class="overlay2" tabindex="0">
<div class="dialog-title" data-i18n="Dialog You Won.Title">You Won!</div>
<div class="dialog-content">
<span data-i18n="Dialog You Won.BodyText">
Congratulations!<br/>
You've collected all of Galapago's
magical creatures and freed them forever! Now the island and its
golden treasures belong to you;
explore Galapago whenever you like.<br/>
The creatures of Galapago are forever grateful to you, and will bring
peace and prosperity for the rest of your days.<br/>
Final Score: <span id="total-final-score"></span><br/>
</span>
<ul class="vertical-button-nav">
<li id="option-you-won-close" data-i18n="Dialog Time Out.OptionClose" class="button-medium button-medium-hilight">Close</li>
</ul>
</div>
<div class="vertical-align-helper"></div><!-- see http://jsfiddle.net/kizu/7Fewx/ -->
</div>
<div id="dialog-new-game" class="overlay2" tabindex="0">
<div class="dialog-content">
<span data-i18n="Dialog New Game.BodyText">
Do you want<br/> to start a new game?
</span>
<ul class="vertical-button-nav">
<li id="new-game-option-yes" data-i18n="Dialog New Game.OptionYes" class="button-huge ">Yes</li>
<li id="new-game-option-no" data-i18n="Dialog New Game.OptionNo" class="button-huge button-huge-hilight">No</li>
</ul>
</div>
<div class="vertical-align-helper"></div><!-- see http://jsfiddle.net/kizu/7Fewx/ -->
</div>
<div id="dialog-reset-game" class="overlay2" tabindex="1">
<div class="dialog-title" data-i18n="Dialog Reset Game.Title">Warning!</div>
<div class="dialog-content">
<div data-i18n="Dialog Reset Game.Body Text">
<p>Resetting the map will erase your progress and will start a new game!</p>
<p>Do you wish to reset the map?</p>
</div>
<ul class="vertical-button-nav">
<li id="reset-game-option-no" data-i18n="Dialog Reset Game.No" class="button-medium button-medium-hilight">No</li>
<li id="reset-game-option-yes" data-i18n="Dialog Reset Game.Yes" class="button-medium">Yes</li>
</ul>
</div>
<div class="vertical-align-helper"></div><!-- see http://jsfiddle.net/kizu/7Fewx/ -->
</div>
<div id="bubbleTip" class="bubbleTip">
</div>
<div id="dialog-help" class="overlay2" tabindex="0">
<div class="dialog-title dialog-title-wide" data-i18n="Dialog Help.Title">How to Play</div>
<div class="dialog-content">
<div id="help-text-scroll" data-i18n="Dialog Help.Body Text">
<div id="help-text-scroll-page1">
<p>For Terms & Conditions, Privacy Policy and Support go to www.GameTreeTV.com.</p>
<h4>Object</h4>
<p>Match and collect beautiful island creatures in this unforgettable journey. Watch your collection turn to gold as you travel from beach to jungle to volcano… reach the top before it erupts and win the ultimate treasure! Choose your difficulty and your destiny by selecting your own path around the island — you'll lose yourself in GALAPAGO's addictive gameplay and beautiful settings.</p>
</div>
<div id="help-text-scroll-page2">
<h4>Navigating Galapago</h4>
<p>To play a level just select any tile on the map.</p>
<p>New levels will unlock once you win a level.</p>
<p>Remember that camp fires appear on levels already completed.</p>
<h4>How To Play</h4>
<p>Swap adjacent creatures vertically or horizontally to match them.</p>
</div>
<div id="help-text-scroll-page3">
<h4>Gold Tiles</h4>
<p>You must make matches over the gold tiles in order to complete the board.</p>
<h4>Locked Tile</h4>
<p>These tricky tiles have a creature locked inside. They can't be moved, but you can use them in a match to clear them off the board.</p>
</div>
<div id="help-text-scroll-page4">
<h4>Cocoon Tile</h4>
<p>Cocoon Tiles can't be moved, and can't be matched — but matching three or more tiles adjacent to a Cocoon Tile will wake it up and clear it off your board.</p>
<h4>Winning The Level</h4>
<p>Clear the board of all the items in the collection key at the bottom of the board.</p>
<p>A checkmark indicates that the goal is completed.</p>
<p>The numbers show how many of each is left.</p>
</div>
<div id="help-text-scroll-page5">
<h4>Bonus Frenzy</h4>
<p>When you win a level, some creatures will flee the board — catch them using the arrow keys to charge up your powerups on the next level!</p>
<h4>Flip-flop Powerup</h4>
<p>Make multiple match combos to turn on this powerup!</p>
<p>The Flip-Flop lets you swap two creatures anywhere on the board — they don't need to be adjacent!</p>
</div>
<div id="help-text-scroll-page6">
<h4>Firepower Powerup</h4>
<p>Make multiple match combos to turn on Firepower!</p>
<p>Use Firepower to select a creature anywhere on the board and make it disappear.</p>
<h4>Shuffler Powerup</h4>
<p>Make multiple match combos to turn on the Shuffler!</p>
<p>Use Shuffler to reshuffle all the creatures on the board.</p>
</div>
<div id="help-text-scroll-page7">
<h4>Lightning Critters</h4>
<p>Be on the lookout for the powerful Lightning Critters!</p>
<p>Match three or more Lightning Critters and clear an entire row!</p>
<h4>Super Match Friend</h4>
<p>Use your Super Match Friend to clear all of one creature off the board!</p>
</div>
<div id="help-text-scroll-page8">
<p>I-play is a trademark and trading name of Oberon Media, Inc. and its subsidiaries. © 2008 Oberon Media. All Rights Reserved.</p>
<p>© TransGaming Interactive Corp. ALL RIGHTS RESERVED.</p>
</div>
</div>
<div id="paging">
<div class="dialog-help-arrow-container"><img class="up-down" id="dialog-help-up"/></div>
<div id="pages">Page <span id="current-page"></span> of <span id="page-count"></span></div>
<div class="dialog-help-arrow-container"><img class="up-down" id="dialog-help-down"></div>
</div>
<div id="version"></div>
<div id="close-positioner">
<ul class="vertical-button-nav">
<li id="option-help-close" data-i18n="Dialog Help.Close" class="button-medium button-medium-hilight">Close</li>
</ul>
</div>
</div>
<div class="vertical-align-helper"></div><!-- see http://jsfiddle.net/kizu/7Fewx/ -->
</div>
<script src="ext/lodash.min.js"></script>
<script src="ext/q.min.js"></script>
<!--script src="http://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script-->
<script src="ext/zepto-1.0.min.js"></script>
<script src="ext/zepto-touch-1.0.js"></script>
<script src="ext/gal.js"></script>
<script src="ext/i18next-1.6.3.min.js"></script>
<script src="ext/store.js"></script>
<script src="ext/dialogResourceLoading.js"></script>
<script src="ext/onScreenCache.js"></script>
<script src="ext/imageCollage.js"></script>
<script src="ext/canvasUtil.js"></script>
<script src="ext/audioPlayer.js"></script>
<script src="ext/priorityQueue.js"></script>
<script src="ext/pauseableInterval.js"></script>
<script src="ext/matrixUtil.js"></script>
<script src="ext/util.js"></script>
<script src="js/dialogMenu.js"></script>
<script src="js/game.js"></script>
<script src="js/dialogHelp.js"></script>
<script src="js/mainMenuScreen.js"></script>
<script src="js/score.js"></script>
<script src="js/blobCollection.js"></script>
<script src="js/tilesEventProcessor.js"></script>
<script src="js/mapScreen.js"></script>
<script src="js/levelAnimation.js"></script>
<script src="js/loadingScreen.js"></script>
<script src="js/powerUp.js"></script>
<script src="js/bonusFrenzy.js"></script>
<script src="js/bubbleTip.js"></script>
<script src="../../sdk/tgh5.js"></script>
<!--script src="ext/profiler.js"></script-->
<!--script type="text/javascript" src="http://192.168.40.100:8082/console.io.js"></script-->
</body>
</html>