Files
awesome-copilot/extensions/arcade-canvas/game/phaser.min.js
T
James Montemagno cb2a6022d7 Fix installed canvas repo scope follow-up (#2230)
* Address canvas review feedback

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Optimize arcade sprite sheet

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Shrink arcade extension package files

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Address backlog canvas API review

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Compress arcade defender sounds

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-07-07 13:45:13 +10:00

18 lines
596 B
JavaScript

(() => {
window.__agentArcadePhaserReady = (async () => {
if (!("DecompressionStream" in window)) {
throw new Error("This browser cannot load the compressed Phaser bundle.");
}
const response = await fetch("./phaser.min.js.gz");
if (!response.ok || !response.body) {
throw new Error("Failed to load the Phaser bundle.");
}
const stream = response.body.pipeThrough(new DecompressionStream("gzip"));
const source = await new Response(stream).text();
(0, eval)(`${source}\n//# sourceURL=phaser.min.bundle.js`);
return window.Phaser;
})();
})();