Add files using upload-large-folder tool
Browse filesFiles changed (20)
- filestorage/gd/bacon-may-d-ie/index.htmlAdded+339
- filestorage/gd/bacon-may-d-ie/poki-sdk-core-v2.263.0.jsAdded
- filestorage/gd/bacon-may-d-ie/poki-sdk.jsAdded+85
- filestorage/gd/calnite-once-upon-an-isekai/index.htmlAdded+222
- filestorage/gd/calnite-once-upon-an-isekai/renpy-pre.jsAdded+976
- filestorage/gd/calnite-once-upon-an-isekai/renpy.jsAdded
- filestorage/gd/cosmicadventuresquad-deepest-sword/index.htmlAdded+83
- filestorage/gd/darkpetal16-if-horrortale/index.htmlAdded
- filestorage/gd/deltatraveler/index.htmlAdded+136
- filestorage/gd/echo-web/manifest.jsonAdded+1
- filestorage/gd/echo-web/pwa_catalog.jsonAdded+1
- filestorage/gd/echo-web/renpy-pre.jsAdded+983
- filestorage/gd/echo-web/service-worker.jsAdded+92
- filestorage/gd/krajzeg-slipways/index.htmlAdded+240
- filestorage/gd/krajzeg-slipways/slipways.jsAdded
- filestorage/gd/krajzeg-slipways/zepto.min.jsAdded+2
- filestorage/gd/pong/aAdded+1
- filestorage/gd/pong/cover.svgAdded
- filestorage/gd/pong/index.htmlAdded
- filestorage/gd/twerk-race-3d/index.htmlAdded+697
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339<!DOCTYPE html><html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="pragma" content="no-cache"/> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name ="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <meta charset="utf-8"/>
<title>IXL - Dashboard</title> <script src="//game-cdn.poki.com/scripts/v2/poki-sdk.js"></script> <script> document.addEventListener('touchstart', e => { e.preventDefault(); }, {passive: false}) </script> <script>var adsAreDisabled = true;</script> <script src="html5game/prebid/ads.js"></script> <style> html { height: 100%; width: 100%; } body { background: #f3c2b5; color:#cccccc; margin: 0px; padding: 0px; border: 0px; overflow:hidden; width: 100%; height:100%; background-color:#191923; } #background { position:absolute; width:100%; background-color:#191A25; background-image: url('html5game/bg.webp'); background-repeat: repeat-x; background-position: center 0; background-size: auto 100%; z-index:0; } #bar { position:fixed; height:58%; width:20px; top:0; left:0; right:0; margin:0 auto; padding:4px; background:#191923; background-color:rgba(25, 25, 35, 0.9); z-index:-9999; transform: translate(-10px, 0%); } img#spider { position:absolute; left:-60px; bottom:-30px; z-index:100; } #spinny { position:absolute; top:55%; left:50%; margin-left:-110px; with:200px; height:200px; } #proc { position:absolute; font-size:80px; line-height:80px; bottom:5%; left:50%; color:#fff; font-family: 'Impact', sans-serif; transform: translate(-50%, 0%); z-index:100; font-weight:normal; text-shadow: 1px 1px 2px black; } #fill { position:relative; height:0%; background:#a4a6b5; width:20px; margin:0px; background: linear-gradient( to bottom, #ff0000,#fdcf58 ); } img.torch { position:fixed; height:128px; width:128px; top:30%; background-size: 128px; } #t1 { left:20%; } #t2 { right:20%; } canvas { image-rendering: optimizeSpeed; -webkit-interpolation-mode: nearest-neighbor; -ms-touch-action: none; margin: 0px; padding: 0px; border: 0px; display:none; } #canvas, canvas { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } :-webkit-full-screen #canvas { width: 100%; height: 100%; } div.gm4html5_div_class { margin: 0px; padding: 0px; border: 0px; }
. </style> </head>
<body id="body">
<script src="/assets/js/notifications.js"></script><script src="/assets/js/game-save-sync.js"></script>
<div id ="background"> <div id="bar"><div id="fill"><img id="spider" alt="" src="html5game/spider.png"/></div></div> <img id="spinny" src="html5game/spinny.png" alt=""/> <div id="proc">0%</div> <div id="decor"> <img class="torch" id="t1" src="html5game/torch.gif" alt=""/> <img class="torch" id="t2" src="html5game/torch.gif" alt=""/> </div> </div> <script> var fakeCent = 1; var bodyLoad = false; var fill = document.getElementById("fill"); var proc = document.getElementById("proc"); var background = document.getElementById("background"); function bar_update(progress) { progress = Math.max(fakeCent, progress); fill.style.height = progress + "%"; proc.innerHTML = Math.floor(progress) + "%" } var angle = 45; var spinny = document.getElementById("spinny"); setInterval(function() { angle+=1; spinny.style.transform = "rotate(" + angle + "deg)"; }, 5);
var windowHeight = window.innerHeight; background.style.height = windowHeight + "px";
setInterval(function() { if (!bodyLoad && fakeCent < 10) { fakeCent += 1; bar_update(fakeCent); } }, 1000); </script>
<div class="gm4html5_div_class" id="gm4html5_div_id"> <canvas id="canvas" width="1024" height="576"> <p>Your browser doesn't support HTML5 canvas.</p> </canvas> <script type="text/javascript" src="html5game/BaconMayDie.js"></script> </div> <script> var sdk = PokiSDK; var pokiDebug = false; var canvas = document.getElementById("canvas"); var body = document.getElementById("body"); var bar = document.getElementById("bar");
var decor = document.getElementById("decor");
var fakeCentTarget = 85; var fails = 0; var lerpSpd = 0.02; function poki_log(t) { console.log(t); } function poki_debug() { return pokiDebug; } function poki_loading(progress) { fakeCentTarget = Math.max(fakeCentTarget, (progress * 0.8) * 100); sdk.gameLoadingProgress({percentageDone: progress * 0.9}); if (progress == 1) { fakeCentTarget = 100; fakeCent = 100; bar_update(100); setTimeout(function () { canvas.style.display = "block"; background.remove(); clearInterval(fakeLoading); }, 200); } bodyLoad = true; }
var fakeLoading = setInterval(function() { if (fakeCentTarget - fakeCent > 1) { fakeCent = loading_lerp(fakeCent, fakeCentTarget, lerpSpd); } else { if (fakeCentTarget < 70) { fakeCentTarget += 0.2; } else if (fakeCentTarget <= 99) { fakeCentTarget += 0.02; } } bar_update(fakeCent); }, 10); function gamemaker_start() { try { GameMaker_Init(); } catch(err) { fails++; setTimeout(gamemaker_start, 2000); if (fails == 1) throw(err); } }
//var bgScale = window.innerHeight / 1024; //body.style.backgroundSize = (512 * bgScale) + "px " + (1024 * bgScale) + "px"; window.onload = function() { sdk.init().then(() => { setTimeout(gamemaker_start, 5); sdk.setDebug(pokiDebug); sdk.gameLoadingStart(); }).catch(() => { gamemaker_start(); }); canvas.width = window.innerWidth; canvas.height = window.innerHeight; canvas.addEventListener('click', function(){ window.focus(); }); } window.addEventListener('wheel', ev => ev.preventDefault(), { passive: false }); window.addEventListener('keydown', ev => { if (['ArrowDown', 'ArrowUp', ' '].includes(ev.key)) { ev.preventDefault(); } }); /// smooth things out function loading_lerp (start, end, amt){ return (1 - amt) * start + amt * end; } </script> </body></html>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485(() => { var e = function(e) { var n = RegExp("[?&]" + e + "=([^&]*)").exec(window.location.search); return n && decodeURIComponent(n[1].replace(/\+/g, " ")) }, n = "kids" === e("tag"), t = new(function() { function e() { var e = this; this.queue = [], this.init = function(n) { return void 0 === n && (n = {}), new Promise((function(t, o) { e.enqueue("init", n, t, o) })) }, this.rewardedBreak = function() { return new Promise((function(e) { e(!1) })) }, this.noArguments = function(n) { return function() { e.enqueue(n) } }, this.oneArgument = function(n) { return function(t) { e.enqueue(n, t) } }, this.handleAutoResolvePromise = function() { return new Promise((function(e) { e() })) }, this.throwNotLoaded = function() { console.debug("PokiSDK is not loaded yet. Not all methods are available.") } } return e.prototype.enqueue = function(e, t, o, i) { var r = { fn: e, options: t, resolveFn: o, rejectFn: i }; n ? i && i() : this.queue.push(r) }, e.prototype.dequeue = function() { for (var e = function() { var e = n.queue.shift(), t = e, o = t.fn, i = t.options; "function" == typeof window.PokiSDK[o] ? (null == e ? void 0 : e.resolveFn) || (null == e ? void 0 : e.rejectFn) ? window.PokiSDK[o](i).then((function() { for (var n = [], t = 0; t < arguments.length; t++) n[t] = arguments[t]; "function" == typeof e.resolveFn && e.resolveFn.apply(e, n) })).catch((function() { for (var n = [], t = 0; t < arguments.length; t++) n[t] = arguments[t]; "function" == typeof e.rejectFn && e.rejectFn.apply(e, n) })) : void 0 !== (null == e ? void 0 : e.fn) && window.PokiSDK[o](i) : console.error("Cannot execute " + e.fn) }, n = this; this.queue.length > 0;) e() }, e }()); window.PokiSDK = { init: t.init, initWithVideoHB: t.init, customEvent: t.throwNotLoaded, commercialBreak: t.handleAutoResolvePromise, rewardedBreak: t.rewardedBreak, displayAd: t.throwNotLoaded, destroyAd: t.throwNotLoaded, getLeaderboard: t.handleAutoResolvePromise, getSharableURL: function() { return new Promise((function(e, n) { return n() })) }, getURLParam: function(n) { return e("gd" + n) || e(n) || "" } }, ["disableProgrammatic", "gameLoadingStart", "gameLoadingFinished", "gameInteractive", "roundStart", "roundEnd", "muteAd"].forEach((function(e) { window.PokiSDK[e] = t.noArguments(e) })), ["setDebug", "gameplayStart", "gameplayStop", "gameLoadingProgress", "happyTime", "setPlayerAge", "togglePlayerAdvertisingConsent", "logError", "sendHighscore", "setDebugTouchOverlayController"].forEach((function(e) { window.PokiSDK[e] = t.oneArgument(e) })); var o, i = ((o = window.pokiSDKVersion) || (o = e("ab") || "v2.263.0"), "poki-sdk-" + (n ? "kids" : "core") + "-" + o + ".js"), r = document.createElement("script"); r.setAttribute("src", i), r.setAttribute("type", "text/javascript"), r.setAttribute("crossOrigin", "anonymous"), r.onload = function() { return t.dequeue() }, document.head.appendChild(r)})();123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222<!DOCTYPE html>
<html lang="en-us"><head><meta charset="utf-8"/><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Once upon an Isekai</title><meta content="width=device-width, initial-scale=1.0" name="viewport"/><link crossorigin="use-credentials" href="manifest.json" rel="manifest"/><link href="icons/icon-72x72.png" rel="icon" sizes="72x72" type="image/png"/><link href="icons/icon-96x96.png" rel="icon" sizes="96x96" type="image/png"/><link href="icons/icon-128x128.png" rel="icon" sizes="128x128" type="image/png"/><link href="icons/icon-144x144.png" rel="icon" sizes="144x144" type="image/png"/><link href="icons/icon-152x152.png" rel="icon" sizes="152x152" type="image/png"/><link href="icons/icon-192x192.png" rel="icon" sizes="192x192" type="image/png"/><link href="icons/icon-384x384.png" rel="icon" sizes="384x384" type="image/png"/><link href="icons/icon-512x512.png" rel="icon" sizes="512x512" type="image/png"/>
<link href="icons/icon-72x72.png" rel="apple-touch-icon" sizes="72x72" type="image/png"/><link href="icons/icon-96x96.png" rel="apple-touch-icon" sizes="96x96" type="image/png"/><link href="icons/icon-128x128.png" rel="apple-touch-icon" sizes="128x128" type="image/png"/><link href="icons/icon-144x144.png" rel="apple-touch-icon" sizes="144x144" type="image/png"/><link href="icons/icon-152x152.png" rel="apple-touch-icon" sizes="152x152" type="image/png"/><link href="icons/icon-192x192.png" rel="apple-touch-icon" sizes="192x192" type="image/png"/><link href="icons/icon-384x384.png" rel="apple-touch-icon" sizes="384x384" type="image/png"/><link href="icons/icon-512x512.png" rel="apple-touch-icon" sizes="512x512" type="image/png"/><meta content="#000" name="theme-color"><style> html { background: #444; font-family: sans-serif; }
body, html { overscroll-behavior: none; }
#canvas, #overlayDiv { position: absolute; top: 0px; left: 0px;
width: 100%; height: 100%;
border: 0 none; }
#canvas { background: #000; }
.visible { visibility: visible; opacity: 1.0; transition: opacity .1s linear; }
.hidden { visibility: hidden; opacity: 0; transition: visibility 0s .25s, opacity .25s linear; }
#statusDiv, #inputDiv { background: rgba(0, 0, 0, 0.75); width: 50%; margin: auto; min-width: 340px; padding: 10px;
position: absolute; top: 0; left: 0; right: 0;
border-radius: 0 0 5px 5px; }
#statusTextDiv { overflow: auto; max-height: 40vh; color: #ccc; font-size: 14px; }
#statusProgress { display: none; width: 100%; }
#inputDiv { width: 65%; padding-left: 10px; padding-right: 20px; }
#inputPrompt { color: #eee; font-size: 150%; margin-bottom: 1em; margin-top: 1em;
}
#inputText { width: 100%; font-size: 175%; padding: 5px; background: inherit; color: #eee; }
#inputText:focus { color: #ffffff; }
#ContextContainer { position: absolute; left: 0px; top: 0px; color: white; }
#ContextContainer.shown { background: rgba(0, 0, 0, 0.5); border-radius: 0px 0px 5px 0px; }
#ContextButton { text-decoration: none; color: lightgrey; font-size: xx-large; cursor: pointer; user-select: none; -moz-user-select: none; padding: 10px 10px; opacity: .75; }
#ContextButton:focus { outline: none; color: #ffffff; opacity: 1.0; }
#ContextMenu a { text-decoration: none; color: lightgrey; background: #444; height: 48px; width: 250px; border-radius: 5px; border: 1px solid lightgrey; display: flex; align-items: center; justify-content: center; margin: 5px 5px; opacity: 1.0; }
#ContextMenu a:hover { text-decoration: none; background: #666666; color: #ffffff }
#presplash { position: absolute; top: 0; left: 0; display: block; margin: auto; width: 100%; height: 100%; object-fit: contain; }
</style></meta></head><body><canvas id="canvas" oncontextmenu="event.preventDefault()" tabindex="-1"></canvas><div id="overlayDiv"></div><img id="presplash" src="web-presplash.jpg"/><div id="ContextContainer"><a id="ContextButton">≡</a><br/><div id="ContextMenu" style="display: none;"><input accept="application/zip" id="ID_SavegamesImport" onchange="onSavegamesImport(this)" style="display:none" type="file"/><a href="javascript:document.getElementById('ID_SavegamesImport').click();">Import Saves</a><a href="javascript:onSavegamesExport();">Export Saves</a><a href="javascript:FSDownload('/log.txt', 'text/plain');">Download Log</a><a href="https://www.renpy.org/" target="_blank"> Powered by Ren'Py </a>
</div></div><div class="hidden" id="statusDiv"><div id="statusTextDiv"></div><progress id="statusProgress" max="100" value="0"></progress></div><div class="hidden" id="inputDiv"><form id="inputForm"><div id="inputPrompt"></div><input id="inputText" type="text"/></form></div><script> // The URL to game.zip, relative to the URL of this file. window.gameZipURL = 'game.zip';
// Register the service worker. if (navigator.serviceWorker) { if (!navigator.serviceWorker.controller) { navigator.serviceWorker.register('./service-worker.js', { updateViaCache: 'all' }); } } </script><script src="renpy-pre.js"></script><script async="" src="renpy.js" type="text/javascript"></script></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976/*
Copyright 2019-2021 Sylvain BeuclerCopyright 2022 Teyut <teyut@free.fr>Copyright 2019-2022 Tom Rothamel <pytom@bishoujo.us>
Permission is hereby granted, free of charge, to any personobtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction,including without limitation the rights to use, copy, modify, merge,publish, distribute, sublicense, and/or sell copies of the Software,and to permit persons to whom the Software is furnished to do so,subject to the following conditions:
The above copyright notice and this permission notice shall beincluded in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BELIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTIONOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTIONWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*/
Module = window.Module || { };Module.preRun = Module.preRun || [ ];
(function () {
/*************************************************************************** * Report messages, errors, and progress. **************************************************************************/
// The div containing the status and progress bar. let statusDiv = document.getElementById("statusDiv"); let statusTextDiv = document.getElementById("statusTextDiv"); let statusProgress = document.getElementById("statusProgress");
// Presplash block let presplash = document.getElementById('presplash');
// The timeout before the status div hides itself. let statusTimeout = null;
// The status message. let statusText = "";
// How long before the status div starts hiding, in seconds. const STATUS_TIMEOUT = 5000;
// The last time the progress was updated. let lastProgressTime = 0;
// Has an error been reported? let errorReported = false;
// Should output only go to the console? let printConsoleOnly = false;
/** * Hide the status div. Once it's hidden, clears the status text. */ function hideStatus() { if (errorReported) { return; }
statusDiv.classList.remove("visible"); statusDiv.classList.add("hidden");
statusTimeout = setTimeout(() => { statusText = ""; }, 250); }
/** * Show the status div. */ function showStatus() { statusDiv.classList.remove("hidden"); statusDiv.classList.add("visible"); statusTextDiv.scrollTop = statusTextDiv.scrollHeight; statusProgress.style.display = "none"; }
/** * Cancels the timeout that hides the status div. */ function cancelStatusTimeout() { if (statusTimeout) { clearTimeout(statusTimeout); statusTimeout = null; } }
/** * Start the timeout that hides the status div. */ function startStatusTimeout() { cancelStatusTimeout(); statusTimeout = setTimeout(hideStatus, STATUS_TIMEOUT); }
function printCommon(s) {
cancelStatusTimeout(); lastProgressTime = 0;
if (statusText) { statusText += "<br>"; }
if (s == "" && !errorReported) { statusText = ""; return; }
for (let i of s.split("\n")) { if (i.length > 0) { console.log(i); } }
if (printConsoleOnly) { return; }
s = String(s); s = s.replace(/&/g, "&"); s = s.replace(/</g, "<"); s = s.replace(/>/g, ">"); s = s.replace('\n', '<br />', 'g');
statusText += s; statusTextDiv.innerHTML = statusText;
showStatus(); }
/** * Reports a message that will eventually be hidden. */ function printMessage(s) {
if (s.startsWith("warning: ") || s.startsWith("wasm streaming compile failed") || s.startsWith("falling back to ArrayBuffer") ) { console.log(s); return; }
printCommon(s); startStatusTimeout(); }
function reportError(s, e) { if (e) { console.error(e, e.stack); s += ": " + e.message; }
s += "\nMore information may be available in the browser console or contained in the log.";
printCommon(s);
errorReported = true;
try { Module.addRunDependency("error"); } catch (e) { window.stop(); } }
/** * Updates the progress bar. */ function progress(done, total) {
if (errorReported) { return; }
let now = +Date.now();
if ((now < lastProgressTime + 32) && (done < total) && (done > 1)) { return }
lastProgressTime = now;
cancelStatusTimeout(); showStatus();
if (total) { statusProgress.value = done; statusProgress.max = total; statusProgress.style.display = "block"; }
startStatusTimeout();
}
window.progress = progress;
Module.print = printMessage; Module.printErr = printMessage;
/*************************************************************************** * Browser capability checks. **************************************************************************/
// Report the lack of WebAssembly support. if (typeof WebAssembly !== 'object') { reportError("This browser does not support WebAssembly."); }
// Report the lack of the fetch function. if (typeof fetch !== 'function') { reportError("This browser does not support fetch."); }
// Clear error when running without a server. if (location.href.startsWith('file://')) { reportError("This browser requires the game to be run from a web server (i.e. double-clicking on index.html won't work)."); }
/*************************************************************************** * Emscripten initialization and termination. **************************************************************************/
/** Set up the canvas. */ let canvas = document.getElementById('canvas');
/** Set when the webGlContext is lost. */ window.webglContextLost = false;
/** Set when the webGlContext is restored. Cleared by Ren'Py in core.py. */ window.webglContextRestored = false;
canvas.addEventListener("webglcontextlost", (e) => { window.webglContextRestored = false; window.webglContextLost = true; e.preventDefault(); }, false);
canvas.addEventListener("webglcontextrestored", (e) => { window.webglContextLost = false; window.webglContextRestored = true; }, false);
canvas.addEventListener('mouseenter', function (e) { window.focus() });
canvas.addEventListener('click', function (e) { window.focus() });
Module.canvas = canvas;
window.presplashEnd = () => { presplash.remove(); cancelStatusTimeout(); hideStatus(); };
window.atExit = () => { canvas.remove(); reportError("The game exited unexpectedly."); };
Module.onAbort = () => { canvas.remove(); reportError("The game aborted unexpectedly."); };
/** * Initialize the filesystem. */ function initFs() { // Create the save directory, and mount the IDBFS filesystem. try { Module.addRunDependency('initFs'); FS.mkdir('/home/web_user/.renpy'); FS.mount(IDBFS, {}, '/home/web_user/.renpy'); FS.syncfs(true, (err) => { if (err) { printMessage("Error syncing IDBFS: " + err); printMessage("The game may not be able to save properly."); }
Module.removeRunDependency('initFs'); }); } catch (e) { reportError("Could not create ~/.renpy/", e); } }
Module.preRun.push(initFs);
// The size of the data and gamezip files. let dataSize = 0; let gameZipSize = 0;
// The number of bytes downloaded. let dataDownloaded = 0; let gameZipDownloaded = 0;
// Have we issued the data and gameZip prompts? let dataPrompt = false; let gameZipPrompt = false;
function updateDownloadProgress() { if (dataSize == 0) { return; }
if (dataDownloaded < dataSize || gameZipSize == 0) { if (!dataPrompt) { printMessage(""); printMessage("Downloading engine..."); dataPrompt = true; }
progress(dataDownloaded, dataSize); return; }
if (!gameZipPrompt) { printMessage(""); printMessage("Downloading game data..."); gameZipPrompt = true; }
progress(gameZipDownloaded, gameZipSize);
}
Module.setStatus = function (s) {
var m = s.match(/([^(]+)\((\d+(\.\d+)?)\/(\d+)\)/);
if (m) { dataDownloaded = parseInt(m[2]); dataSize = parseInt(m[4]); updateDownloadProgress(); return; }
console.log(s); }
async function loadGameZip() {
try { let response = await fetch(window.gameZipURL);
if (!response.ok) { reportError("Could not load game.zip: " + response.status + " " + response.statusText); }
gameZipSize = parseInt(response.headers.get('Content-Length'), 10); if(Number.isNaN(gameZipSize)) gameZipSize = 0;
let reader = await response.body.getReader();
let f = FS.open('/game.zip', 'w');
while (true) {
let { done, value } = await reader.read();
if (done) { break; }
FS.write(f, value, 0, value.length); gameZipDownloaded += value.length;
updateDownloadProgress(); }
FS.close(f);
} catch (e) { reportError("Could not download game.zip", e); } }
function runLoadGameZip() { Module.addRunDependency('loadGameZip');
loadGameZip().then(() => { Module.removeRunDependency('loadGameZip'); });
}
Module['preRun'].push(runLoadGameZip);
/*************************************************************************** * **************************************************************************/
let cmd_queue = []; let cur_cmd = undefined; let cmd_debug = false;
function cmd_log(...args) { if (cmd_debug) console.debug(...args); }
/** This functions is called by the wrapper script at the end of script execution. */ function cmd_callback(result) { cmd_log('cmd_callback', result);
if (cur_cmd === undefined) { console.error('Unexpected command result', result); return; }
try { if (result.error !== undefined) { cmd_log('ERROR', result.name, result.error, result.traceback); const e = new Error(result.error); e.name = result.name; e.traceback = result.traceback; cur_cmd.reject(e); } else { cmd_log('SUCCESS', result.data); cur_cmd.resolve(result.data); } } finally { cur_cmd = undefined; send_next_cmd(); } }
window._renpy_cmd_callback = cmd_callback;
/** Prepare and send the next command to be executed if any. */ function send_next_cmd() { if (cmd_queue.length == 0) return
cur_cmd = cmd_queue.shift(); cmd_log('send_next_cmd', cur_cmd);
// Convert script to base64 to prevent having to escape // the script content as a Python string const script_b64 = btoa(cur_cmd.py_script); const wrapper = 'import base64, emscripten, json, traceback;\n' + 'try:' + "result = None;" + "exec(base64.b64decode('" + script_b64 + "').decode('utf-8'));" + "result = json.dumps(dict(data=result));" + "\n" + "except Exception as e:" + "result = json.dumps(dict(error=str(e), name=e.__class__.__name__, traceback=traceback.format_exc()));" + "\n" + "emscripten.run_script('_renpy_cmd_callback(%s)' % (result,));";
cmd_log(wrapper);
// Write script to the global variable Ren'Py is monitoring window._renpy_cmd = wrapper; }
/** Add a command to the queue and execute it if the queue was empty. */ function add_cmd(py_script, resolve, reject) { const cmd = { py_script: py_script, resolve: resolve, reject: reject }; cmd_log('add_cmd', cmd); cmd_queue.push(cmd);
if (cur_cmd === undefined) send_next_cmd(); }
/* Global definitions */
/** Execute Python statements in Ren'Py Python's thread. The statements are executed * using the renpy.python.py_exec() function, and the value of the "result" variable * is passed to the resolve callback. In case of error, an Error instance is passed * to the reject callback, with an extra "traceback" property. * @param py_script The Python script to execute. * @return A promise which resolves with the statements result. */ renpy_exec = function (py_script) { return new Promise((resolve, reject) => { add_cmd(py_script, resolve, reject); }); };
window.renpy_exec = renpy_exec;
/** Helper function to get the value of a Ren'Py variable. * @param name The variable name (e.g., "build.name"). * @return A promise which resolves with the variable value. */ renpy_get = function (name) { return new Promise((resolve, reject) => { renpy_exec('result = ' + name) .then(resolve).catch(reject); }); };
window.renpy_get = renpy_get;
/** Helper function to set the value of a Ren'Py variable. * @param name The variable name (e.g., "build.name"). * @param value The value to set. It should either be a basic JS type that * will be converted to JSON, or a Python expression. The raw * parameter must be set to true for the latter case. * @param raw (optional) If true, value is a valid Python expression. * Otherwise, it must be a basic JS type. * @return A promise which resolves with true in case of success * and fails otherwise. */ renpy_set = function (name, value, raw) { let script; if (raw) { script = name + " = " + value + "; result = True"; } else { // Using base64 as it is unclear if we can use the output // of JSON.stringify() directly as a Python string script = 'import base64, json; ' + name + " = json.loads(base64.b64decode('" + btoa(JSON.stringify(value)) + "').decode('utf-8')); result = True"; } return new Promise((resolve, reject) => { renpy_exec(script) .then(resolve).catch(reject); }); };
window.renpy_set = renpy_set;
/*************************************************************************** * Context menu. **************************************************************************/
const menu = document.getElementById('ContextMenu');
const contextContainer = document.getElementById('ContextContainer');
document.getElementById('ContextButton').addEventListener('click', function (e) { if (menu.style.display == 'none') { menu.style.display = 'block'; contextContainer.classList.add("shown"); } else { menu.style.display = 'none'; contextContainer.classList.remove("shown"); } e.preventDefault(); });
menu.addEventListener('click', function (e) { if (e.target.tagName == 'A') { // Close context menu when a menu item is selected menu.style.display = 'none'; } });
async function onSavegamesImport(input) { reader = new FileReader(); reader.onload = function (e) { FS.writeFile('savegames.zip', new Uint8Array(e.target.result));
renpy_exec('result = renpy.savelocation.unzip_saves()').then((result) => { FS.syncfs(false, function (err) { if (err) { console.trace(); console.log(err, err.message); printMessage("Warning: cannot import savegames: write error: " + err.message ); } else { renpy_exec('renpy.loadsave.location.scan()').then(result => { printMessage("Saves imported successfully."); }).catch(error => { console.error('Cannot rescan saves folder:', error); printMessage("Saves imported - restart game to apply."); }); } }); }).catch(error => { console.error('Cannot import savegames', error); printMessage("Couldn't import the savegames: " + error.message); }) } reader.readAsArrayBuffer(input.files[0]) input.type = ''; input.type = 'file'; // reset field }
window.onSavegamesImport = onSavegamesImport;
function onSavegamesExport() { renpy_exec('result = renpy.savelocation.zip_saves()').then((ret) => { if (ret) { FSDownload('savegames.zip', 'application/zip'); printMessage("Saves exported successfully.\n"); } }); }
window.onSavegamesExport = onSavegamesExport;
function FSDownload(filename, mimetype) { console.log('download', filename); var a = document.createElement('a'); a.download = filename.replace(/.*\//, ''); try { a.href = window.URL.createObjectURL(new Blob([FS.readFile(filename)], { type: mimetype || '' })); } catch (e) { Module.print("Error opening " + filename + "\n"); return; } document.body.appendChild(a); a.click();
// delay clean-up to avoid iOS issue: // The operation couldn’t be completed. (WebKitBlobResource error 1.) setTimeout(function () { window.URL.revokeObjectURL(a.href); document.body.removeChild(a); }, 1000); }
window.FSDownload = FSDownload;
/*************************************************************************** * Precaching. **************************************************************************/
function loadCache() {
try { navigator.serviceWorker.controller.postMessage(["loadCache"]); } catch (e) { // pass }
async function loadCacheWorker() {
let response = await fetch("pwa_catalog.json"); let catalog = await response.json();
let cachedCatalog;
try { let cachedCatalogResponse = await fetch("pwa_catalog.json?cached") cachedCatalog = await cachedCatalogResponse.json(); } catch (e) { console.log("No cached catalog found."); cachedCatalog = { version: -1 }; }
if (cachedCatalog.version == catalog.version) { return; }
printMessage(""); printMessage("Preloading game files into browser cache...") progress(0, catalog.files.length);
for (let i = 0; i < catalog.files.length; i++) { let response = await fetch(catalog.files[i]); await response.blob();
progress(i + 1, catalog.files.length); }
cancelStatusTimeout(); hideStatus();
// This will add the catalog to the cache, such that // fetch("pwa_catalog.json?cached") will return it. fetch("pwa_catalog.json?uncached"); }
loadCacheWorker(); }
window.loadCache = loadCache;
function clearCache() { try { navigator.serviceWorker.controller.postMessage(["clearCache"]); } catch (e) { // pass }
localStorage.cacheVersion = -1; }
window.clearCache = clearCache;
/*************************************************************************** * Text input. **************************************************************************/
const inputDiv = document.getElementById("inputDiv"); const inputForm = document.getElementById("inputForm"); const inputPrompt = document.getElementById("inputPrompt"); const inputText = document.getElementById("inputText");
// This stores the input after enter is pressed. window.inputResult = null;
function submitInput(e) { e.preventDefault(); window.inputResult = inputText.value; }
inputForm.addEventListener("submit", submitInput);
inputDiv.addEventListener("keydown", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("keyup", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("keypress", function (e) { e.stopPropagation(); });
inputDiv.addEventListener("mousemove", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("mousedown", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("mouseup", function (e) { e.stopPropagation(); });
inputDiv.addEventListener("touchstart", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("touchend", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("touchcancel", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("touchmove", function (e) { e.stopPropagation(); });
let inputAllow = null; let inputExclude = null;
inputText.addEventListener("input", (e) => { let newValue = "";
for (let c of inputText.value) { if (inputAllow && !inputAllow.includes(c)) { continue; }
if (inputExclude && inputExclude.includes(c)) { continue; }
newValue += c; }
if (newValue != inputText.value) { let end = inputText.selectionEnd; inputText.value = newValue; inputText.setSelectionRange(end-1, end-1); } });
function startInput(prompt, value, allow, exclude, mask) { window.inputResult = null;
inputDiv.classList.remove("hidden"); inputDiv.classList.add("visible");
while (inputPrompt.firstChild) { inputPrompt.removeChild(inputPrompt.firstChild); }
let promptText = document.createTextNode(prompt); inputPrompt.appendChild(promptText);
inputText.value = value; inputText.focus();
inputAllow = allow; inputExclude = exclude;
if (mask) { inputText.type = "password"; } else { inputText.type = "text"; }
}
window.startInput = startInput;
function endInput() { inputDiv.classList.remove("visible"); inputDiv.classList.add("hidden"); inputText.blur(); }
window.endInput = endInput;
/*************************************************************************** * Fetch. ***************************************************************************/
let fetchId = 1; let fetchResult = { };
/** * Fetch a file from the server. * * @param method The HTTP method to use. * @param url The URL to fetch. * @param inFile The file to send to the server. A string giving the file name, or null for no file. * @param outFile The file to write the response to. A string giving the file name, or null for no file. * @param inContentType The content type of the file to send to the server. A string giving the content type. Ignored if inFile is null. * @param headers A string containing a JSON object that contains the headers to send to the server. * * @return A string giving the result of the fetch. The first word is the status, which is one of "OK", "ERROR", or "PENDING", followed by the HTTP status code and status text. */ function fetchFile(method, url, inFile, outFile, inContentType, headers) {
let id = fetchId++; fetchResult[id] = "PENDING Fetch in progress.";
// Ensure headers exists and is not a copy. if (headers) { headers = JSON.parse(headers) } else { headers = { }; }
headers = { ...headers };
async function fetchFileWork() { try {
let content = ''
if (inFile) { headers["Content-Type"] = inContentType || 'application/octet-stream'; }
let options = { method: method, headers: headers};
if (inFile) { options.body = FS.readFile(inFile, { encoding: 'binary' }); }
let response = await fetch(url, options);
if (response.ok) { if (outFile) { let ab = await response.arrayBuffer(); FS.writeFile(outFile, new Uint8Array(ab)); }
fetchResult[id] = "OK " + response.status + " " + response.statusText; } else{ fetchResult[id] = "ERROR " + response.status + " " + response.statusText; }
} catch (err) { fetchResult[id] = "ERROR " + err; console.error(err); }
}
fetchFileWork();
return id; }
function fetchFileResult(id) { let result = fetchResult[id];
if (! result.startsWith("PENDING")) { delete fetchResult[id]; }
return result || "ERROR Fetch ID not found."; }
window.fetchFile = fetchFile; window.fetchFileResult = fetchFileResult;
/** * Fullscreen support. */
let lastFullscreenTime = 0;
function isFullscreen() { let now = +new Date(); return document.fullscreenElement ? 1 : 0; }
window.isFullscreen = isFullscreen;
function setFullscreen(enable) {
let current = document.fullscreenElement !== null;
if (enable == current) { return; }
let now = +new Date();
if (lastFullscreenTime + 250 > +new Date()) { return; }
lastFullscreenTime = now;
setTimeout(function () { if (enable) { let e = document.getElementsByTagName("html")[0]; e.requestFullscreen().catch(function (error) { lastFullscreenTime = now + 15000; }); } else { document.exitFullscreen(); } }, 0); }
window.setFullscreen = setFullscreen;
/*************************************************************************** * "Hidden" developer functions. **************************************************************************/
function downloadBytecode() { FSDownload('/game/cache/bytecode-311.rpyb', 'application/octet-stream'); }
window.downloadBytecode = downloadBytecode;
function traceSleep() { printConsoleOnly = true; renpy_exec('import emscripten; emscripten.TRACE = True') }
window.traceSleep = traceSleep;
function loseContext() { let e = canvas.getContext("webgl2").getExtension("WEBGL_lose_context"); e.loseContext();
setTimeout(function () { e.restoreContext(); }, 1000); }
window.loseContext = loseContext;
/*************************************************************************** * Overlay div handling. **************************************************************************/
let overlayDiv = document.getElementById("overlayDiv");
for (let eventName of ["mousedown", "mouseup", "mousemove" ]) { overlayDiv.addEventListener(eventName, function (e) { canvas.dispatchEvent(new MouseEvent(e.type, e));
if (e.type == "mouseup") { overlayDiv.remove(); }
});
};
})();1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283<!DOCTYPE html>
<html lang="en-us"><head><meta charset="utf-8"/><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Deepest Sword</title><style> html, body { background: #000; width: 100%; height: 100%; overflow: visible; padding: 0; margin: 0; }
div#gameContainer { background: transparent !important; position: absolute; }
div#gameContainer canvas { position: absolute; } </style></head><body><div id="gameContainer"><canvas id="unity-canvas"></canvas><script src="Build/WebBuilds.loader.js"></script><script> createUnityInstance(document.querySelector("#unity-canvas"), { dataUrl: "Build/WebBuilds.data", frameworkUrl: "Build/WebBuilds.framework.js", codeUrl: "Build/WebBuilds.wasm", streamingAssetsUrl: "StreamingAssets", companyName: "Cosmic Adventure Squad", productName: "Deepest Sword", productVersion: "0.1.5c", }).then(function (instance) { var canvas = instance.Module.canvas; var container = canvas.parentElement; function onResize() { var w; var h;
if (scaleToFit) { w = window.innerWidth; h = window.innerHeight;
var r = 540 / 960;
if (w * r > window.innerHeight) { w = Math.min(w, Math.ceil(h / r)); } h = Math.floor(w * r); } else { w = 960; h = 540; }
container.style.width = canvas.style.width = w + "px"; container.style.height = canvas.style.height = h + "px"; container.style.top = Math.floor((window.innerHeight - h) / 2) + "px"; container.style.left = Math.floor((window.innerWidth - w) / 2) + "px"; }
var scaleToFit; try { scaleToFit = !!JSON.parse(""); } catch (e) { scaleToFit = true; } window.addEventListener('resize', onResize); onResize(); }); </script></div></body></html>
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136<!DOCTYPE html><html lang="en-us"><head> <meta charset="utf-8"> <title>IXL - Dashboard</title> <style> html, body { margin: 0; padding: 0; border: 0; height: 100%; width: 100%; overflow: hidden; background: #1F1F20; } #unity-canvas { display: block; background: #1F1F20; } </style></head><body>
<script src="/assets/js/notifications.js"></script><script src="/assets/js/game-save-sync.js"></script>
<div id="loading-text" style="color: white; font-size: 48px; font-family: cursive; text-align: center; margin-top: 20px;">LOADING...</div> <canvas id="unity-canvas" tabindex="-1"></canvas> <script src="Build/DELTAWEBGL.loader.js"></script> <script> const canvas = document.querySelector("#unity-canvas");
function resizeCanvas() { canvas.style.width = window.innerWidth + "px"; canvas.style.height = window.innerHeight + "px"; canvas.width = window.innerWidth; canvas.height = window.innerHeight; canvas.style.position = "fixed";
// For mobile viewport scaling let meta = document.querySelector("meta[name=viewport]"); if (!meta) { meta = document.createElement('meta'); meta.name = 'viewport'; document.head.appendChild(meta); } meta.content = 'width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes'; }
window.addEventListener('resize', resizeCanvas); window.addEventListener('load', resizeCanvas);
const loadingText = document.querySelector("#loading-text"); let totalBytes = 256389429; let loadedBytes = 0;
function formatSize(bytes) { if (bytes > 1024*1024*1024) return (bytes / (1024*1024*1024)).toFixed(2) + " GB"; if (bytes > 1024*1024) return (bytes / (1024*1024)).toFixed(2) + " MB"; if (bytes > 1024) return (bytes / 1024).toFixed(2) + " KB"; return bytes + " B"; }
async function getSize(url) { try { const res = await fetch(url, { method: "HEAD" }); return parseInt(res.headers.get("Content-Length") || "0", 10); } catch { return 0; } }
async function fetchWithProgress(url) { const response = await fetch(url); const reader = response.body.getReader(); let chunks = [], received = 0; while (true) { const { done, value } = await reader.read(); if (done) break; received += value.length; loadedBytes += value.length; chunks.push(value); const doneText = formatSize(loadedBytes); const totalText = formatSize(totalBytes); const percent = totalBytes > 0 ? ((loadedBytes / totalBytes) * 100).toFixed(1) : "?"; loadingText.textContent = `LOADING... ${doneText} / ${totalText} (${percent}%)`; } let fullBuffer = new Uint8Array(received); let offset = 0; for (let chunk of chunks) { fullBuffer.set(chunk, offset); offset += chunk.length; } return fullBuffer.buffer; }
async function mergeFiles(parts) { const buffers = await Promise.all(parts.map(fetchWithProgress)); return URL.createObjectURL(new Blob(buffers)); }
function getParts(file, count) { let parts = []; for (let i = 1; i <= count; i++) parts.push(file + ".part" + i); return parts; }
(async () => { const dataParts = getParts("Build/DELTAWEBGL.data.unityweb", 9); const wasmParts = getParts("Build/DELTAWEBGL.wasm.unityweb", 5); const [dataUrl, wasmUrl] = await Promise.all([ mergeFiles(dataParts), mergeFiles(wasmParts) ]);setInterval(() => { resizeCanvas();}, 1000);
createUnityInstance(canvas, { arguments: [], dataUrl: dataUrl, frameworkUrl: "Build/DELTAWEBGL.framework.js.unityweb", codeUrl: wasmUrl, streamingAssetsUrl: "StreamingAssets", companyName: "RynoGG", productName: "DELTATRAVELER", productVersion: "3.0.12.0111", // optional: set fullscreen scaling mode matchWebGLToCanvasSize: true }).then(() => { loadingText.remove();resizeCanvas(); }); })(); </script></body></html>1{"name": "Echo", "icons": [{"src": "icons/icon-72x72.png", "sizes": "72x72", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-72x72-maskable.png", "sizes": "72x72", "type": "image/png", "purpose": "maskable"}, {"src": "icons/icon-96x96.png", "sizes": "96x96", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-96x96-maskable.png", "sizes": "96x96", "type": "image/png", "purpose": "maskable"}, {"src": "icons/icon-128x128.png", "sizes": "128x128", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-128x128-maskable.png", "sizes": "128x128", "type": "image/png", "purpose": "maskable"}, {"src": "icons/icon-144x144.png", "sizes": "144x144", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-144x144-maskable.png", "sizes": "144x144", "type": "image/png", "purpose": "maskable"}, {"src": "icons/icon-152x152.png", "sizes": "152x152", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-152x152-maskable.png", "sizes": "152x152", "type": "image/png", "purpose": "maskable"}, {"src": "icons/icon-192x192.png", "sizes": "192x192", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-192x192-maskable.png", "sizes": "192x192", "type": "image/png", "purpose": "maskable"}, {"src": "icons/icon-384x384.png", "sizes": "384x384", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-384x384-maskable.png", "sizes": "384x384", "type": "image/png", "purpose": "maskable"}, {"src": "icons/icon-512x512.png", "sizes": "512x512", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-512x512-maskable.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable"}], "lang": "en-US", "start_url": "./index.html", "display": "standalone", "background_color": "black", "theme_color": "black", "launch_handler": {"route_to": "existing-client", "navigate_existing_client": "always"}, "orientation": "landscape-primary", "display_override": ["fullscreen", "minimal-ui"]}1{"files": ["renpy.js", "web-presplash.jpg", "index.html.symbols", "renpy-pre.js", "index.html", "renpy.data", "renpy.wasm", "manifest.json", "service-worker.js", "game.zip", "game/icon.png", "game/images/cabin1.png", "game/images/Micha_Happy.png", "game/images/dinerkitchen.png", "game/images/Mayor_Neutral.png", "game/images/frontdesk7.png", "game/images/Julian_Depressed.png", "game/images/sunrisesky.png", "game/images/TJTuesday.png", "game/images/devechoeyelids.png", "game/images/EchoJenna_Sheepish_ArmsCrossed.png", "game/images/Young_Sydney_casual_Crying.png", "game/images/motelcouchn.png", "game/images/Carlu_surprised.png", "game/images/ParkinglotEve.png", "game/images/clint spritev2smirk5 percent.png", "game/images/tj embarassed.png", "game/images/Flynn_teasing.png", "game/images/office.png", "game/images/TJ-noshirt-n.png", "game/images/Carlalt_annoyed.png", "game/images/dirtroadn.png", "game/images/Chaseu1_discomfort2.png", "game/images/MrBronson_Angry.png", "game/images/frontdesk5.png", "game/images/convenience-night.png", "game/images/vaninside.png", "game/images/Julian_Rejected.png", "game/images/TJ Depressedv1.png", "game/images/Raven_Depressed.png", "game/images/de-bracelet.png", "game/images/caboose.png", "game/images/barside2.png", "game/images/Leo_Dejected.png", "game/images/DukesHouse.png", "game/images/chaseleo1.png", "game/images/camechosmile.png", "game/images/Muerte1.jpg", "game/images/stream.png", "game/images/Young_Tj_Sad.png", "game/images/Daxtonshirtless.png", "game/images/trail1.png", "game/images/EchoJenna_Rejected_ArmsCrossed.png", "game/images/Micha_Annoyed.png", "game/images/shadchase4.png", "game/images/scraptrailernight.png", "game/images/Chase2020sad.png", "game/images/reppoem.png", "game/images/ChaseEmbrace.png", "game/images/desertforest.png", "game/images/Bonfire.png", "game/images/moteldoor.png", "game/images/Saturday.png", "game/images/dukeshouseint.png", "game/images/Young_Sydney_Worried_arm.png", "game/images/frontdeskshad.png", "game/images/Daxton_Wry.png", "game/images/printshop.png", "game/images/stadium.png", "game/images/parkinglotnight.png", "game/images/EchoJenna_Surprised.png", "game/images/cell3.png", "game/images/flynnshousenight.png", "game/images/Carl.png", "game/images/TJ.png", "game/images/Daxton_Happy.png", "game/images/Flynn.png", "game/images/FlynnShirtless_Teasing.png", "game/images/FlynnSunday2.jpg", "game/images/theater-ext.png", "game/images/justafrienddaddy.png", "game/images/warehouse-int.png", "game/images/ch2.png", "game/images/vcb.png", "game/images/Leo_Neutral.png", "game/images/TJThursday.png", "game/images/Shirtless_Leo_Surprised.png", "game/images/FridayJenna.png", "game/images/familyplex2.png", "game/images/Carlalt_sheepish.png", "game/images/room2.png", "game/images/bar.png", "game/images/motelcorner.png", "game/images/Chase_y_surprised.png", "game/images/leoshousenight.png", "game/images/phone2.png", "game/images/railyardevening.png", "game/images/MrBronson_Shock_Arms_Relaxed.png", "game/images/Chase_y.png", "game/images/burningmansion.png", "game/images/flynnsbathroom.png", "game/images/cell1.png", "game/images/dam.png", "game/images/trailerinteriornight.png", "game/images/chasehouseint1blur.png", "game/images/Leoyoung.png", "game/images/leosbathroom.png", "game/images/flynnsbedroom.png", "game/images/Leo_Wry.png", "game/images/barside.png", "game/images/scraptrailerday.png", "game/images/Daxtonclub.png", "game/images/EchoJenna_Annoyed.png", "game/images/Carlalt_neutral.png", "game/images/Chase2020.png", "game/images/carlalttab.png", "game/images/Mayor_Smile.png", "game/images/FlynnSunday1.jpg", "game/images/FlynnAlt_surprised.png", "game/images/SmokeRoom2.png", "game/images/maybesydney2.png", "game/images/redwater.png", "game/images/SmokeRoom4.png", "game/images/Carl_teasing.png", "game/images/mallinterior.png", "game/images/warehouse-ext.png", "game/images/devechosmile.png", "game/images/bardark.png", "game/images/van2b.png", "game/images/memory.png", "game/images/EchoJenna_Underwear.png", "game/images/MrBronson_Tired_Arms_Relaxed.png", "game/images/fire.jpg", "game/images/hedge.png", "game/images/MrBronson_Neutral_Arms_Crossed.png", "game/images/Flynn_annoyed.png", "game/images/underyeeyaw.png", "game/images/motelwash.png", "game/images/kiss.png", "game/images/Young_Sydney_casual_arm.png", "game/images/ballroomn.png", "game/images/compbase3a.png", "game/images/Young_Carl_Sad.png", "game/images/flashback2alt2.png", "game/images/Kudzu_Depressed.png", "game/images/janicehouse.png", "game/images/shade2.png", "game/images/dukesplace.png", "game/images/uni-sunset.png", "game/images/moteldoorn.png", "game/images/Chaseu1.png", "game/images/Carlu_depressed.png", "game/images/TJu embarassed.png", "game/images/SideStory-Lights.png", "game/images/canyonneg.png", "game/images/outskirtsday_arches.png", "game/images/flashback2.png", "game/images/hystdesert3.png", "game/images/barback.png", "game/images/SundayJenna.png", "game/images/motelwindow.png", "game/images/lakeemma.png", "game/images/weightroom.png", "game/images/Jeremy_Wry.png", "game/images/Raven_Wry.png", "game/images/hystdesert4.png", "game/images/livingroomdusk.png", "game/images/Carlu_sheepish.png", "game/images/resturant.png", "game/images/stage.png", "game/images/leohouse.png", "game/images/outskirts_arches.png", "game/images/TJ Depressedv2.png", "game/images/Muerte2.jpg", "game/images/camechoeyelids.png", "game/images/payton-night.png", "game/images/ChaseDay1.png", "game/images/Julian_Wry_Hand.png", "game/images/FlynnAlt_embarassed.png", "game/images/frontdesk6.png", "game/images/flashback1red.png", "game/images/Carl_rejected.png", "game/images/jashouse2.png", "game/images/bgn2.png", "game/images/Ryan.png", "game/images/underpond.png", "game/images/deserttrail2.png", "game/images/SundayLeo2.png", "game/images/Carlalt2_teasing.png", "game/images/thehey.png", "game/images/motelbathroom.png", "game/images/room3.png", "game/images/glasschase8.png", "game/images/flynnlivingroom3.png", "game/images/Flynn_embarassed.png", "game/images/Julian_Happy_Hand.png", "game/images/Shirtless_Leo_Embarassed.png", "game/images/CarlTuesday.png", "game/images/chasealone.png", "game/images/carlsbathroom.png", "game/images/ChaseDay3.png", "game/images/compbase4.png", "game/images/backlitvan.png", "game/images/Daxton_Sheepish.png", "game/images/SaturdayCarl.png", "game/images/officeglobe.png", "game/images/FlynnAlt_smile.png", "game/images/Carlalt2_rejected.png", "game/images/Heather_Neutral.png", "game/images/officenight.png", "game/images/Carlalt_teasing.png", "game/images/desertmeadow.png", "game/images/Micha.png", "game/images/Janice v 2 without notepad.png", "game/images/Young_Sydney_casual_sad.png", "game/images/Raven_Confused.png", "game/images/Leo_Depressed.png", "game/images/TJu rejected.png", "game/images/Carlu_teasing.png", "game/images/Carlalttab_annoyed.png", "game/images/Leo_Surprised.png", "game/images/Carlu_alt.png", "game/images/cell2.png", "game/images/carnival.png", "game/images/SaturdayCarl2.png", "game/images/Shirtless_Leo_Depressed.png", "game/images/fb6.png", "game/images/Julian_Annoyed.png", "game/images/TJu Surprised.png", "game/images/TJSaturday.png", "game/images/van2a.png", "game/images/Jeremy_Neutral.png", "game/images/chasehouse.png", "game/images/ChaseNight3.png", "game/images/drestroom.png", "game/images/coasterline.png", "game/images/FlynnShirtless_Teasing2.png", "game/images/moteltablen.png", "game/images/neighborhood.png", "game/images/EchoJenna_Depressed_ArmsCrossed.png", "game/images/Micha_Sheepish.png", "game/images/Carl_depressed.png", "game/images/barback4.png", "game/images/Flynnclub.png", "game/images/forestday.png", "game/images/mineshaft.png", "game/images/window3.png", "game/images/compbase3.png", "game/images/shade1.png", "game/images/Daxtonnight.png", "game/images/kitchendusk.png", "game/images/cabin3.png", "game/images/chasehousemain3.png", "game/images/Cover.png", "game/images/Janice v 2 wnotepaddazed.png", "game/images/handlol.png", "game/images/CarlsRoomNight.png", "game/images/Micha_Rejected.png", "game/images/flint.png", "game/images/compbase1.png", "game/images/Chase_y_annoyed.png", "game/images/livingroom.png", "game/images/deserttrail.png", "game/images/Young_Sydney_Sad_arm.png", "game/images/barback3.png", "game/images/familyplex1.png", "game/images/ChaseDay4.png", "game/images/Leo_Questioning.png", "game/images/route93.png", "game/images/Young_Tj_Scared.png", "game/images/Kudzu_Sheepish.png", "game/images/TJ surprised.png", "game/images/cityhalloutside.png", "game/images/lookhowtheymassacredmyboar.png", "game/images/shade5.png", "game/images/tj-bedroom.png", "game/images/chasehousemain2.png", "game/images/stars.png", "game/images/Carl_annoyed.png", "game/images/Chaseshadow.png", "game/images/eyes2.png", "game/images/leoandchase.png", "game/images/echoroaddusk.png", "game/images/Carlalttab_depressed.png", "game/images/Young_Carl.png", "game/images/whitewall.png", "game/images/Brian sprite angry5percent.png", "game/images/carlsparentsroom.png", "game/images/echoschoolinside.png", "game/images/Kudzu_Rejected.png", "game/images/ctc.png", "game/images/echoroad.png", "game/images/chaseleo2.png", "game/images/EchoJenna_Surprised_ArmsCrossed.png", "game/images/dirtroad2.png", "game/images/flashback2alt.png", "game/images/Young_Leo_Happy_arm.png", "game/images/boulder.png", "game/images/Tuesday.png", "game/images/Carl_sheepish.png", "game/images/Mayor_Annoyed.png", "game/images/MrBronson_Tired_Arms_Crossed.png", "game/images/Kudzu_Confused.png", "game/images/ch1.png", "game/images/apology.png", "game/images/cabin2.png", "game/images/Young_Sydney_casual_worried_arm.png", "game/images/FridayFlynn0.png", "game/images/kandb.jpg", "game/images/chasehouseint2.png", "game/images/Carl_neutral.png", "game/images/shade3.png", "game/images/Duke spriteneutral5p.png", "game/images/lucha1.png", "game/images/CarlsRoomRed.png", "game/images/yeeyaw.png", "game/images/SmokeRoom3.png", "game/images/devechosmileeyelids.png", "game/images/sheets.png", "game/images/dirtroad.png", "game/images/Heather_Smiling.png", "game/images/Julian_Confused.png", "game/images/barfront.png", "game/images/Micha_Wry.png", "game/images/lights-party.png", "game/images/FlynnAlt_depressed.png", "game/images/Chase2020discomfort.png", "game/images/Carlalt.png", "game/images/KudzuTrailerweird.png", "game/images/bar2.png", "game/images/TJ neutral.png", "game/images/EchoJenna_Sheepish.png", "game/images/CarlSad.png", "game/images/ChaseNight1.png", "game/images/scraptrailerdusk.png", "game/images/Basement.png", "game/images/TJ teasing 2.png", "game/images/mall1.png", "game/images/underwatersunset.png", "game/images/railyardnight.png", "game/images/leoroom.png", "game/images/mansionbedroom.png", "game/images/tjforest.png", "game/images/FlynnsKitchen.png", "game/images/Sunday.png", "game/images/leoroomdark.png", "game/images/echoroad_arches.png", "game/images/Young_Sydney_Crying.png", "game/images/pond.png", "game/images/ba.png", "game/images/Flynn_surprised.png", "game/images/Carlu_annoyed.png", "game/images/fb5dream.png", "game/images/pancakehouse.png", "game/images/janicehouseafternoon.png", "game/images/Duke spriteangry5p.png", "game/images/MrBronson_Distraught_arms_Tense.png", "game/images/black.png", "game/images/TJThursday0.png", "game/images/Shirtless_Leo_Wry.png", "game/images/Young_Sydney_casual.png", "game/images/Jeremy_Annoyed.png", "game/images/tester.png", "game/images/shadchase6.png", "game/images/highwaynight2.png", "game/images/Carlalt_surprised.png", "game/images/glasschase7.png", "game/images/shadchase5.png", "game/images/Clint sprite nervous5percent.png", "game/images/compbase2.png", "game/images/KudzuTrailer.png", "game/images/lakeside.png", "game/images/motelfull.png", "game/images/camechosmileeyelids.png", "game/images/FridayJenna0.png", "game/images/hall1.png", "game/images/Flynn_depressed.png", "game/images/trail3.png", "game/images/mansionnight.png", "game/images/groupphoto.png", "game/images/Carlu_neutral.png", "game/images/FridayLeo2.png", "game/images/Janice v 2 without notepadamused.png", "game/images/Julian_Sheepish.png", "game/images/Carlalt_depressed.png", "game/images/TJn_Rejected.png", "game/images/swadventures3.png", "game/images/gas5.png", "game/images/footballfield.png", "game/images/Kudzu_Annoyed.png", "game/images/Heather_Hysterical2.png", "game/images/Injy_Wary.png", "game/images/EchoJenna_Rejected.png", "game/images/gasinteriorn.png", "game/images/foodcourt.png", "game/images/EchoJenna_Smiling.png", "game/images/chaseswim.png", "game/images/Cave.png", "game/images/Library.png", "game/images/theater.png", "game/images/compbase0.png", "game/images/motelcouch.png", "game/images/echoschool.png", "game/images/TJ wryteasing.png", "game/images/Brian sprite happy5 percent.png", "game/images/hand5.png", "game/images/trailerinterior.png", "game/images/reststop.png", "game/images/flynnshousedusk.png", "game/images/Ryanb.png", "game/images/EP_EchoSplash.webm", "game/images/LeoFriday.png", "game/images/Daxton_Annoyed.png", "game/images/Young_Sydney_arm.png", "game/images/Carldusk.png", "game/images/EchoJenna_Neutral.png", "game/images/bench.png", "game/images/sunsetlake.png", "game/images/flashback3.png", "game/images/Friday.png", "game/images/chapel.png", "game/images/flynnshouse.png", "game/images/chasehousemain.png", "game/images/tj-diningroom.png", "game/images/highwaynight.png", "game/images/KeithFrame.png", "game/images/compbase5.png", "game/images/Flynnbar2.png", "game/images/Raven_Annoyed_Hands.png", "game/images/Kudzu_Happy.png", "game/images/hand1.png", "game/images/storageroom.png", "game/images/cell4.png", "game/images/EchoJenna_Depressed.png", "game/images/EchoJenna_Wry_ArmsCrossed.png", "game/images/flynnlivingroom2.png", "game/images/Wednesday.png", "game/images/mansion.png", "game/images/echoroadsunset.png", "game/images/hystdesert2.png", "game/images/FridayFlynn.png", "game/images/carltree.png", "game/images/brianstrailer.png", "game/images/hystdesertbase.png", "game/images/mall2.png", "game/images/thelake.png", "game/images/deck.png", "game/images/mansionkitchen.png", "game/images/pinkbluecabinsdusk.png", "game/images/moteltable.png", "game/images/Daxton_Surprised.png", "game/images/carlsroom.png", "game/images/nightroad.png", "game/images/Carl_surprised.png", "game/images/SundayJenna3.png", "game/images/vc.png", "game/images/uni1.png", "game/images/Carlalt2_sheepish.png", "game/images/ballroom.png", "game/images/Daxton_Depressed.png", "game/images/Shirtless_Leo_Dejected.png", "game/images/daxroom.png", "game/images/FridayLeo.png", "game/images/Carlu_rejected.png", "game/images/swadventures1.png", "game/images/SundayLeo.png", "game/images/Chase_y_sad.png", "game/images/nightwalk.png", "game/images/cityhalloutsidenight.png", "game/images/mall.png", "game/images/TJ_shirtless_surprised.png", "game/images/lights-road.png", "game/images/gas5n.png", "game/images/Micha_Depressed.png", "game/images/monday1.png", "game/images/sunset.png", "game/images/TJ_shirtless_embarrassed.png", "game/images/riverbank.png", "game/images/TJTuesday0.png", "game/images/uni4.png", "game/images/uni3.png", "game/images/Young_Sydney.png", "game/images/forkroaddusk.png", "game/images/Heather_Sad.png", "game/images/uni5.png", "game/images/leokitchen.png", "game/images/field.png", "game/images/van2.png", "game/images/FlynnAlt.png", "game/images/devecho.png", "game/images/SchoolInterior.png", "game/images/shadchase3.png", "game/images/hand3.png", "game/images/Shirtless_Leo_Happy.png", "game/images/Carlu.png", "game/images/phone1.png", "game/images/Raven_Happy.png", "game/images/sydneyhouse.png", "game/images/maybesydney3.png", "game/images/Leo Pain.png", "game/images/Julian.png", "game/images/Flynn_smile.png", "game/images/Saturday0.png", "game/images/restroom.png", "game/images/Raven.png", "game/images/Saturday1.png", "game/images/echomine.png", "game/images/scraptrailer2dusk.png", "game/images/schoolintnight.png", "game/images/Daxton.png", "game/images/ChaseNight2.png", "game/images/Carlnight.png", "game/images/pinkbluecabinsday.png", "game/images/Flynn_rejected.png", "game/images/ChaseDay2.png", "game/images/hill_monster_small.png", "game/images/Carlalt2.png", "game/images/mirror.png", "game/images/Chaseu2_discomfort2.png", "game/images/kitchen.png", "game/images/Chaseu1_discomfort.png", "game/images/Young_Leo_Confused.png", "game/images/compbase2a.png", "game/images/van1.png", "game/images/carlechobeanbag.png", "game/images/MrBronson_Neutral_Arms_Relaxed.png", "game/images/desertmeadownight.png", "game/images/Young_Sydney_Worried.png", "game/images/van3.png", "game/images/kitchenNight.png", "game/images/hall2.png", "game/images/Carlalttab_neutral.png", "game/images/FlynnShirtless.png", "game/images/barback2.png", "game/images/Monday.png", "game/images/SundayCarl.png", "game/images/railyard.png", "game/images/Leo_Embarassed.png", "game/images/EchoJenna_Neutral_ArmsCrossed.png", "game/images/clint spritev2neutral5percent.png", "game/images/shade4.png", "game/images/AreYouReal.png", "game/images/TJ rejected.png", "game/images/lakeside_arches.png", "game/images/maybesydney.png", "game/images/hill_small.png", "game/images/Justice.jpg", "game/images/TJSaturday0.png", "game/images/Young_Jenna.png", "game/images/Kudzu.png", "game/images/lakeemmanight.png", "game/images/cityhallbackroom2.png", "game/images/eyes.jpg", "game/images/Heather_Hysterical.png", "game/images/nightoverlay.png", "game/images/SmokeRoom1.png", "game/images/forestnight.png", "game/images/fb5.png", "game/images/Janice v 2 without notepaddazed.png", "game/images/Shirtless_Leo_Neutral.png", "game/images/Raven_Rejected.png", "game/images/ParkinglotDay.png", "game/images/Brian sprite v15percent.png", "game/images/fastfood-interior.png", "game/images/Micha_Surprised.png", "game/images/AllWednesday.png", "game/images/Chase2020sad2.png", "game/images/chapel-basement.png", "game/images/motelbeds.png", "game/images/EchoJenna_Edit.png", "game/images/Janice v 2 wnotepadamused.png", "game/images/Carlalt_rejected.png", "game/images/musictxt.png", "game/images/Young_Sydney_Sad.png", "game/images/frontdesk4.png", "game/images/Kudzu_Wry.png", "game/images/FlynnsKitchen2.png", "game/images/ChaseSpiderWidow.jpg", "game/images/livingroomnight.png", "game/images/FlynnAlt_annoyed.png", "game/images/socket.png", "game/images/brianstrailernight.png", "game/images/Janice v 2 wnotepad.png", "game/images/Brian wounded.png", "game/images/fake.png", "game/images/uni-vincent.png", "game/images/compbase6.png", "game/images/Young_Sydney_casual_sad_arm.png", "game/images/nightsky1n.png", "game/images/Hike.png", "game/images/Shirtless_Leo_Pain.png", "game/images/climb2.png", "game/images/Raven_Sheepish.png", "game/images/TJu.png", "game/images/hand2.png", "game/images/end.png", "game/images/Young_Tj.png", "game/images/EchoJenna_Wry.png", "game/images/lifthill.png", "game/images/EchoJenna_Smiling_ArmsCrossed.png", "game/images/Young_Sydney_casual_worried.png", "game/images/Chaseu2_discomfort.png", "game/images/carlsparentsroomnight.png", "game/images/Carlalt2_neutral.png", "game/images/diner.png", "game/images/room1.png", "game/images/flashback1.png", "game/images/compbaselog.png", "game/images/chaseleostadium.png", "game/images/vanoutside.png", "game/images/Young_Leo_Confused_arm.png", "game/images/chasehouseint1.png", "game/images/nightoverlayred.png", "game/images/cityhallbackroom1.png", "game/images/the_embrace.png", "game/images/underyeeyaw2.png", "game/images/LeoFriday2.png", "game/images/Flynn_teasing2.png", "game/images/ParkinglotDusk.png", "game/images/Leo_Annoyed.png", "game/images/Leo.png", "game/images/Carlalt2_depressed.png", "game/images/Chase_y_discomfort.png", "game/images/Carlalt2_surprised.png", "game/images/Ryand.png", "game/images/glow.png", "game/images/fb2.png", "game/images/echowide.png", "game/images/SundayJenna2.png", "game/images/SmokeRoom5.png", "game/images/Daxton_Rejected.png", "game/images/field2.png", "game/images/MrBronson_Shock_Arms_Crossed.png", "game/images/camecho.png", "game/images/frontdesk.png", "game/images/TJ annoyed.png", "game/images/bgn.png", "game/images/uni6.png", "game/images/Thursday.png", "game/images/Shirtless_Leo_Annoyed.png", "game/images/desertmeadowred.png", "game/images/flynnlivingroom.png", "game/images/ChaseSpiderTarantula.jpg", "game/images/Carny.png", "game/images/yeeyaw2.png", "game/images/trail2.png", "game/images/argument.png", "game/images/crawlspace.png", "game/images/ChaseNight4.png", "game/images/lakesunset.png", "game/images/Young_Leo.png", "game/images/MrBronson_Angry_Arms_Tense.png", "game/images/tjforestdusk.png", "game/images/convenience.png", "game/images/Chaseu2.png", "game/images/memory2.png", "game/images/FlynnAlt_teasing.png", "game/images/underwaternight.png", "game/images/SundayCarl2.png", "game/images/FlynnAlt_rejected.png", "game/images/fastfood-exterior.png", "game/images/Carlalt2_annoyed.png", "game/images/FlynnAlt_teasing2.png", "game/images/uni2.png", "game/images/Duke spritedazed5p.png", "game/images/schoolnight.png", "game/images/lucha2.png", "game/images/backyard.png", "game/images/canyon.png", "game/images/blackdaxton.png", "game/images/shadow_chase/Hey_161.png", "game/images/shadow_chase/Hey_189.png", "game/images/shadow_chase/Hey_091.png", "game/images/shadow_chase/Hey_101.png", "game/images/shadow_chase/Hey_133.png", "game/images/shadow_chase/Hey_061.png", "game/images/shadow_chase/Hey_017.png", "game/images/shadow_chase/Hey_013.png", "game/images/shadow_chase/Hey_073.png", "game/images/shadow_chase/Hey_039.png", "game/images/shadow_chase/Hey_223.png", "game/images/shadow_chase/Hey_005.png", "game/images/shadow_chase/Hey_081.png", "game/images/shadow_chase/Hey_067.png", "game/images/shadow_chase/Hey_153.png", "game/images/shadow_chase/Hey_143.png", "game/images/shadow_chase/Hey_181.png", "game/images/shadow_chase/Hey_119.png", "game/images/shadow_chase/Hey_093.png", "game/images/shadow_chase/Hey_157.png", "game/images/shadow_chase/Hey_123.png", "game/images/shadow_chase/Hey_191.png", "game/images/shadow_chase/Hey_193.png", "game/images/shadow_chase/Hey_003.png", "game/images/shadow_chase/Hey_083.png", "game/images/shadow_chase/Hey_199.png", "game/images/shadow_chase/Hey_045.png", "game/images/shadow_chase/Hey_053.png", "game/images/shadow_chase/Hey_139.png", "game/images/shadow_chase/Hey_169.png", "game/images/shadow_chase/Hey_215.png", "game/images/shadow_chase/Hey_059.png", "game/images/shadow_chase/Hey_095.png", "game/images/shadow_chase/Hey_163.png", "game/images/shadow_chase/Hey_033.png", "game/images/shadow_chase/Hey_141.png", "game/images/shadow_chase/Hey_121.png", "game/images/shadow_chase/Hey_217.png", "game/images/shadow_chase/Hey_221.png", "game/images/shadow_chase/Hey_127.png", "game/images/shadow_chase/Hey_155.png", "game/images/shadow_chase/Hey_015.png", "game/images/shadow_chase/Hey_025.png", "game/images/shadow_chase/Hey_173.png", "game/images/shadow_chase/Hey_041.png", "game/images/shadow_chase/Hey_105.png", "game/images/shadow_chase/Hey_023.png", "game/images/shadow_chase/Hey_103.png", "game/images/shadow_chase/Hey_211.png", "game/images/shadow_chase/Hey_107.png", "game/images/shadow_chase/Hey_147.png", "game/images/shadow_chase/Hey_111.png", "game/images/shadow_chase/Hey_203.png", "game/images/shadow_chase/Hey_019.png", "game/images/shadow_chase/Hey_109.png", "game/images/shadow_chase/Hey_027.png", "game/images/shadow_chase/Hey_115.png", "game/images/shadow_chase/Hey_035.png", "game/images/shadow_chase/Hey_167.png", "game/images/shadow_chase/Hey_065.png", "game/images/shadow_chase/Hey_069.png", "game/images/shadow_chase/Hey_077.png", "game/images/shadow_chase/Hey_183.png", "game/images/shadow_chase/Hey_047.png", "game/images/shadow_chase/Hey_137.png", "game/images/shadow_chase/Hey_213.png", "game/images/shadow_chase/Hey_129.png", "game/images/shadow_chase/Hey_079.png", "game/images/shadow_chase/Hey_219.png", "game/images/shadow_chase/Hey_159.png", "game/images/shadow_chase/Hey_113.png", "game/images/shadow_chase/Hey_195.png", "game/images/shadow_chase/Hey_175.png", "game/images/shadow_chase/Hey_057.png", "game/images/shadow_chase/Hey_031.png", "game/images/shadow_chase/Hey_021.png", "game/images/shadow_chase/Hey_197.png", "game/images/shadow_chase/Hey_097.png", "game/images/shadow_chase/Hey_149.png", "game/images/shadow_chase/Hey_075.png", "game/images/shadow_chase/Hey_171.png", "game/images/shadow_chase/Hey_209.png", "game/images/shadow_chase/Hey_051.png", "game/images/shadow_chase/Hey_207.png", "game/images/shadow_chase/Hey_131.png", "game/images/shadow_chase/Hey_177.png", "game/images/shadow_chase/Hey_225.png", "game/images/shadow_chase/Hey_009.png", "game/images/shadow_chase/Hey_187.png", "game/images/shadow_chase/Hey_007.png", "game/images/shadow_chase/Hey_063.png", "game/images/shadow_chase/Hey_037.png", "game/images/shadow_chase/Hey_099.png", "game/images/shadow_chase/Hey_165.png", "game/images/shadow_chase/Hey_055.png", "game/images/shadow_chase/Hey_011.png", "game/images/shadow_chase/Hey_179.png", "game/images/shadow_chase/Hey_145.png", "game/images/shadow_chase/Hey_029.png", "game/images/shadow_chase/Hey_085.png", "game/images/shadow_chase/Hey_087.png", "game/images/shadow_chase/Hey_071.png", "game/images/shadow_chase/Hey_089.png", "game/images/shadow_chase/Hey_201.png", "game/images/shadow_chase/Hey_043.png", "game/images/shadow_chase/Hey_205.png", "game/images/shadow_chase/Hey_185.png", "game/images/shadow_chase/Hey_125.png", "game/images/shadow_chase/Hey_151.png", "game/images/shadow_chase/Hey_049.png", "game/images/shadow_chase/Hey_135.png", "game/images/shadow_chase/Hey_117.png", "game/images/thumbnails/carl_1.png", "game/images/thumbnails/leo_2.png", "game/images/thumbnails/jenna.png", "game/images/thumbnails/friday_flynn.png", "game/images/thumbnails/wednesday.png", "game/images/thumbnails/tuesday_carl.png", "game/images/thumbnails/tj_1.png", "game/images/thumbnails/tj_4.png", "game/images/thumbnails/flynn_1.png", "game/images/thumbnails/runaway.png", "game/images/thumbnails/leo.png", "game/images/thumbnails/Cover.png", "game/images/thumbnails/monday.png", "game/images/thumbnails/lights.png", "game/images/thumbnails/metaphor.png", "game/images/thumbnails/carl.png", "game/images/thumbnails/jenna_1.png", "game/images/thumbnails/friday.png", "game/images/thumbnails/chase.png", "game/images/thumbnails/flynn_2.png", "game/images/thumbnails/sunday.png", "game/images/thumbnails/phone.png", "game/images/thumbnails/jenna_2.png", "game/images/thumbnails/trip.png", "game/images/thumbnails/party.png", "game/images/thumbnails/tj_2.png", "game/images/thumbnails/com_1.png", "game/images/thumbnails/tj.png", "game/images/thumbnails/hand_2.png", "game/images/thumbnails/saturday.png", "game/images/thumbnails/hand_1.png", "game/images/thumbnails/carl_3.png", "game/images/thumbnails/saturday_tj.png", "game/images/thumbnails/com_2.png", "game/images/thumbnails/flynn.png", "game/images/thumbnails/com_3.png", "game/images/thumbnails/thursday_tj.png", "game/images/thumbnails/flynn_3.png", "game/images/thumbnails/tj_3.png", "game/images/thumbnails/carl_2.png", "game/images/thumbnails/tuesday.png", "game/images/thumbnails/leo_1.png", "game/images/thumbnails/tuesday_tj.png", "game/images/thumbnails/date.png", "game/images/thumbnails/thursday.png", "game/images/thumbnails/sunday_flynn.png", "game/images/thumbnails/locked.png", "game/images/credits/leo_12.jpg", "game/images/credits/leo_9.png", "game/images/credits/leo_2.png", "game/images/credits/leo_14.jpg", "game/images/credits/bleo_1.png", "game/images/credits/leo_6.png", "game/images/credits/leo_11.png", "game/images/credits/leo_5.png", "game/images/credits/leo_3.png", "game/images/credits/bjenna_1.png", "game/images/credits/leo_10.png", "game/images/credits/leo_7.png", "game/images/credits/leo_8.png", "game/images/credits/credits_black.png", "game/images/credits/leo_4.png", "game/images/credits/vanoutside.png", "game/images/credits/leo_13.jpg", "game/images/credits/bcarl_1.png", "game/images/credits/leo_1.png", "game/ui/bt_help_idle.png", "game/ui/bt_load_idle.png", "game/ui/speaker_lana.png", "game/ui/bt_no_hover.png", "game/ui/bt_load_hover.png", "game/ui/speaker_brian.png", "game/ui/bt_help_hover.png", "game/ui/message_box.png", "game/ui/cover.png", "game/ui/bt_quit_idle.png", "game/ui/bt_title_idle.png", "game/ui/speaker_heather.png", "game/ui/speaker_kudzu.png", "game/ui/slider_v.png", "game/ui/speaker_vincent.png", "game/ui/speaker_mrbronson.png", "game/ui/cover_help_hover.jpg", "game/ui/bt_yes_idle.png", "game/ui/bt_save_idle.png", "game/ui/bt_quit_hover.png", "game/ui/speaker_tj.png", "game/ui/speaker_sydney.png", "game/ui/speaker_injy.png", "game/ui/ctc.png", "game/ui/choice_hover.png", "game/ui/bt_title_hover.png", "game/ui/bt_no_idle.png", "game/ui/speaker_mom.png", "game/ui/quit_bg.png", "game/ui/speaker_raven.png", "game/ui/speaker_sean.png", "game/ui/speaker_dad.png", "game/ui/speaker_mike.png", "game/ui/choice_idle.png", "game/ui/choice_bg.png", "game/ui/speaker_chase.png", "game/ui/speaker_carny.png", "game/ui/bt_save_hover.png", "game/ui/speaker_julian.png", "game/ui/bg.jpg", "game/ui/speaker_unknown.png", "game/ui/speaker_casey.png", "game/ui/bt_back_hover.png", "game/ui/speaker_jeremy.png", "game/ui/cover_quit_hover.jpg", "game/ui/speaker_sarah.png", "game/ui/speaker_terry.png", "game/ui/speaker_mayor.png", "game/ui/bt_back_idle.png", "game/ui/slider_thumb.png", "game/ui/speaker_clint.png", "game/ui/cover.jpg", "game/ui/speaker_carl.png", "game/ui/speaker_jenna.png", "game/ui/slider_empty.png", "game/ui/bt_config_hover.png", "game/ui/cursor.png", "game/ui/speaker_devon.png", "game/ui/speaker_kudzu - Copy.png", "game/ui/bt_config_idle.png", "game/ui/speaker_flynn.png", "game/ui/speaker_micha.png", "game/ui/speaker_dadg.png", "game/ui/speaker_leo.png", "game/ui/cover_options_hover.jpg", "game/ui/speaker_duke.png", "game/ui/cover_loadgame_hover.jpg", "game/ui/speaker_ryan.png", "game/ui/speaker_cameron.png", "game/ui/options_bg.png", "game/ui/slider_full.png", "game/ui/slider_thumb_v.png", "game/ui/speaker_daxton.png", "game/ui/speaker_janice.png", "game/ui/cover_newgame_hover.jpg", "game/ui/speaker_.png", "game/ui/bt_yes_hover.png", "game/ui/speaker_jasmynn.png", "game/ui/mm/03_newgame_idle.jpg", "game/ui/mm/07_quit_idle.jpg", "game/ui/mm/07_quit_hover.jpg", "game/ui/mm/02_top.jpg", "game/ui/mm/04_loadgame_idle.jpg", "game/ui/mm/null.png", "game/ui/mm/01_left.jpg", "game/ui/mm/water_idle.png", "game/ui/mm/08_right.jpg", "game/ui/mm/help_hover.png", "game/ui/mm/water_hover.png", "game/ui/mm/06_help_hover.jpg", "game/ui/mm/quit_hover.png", "game/ui/mm/options_hover.png", "game/ui/mm/load_game_hover.png", "game/ui/mm/05_options_hover.jpg", "game/ui/mm/06_help_idle.jpg", "game/ui/mm/cover.jpg", "game/ui/mm/cover_new.jpg", "game/ui/mm/05_options_idle.jpg", "game/ui/mm/04_loadgame_hover.jpg", "game/ui/mm/new_game_hover.png", "game/ui/mm/03_newgame_hover.jpg", "game/ui/phone/bubble-tip2.png", "game/ui/phone/phone_sad.png", "game/ui/phone/call_idle.png", "game/ui/phone/phone_shadowchase.png", "game/ui/phone/message_hover.png", "game/ui/phone/bubble-tip.png", "game/ui/phone/phone_terror.png", "game/ui/phone/alarm_idle.png", "game/ui/phone/message_idle.png", "game/ui/phone/map_idle.png", "game/ui/phone/phone_no.png", "game/ui/phone/home_screen.png", "game/ui/phone/home.png", "game/ui/phone/phone_chase.png", "game/ui/phone/weather_idle.png", "game/ui/phone/message/jenna_bg.png", "game/ui/phone/message/icon_hover.png", "game/ui/phone/message/carl_bg.png", "game/ui/phone/message/icon_idle.png", "game/ui/phone/message/chat_leo2.png", "game/ui/phone/message/chat_leo.png", "game/ui/phone/message/tj_bg.png", "game/ui/phone/message/flynn_bg.png", "game/ui/phone/predater/chat_1.png", "game/ui/phone/predater/chat.png", "game/ui/phone/predater/ad_fav.png", "game/ui/phone/predater/icon_hover.png", "game/ui/phone/predater/test.png", "game/ui/phone/predater/ad_block.png", "game/ui/phone/predater/login_1.png", "game/ui/phone/predater/background.png", "game/ui/phone/predater/banner.png", "game/ui/phone/predater/ad_apex.png", "game/ui/phone/predater/chat_2.png", "game/ui/phone/predater/icon_idle.png", "game/ui/phone/predater/test_button.png", "game/ui/phone/predater/login_2.png", "game/ui/phone/predater/bio/13.png", "game/ui/phone/predater/bio/15.png", "game/ui/phone/predater/bio/chat.png", "game/ui/phone/predater/bio/11.png", "game/ui/phone/predater/bio/12.png", "game/ui/phone/predater/bio/17.png", "game/ui/phone/predater/bio/8.png", "game/ui/phone/predater/bio/fav-ed.png", "game/ui/phone/predater/bio/16.png", "game/ui/phone/predater/bio/4.png", "game/ui/phone/predater/bio/return_idle.png", "game/ui/phone/predater/bio/5.png", "game/ui/phone/predater/bio/7.png", "game/ui/phone/predater/bio/fav.png", "game/ui/phone/predater/bio/block.png", "game/ui/phone/predater/bio/0.png", "game/ui/phone/predater/bio/none.png", "game/ui/phone/predater/bio/return.png", "game/ui/phone/predater/bio/14.png", "game/ui/phone/predater/bio/9.png", "game/ui/phone/predater/bio/10.png", "game/ui/phone/predater/bio/6.png", "game/ui/phone/predater/icon/13_idle.png", "game/ui/phone/predater/icon/17_idle.png", "game/ui/phone/predater/icon/5_idle.png", "game/ui/phone/predater/icon/4_idle.png", "game/ui/phone/predater/icon/unk3_hover.png", "game/ui/phone/predater/icon/8_idle.png", "game/ui/phone/predater/icon/unk1_hover.png", "game/ui/phone/predater/icon/5_hover.png", "game/ui/phone/predater/icon/unk1_idle.png", "game/ui/phone/predater/icon/13_hover.png", "game/ui/phone/predater/icon/unk2_hover.png", "game/ui/phone/predater/icon/9_hover.png", "game/ui/phone/predater/icon/17_hover.png", "game/ui/phone/predater/icon/8_hover.png", "game/ui/phone/predater/icon/4_hover.png", "game/ui/phone/predater/icon/unk2_idle.png", "game/ui/phone/predater/icon/unk3_idle.png", "game/ui/phone/predater/icon/9_idle.png", "game/ui/gallery/image_idle.png", "game/ui/gallery/mp3_random_idle.png", "game/ui/gallery/godray2.png", "game/ui/gallery/godray3.png", "game/ui/gallery/window1.png", "game/ui/gallery/lakebottom_1.png", "game/ui/gallery/mp3_previous_idle.png", "game/ui/gallery/mp3_random_hover.png", "game/ui/gallery/letter0.png", "game/ui/gallery/window0.png", "game/ui/gallery/godray1.png", "game/ui/gallery/return_idle.png", "game/ui/gallery/window3.png", "game/ui/gallery/null.png", "game/ui/gallery/letter1.png", "game/ui/gallery/mp3_next_idle.png", "game/ui/gallery/mp3_stop_hover.png", "game/ui/gallery/lakebottom_2.png", "game/ui/gallery/mp3_play_idle.png", "game/ui/gallery/mp3_stop_idle.png", "game/ui/gallery/window5.png", "game/ui/gallery/gallery_bg.png", "game/ui/gallery/mp3_play_hover.png", "game/ui/gallery/mp3_next_hover.png", "game/ui/gallery/letter2.png", "game/ui/gallery/scene_idle.png", "game/ui/gallery/mp3_previous_hover.png", "game/ui/gallery/window4.png", "game/ui/gallery/music_idle.png", "game/ui/gallery/window2.png", "icons/icon-512x512-maskable.png", "icons/icon-144x144.png", "icons/icon-96x96-maskable.png", "icons/icon-384x384-maskable.png", "icons/icon-192x192-maskable.png", "icons/icon-128x128.png", "icons/icon-512x512.png", "icons/icon-96x96.png", "icons/icon-128x128-maskable.png", "icons/icon-72x72.png", "icons/icon-152x152.png", "icons/icon-144x144-maskable.png", "icons/icon-72x72-maskable.png", "icons/icon-384x384.png", "icons/icon-152x152-maskable.png", "icons/icon-192x192.png"], "version": 1767050996}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983/*
Copyright 2019-2021 Sylvain BeuclerCopyright 2022 Teyut <teyut@free.fr>Copyright 2019-2022 Tom Rothamel <pytom@bishoujo.us>
Permission is hereby granted, free of charge, to any personobtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction,including without limitation the rights to use, copy, modify, merge,publish, distribute, sublicense, and/or sell copies of the Software,and to permit persons to whom the Software is furnished to do so,subject to the following conditions:
The above copyright notice and this permission notice shall beincluded in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BELIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTIONOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTIONWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*/
Module = window.Module || { };Module.preRun = Module.preRun || [ ];
(function () {
/*************************************************************************** * Report messages, errors, and progress. **************************************************************************/
// The div containing the status and progress bar. let statusDiv = document.getElementById("statusDiv"); let statusTextDiv = document.getElementById("statusTextDiv"); let statusProgress = document.getElementById("statusProgress");
// Presplash block let presplash = document.getElementById('presplash');
// The timeout before the status div hides itself. let statusTimeout = null;
// The status message. let statusText = "";
// How long before the status div starts hiding, in seconds. const STATUS_TIMEOUT = 5000;
// The last time the progress was updated. let lastProgressTime = 0;
// Has an error been reported? let errorReported = false;
// Should output only go to the console? let printConsoleOnly = false;
/** * Hide the status div. Once it's hidden, clears the status text. */ function hideStatus() { if (errorReported) { return; }
statusDiv.classList.remove("visible"); statusDiv.classList.add("hidden");
statusTimeout = setTimeout(() => { statusText = ""; }, 250); }
/** * Show the status div. */ function showStatus() { statusDiv.classList.remove("hidden"); statusDiv.classList.add("visible"); statusTextDiv.scrollTop = statusTextDiv.scrollHeight; statusProgress.style.display = "none"; }
/** * Cancels the timeout that hides the status div. */ function cancelStatusTimeout() { if (statusTimeout) { clearTimeout(statusTimeout); statusTimeout = null; } }
/** * Start the timeout that hides the status div. */ function startStatusTimeout() { cancelStatusTimeout(); statusTimeout = setTimeout(hideStatus, STATUS_TIMEOUT); }
function printCommon(s) {
cancelStatusTimeout(); lastProgressTime = 0;
if (statusText) { statusText += "<br>"; }
if (s == "" && !errorReported) { statusText = ""; return; }
for (let i of s.split("\n")) { if (i.length > 0) { console.log(i); } }
if (printConsoleOnly) { return; }
s = String(s); s = s.replace(/&/g, "&"); s = s.replace(/</g, "<"); s = s.replace(/>/g, ">"); s = s.replace('\n', '<br />', 'g');
statusText += s;
let lines = statusText.split("<br />"); if (lines.length > 200) { lines = lines.slice(lines.length - 200); statusText = lines.join("<br />"); }
statusTextDiv.innerHTML = statusText;
showStatus(); }
/** * Reports a message that will eventually be hidden. */ function printMessage(s) {
if (s.startsWith("warning: ") || s.startsWith("wasm streaming compile failed") || s.startsWith("falling back to ArrayBuffer") ) { console.log(s); return; }
printCommon(s); startStatusTimeout(); }
function reportError(s, e) { if (e) { console.error(e, e.stack); s += ": " + e.message; }
s += "\nMore information may be available in the browser console or contained in the log.";
printCommon(s);
errorReported = true;
try { Module.addRunDependency("error"); } catch (e) { window.stop(); } }
/** * Updates the progress bar. */ function progress(done, total) {
if (errorReported) { return; }
let now = +Date.now();
if ((now < lastProgressTime + 32) && (done < total) && (done > 1)) { return }
lastProgressTime = now;
cancelStatusTimeout(); showStatus();
if (total) { statusProgress.value = done; statusProgress.max = total; statusProgress.style.display = "block"; }
startStatusTimeout();
}
window.progress = progress;
Module.print = printMessage; Module.printErr = printMessage;
/*************************************************************************** * Browser capability checks. **************************************************************************/
// Report the lack of WebAssembly support. if (typeof WebAssembly !== 'object') { reportError("This browser does not support WebAssembly."); }
// Report the lack of the fetch function. if (typeof fetch !== 'function') { reportError("This browser does not support fetch."); }
// Clear error when running without a server. if (location.href.startsWith('file://')) { reportError("This browser requires the game to be run from a web server (i.e. double-clicking on index.html won't work)."); }
/*************************************************************************** * Emscripten initialization and termination. **************************************************************************/
/** Set up the canvas. */ let canvas = document.getElementById('canvas');
/** Set when the webGlContext is lost. */ window.webglContextLost = false;
/** Set when the webGlContext is restored. Cleared by Ren'Py in core.py. */ window.webglContextRestored = false;
canvas.addEventListener("webglcontextlost", (e) => { window.webglContextRestored = false; window.webglContextLost = true; e.preventDefault(); }, false);
canvas.addEventListener("webglcontextrestored", (e) => { window.webglContextLost = false; window.webglContextRestored = true; }, false);
canvas.addEventListener('mouseenter', function (e) { window.focus() });
canvas.addEventListener('click', function (e) { window.focus() });
Module.canvas = canvas;
window.presplashEnd = () => { presplash.remove(); cancelStatusTimeout(); hideStatus(); };
window.atExit = () => { canvas.remove(); reportError("The game exited unexpectedly."); };
Module.onAbort = () => { canvas.remove(); reportError("The game aborted unexpectedly."); };
/** * Initialize the filesystem. */ function initFs() { // Create the save directory, and mount the IDBFS filesystem. try { Module.addRunDependency('initFs'); FS.mkdir('/home/web_user/.renpy'); FS.mount(IDBFS, {}, '/home/web_user/.renpy'); FS.syncfs(true, (err) => { if (err) { printMessage("Error syncing IDBFS: " + err); printMessage("The game may not be able to save properly."); }
Module.removeRunDependency('initFs'); }); } catch (e) { reportError("Could not create ~/.renpy/", e); } }
Module.preRun.push(initFs);
// The size of the data and gamezip files. let dataSize = 0; let gameZipSize = 0;
// The number of bytes downloaded. let dataDownloaded = 0; let gameZipDownloaded = 0;
// Have we issued the data and gameZip prompts? let dataPrompt = false; let gameZipPrompt = false;
function updateDownloadProgress() { if (dataSize == 0) { return; }
if (dataDownloaded < dataSize || gameZipSize == 0) { if (!dataPrompt) { printMessage(""); printMessage("Downloading engine..."); dataPrompt = true; }
progress(dataDownloaded, dataSize); return; }
if (!gameZipPrompt) { printMessage(""); printMessage("Downloading game data..."); gameZipPrompt = true; }
progress(gameZipDownloaded, gameZipSize);
}
Module.setStatus = function (s) {
var m = s.match(/([^(]+)\((\d+(\.\d+)?)\/(\d+)\)/);
if (m) { dataDownloaded = parseInt(m[2]); dataSize = parseInt(m[4]); updateDownloadProgress(); return; }
console.log(s); }
async function loadGameZip() {
try { let response = await fetch(window.gameZipURL);
if (!response.ok) { reportError("Could not load game.zip: " + response.status + " " + response.statusText); }
gameZipSize = parseInt(response.headers.get('Content-Length'), 10); if(Number.isNaN(gameZipSize)) gameZipSize = 0;
let reader = await response.body.getReader();
let f = FS.open('/game.zip', 'w');
while (true) {
let { done, value } = await reader.read();
if (done) { break; }
FS.write(f, value, 0, value.length); gameZipDownloaded += value.length;
updateDownloadProgress(); }
FS.close(f);
} catch (e) { reportError("Could not download game.zip", e); } }
function runLoadGameZip() { Module.addRunDependency('loadGameZip');
loadGameZip().then(() => { Module.removeRunDependency('loadGameZip'); });
}
Module['preRun'].push(runLoadGameZip);
/*************************************************************************** * **************************************************************************/
let cmd_queue = []; let cur_cmd = undefined; let cmd_debug = false;
function cmd_log(...args) { if (cmd_debug) console.debug(...args); }
/** This functions is called by the wrapper script at the end of script execution. */ function cmd_callback(result) { cmd_log('cmd_callback', result);
if (cur_cmd === undefined) { console.error('Unexpected command result', result); return; }
try { if (result.error !== undefined) { cmd_log('ERROR', result.name, result.error, result.traceback); const e = new Error(result.error); e.name = result.name; e.traceback = result.traceback; cur_cmd.reject(e); } else { cmd_log('SUCCESS', result.data); cur_cmd.resolve(result.data); } } finally { cur_cmd = undefined; send_next_cmd(); } }
window._renpy_cmd_callback = cmd_callback;
/** Prepare and send the next command to be executed if any. */ function send_next_cmd() { if (cmd_queue.length == 0) return
cur_cmd = cmd_queue.shift(); cmd_log('send_next_cmd', cur_cmd);
// Convert script to base64 to prevent having to escape // the script content as a Python string const script_b64 = btoa(cur_cmd.py_script); const wrapper = 'import base64, emscripten, json, traceback;\n' + 'try:' + "result = None;" + "exec(base64.b64decode('" + script_b64 + "').decode('utf-8'));" + "result = json.dumps(dict(data=result));" + "\n" + "except Exception as e:" + "result = json.dumps(dict(error=str(e), name=e.__class__.__name__, traceback=traceback.format_exc()));" + "\n" + "emscripten.run_script('_renpy_cmd_callback(%s)' % (result,));";
cmd_log(wrapper);
// Write script to the global variable Ren'Py is monitoring window._renpy_cmd = wrapper; }
/** Add a command to the queue and execute it if the queue was empty. */ function add_cmd(py_script, resolve, reject) { const cmd = { py_script: py_script, resolve: resolve, reject: reject }; cmd_log('add_cmd', cmd); cmd_queue.push(cmd);
if (cur_cmd === undefined) send_next_cmd(); }
/* Global definitions */
/** Execute Python statements in Ren'Py Python's thread. The statements are executed * using the renpy.python.py_exec() function, and the value of the "result" variable * is passed to the resolve callback. In case of error, an Error instance is passed * to the reject callback, with an extra "traceback" property. * @param py_script The Python script to execute. * @return A promise which resolves with the statements result. */ renpy_exec = function (py_script) { return new Promise((resolve, reject) => { add_cmd(py_script, resolve, reject); }); };
window.renpy_exec = renpy_exec;
/** Helper function to get the value of a Ren'Py variable. * @param name The variable name (e.g., "build.name"). * @return A promise which resolves with the variable value. */ renpy_get = function (name) { return new Promise((resolve, reject) => { renpy_exec('result = ' + name) .then(resolve).catch(reject); }); };
window.renpy_get = renpy_get;
/** Helper function to set the value of a Ren'Py variable. * @param name The variable name (e.g., "build.name"). * @param value The value to set. It should either be a basic JS type that * will be converted to JSON, or a Python expression. The raw * parameter must be set to true for the latter case. * @param raw (optional) If true, value is a valid Python expression. * Otherwise, it must be a basic JS type. * @return A promise which resolves with true in case of success * and fails otherwise. */ renpy_set = function (name, value, raw) { let script; if (raw) { script = name + " = " + value + "; result = True"; } else { // Using base64 as it is unclear if we can use the output // of JSON.stringify() directly as a Python string script = 'import base64, json; ' + name + " = json.loads(base64.b64decode('" + btoa(JSON.stringify(value)) + "').decode('utf-8')); result = True"; } return new Promise((resolve, reject) => { renpy_exec(script) .then(resolve).catch(reject); }); };
window.renpy_set = renpy_set;
/*************************************************************************** * Context menu. **************************************************************************/
const menu = document.getElementById('ContextMenu');
const contextContainer = document.getElementById('ContextContainer');
document.getElementById('ContextButton').addEventListener('click', function (e) { if (menu.style.display == 'none') { menu.style.display = 'block'; contextContainer.classList.add("shown"); } else { menu.style.display = 'none'; contextContainer.classList.remove("shown"); } e.preventDefault(); });
menu.addEventListener('click', function (e) { if (e.target.tagName == 'A') { // Close context menu when a menu item is selected menu.style.display = 'none'; } });
async function onSavegamesImport(input) { reader = new FileReader(); reader.onload = function (e) { FS.writeFile('savegames.zip', new Uint8Array(e.target.result));
renpy_exec('result = renpy.savelocation.unzip_saves()').then((result) => { FS.syncfs(false, function (err) { if (err) { console.trace(); console.log(err, err.message); printMessage("Warning: cannot import savegames: write error: " + err.message ); } else { renpy_exec('renpy.loadsave.location.scan()').then(result => { printMessage("Saves imported successfully."); }).catch(error => { console.error('Cannot rescan saves folder:', error); printMessage("Saves imported - restart game to apply."); }); } }); }).catch(error => { console.error('Cannot import savegames', error); printMessage("Couldn't import the savegames: " + error.message); }) } reader.readAsArrayBuffer(input.files[0]) input.type = ''; input.type = 'file'; // reset field }
window.onSavegamesImport = onSavegamesImport;
function onSavegamesExport() { renpy_exec('result = renpy.savelocation.zip_saves()').then((ret) => { if (ret) { FSDownload('savegames.zip', 'application/zip'); printMessage("Saves exported successfully.\n"); } }); }
window.onSavegamesExport = onSavegamesExport;
function FSDownload(filename, mimetype) { console.log('download', filename); var a = document.createElement('a'); a.download = filename.replace(/.*\//, ''); try { a.href = window.URL.createObjectURL(new Blob([FS.readFile(filename)], { type: mimetype || '' })); } catch (e) { Module.print("Error opening " + filename + "\n"); return; } document.body.appendChild(a); a.click();
// delay clean-up to avoid iOS issue: // The operation couldn’t be completed. (WebKitBlobResource error 1.) setTimeout(function () { window.URL.revokeObjectURL(a.href); document.body.removeChild(a); }, 1000); }
window.FSDownload = FSDownload;
/*************************************************************************** * Precaching. **************************************************************************/
function loadCache() {
try { navigator.serviceWorker.controller.postMessage(["loadCache"]); } catch (e) { // pass }
async function loadCacheWorker() {
let response = await fetch("pwa_catalog.json"); let catalog = await response.json();
let cachedCatalog;
try { let cachedCatalogResponse = await fetch("pwa_catalog.json?cached") cachedCatalog = await cachedCatalogResponse.json(); } catch (e) { console.log("No cached catalog found."); cachedCatalog = { version: -1 }; }
if (cachedCatalog.version == catalog.version) { return; }
printMessage(""); printMessage("Preloading game files into browser cache...") progress(0, catalog.files.length);
for (let i = 0; i < catalog.files.length; i++) { let response = await fetch(catalog.files[i]); await response.blob();
progress(i + 1, catalog.files.length); }
cancelStatusTimeout(); hideStatus();
// This will add the catalog to the cache, such that // fetch("pwa_catalog.json?cached") will return it. fetch("pwa_catalog.json?uncached"); }
loadCacheWorker(); }
window.loadCache = loadCache;
function clearCache() { try { navigator.serviceWorker.controller.postMessage(["clearCache"]); } catch (e) { // pass }
localStorage.cacheVersion = -1; }
window.clearCache = clearCache;
/*************************************************************************** * Text input. **************************************************************************/
const inputDiv = document.getElementById("inputDiv"); const inputForm = document.getElementById("inputForm"); const inputPrompt = document.getElementById("inputPrompt"); const inputText = document.getElementById("inputText");
// This stores the input after enter is pressed. window.inputResult = null;
function submitInput(e) { e.preventDefault(); window.inputResult = inputText.value; }
inputForm.addEventListener("submit", submitInput);
inputDiv.addEventListener("keydown", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("keyup", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("keypress", function (e) { e.stopPropagation(); });
inputDiv.addEventListener("mousemove", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("mousedown", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("mouseup", function (e) { e.stopPropagation(); });
inputDiv.addEventListener("touchstart", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("touchend", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("touchcancel", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("touchmove", function (e) { e.stopPropagation(); });
let inputAllow = null; let inputExclude = null;
inputText.addEventListener("input", (e) => { let newValue = "";
for (let c of inputText.value) { if (inputAllow && !inputAllow.includes(c)) { continue; }
if (inputExclude && inputExclude.includes(c)) { continue; }
newValue += c; }
if (newValue != inputText.value) { let end = inputText.selectionEnd; inputText.value = newValue; inputText.setSelectionRange(end-1, end-1); } });
function startInput(prompt, value, allow, exclude, mask) { window.inputResult = null;
inputDiv.classList.remove("hidden"); inputDiv.classList.add("visible");
while (inputPrompt.firstChild) { inputPrompt.removeChild(inputPrompt.firstChild); }
let promptText = document.createTextNode(prompt); inputPrompt.appendChild(promptText);
inputText.value = value; inputText.focus();
inputAllow = allow; inputExclude = exclude;
if (mask) { inputText.type = "password"; } else { inputText.type = "text"; }
}
window.startInput = startInput;
function endInput() { inputDiv.classList.remove("visible"); inputDiv.classList.add("hidden"); inputText.blur(); }
window.endInput = endInput;
/*************************************************************************** * Fetch. ***************************************************************************/
let fetchId = 1; let fetchResult = { };
/** * Fetch a file from the server. * * @param method The HTTP method to use. * @param url The URL to fetch. * @param inFile The file to send to the server. A string giving the file name, or null for no file. * @param outFile The file to write the response to. A string giving the file name, or null for no file. * @param inContentType The content type of the file to send to the server. A string giving the content type. Ignored if inFile is null. * @param headers A string containing a JSON object that contains the headers to send to the server. * * @return A string giving the result of the fetch. The first word is the status, which is one of "OK", "ERROR", or "PENDING", followed by the HTTP status code and status text. */ function fetchFile(method, url, inFile, outFile, inContentType, headers) {
let id = fetchId++; fetchResult[id] = "PENDING Fetch in progress.";
// Ensure headers exists and is not a copy. if (headers) { headers = JSON.parse(headers) } else { headers = { }; }
headers = { ...headers };
async function fetchFileWork() { try {
let content = ''
if (inFile) { headers["Content-Type"] = inContentType || 'application/octet-stream'; }
let options = { method: method, headers: headers};
if (inFile) { options.body = FS.readFile(inFile, { encoding: 'binary' }); }
let response = await fetch(url, options);
if (response.ok) { if (outFile) { let ab = await response.arrayBuffer(); FS.writeFile(outFile, new Uint8Array(ab)); }
fetchResult[id] = "OK " + response.status + " " + response.statusText; } else{ fetchResult[id] = "ERROR " + response.status + " " + response.statusText; }
} catch (err) { fetchResult[id] = "ERROR " + err; console.error(err); }
}
fetchFileWork();
return id; }
function fetchFileResult(id) { let result = fetchResult[id];
if (! result.startsWith("PENDING")) { delete fetchResult[id]; }
return result || "ERROR Fetch ID not found."; }
window.fetchFile = fetchFile; window.fetchFileResult = fetchFileResult;
/** * Fullscreen support. */
let lastFullscreenTime = 0;
function isFullscreen() { let now = +new Date(); return document.fullscreenElement ? 1 : 0; }
window.isFullscreen = isFullscreen;
function setFullscreen(enable) {
let current = document.fullscreenElement !== null;
if (enable == current) { return; }
let now = +new Date();
if (lastFullscreenTime + 250 > +new Date()) { return; }
lastFullscreenTime = now;
setTimeout(function () { if (enable) { let e = document.getElementsByTagName("html")[0]; e.requestFullscreen().catch(function (error) { lastFullscreenTime = now + 15000; }); } else { document.exitFullscreen(); } }, 0); }
window.setFullscreen = setFullscreen;
/*************************************************************************** * "Hidden" developer functions. **************************************************************************/
function downloadBytecode() { FSDownload('/game/cache/bytecode-311.rpyb', 'application/octet-stream'); }
window.downloadBytecode = downloadBytecode;
function traceSleep() { printConsoleOnly = true; renpy_exec('import emscripten; emscripten.TRACE = True') }
window.traceSleep = traceSleep;
function loseContext() { let e = canvas.getContext("webgl2").getExtension("WEBGL_lose_context"); e.loseContext();
setTimeout(function () { e.restoreContext(); }, 1000); }
window.loseContext = loseContext;
/*************************************************************************** * Overlay div handling. **************************************************************************/
let overlayDiv = document.getElementById("overlayDiv");
for (let eventName of ["mousedown", "mouseup", "mousemove" ]) { overlayDiv.addEventListener(eventName, function (e) { canvas.dispatchEvent(new MouseEvent(e.type, e));
if (e.type == "mouseup") { overlayDiv.remove(); }
});
};
})();1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192var cacheName = 'echo';
/* Start the service worker and cache all of the app's content or use the existing one */self.addEventListener('install', function (e) { console.log('Service worker installed.'); self.skipWaiting();});
self.addEventListener('activate', function (e) { return self.clients.claim();});
/** * True if the service worker should add the request to a persistent cache. */let addToCache = false;
/** * Serves the cached version of the request if it exists, otherwise fetches the * request from the network and caches it. Fetch is used in the default mode, * which will use the cache for most network requests, freshening the cache * as required. */async function fetchAndCache(request) { const cache = await caches.open(cacheName); const cachedResponse = await cache.match(request);
try {
if (request.url.endsWith("?cached")) { request = new Request(request.url.replace("?cached", "?uncached"), request); let rv = await cache.match(request);
if (rv == null) { rv = new Response("Not found in cache.", { status: 404, statusText: "Not found in cache." }); }
return rv; }
if (cachedResponse) { if (cachedResponse.headers.get('Last-Modified')) { request.headers.set('If-Modified-Since', cachedResponse.headers.get('Last-Modified')); } if (cachedResponse.headers.get('ETag')) { request.headers.set('If-None-Match', cachedResponse.headers.get('ETag')); } }
const response = await fetch(request);
if (cachedResponse && response.status == 304) { return cachedResponse; }
if (addToCache && response.status == 200) { await cache.put(request, response.clone()); }
return response;
} catch (e) {
if (cachedResponse) { console.log('Served from cache: ' + request.url); return cachedResponse; }
console.log('Not found in cache: ' + request.url);
throw e; }}
/* Serve cached content when offline */self.addEventListener('fetch', function (e) { e.respondWith(fetchAndCache(e.request));});
self.addEventListener('message', function (e) { if (e.data[0] == "clearCache") { caches.delete(cacheName); console.log("Cache cleared in service worker.");
addToCache = false; } else if (e.data[0] == "loadCache") { addToCache = true; }});123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240<html><head><meta charset="utf-8"/><title>SlipWays</title><script src="zepto.min.js"></script><style type="text/css">
html,body {
margin: 0;
font: 16px Helvetica, Arial, sans-serif;
background: #222;
}
canvas#canvas {
/*width: 512px; height: 512px;*/ height: 100%; width: auto; cursor: none; image-rendering: optimizeSpeed;
image-rendering: -moz-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: optimize-contrast;
image-rendering: pixelated;
image-rendering: crisp-edges;
-ms-interpolation-mode: nearest-neighbor;
}
.game {
margin: 0 auto; width: 512px;
height: 512px; padding: 14px;
background: #000;
}
.game.fullscreen { height: 100% !important; width: auto !important; padding: 0;}.fullscreen canvas { display: block; margin: 0 auto;}.btns {
margin: 1px auto 0; display: flex;
width: 540px;}
.btns .spacer {
flex-grow: 1;
background: black;
}
.btns a {
display: block;
box-sizing: border-box;
background: #000;
color: #666;
flex-grow: 0;
text-align: center;
margin: 0 0 0 1px;
vertical-align: middle;
min-width: 30px;
height: 30px;
padding: 9px 5px 0px; text-decoration: none;
transition: all 0.2s ease-out;
font-size: 14px; cursor: pointer; -webkit-touch-callout: none; /* iOS Safari */ -webkit-user-select: none; /* Safari */ -khtml-user-select: none; /* Konqueror HTML */ -moz-user-select: none; /* Firefox */ -ms-user-select: none; /* Internet Explorer/Edge */ user-select: none;}
.btns a:hover {
background:#224;
}
.btns a .label { padding-left: 5px; position: relative; top: -1px; text-shadow: 1px 1px black;}</style></head><body onload="window.focus()"><div class="game" id="game-container"><canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()"></canvas></div><div class="btns pico8_el"><div class="spacer"></div><a class="btn" onclick="toggleFullscreen();" title="Fullscreen"><img height="12" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAaklEQVR4Ae2dsQ1AIQhExfze1v2ns3UCrfgFhmgUUAoGgHscp21wX9BqaZoDojbB96OkDJKNcTN2BHTyYNYmoT2BlPL7BKgcPfHjAVXKKadkHOn9K1r16N0czN6a95N8mnA7Aq2fTZ3Af3UKmCSMazL8HwAAABB0RVh0TG9kZVBORwAyMDExMDIyMeNZtsEAAAAASUVORK5CYII=" width="12"/></a></div><script type="text/javascript">
var pico8_gpio = new Array(128); for (var i = 0; i < 128; i++) pico8_gpio[i] = 0; var canvas = document.getElementById("canvas");
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
var Module = {
arguments: ["-width","512","-height","512"],
};
Module.canvas = canvas;
</script><script async="" src="slipways.js" type="text/javascript"></script><script> $(document).on("webkitfullscreenchange mozfullscreenchange msfullscreenchange fullscreenchange", function(event) { var fullscreenOn = document.fullscreenElement || document.mozFullScreenElement || document.webkitIsFullScreen || document.msFullscreenElement; var container = document.getElementById("game-container"); $("#game-container").toggleClass('fullscreen', fullscreenOn); });
function toggleFullscreen() { var frame = document.getElementById("game-container"); if (document.fullscreenElement || document.mozFullScreenElement || document.webkitIsFullScreen || document.msFullscreenElement) {//exit fs frame.cancelFullscreen = frame.cancelFullscreen || frame.mozCancelFullScreen || frame.webkitCancelFullScreen; frame.cancelFullscreen(); } else {//enter fs frame.requestFullscreen = frame.requestFullscreen || frame.mozRequestFullScreen || frame.webkitRequestFullScreen; frame.requestFullscreen(); } } </script><script> // getting help from within PICO-8 var links = [ "https://slipways.net/quickstart", "https://store.steampowered.com/app/1264280/Slipways?p8=1" ]; var hoverD = [0, 0]; function check() { for (var gpio_id = 0; gpio_id <= 1; gpio_id++) { hoverD[gpio_id] += (pico8_gpio[gpio_id] > 0) ? 1 : -1; if (hoverD[gpio_id] < 0) hoverD[gpio_id] = 0; if (hoverD[gpio_id] > 10) hoverD[gpio_id] = 10; } } setInterval(check, 30); document.getElementById("canvas").addEventListener('click', function(evt) { // PICO-8 sets GPIO when buttons are hovered // and slowly ticks it down to let us always catch it for (var gpio_id = 0; gpio_id <= 1; gpio_id++) { if (hoverD[gpio_id] > 5) { window.open(links[gpio_id], "_blank"); return; } } } ); </script><script>
function onKeyDown_blocker(event) {
event = event || window.event;
var o = document.activeElement;
if (!o || o == document.body || o.tagName == "canvas")
{
if ([32, 37, 38, 39, 40].indexOf(event.keyCode) > -1)
{
if (event.preventDefault) event.preventDefault();
}
}
}
document.addEventListener('keydown', onKeyDown_blocker, false);
</script>
</body></html>
12/* Zepto v1.2.0 - zepto event ajax form ie - zeptojs.com/license */!function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t)}):e(t)}(this,function(t){var e=function(){function $(t){return null==t?String(t):S[C.call(t)]||"object"}function F(t){return"function"==$(t)}function k(t){return null!=t&&t==t.window}function M(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function R(t){return"object"==$(t)}function Z(t){return R(t)&&!k(t)&&Object.getPrototypeOf(t)==Object.prototype}function z(t){var e=!!t&&"length"in t&&t.length,n=r.type(t);return"function"!=n&&!k(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function q(t){return a.call(t,function(t){return null!=t})}function H(t){return t.length>0?r.fn.concat.apply([],t):t}function I(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function V(t){return t in l?l[t]:l[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function _(t,e){return"number"!=typeof e||h[I(t)]?e:e+"px"}function B(t){var e,n;return c[t]||(e=f.createElement(t),f.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),c[t]=n),c[t]}function U(t){return"children"in t?u.call(t.children):r.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function X(t,e){var n,r=t?t.length:0;for(n=0;r>n;n++)this[n]=t[n];this.length=r,this.selector=e||""}function J(t,r,i){for(n in r)i&&(Z(r[n])||L(r[n]))?(Z(r[n])&&!Z(t[n])&&(t[n]={}),L(r[n])&&!L(t[n])&&(t[n]=[]),J(t[n],r[n],i)):r[n]!==e&&(t[n]=r[n])}function W(t,e){return null==e?r(t):r(t).filter(e)}function Y(t,e,n,r){return F(e)?e.call(t,n,r):e}function G(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function K(t,n){var r=t.className||"",i=r&&r.baseVal!==e;return n===e?i?r.baseVal:r:void(i?r.baseVal=n:t.className=n)}function Q(t){try{return t?"true"==t||("false"==t?!1:"null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?r.parseJSON(t):t):t}catch(e){return t}}function tt(t,e){e(t);for(var n=0,r=t.childNodes.length;r>n;n++)tt(t.childNodes[n],e)}var e,n,r,i,O,P,o=[],s=o.concat,a=o.filter,u=o.slice,f=t.document,c={},l={},h={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},p=/^\s*<(\w+|!)[^>]*>/,d=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,m=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,g=/^(?:body|html)$/i,v=/([A-Z])/g,y=["val","css","html","text","data","width","height","offset"],x=["after","prepend","before","append"],b=f.createElement("table"),E=f.createElement("tr"),j={tr:f.createElement("tbody"),tbody:b,thead:b,tfoot:b,td:E,th:E,"*":f.createElement("div")},w=/complete|loaded|interactive/,T=/^[\w-]*$/,S={},C=S.toString,N={},A=f.createElement("div"),D={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},L=Array.isArray||function(t){return t instanceof Array};return N.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var r,i=t.parentNode,o=!i;return o&&(i=A).appendChild(t),r=~N.qsa(i,e).indexOf(t),o&&A.removeChild(t),r},O=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},P=function(t){return a.call(t,function(e,n){return t.indexOf(e)==n})},N.fragment=function(t,n,i){var o,s,a;return d.test(t)&&(o=r(f.createElement(RegExp.$1))),o||(t.replace&&(t=t.replace(m,"<$1></$2>")),n===e&&(n=p.test(t)&&RegExp.$1),n in j||(n="*"),a=j[n],a.innerHTML=""+t,o=r.each(u.call(a.childNodes),function(){a.removeChild(this)})),Z(i)&&(s=r(o),r.each(i,function(t,e){y.indexOf(t)>-1?s[t](e):s.attr(t,e)})),o},N.Z=function(t,e){return new X(t,e)},N.isZ=function(t){return t instanceof N.Z},N.init=function(t,n){var i;if(!t)return N.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&p.test(t))i=N.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return r(n).find(t);i=N.qsa(f,t)}else{if(F(t))return r(f).ready(t);if(N.isZ(t))return t;if(L(t))i=q(t);else if(R(t))i=[t],t=null;else if(p.test(t))i=N.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return r(n).find(t);i=N.qsa(f,t)}}return N.Z(i,t)},r=function(t,e){return N.init(t,e)},r.extend=function(t){var e,n=u.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){J(t,n,e)}),t},N.qsa=function(t,e){var n,r="#"==e[0],i=!r&&"."==e[0],o=r||i?e.slice(1):e,s=T.test(o);return t.getElementById&&s&&r?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:u.call(s&&!r&&t.getElementsByClassName?i?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},r.contains=f.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},r.type=$,r.isFunction=F,r.isWindow=k,r.isArray=L,r.isPlainObject=Z,r.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},r.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},r.inArray=function(t,e,n){return o.indexOf.call(e,t,n)},r.camelCase=O,r.trim=function(t){return null==t?"":String.prototype.trim.call(t)},r.uuid=0,r.support={},r.expr={},r.noop=function(){},r.map=function(t,e){var n,i,o,r=[];if(z(t))for(i=0;i<t.length;i++)n=e(t[i],i),null!=n&&r.push(n);else for(o in t)n=e(t[o],o),null!=n&&r.push(n);return H(r)},r.each=function(t,e){var n,r;if(z(t)){for(n=0;n<t.length;n++)if(e.call(t[n],n,t[n])===!1)return t}else for(r in t)if(e.call(t[r],r,t[r])===!1)return t;return t},r.grep=function(t,e){return a.call(t,e)},t.JSON&&(r.parseJSON=JSON.parse),r.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){S["[object "+e+"]"]=e.toLowerCase()}),r.fn={constructor:N.Z,length:0,forEach:o.forEach,reduce:o.reduce,push:o.push,sort:o.sort,splice:o.splice,indexOf:o.indexOf,concat:function(){var t,e,n=[];for(t=0;t<arguments.length;t++)e=arguments[t],n[t]=N.isZ(e)?e.toArray():e;return s.apply(N.isZ(this)?this.toArray():this,n)},map:function(t){return r(r.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return r(u.apply(this,arguments))},ready:function(t){return w.test(f.readyState)&&f.body?t(r):f.addEventListener("DOMContentLoaded",function(){t(r)},!1),this},get:function(t){return t===e?u.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return o.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return F(t)?this.not(this.not(t)):r(a.call(this,function(e){return N.matches(e,t)}))},add:function(t,e){return r(P(this.concat(r(t,e))))},is:function(t){return this.length>0&&N.matches(this[0],t)},not:function(t){var n=[];if(F(t)&&t.call!==e)this.each(function(e){t.call(this,e)||n.push(this)});else{var i="string"==typeof t?this.filter(t):z(t)&&F(t.item)?u.call(t):r(t);this.forEach(function(t){i.indexOf(t)<0&&n.push(t)})}return r(n)},has:function(t){return this.filter(function(){return R(t)?r.contains(this,t):r(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!R(t)?t:r(t)},last:function(){var t=this[this.length-1];return t&&!R(t)?t:r(t)},find:function(t){var e,n=this;return e=t?"object"==typeof t?r(t).filter(function(){var t=this;return o.some.call(n,function(e){return r.contains(e,t)})}):1==this.length?r(N.qsa(this[0],t)):this.map(function(){return N.qsa(this,t)}):r()},closest:function(t,e){var n=[],i="object"==typeof t&&r(t);return this.each(function(r,o){for(;o&&!(i?i.indexOf(o)>=0:N.matches(o,t));)o=o!==e&&!M(o)&&o.parentNode;o&&n.indexOf(o)<0&&n.push(o)}),r(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=r.map(n,function(t){return(t=t.parentNode)&&!M(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return W(e,t)},parent:function(t){return W(P(this.pluck("parentNode")),t)},children:function(t){return W(this.map(function(){return U(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||u.call(this.childNodes)})},siblings:function(t){return W(this.map(function(t,e){return a.call(U(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return r.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=B(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=F(t);if(this[0]&&!e)var n=r(t).get(0),i=n.parentNode||this.length>1;return this.each(function(o){r(this).wrapAll(e?t.call(this,o):i?n.cloneNode(!0):n)})},wrapAll:function(t){if(this[0]){r(this[0]).before(t=r(t));for(var e;(e=t.children()).length;)t=e.first();r(t).append(this)}return this},wrapInner:function(t){var e=F(t);return this.each(function(n){var i=r(this),o=i.contents(),s=e?t.call(this,n):t;o.length?o.wrapAll(s):i.append(s)})},unwrap:function(){return this.parent().each(function(){r(this).replaceWith(r(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var n=r(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()})},prev:function(t){return r(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return r(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;r(this).empty().append(Y(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=Y(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,r){var i;return"string"!=typeof t||1 in arguments?this.each(function(e){if(1===this.nodeType)if(R(t))for(n in t)G(this,n,t[n]);else G(this,t,Y(this,r,e,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(i=this[0].getAttribute(t))?i:e},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){G(this,t)},this)})},prop:function(t,e){return t=D[t]||t,1 in arguments?this.each(function(n){this[t]=Y(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=D[t]||t,this.each(function(){delete this[t]})},data:function(t,n){var r="data-"+t.replace(v,"-$1").toLowerCase(),i=1 in arguments?this.attr(r,n):this.attr(r);return null!==i?Q(i):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=Y(this,t,e,this.value)})):this[0]&&(this[0].multiple?r(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var n=r(this),i=Y(this,e,t,n.offset()),o=n.offsetParent().offset(),s={top:i.top-o.top,left:i.left-o.left};"static"==n.css("position")&&(s.position="relative"),n.css(s)});if(!this.length)return null;if(f.documentElement!==this[0]&&!r.contains(f.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var i=this[0];if("string"==typeof t){if(!i)return;return i.style[O(t)]||getComputedStyle(i,"").getPropertyValue(t)}if(L(t)){if(!i)return;var o={},s=getComputedStyle(i,"");return r.each(t,function(t,e){o[e]=i.style[O(e)]||s.getPropertyValue(e)}),o}}var a="";if("string"==$(t))e||0===e?a=I(t)+":"+_(t,e):this.each(function(){this.style.removeProperty(I(t))});else for(n in t)t[n]||0===t[n]?a+=I(n)+":"+_(n,t[n])+";":this.each(function(){this.style.removeProperty(I(n))});return this.each(function(){this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(r(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return t?o.some.call(this,function(t){return this.test(K(t))},V(t)):!1},addClass:function(t){return t?this.each(function(e){if("className"in this){i=[];var n=K(this),o=Y(this,t,e,n);o.split(/\s+/g).forEach(function(t){r(this).hasClass(t)||i.push(t)},this),i.length&&K(this,n+(n?" ":"")+i.join(" "))}}):this},removeClass:function(t){return this.each(function(n){if("className"in this){if(t===e)return K(this,"");i=K(this),Y(this,t,n,i).split(/\s+/g).forEach(function(t){i=i.replace(V(t)," ")}),K(this,i.trim())}})},toggleClass:function(t,n){return t?this.each(function(i){var o=r(this),s=Y(this,t,i,K(this));s.split(/\s+/g).forEach(function(t){(n===e?!o.hasClass(t):n)?o.addClass(t):o.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),i=g.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(r(t).css("margin-top"))||0,n.left-=parseFloat(r(t).css("margin-left"))||0,i.top+=parseFloat(r(e[0]).css("border-top-width"))||0,i.left+=parseFloat(r(e[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||f.body;t&&!g.test(t.nodeName)&&"static"==r(t).css("position");)t=t.offsetParent;return t})}},r.fn.detach=r.fn.remove,["width","height"].forEach(function(t){var n=t.replace(/./,function(t){return t[0].toUpperCase()});r.fn[t]=function(i){var o,s=this[0];return i===e?k(s)?s["inner"+n]:M(s)?s.documentElement["scroll"+n]:(o=this.offset())&&o[t]:this.each(function(e){s=r(this),s.css(t,Y(this,i,e,s[t]()))})}}),x.forEach(function(n,i){var o=i%2;r.fn[n]=function(){var n,a,s=r.map(arguments,function(t){var i=[];return n=$(t),"array"==n?(t.forEach(function(t){return t.nodeType!==e?i.push(t):r.zepto.isZ(t)?i=i.concat(t.get()):void(i=i.concat(N.fragment(t)))}),i):"object"==n||null==t?t:N.fragment(t)}),u=this.length>1;return s.length<1?this:this.each(function(e,n){a=o?n:n.parentNode,n=0==i?n.nextSibling:1==i?n.firstChild:2==i?n:null;var c=r.contains(f.documentElement,a);s.forEach(function(e){if(u)e=e.cloneNode(!0);else if(!a)return r(e).remove();a.insertBefore(e,n),c&&tt(e,function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}})})})},r.fn[o?n+"To":"insert"+(i?"Before":"After")]=function(t){return r(t)[n](this),this}}),N.Z.prototype=X.prototype=r.fn,N.uniq=P,N.deserializeValue=Q,r.zepto=N,r}();return t.Zepto=e,void 0===t.$&&(t.$=e),function(e){function h(t){return t._zid||(t._zid=n++)}function p(t,e,n,r){if(e=d(e),e.ns)var i=m(e.ns);return(a[h(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||i.test(t.ns))&&(!n||h(t.fn)===h(n))&&(!r||t.sel==r)})}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function m(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function g(t,e){return t.del&&!f&&t.e in c||!!e}function v(t){return l[t]||f&&c[t]||t}function y(t,n,i,o,s,u,f){var c=h(t),p=a[c]||(a[c]=[]);n.split(/\s/).forEach(function(n){if("ready"==n)return e(document).ready(i);var a=d(n);a.fn=i,a.sel=s,a.e in l&&(i=function(t){var n=t.relatedTarget;return!n||n!==this&&!e.contains(this,n)?a.fn.apply(this,arguments):void 0}),a.del=u;var c=u||i;a.proxy=function(e){if(e=T(e),!e.isImmediatePropagationStopped()){e.data=o;var n=c.apply(t,e._args==r?[e]:[e].concat(e._args));return n===!1&&(e.preventDefault(),e.stopPropagation()),n}},a.i=p.length,p.push(a),"addEventListener"in t&&t.addEventListener(v(a.e),a.proxy,g(a,f))})}function x(t,e,n,r,i){var o=h(t);(e||"").split(/\s/).forEach(function(e){p(t,e,n,r).forEach(function(e){delete a[o][e.i],"removeEventListener"in t&&t.removeEventListener(v(e.e),e.proxy,g(e,i))})})}function T(t,n){return(n||!t.isDefaultPrevented)&&(n||(n=t),e.each(w,function(e,r){var i=n[e];t[e]=function(){return this[r]=b,i&&i.apply(n,arguments)},t[r]=E}),t.timeStamp||(t.timeStamp=Date.now()),(n.defaultPrevented!==r?n.defaultPrevented:"returnValue"in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=b)),t}function S(t){var e,n={originalEvent:t};for(e in t)j.test(e)||t[e]===r||(n[e]=t[e]);return T(n,t)}var r,n=1,i=Array.prototype.slice,o=e.isFunction,s=function(t){return"string"==typeof t},a={},u={},f="onfocusin"in t,c={focus:"focusin",blur:"focusout"},l={mouseenter:"mouseover",mouseleave:"mouseout"};u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",e.event={add:y,remove:x},e.proxy=function(t,n){var r=2 in arguments&&i.call(arguments,2);if(o(t)){var a=function(){return t.apply(n,r?r.concat(i.call(arguments)):arguments)};return a._zid=h(t),a}if(s(n))return r?(r.unshift(t[n],t),e.proxy.apply(null,r)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var b=function(){return!0},E=function(){return!1},j=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,w={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,a,u,f){var c,l,h=this;return t&&!s(t)?(e.each(t,function(t,e){h.on(t,n,a,e,f)}),h):(s(n)||o(u)||u===!1||(u=a,a=n,n=r),(u===r||a===!1)&&(u=a,a=r),u===!1&&(u=E),h.each(function(r,o){f&&(c=function(t){return x(o,t.type,u),u.apply(this,arguments)}),n&&(l=function(t){var r,s=e(t.target).closest(n,o).get(0);return s&&s!==o?(r=e.extend(S(t),{currentTarget:s,liveFired:o}),(c||u).apply(s,[r].concat(i.call(arguments,1)))):void 0}),y(o,t,u,a,n,l||c)}))},e.fn.off=function(t,n,i){var a=this;return t&&!s(t)?(e.each(t,function(t,e){a.off(t,n,e)}),a):(s(n)||o(i)||i===!1||(i=n,n=r),i===!1&&(i=E),a.each(function(){x(this,t,i,n)}))},e.fn.trigger=function(t,n){return t=s(t)||e.isPlainObject(t)?e.Event(t):T(t),t._args=n,this.each(function(){t.type in c&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,n){var r,i;return this.each(function(o,a){r=S(s(t)?e.Event(t):t),r._args=n,r.target=a,e.each(p(a,t.type||t),function(t,e){return i=e.proxy(r),r.isImmediatePropagationStopped()?!1:void 0})}),i},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(t,e){s(t)||(e=t,t=e.type);var n=document.createEvent(u[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),T(n)}}(e),function(e){function p(t,n,r){var i=e.Event(n);return e(t).trigger(i,r),!i.isDefaultPrevented()}function d(t,e,n,i){return t.global?p(e||r,n,i):void 0}function m(t){t.global&&0===e.active++&&d(t,null,"ajaxStart")}function g(t){t.global&&!--e.active&&d(t,null,"ajaxStop")}function v(t,e){var n=e.context;return e.beforeSend.call(n,t,e)===!1||d(e,n,"ajaxBeforeSend",[t,e])===!1?!1:void d(e,n,"ajaxSend",[t,e])}function y(t,e,n,r){var i=n.context,o="success";n.success.call(i,t,o,e),r&&r.resolveWith(i,[t,o,e]),d(n,i,"ajaxSuccess",[e,n,t]),b(o,e,n)}function x(t,e,n,r,i){var o=r.context;r.error.call(o,n,e,t),i&&i.rejectWith(o,[n,e,t]),d(r,o,"ajaxError",[n,r,t||e]),b(e,n,r)}function b(t,e,n){var r=n.context;n.complete.call(r,e,t),d(n,r,"ajaxComplete",[e,n]),g(n)}function E(t,e,n){if(n.dataFilter==j)return t;var r=n.context;return n.dataFilter.call(r,t,e)}function j(){}function w(t){return t&&(t=t.split(";",2)[0]),t&&(t==c?"html":t==f?"json":a.test(t)?"script":u.test(t)&&"xml")||"text"}function T(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function S(t){t.processData&&t.data&&"string"!=e.type(t.data)&&(t.data=e.param(t.data,t.traditional)),!t.data||t.type&&"GET"!=t.type.toUpperCase()&&"jsonp"!=t.dataType||(t.url=T(t.url,t.data),t.data=void 0)}function C(t,n,r,i){return e.isFunction(n)&&(i=r,r=n,n=void 0),e.isFunction(r)||(i=r,r=void 0),{url:t,data:n,success:r,dataType:i}}function O(t,n,r,i){var o,s=e.isArray(n),a=e.isPlainObject(n);e.each(n,function(n,u){o=e.type(u),i&&(n=r?i:i+"["+(a||"object"==o||"array"==o?n:"")+"]"),!i&&s?t.add(u.name,u.value):"array"==o||!r&&"object"==o?O(t,u,r,n):t.add(n,u)})}var i,o,n=+new Date,r=t.document,s=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,a=/^(?:text|application)\/javascript/i,u=/^(?:text|application)\/xml/i,f="application/json",c="text/html",l=/^\s*$/,h=r.createElement("a");h.href=t.location.href,e.active=0,e.ajaxJSONP=function(i,o){if(!("type"in i))return e.ajax(i);var c,p,s=i.jsonpCallback,a=(e.isFunction(s)?s():s)||"Zepto"+n++,u=r.createElement("script"),f=t[a],l=function(t){e(u).triggerHandler("error",t||"abort")},h={abort:l};return o&&o.promise(h),e(u).on("load error",function(n,r){clearTimeout(p),e(u).off().remove(),"error"!=n.type&&c?y(c[0],h,i,o):x(null,r||"error",h,i,o),t[a]=f,c&&e.isFunction(f)&&f(c[0]),f=c=void 0}),v(h,i)===!1?(l("abort"),h):(t[a]=function(){c=arguments},u.src=i.url.replace(/\?(.+)=\?/,"?$1="+a),r.head.appendChild(u),i.timeout>0&&(p=setTimeout(function(){l("timeout")},i.timeout)),h)},e.ajaxSettings={type:"GET",beforeSend:j,success:j,error:j,complete:j,context:null,global:!0,xhr:function(){return new t.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:f,xml:"application/xml, text/xml",html:c,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:j},e.ajax=function(n){var u,f,s=e.extend({},n||{}),a=e.Deferred&&e.Deferred();for(i in e.ajaxSettings)void 0===s[i]&&(s[i]=e.ajaxSettings[i]);m(s),s.crossDomain||(u=r.createElement("a"),u.href=s.url,u.href=u.href,s.crossDomain=h.protocol+"//"+h.host!=u.protocol+"//"+u.host),s.url||(s.url=t.location.toString()),(f=s.url.indexOf("#"))>-1&&(s.url=s.url.slice(0,f)),S(s);var c=s.dataType,p=/\?.+=\?/.test(s.url);if(p&&(c="jsonp"),s.cache!==!1&&(n&&n.cache===!0||"script"!=c&&"jsonp"!=c)||(s.url=T(s.url,"_="+Date.now())),"jsonp"==c)return p||(s.url=T(s.url,s.jsonp?s.jsonp+"=?":s.jsonp===!1?"":"callback=?")),e.ajaxJSONP(s,a);var P,d=s.accepts[c],g={},b=function(t,e){g[t.toLowerCase()]=[t,e]},C=/^([\w-]+:)\/\//.test(s.url)?RegExp.$1:t.location.protocol,N=s.xhr(),O=N.setRequestHeader;if(a&&a.promise(N),s.crossDomain||b("X-Requested-With","XMLHttpRequest"),b("Accept",d||"*/*"),(d=s.mimeType||d)&&(d.indexOf(",")>-1&&(d=d.split(",",2)[0]),N.overrideMimeType&&N.overrideMimeType(d)),(s.contentType||s.contentType!==!1&&s.data&&"GET"!=s.type.toUpperCase())&&b("Content-Type",s.contentType||"application/x-www-form-urlencoded"),s.headers)for(o in s.headers)b(o,s.headers[o]);if(N.setRequestHeader=b,N.onreadystatechange=function(){if(4==N.readyState){N.onreadystatechange=j,clearTimeout(P);var t,n=!1;if(N.status>=200&&N.status<300||304==N.status||0==N.status&&"file:"==C){if(c=c||w(s.mimeType||N.getResponseHeader("content-type")),"arraybuffer"==N.responseType||"blob"==N.responseType)t=N.response;else{t=N.responseText;try{t=E(t,c,s),"script"==c?(1,eval)(t):"xml"==c?t=N.responseXML:"json"==c&&(t=l.test(t)?null:e.parseJSON(t))}catch(r){n=r}if(n)return x(n,"parsererror",N,s,a)}y(t,N,s,a)}else x(N.statusText||null,N.status?"error":"abort",N,s,a)}},v(N,s)===!1)return N.abort(),x(null,"abort",N,s,a),N;var A="async"in s?s.async:!0;if(N.open(s.type,s.url,A,s.username,s.password),s.xhrFields)for(o in s.xhrFields)N[o]=s.xhrFields[o];for(o in g)O.apply(N,g[o]);return s.timeout>0&&(P=setTimeout(function(){N.onreadystatechange=j,N.abort(),x(null,"timeout",N,s,a)},s.timeout)),N.send(s.data?s.data:null),N},e.get=function(){return e.ajax(C.apply(null,arguments))},e.post=function(){var t=C.apply(null,arguments);return t.type="POST",e.ajax(t)},e.getJSON=function(){var t=C.apply(null,arguments);return t.dataType="json",e.ajax(t)},e.fn.load=function(t,n,r){if(!this.length)return this;var a,i=this,o=t.split(/\s/),u=C(t,n,r),f=u.success;return o.length>1&&(u.url=o[0],a=o[1]),u.success=function(t){i.html(a?e("<div>").html(t.replace(s,"")).find(a):t),f&&f.apply(i,arguments)},e.ajax(u),this};var N=encodeURIComponent;e.param=function(t,n){var r=[];return r.add=function(t,n){e.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(N(t)+"="+N(n))},O(r,t,n),r.join("&").replace(/%20/g,"+")}}(e),function(t){t.fn.serializeArray=function(){var e,n,r=[],i=function(t){return t.forEach?t.forEach(i):void r.push({name:e,value:t})};return this[0]&&t.each(this[0].elements,function(r,o){n=o.type,e=o.name,e&&"fieldset"!=o.nodeName.toLowerCase()&&!o.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&"file"!=n&&("radio"!=n&&"checkbox"!=n||o.checked)&&i(t(o).val())}),r},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")},t.fn.submit=function(e){if(0 in arguments)this.bind("submit",e);else if(this.length){var n=t.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(e),function(){try{getComputedStyle(void 0)}catch(e){var n=getComputedStyle;t.getComputedStyle=function(t,e){try{return n(t,e)}catch(r){return null}}}}(),e});1
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697<!DOCTYPE html>
<html lang="en-us"><head><meta charset="utf-8"/><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/><title>Runner Template</title><link rel="shortcut icon" href="TemplateData/favicon.ico"/><link rel="stylesheet" href="TemplateData/style.css"/><!-- Yandex Games SDK --><script src="https://cdn.jsdelivr.net/gh/gn-math/assets@main/yandex-sdk.js?lol"></script><!-- Additional head modules --></head><body class="dark"><div id="unity-container" class="unity-desktop"><canvas id="unity-canvas"></canvas></div><div id="loading-cover" style="display:none;"><div id="unity-loading-bar"><div id="unity-logo"><img src="logo.png"/></div><div id="unity-progress-bar-empty" style="display: none;"><div id="unity-progress-bar-full"></div></div><div class="spinner"></div></div></div><!-- Additional body modules --><script> const hideFullScreenButton = ""; const buildUrl = "Build"; const loaderUrl = buildUrl + "/TwerkRace.loader.js"; const config = { dataUrl: buildUrl + "/c86af6680382d4e84064160e72058923.data", frameworkUrl: buildUrl + "/ae9cb1252b1485f36c41624a1137c5db.js", codeUrl: buildUrl + "/8bd8d556a1c0e4a44c62c319f83458a9.wasm", streamingAssetsUrl: "StreamingAssets", companyName: "Butcher’s Games", productName: "Runner Template", productVersion: "0.01", };
const container = document.querySelector("#unity-container"); const canvas = document.querySelector("#unity-canvas"); const loadingCover = document.querySelector("#loading-cover"); const progressBarEmpty = document.querySelector("#unity-progress-bar-empty"); const progressBarFull = document.querySelector("#unity-progress-bar-full"); const spinner = document.querySelector('.spinner');
const canFullscreen = (function () { for (const key of [ 'exitFullscreen', 'webkitExitFullscreen', 'webkitCancelFullScreen', 'mozCancelFullScreen', 'msExitFullscreen', ]) { if (key in document) { return true; } } return false; }());
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) { container.className = "unity-mobile"; }
canvas.style.background = "url('background.jpg') center / cover";
loadingCover.style.display = "";
canvas.addEventListener("touchstart", () => { window.focus() }); canvas.addEventListener("pointerdown", () => { window.focus() });
let player; let leaderboard; let myGameInstance = null; let payments = null; let promptCanShow = false; let reviewCanShow = false; let initSDK = false; let initGame = false; let photoSizeForInit; let scopesForInit; let nowFullAdOpen = false; let letGameReadyApi = true;
const script = document.createElement("script"); script.src = loaderUrl; script.onload = () => { createUnityInstance(canvas, config, (progress) => { spinner.style.display = "none"; progressBarEmpty.style.display = ""; progressBarFull.style.width = `${100 * progress}%`; }).then((unityInstance) => { myGameInstance = unityInstance; loadingCover.style.display = "none"; }).catch((message) => { alert(message); }); };
InitYandex(); function InitYandex() { YaGames.init() .then(ysdk => { console.log('Init Yandex SDK'); window.ysdk = ysdk; InitPayments();
try { ysdk.shortcut.canShowPrompt().then(prompt => { if (prompt.canShow) { promptCanShow = true; } }); } catch (e) { console.error('CRASH canShowPrompt: ', e.message); }
try { ysdk.feedback.canReview().then(({ value, reason }) => { if (value) { reviewCanShow = true; } else { console.log('reviewCanShow = false', reason) } })
ysdk.shortcut.canShowPrompt().then(prompt => { if (prompt.canShow) { promptCanShow = true; } }); } catch (e) { console.error('CRASH canShowFeedback: ', e.message); }
// First ad false
if (initGame) { InitPlayer(photoSize, scopes); } initSDK = true; }); }
function InitGame(photoSize, scopes, gameReadyApi) { console.log('Init GAME'); initGame = true; photoSizeForInit = photoSize; scopesForInit = scopes;
if (initSDK == true) { if (gameReadyApi == true) GameReadyAPI(); InitPlayer(photoSize, scopes); } else { InitYandex(); setTimeout(function () { if (!initSDK) { console.error('CRASH InitYandex'); NotAuthorized(); } }, 1000); }
if (nowFullAdOpen == true) { myGameInstance.SendMessage('YandexGame', 'OpenFullAd'); } }
function GameReadyAPI() { if (letGameReadyApi) { ysdk.features.LoadingAPI?.ready(); letGameReadyApi = false; console.log('Game Ready API'); } }
function NotAuthorized() { try { console.log('Authorized failed'); let authJson = { "playerAuth": "rejected", "playerName": "unauthorized", "playerId": "unauthorized", "playerPhoto": "null" }; myGameInstance.SendMessage('YandexGame', 'SetInitializationSDK', JSON.stringify(authJson)); } catch (e) { console.error('CRASH Not Authorized: ', e.message); } }
function InitPlayer(photoSize, _scopes) { try { return ysdk.getPlayer({ scopes: _scopes }).then(_player => {
player = _player;
let playerName = player.getName(); let playerPhoto = player.getPhoto(photoSize);
if (!_scopes) { playerName = "anonymous"; playerPhoto = "null"; }
if (player.getMode() === 'lite') {
console.log('Not Authorized'); NotAuthorized(); } else { let authJson = { "playerAuth": "resolved", "playerName": playerName, "playerId": player.getUniqueID(), "playerPhoto": playerPhoto }; myGameInstance.SendMessage('YandexGame', 'SetInitializationSDK', JSON.stringify(authJson)); window.focus(); } }).catch(e => { console.error('Authorized err: ', e.message); NotAuthorized(); }); } catch (e) { console.error('CRASH init Player: ', e.message); window.focus(); } }
function OpenAuthDialog(photoSize, scopes) { try { ysdk.auth.openAuthDialog().then(() => { InitPlayer(photoSize, scopes); }).catch(() => { InitSDK(photoSize, scopes); }); } catch (e) { console.log('CRASH Open Auth Dialog: ', e.message); } }
function FullAdShow() { try { window.ysdk.adv.showFullscreenAdv( { callbacks: { onOpen: () => { console.log('Open Fullscreen Ad'); nowFullAdOpen = true; if (initGame === true) myGameInstance.SendMessage('YandexGame', 'OpenFullAd'); }, onClose: (wasShown) => { nowFullAdOpen = false; if (initGame === true) { if (wasShown) { myGameInstance.SendMessage('YandexGame', 'CloseFullAd', 'true'); } else { myGameInstance.SendMessage('YandexGame', 'CloseFullAd', 'false'); } } window.focus(); }, onError: (error) => { console.error('Error Fullscreen Ad', error); myGameInstance.SendMessage('YandexGame', 'ErrorFullAd'); window.focus(); } } }); } catch (e) { console.error('CRASH FullAd Show: ', e.message); } }
function RewardedShow(id) { try { window.ysdk.adv.showRewardedVideo( { callbacks: { onOpen: () => { console.log('Opened Video Ad. Id: ' + id); myGameInstance.SendMessage('YandexGame', 'OpenVideo'); }, onClose: () => { console.log('Closed Video Ad. Id: ' + id); myGameInstance.SendMessage('YandexGame', 'CloseVideo'); window.focus(); }, onRewarded: () => { console.log('Reward Video Ad. Id: ' + id); myGameInstance.SendMessage('YandexGame', 'RewardVideo', id); }, onError: (e) => { console.error('Error Video Ad. Id: ' + id, e); myGameInstance.SendMessage('YandexGame', 'ErrorVideo'); } } }); } catch (err) { console.error('CRASH Rewarded Video Ad Show: ', err.message); } }
function StickyAdActivity(show) { try { ysdk.adv.getBannerAdvStatus().then(({ stickyAdvIsShowing, reason }) => { if (stickyAdvIsShowing) { if (!show) { ysdk.adv.hideBannerAdv(); } } else if (reason) { console.log('Sticky ad are not shown. Reason:', reason); } else if (show) { ysdk.adv.showBannerAdv(); } }) } catch (e) { console.error('CRASH Sticky Activity: ', e.message); } }
function InitPayments() { try { ysdk.getPayments().then(_payments => { console.log('Purchases are available'); payments = _payments; }).catch(e => { console.log('Purchases are not available', e.message); }) } catch (e) { console.error('CRASH Init Payments: ', e.message); } }
function BuyPayments(id) { try { if (payments != null) { payments.purchase(id).then(() => { console.log('Purchase Success'); ConsumePurchase(id); window.focus(); }).catch(e => { console.error('Purchase Failed', e.message); myGameInstance.SendMessage('YandexGame', 'OnPurchaseFailed', id); window.focus(); }) } else { console.log('Payments == null'); } } catch (e) { console.error('CRASH Buy Payments: ', e.message); window.focus(); } }
function GetPayments() { try { if (payments != null) { payments.getCatalog() .then(products => { let productID = []; let title = []; let description = []; let imageURI = []; let priceValue = []; let consumed = [];
payments.getPurchases().then(purchases => { for (let i = 0; i < products.length; i++) { productID[i] = products[i].id; title[i] = products[i].title; description[i] = products[i].description; imageURI[i] = products[i].imageURI; priceValue[i] = products[i].priceValue;
consumed[i] = true; for (i2 = 0; i2 < purchases.length; i2++) { if (purchases[i2].productID === productID[i]) { consumed[i] = false; break; } } }
let jsonPayments = { "id": productID, "title": title, "description": description, "imageURI": imageURI, "priceValue": priceValue, "consumed": consumed };
myGameInstance.SendMessage('YandexGame', 'PaymentsEntries', JSON.stringify(jsonPayments)); }); }); } else { console.log('Get Payments: payments == null'); } } catch (e) { console.error('CRASH Get Payments: ', e.message); } }
function ConsumePurchase(id) { try { if (payments != null) { payments.getPurchases().then(purchases => { for (i = 0; i < purchases.length; i++) { if (purchases[i].productID === id) { payments.consumePurchase(purchases[i].purchaseToken); myGameInstance.SendMessage('YandexGame', 'OnPurchaseSuccess', id); } } }); } else console.log('Consume purchase: payments null'); } catch (e) { console.error('CRASH Consume Purchase: ', e.message); } }
function ConsumePurchases() { try { if (payments != null) { payments.getPurchases().then(purchases => { console.log('Unprocessed purchases: ', purchases.length); for (i = 0; i < purchases.length; i++) { payments.consumePurchase(purchases[i].purchaseToken); myGameInstance.SendMessage('YandexGame', 'OnPurchaseSuccess', purchases[i].productID); } }); } else console.log('Consume purchases: payments null'); } catch (e) { console.error('CRASH Consume purchases: ', e.message); } }
function SaveCloud(jsonData, flush) { try { player.setData({ saves: [jsonData], }, flush); } catch (e) { console.error('CRASH Save Cloud: ', e.message); } }
function LoadCloud() { try { player.getData(["saves"]).then(data => { if (data.saves) { myGameInstance.SendMessage('YandexGame', 'SetLoadSaves', JSON.stringify(data.saves)); } else { myGameInstance.SendMessage('YandexGame', 'SetLoadSaves', "noData"); } }).catch(() => { console.error('getData Error!'); myGameInstance.SendMessage('YandexGame', 'SetLoadSaves', "noData"); }); } catch (e) { console.error('CRASH Load saves Cloud: ', e.message); myGameInstance.SendMessage('YandexGame', 'SetLoadSaves', "noData"); } }
function InitLeaderboard() { try { ysdk.getLeaderboards().then(_lb => { leaderboard = _lb myGameInstance.SendMessage('YandexGame', 'InitializedLB'); }); } catch (e) { console.error('CRASH Init Leaderboard: ', e.message); } }
function SetLeaderboardScores(_name, score) { try { ysdk.getLeaderboards() .then(leaderboard => { leaderboard.setLeaderboardScore(_name, score); }); } catch (e) { console.error('CRASH Set Leader board Scores: ', e.message); } }
function GetLeaderboardScores(nameLB, maxPlayers, quantityTop, quantityAround, photoSize, auth) { try { var jsonEntries = { technoName: '', isDefault: false, isInvertSortOrder: false, decimalOffset: 0, type: '' // , title: '' };
ysdk.getLeaderboards() .then(leaderboard => leaderboard.getLeaderboardDescription(nameLB)) .then(res => { jsonEntries.technoName = nameLB; jsonEntries.isDefault = res.default; jsonEntries.isInvertSortOrder = res.description.invert_sort_order; jsonEntries.decimalOffset = res.description.score_format.options.decimal_offset; jsonEntries.type = res.description.type; // Не определяется на момент 18.07.23 //jsonEntries.title = res.title; // Реализуйте по предпочтениям
return leaderboard.getLeaderboardEntries(nameLB, { quantityTop: quantityTop, includeUser: auth, quantityAround: quantityAround }); }) .then(res => { let jsonPlayers = EntriesLB(res, maxPlayers, photoSize); let combinedJson = { ...jsonEntries, ...jsonPlayers };
myGameInstance.SendMessage('YandexGame', 'LeaderboardEntries', JSON.stringify(combinedJson)); }) .catch(error => { console.error(error); }); } catch (e) { console.error('CRASH Get Leaderboard: ', e.message); } }
function EntriesLB(res, maxPlayers, photoSize) { let LeaderboardEntriesText = ''; let playersCount;
if (res.entries.length < maxPlayers) { playersCount = res.entries.length; } else { playersCount = maxPlayers; }
let ranks = new Array(playersCount); let photos = new Array(playersCount); let mames = new Array(playersCount); let scores = new Array(playersCount); let uniqueIDs = new Array(playersCount);
for (i = 0; i < playersCount; i++) { ranks[i] = res.entries[i].rank; scores[i] = res.entries[i].score; uniqueIDs[i] = res.entries[i].player.uniqueID;
if (photoSize === 'nonePhoto' || res.entries[i].player.scopePermissions.avatar !== "allow") { photos[i] = 'nonePhoto'; } else { photos[i] = res.entries[i].player.getAvatarSrc(photoSize); }
if (res.entries[i].player.scopePermissions.public_name !== "allow") { mames[i] = "anonymous"; } else { mames[i] = res.entries[i].player.publicName; }
LeaderboardEntriesText += ranks[i] + '. ' + mames[i] + ": " + scores[i] + '\n'; }
if (playersCount === 0) { LeaderboardEntriesText = 'no data'; }
let jsonPlayers = { "entries": LeaderboardEntriesText, "ranks": ranks, "photos": photos, "names": mames, "scores": scores, "uniqueIDs": uniqueIDs };
return jsonPlayers; }
function LanguageRequest() { try { myGameInstance.SendMessage('YandexGame', 'SetLanguage', ysdk.environment.i18n.lang); } catch (e) { console.error('CRASH Language Request: ', e.message); } }
function RequestingEnvironmentData() { try { let jsonEnvir = { "language": ysdk.environment.i18n.lang, "domain": ysdk.environment.i18n.tld, "deviceType": ysdk.deviceInfo.type, "isMobile": ysdk.deviceInfo.isMobile(), "isDesktop": ysdk.deviceInfo.isDesktop(), "isTablet": ysdk.deviceInfo.isTablet(), "isTV": ysdk.deviceInfo.isTV(), "appID": ysdk.environment.app.id, "browserLang": ysdk.environment.browser.lang, "payload": ysdk.environment.payload, "promptCanShow": promptCanShow, "reviewCanShow": reviewCanShow }; myGameInstance.SendMessage('YandexGame', 'SetEnvironmentData', JSON.stringify(jsonEnvir)); } catch (e) { console.error('CRASH Requesting Environment Data: ', e.message); } }
function Review() { try { ysdk.feedback.canReview() .then(({ value, reason }) => { if (value) { ysdk.feedback.requestReview().then(({ feedbackSent }) => { console.log('feedbackSent ', feedbackSent); if (feedbackSent) { myGameInstance.SendMessage('YandexGame', 'ReviewSent', 'true'); console.log('Review left') } else { myGameInstance.SendMessage('YandexGame', 'ReviewSent', 'false'); console.log('Review not left', reason) } window.focus(); }) } else { console.log('Review can show = false', reason); window.focus(); } }) } catch (e) { console.error('CRASH Review: ', e.message); window.focus(); } }
function PromptShow() { try { ysdk.shortcut.showPrompt() .then(result => { console.log('Shortcut created?:', result); if (result.outcome === 'accepted') { console.log('Prompt Success'); myGameInstance.SendMessage('YandexGame', 'OnPromptSuccess'); } else { myGameInstance.SendMessage('YandexGame', 'OnPromptFail'); } window.focus(); }); } catch (e) { console.error('CRASH Prompt Show: ', e.message); window.focus(); } }
function PaintRBT(rbt) { try { document.getElementById(rbt).style.background = '#ff0000'; } catch (e) { console.error('CRASH Paint RBT: ', e.message); } }
function StaticRBTDeactivate() { }
// Additional script modules:window.addEventListener('beforeunload', (event) => { if(myGameInstance != null) myGameInstance.SendMessage('YandexGame', 'SaveProgress'); });
document.body.appendChild(script); </script></body></html>filestorage/gd/bacon-may-d-ie/index.htmlAdded+339
filestorage/gd/bacon-may-d-ie/poki-sdk-core-v2.263.0.jsAdded
filestorage/gd/bacon-may-d-ie/poki-sdk.jsAdded+85
filestorage/gd/calnite-once-upon-an-isekai/index.htmlAdded+222
filestorage/gd/calnite-once-upon-an-isekai/renpy-pre.jsAdded+976
filestorage/gd/calnite-once-upon-an-isekai/renpy.jsAdded
filestorage/gd/cosmicadventuresquad-deepest-sword/index.htmlAdded+83
filestorage/gd/darkpetal16-if-horrortale/index.htmlAdded
filestorage/gd/deltatraveler/index.htmlAdded+136
filestorage/gd/echo-web/manifest.jsonAdded+1
filestorage/gd/echo-web/pwa_catalog.jsonAdded+1
filestorage/gd/echo-web/renpy-pre.jsAdded+983
filestorage/gd/echo-web/service-worker.jsAdded+92
filestorage/gd/krajzeg-slipways/index.htmlAdded+240
filestorage/gd/krajzeg-slipways/slipways.jsAdded
filestorage/gd/krajzeg-slipways/zepto.min.jsAdded+2
filestorage/gd/pong/aAdded+1
filestorage/gd/pong/cover.svgAdded
filestorage/gd/pong/index.htmlAdded
filestorage/gd/twerk-race-3d/index.htmlAdded+697