@indextools/index-games 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +73 -2
  2. package/index.svg +53 -0
  3. package/package.json +47 -5
  4. package/public/404.html +50 -0
  5. package/public/baremux/worker.js +2 -0
  6. package/public/config.js +27 -0
  7. package/public/games/agesofconflict.html +224 -0
  8. package/public/games/baldi.html +50 -0
  9. package/public/games/boi.html +132 -0
  10. package/public/games/brotato.html +142 -0
  11. package/public/games/fnae.html +153 -0
  12. package/public/games/games.json +122 -0
  13. package/public/games/gamesuggestion.html +12 -0
  14. package/public/games/geodash.html +274 -0
  15. package/public/games/kidchess.html +49 -0
  16. package/public/games/lebronclicker.html +763 -0
  17. package/public/games/monstertracks.html +31 -0
  18. package/public/games/nealfun.html +49 -0
  19. package/public/games/slitherio.html +186 -0
  20. package/public/games/slope.html +114 -0
  21. package/public/games/spacewaves.html +246 -0
  22. package/public/games/wheeliebike.html +50 -0
  23. package/public/icons/BNG-Favicon.png +0 -0
  24. package/public/icons/CGPT-Favicon.png +0 -0
  25. package/public/icons/CMG-Favicon.jpg +0 -0
  26. package/public/icons/CZG-Favicon.png +0 -0
  27. package/public/icons/DC-Favicon.png +0 -0
  28. package/public/icons/DDG-Favicon.png +0 -0
  29. package/public/icons/G-Favicon.png +0 -0
  30. package/public/icons/GH-Favicon.png +0 -0
  31. package/public/icons/GameSuggestions-Favicons.png +0 -0
  32. package/public/icons/MCTF-Favicon.png +0 -0
  33. package/public/icons/MP4-Favicon.webp +0 -0
  34. package/public/icons/NDF-Favicon.png +0 -0
  35. package/public/icons/NGG-Favicon.png +0 -0
  36. package/public/icons/RDT-Favicon.png +0 -0
  37. package/public/icons/RPT-Favicon.png +0 -0
  38. package/public/icons/S-Favicon.png +0 -0
  39. package/public/icons/TT-Favicon.png +0 -0
  40. package/public/icons/X-Favicon.jpg +0 -0
  41. package/public/icons/YT-Favicon.png +0 -0
  42. package/public/index.css +888 -0
  43. package/public/index.html +1132 -0
  44. package/public/index.js +72 -0
  45. package/public/index.svg +53 -0
  46. package/public/register-sw.js +25 -0
  47. package/public/search.js +32 -0
  48. package/public/sw.js +16 -0
  49. package/server.js +46 -0
  50. package/src/index.js +96 -0
package/README.md CHANGED
@@ -1,3 +1,74 @@
1
- # Temporary Holding Version
1
+ <div align="center">
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ # 🌐 Index
4
+
5
+ **Your all-in-one unblocked browsing experience.**
6
+
7
+ ![Version](https://img.shields.io/badge/version-1.0.0-blue?style=flat-square)
8
+ ![Status](https://img.shields.io/badge/status-active-brightgreen?style=flat-square)
9
+ ![License](https://img.shields.io/badge/license-MIT-purple?style=flat-square)
10
+
11
+ </div>
12
+
13
+ ---
14
+
15
+ ## 📖 What is Index?
16
+
17
+ **Index** is a fast, clean, and fully unblocked website packed with everything you need — web proxy, search engines, games, tab cloaking, and more. Whether you're trying to get around network restrictions or just want a smooth browsing experience, Index has you covered.
18
+
19
+ ---
20
+
21
+ ## ✨ Features
22
+
23
+ - 🔍 **Search Engines** — Search directly with Google, DuckDuckGo, and more without restrictions
24
+ - 🌐 **Web Proxy** — Browse sites like TikTok, YouTube, and the rest of the web freely
25
+ - 🎮 **Games** — A built-in collection of unblocked games to play anytime
26
+ - 🕵️ **Tab Cloaking** — Disguise your tab title and favicon to stay under the radar
27
+ - 🚀 **Unblocked** — Bypasses common network filters and firewalls
28
+ - ⚡ **Fast & Clean UI** — Minimal, responsive design that just works
29
+
30
+ ---
31
+
32
+ ## 🚀 Getting Started
33
+
34
+ ### Visit the Site
35
+ Simply navigate to the hosted URL and start browsing — no installs required.
36
+
37
+ ### Self-Hosting
38
+ ```bash
39
+ # Clone the repository
40
+ git clone https://github.com/your-username/index.games.git
41
+ ```
42
+
43
+ > For full proxy functionality, deploy to a platform like **Vercel**, **Netlify**, or **Cloudflare Pages**.
44
+
45
+
46
+ ## ⚠️ Disclaimer
47
+
48
+ Index is intended for **educational and personal use only**. Users are responsible for complying with their network's terms of service and applicable laws. This project is not liable for misuse.
49
+
50
+ ---
51
+
52
+ ## 🤝 Contributing
53
+
54
+ Got a game to add, a bug to fix, or a feature idea? Contributions are welcome!
55
+
56
+ 1. Fork the repo
57
+ 2. Create a new branch (`git checkout -b feature/your-feature`)
58
+ 3. Commit your changes (`git commit -m 'Add some feature'`)
59
+ 4. Push to the branch (`git push origin feature/your-feature`)
60
+ 5. Open a Pull Request
61
+
62
+ ---
63
+
64
+ ## 📄 License
65
+
66
+ This project is licensed under the [MIT License](LICENSE).
67
+
68
+ ---
69
+
70
+ <div align="center">
71
+
72
+ Made with ❤️ by the Index team
73
+
74
+ </div>
package/index.svg ADDED
@@ -0,0 +1,53 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 100 100">
3
+ <foreignObject width="100%" height="100%">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" style="width:100%; height:100%; margin:0; padding:0;">
5
+ <head>
6
+ <title>Index</title>
7
+ <style>
8
+ * { margin: 0; padding: 0; box-sizing: border-box; }
9
+ html, body { width: 100%; height: 100%; overflow: hidden; background: #0b0c10; }
10
+ iframe { width: 100vw; height: 100vh; border: none; display: block; position: fixed; inset: 0; }
11
+ .fallback-link {
12
+ position: fixed;
13
+ top: 10px;
14
+ right: 10px;
15
+ z-index: 99999;
16
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
17
+ font-size: 13px;
18
+ color: #45f3ff;
19
+ background: rgba(11, 12, 16, 0.9);
20
+ border: 1px solid #45f3ff;
21
+ padding: 6px 14px;
22
+ border-radius: 6px;
23
+ text-decoration: none;
24
+ backdrop-filter: blur(4px);
25
+ }
26
+ </style>
27
+ </head>
28
+ <body>
29
+ <a id="index-link" class="fallback-link" href="public/index.html" target="_top">Launch Index</a>
30
+ <iframe id="index-frame" src="public/index.html" allowfullscreen="true" sandbox="allow-scripts allow-same-origin allow-forms allow-modals allow-downloads"></iframe>
31
+ </body>
32
+ </html>
33
+ </foreignObject>
34
+ <script type="text/javascript">
35
+ <![CDATA[
36
+ (function() {
37
+ try {
38
+ var frame = document.getElementById("index-frame");
39
+ var link = document.getElementById("index-link");
40
+ var path = (typeof window !== "undefined" && window.location && window.location.pathname) || "";
41
+ var target = "public/index.html";
42
+ if (path && (path.includes("/public/") || path.endsWith("/public"))) {
43
+ target = "index.html";
44
+ }
45
+ if (frame) frame.src = target;
46
+ if (link) link.href = target;
47
+ } catch (e) {
48
+ console.error(e);
49
+ }
50
+ })();
51
+ ]]>
52
+ </script>
53
+ </svg>
package/package.json CHANGED
@@ -1,6 +1,48 @@
1
1
  {
2
- "name": "@indextools/index-games",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@indextools/index-games",
3
+ "version": "1.0.0",
4
+ "description": "Index - Unblocked web browsing and games",
5
+ "type": "module",
6
+ "engines": {
7
+ "npm": ">=7.0.0",
8
+ "node": ">=16.0.0"
9
+ },
10
+ "scripts": {
11
+ "start": "node src/index.js",
12
+ "dev": "nodemon src/index.js",
13
+ "format": "prettier --write .",
14
+ "lint": "eslint ./src/",
15
+ "lint:fix": "eslint ./src/ --fix"
16
+ },
17
+ "keywords": [
18
+ "proxy"
19
+ ],
20
+ "files": [
21
+ "public",
22
+ "src",
23
+ "index.svg",
24
+ "server.js",
25
+ "README.md"
26
+ ],
27
+ "author": "Mercury Workshop",
28
+ "license": "GNU AFFERO",
29
+ "dependencies": {
30
+ "@fastify/static": "^8.2.0",
31
+ "@mercuryworkshop/bare-mux": "^2.1.7",
32
+ "@mercuryworkshop/libcurl-transport": "^1.5.2",
33
+ "@mercuryworkshop/scramjet": "https://github.com/MercuryWorkshop/scramjet/releases/download/latest/mercuryworkshop-scramjet-2.0.0-alpha.tgz",
34
+ "@mercuryworkshop/wisp-js": "^0.4.1",
35
+ "ajv": "^8.18.0",
36
+ "fastify": "^5.4.0",
37
+ "ws": "^8.18.3"
38
+ },
39
+ "devDependencies": {
40
+ "eslint": "^9.13.0",
41
+ "nodemon": "^3.1.0",
42
+ "prettier": "^3.3.3"
43
+ },
44
+ "packageManager": "pnpm@10.18.3",
45
+ "allowScripts": {
46
+ "bufferutil@4.1.0": true
47
+ }
48
+ }
@@ -0,0 +1,50 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>404 - Not Found</title>
7
+ <link rel="stylesheet" href="/index.css" />
8
+ <style>
9
+ body {
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ height: 100vh;
14
+ color: #fff;
15
+ text-align: center;
16
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
17
+ background: #0b0c10;
18
+ }
19
+ .container {
20
+ max-width: 480px;
21
+ padding: 2rem;
22
+ }
23
+ h1 {
24
+ font-size: 3rem;
25
+ margin-bottom: 0.5rem;
26
+ color: #45f3ff;
27
+ }
28
+ p {
29
+ margin-bottom: 1.5rem;
30
+ color: #8a8d93;
31
+ }
32
+ a {
33
+ display: inline-block;
34
+ padding: 0.6rem 1.4rem;
35
+ border-radius: 8px;
36
+ background: #45f3ff;
37
+ color: #0b0c10;
38
+ text-decoration: none;
39
+ font-weight: bold;
40
+ }
41
+ </style>
42
+ </head>
43
+ <body>
44
+ <div class="container">
45
+ <h1>404</h1>
46
+ <p>The page you are looking for does not exist.</p>
47
+ <a href="/">Return Home</a>
48
+ </div>
49
+ </body>
50
+ </html>
@@ -0,0 +1,2 @@
1
+ !function(){"use strict";const e=MessagePort.prototype.postMessage;let t=null;function a(e,t,a){console.error(`error while processing '${a}': `,t),e.postMessage({type:"error",error:t})}async function n(a,n,s){const o=await s.request(new URL(a.fetch.remote),a.fetch.method,a.fetch.body,a.fetch.headers,null);if(!function(){if(null===t){const a=new MessageChannel,n=new ReadableStream;let s;try{e.call(a.port1,n,[n]),s=!0}catch(e){s=!1}return t=s,s}return t}()&&o.body instanceof ReadableStream){const e=new Response(o.body);o.body=await e.arrayBuffer()}o.body instanceof ReadableStream||o.body instanceof ArrayBuffer?e.call(n,{type:"fetch",fetch:o},[o.body]):e.call(n,{type:"fetch",fetch:o})}let s=null,o="";function r(){return new Error("there are no bare clients",{cause:"No BareTransport was set. Try creating a BareMuxConnection and calling `setTransport()` or `setManualTransport()` on it before using BareClient."})}function c(t,a){const n=s;let o=[a];t.fetch?.body&&o.push(t.fetch.body),t.websocket?.channel&&o.push(t.websocket.channel),e.call(n,{message:t,port:a},o)}function l(t){t.onmessage=async t=>{const l=t.data.port,i=t.data.message;if("ping"===i.type)e.call(l,{type:"pong"});else if("set"===i.type)try{const t=async function(){}.constructor;if("bare-mux-remote"===i.client.function)s=i.client.args[0],o=`bare-mux-remote (${i.client.args[1]})`;else try{const e=new t(i.client.function),[a,n]=await e();s=new a(...i.client.args),o=n}catch(e){throw e.cause="The BareTransport provided was invalid. Common causes of this are a default export that is not a class that implements BareTransport if you are using `setTransport()`",e}console.log("set transport to ",s,o),e.call(l,{type:"set"})}catch(e){a(l,e,"set")}else if("get"===i.type)l.postMessage({type:"get",name:o});else if("fetch"===i.type)try{if(!s)throw r();if(s instanceof MessagePort)return void c(i,l);s.ready||await s.init(),await n(i,l,s)}catch(e){a(l,e,"fetch")}else if("websocket"===i.type)try{if(!s)throw r();if(s instanceof MessagePort)return void c(i,l);s.ready||await s.init(),await async function(t,a,n){const[s,o]=n.connect(new URL(t.websocket.url),t.websocket.protocols,t.websocket.requestHeaders,a=>{e.call(t.websocket.channel,{type:"open",args:[a]})},a=>{a instanceof ArrayBuffer?e.call(t.websocket.channel,{type:"message",args:[a]},[a]):e.call(t.websocket.channel,{type:"message",args:[a]})},(a,n)=>{e.call(t.websocket.channel,{type:"close",args:[a,n]})},a=>{e.call(t.websocket.channel,{type:"error",args:[a]})});t.websocket.channel.onmessage=e=>{"data"===e.data.type?s(e.data.data):"close"===e.data.type&&o(e.data.closeCode,e.data.closeReason)},e.call(a,{type:"websocket"})}(i,l,s)}catch(e){a(l,e,"websocket")}}}new BroadcastChannel("bare-mux").postMessage({type:"refreshPort"}),self.onconnect=e=>{l(e.ports[0])},console.debug("bare-mux: running v2.1.8 (build 75b1f5a)")}();
2
+ //# sourceMappingURL=worker.js.map
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ const _CONFIG = {
4
+ cdn: "https://unpkg.com",
5
+ wispUrl: (typeof location !== "undefined" && location.host && location.host.includes("unpkg.com"))
6
+ ? "wss://wisp.mercurywork.shop/"
7
+ : null,
8
+ scramjet: {
9
+ all: "https://unpkg.com/@mercuryworkshop/scramjet@2.0.0-alpha/dist/scramjet.all.js",
10
+ wasm: "https://unpkg.com/@mercuryworkshop/scramjet@2.0.0-alpha/dist/scramjet.wasm.wasm",
11
+ sync: "https://unpkg.com/@mercuryworkshop/scramjet@2.0.0-alpha/dist/scramjet.sync.js",
12
+ },
13
+ baremux: {
14
+ index: "https://unpkg.com/@mercuryworkshop/bare-mux@2.1.7/dist/index.js",
15
+ worker: "/baremux/worker.js",
16
+ },
17
+ libcurl: {
18
+ transport: "https://unpkg.com/@mercuryworkshop/libcurl-transport@1.5.2/dist/index.mjs",
19
+ },
20
+ };
21
+
22
+ if (typeof self !== "undefined") {
23
+ self.__INDEX_CONFIG = _CONFIG;
24
+ }
25
+ if (typeof window !== "undefined") {
26
+ window.__INDEX_CONFIG = _CONFIG;
27
+ }
@@ -0,0 +1,224 @@
1
+ <!DOCTYPE html>
2
+
3
+
4
+ <!-- Ultimate Game Stash file-->
5
+ <!-- For the regularly updating doc go to https://docs.google.com/document/d/1_FmH3BlSBQI7FGgAQL59-ZPe8eCxs35wel6JUyVaG8Q/ -->
6
+
7
+
8
+
9
+
10
+ <html lang="en-us">
11
+ <base href="https://cdn.jsdelivr.net/gh/bubbls/UGS-Assets@main/ages%20of%20conflict/">
12
+ <head>
13
+ <meta charset="utf-8">
14
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
15
+ <title>game</title>
16
+ <style>
17
+ html,
18
+ body {
19
+ background: #000;
20
+ width: 100%;
21
+ height: 100%;
22
+ overflow: visible;
23
+ padding: 0;
24
+ margin: 0;
25
+ }
26
+
27
+ div#gameContainer {
28
+ background: transparent !important;
29
+ position: absolute;
30
+ }
31
+
32
+ div#gameContainer canvas {
33
+ position: absolute;
34
+ }
35
+
36
+ div#gameContainer canvas[data-pixel-art="true"] {
37
+ position: absolute;
38
+ image-rendering: optimizeSpeed;
39
+ image-rendering: -webkit-crisp-edges;
40
+ image-rendering: -moz-crisp-edges;
41
+ image-rendering: -o-crisp-edges;
42
+ image-rendering: crisp-edges;
43
+ image-rendering: -webkit-optimize-contrast;
44
+ image-rendering: optimize-contrast;
45
+ image-rendering: pixelated;
46
+ -ms-interpolation-mode: nearest-neighbor;
47
+ }
48
+ </style>
49
+ </head>
50
+
51
+ <body>
52
+ <div id="gameContainer">
53
+ <canvas id="unity-canvas" data-pixel-art=""></canvas>
54
+ <div id="loading-text" style="color: white; font-family: sans-serif; text-align: center; margin-top: 1em;">LOADING...</div>
55
+ <script src="Build/Web.loader.js"></script>
56
+ <script>
57
+ if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
58
+ var meta = document.createElement('meta');
59
+ meta.name = 'viewport';
60
+ meta.content = 'width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes';
61
+ document.getElementsByTagName('head')[0].appendChild(meta);
62
+ }
63
+ const loadingText = document.querySelector("#loading-text");
64
+ let totalBytes = 0;
65
+ let loadedBytes = 0;
66
+
67
+ function formatSize(bytes) {
68
+ if (bytes > 1024 * 1024 * 1024) {
69
+ return (bytes / (1024 * 1024 * 1024)).toFixed(2) + " GB";
70
+ } else if (bytes > 1024 * 1024) {
71
+ return (bytes / (1024 * 1024)).toFixed(2) + " MB";
72
+ } else if (bytes > 1024) {
73
+ return (bytes / 1024).toFixed(2) + " KB";
74
+ } else {
75
+ return bytes + " B";
76
+ }
77
+ }
78
+
79
+ async function getSize(url) {
80
+ try {
81
+ const res = await fetch(url, { method: "HEAD" });
82
+ return parseInt(res.headers.get("Content-Length") || "0", 10);
83
+ } catch {
84
+ return 0;
85
+ }
86
+ }
87
+
88
+ async function fetchPart(url) {
89
+ const response = await fetch(url);
90
+ if (!response.body) {
91
+ const ab = await response.arrayBuffer();
92
+ loadedBytes += ab.byteLength;
93
+ loadingText.textContent = `LOADING... ${formatSize(loadedBytes)} / ${formatSize(totalBytes)}`;
94
+ return new Uint8Array(ab);
95
+ }
96
+ const reader = response.body.getReader();
97
+ const chunks = [];
98
+ let received = 0;
99
+ while (true) {
100
+ const { done, value } = await reader.read();
101
+ if (done) break;
102
+ received += value.length;
103
+ loadedBytes += value.length;
104
+ chunks.push(value);
105
+ const doneText = formatSize(loadedBytes);
106
+ const totalText = formatSize(totalBytes);
107
+ const percent = totalBytes > 0 ? ((loadedBytes / totalBytes) * 100).toFixed(1) : "?";
108
+ loadingText.textContent = `LOADING... ${doneText} / ${totalText} (${percent}%)`;
109
+ }
110
+ const full = new Uint8Array(received);
111
+ let offset = 0;
112
+ for (let chunk of chunks) {
113
+ full.set(chunk, offset);
114
+ offset += chunk.length;
115
+ }
116
+ return full;
117
+ }
118
+
119
+ // simplified: no brotli check
120
+ async function mergeParts(parts, mimeType) {
121
+ const buffers = await Promise.all(parts.map(fetchPart));
122
+ const totalLen = buffers.reduce((s, b) => s + b.length, 0);
123
+ const concatenated = new Uint8Array(totalLen);
124
+ let off = 0;
125
+ for (let b of buffers) {
126
+ concatenated.set(b, off);
127
+ off += b.length;
128
+ }
129
+ return URL.createObjectURL(new Blob([concatenated], { type: mimeType || undefined }));
130
+ }
131
+
132
+ function getParts(file, count) {
133
+ let parts = [];
134
+ for (let i = 1; i <= count; i++) {
135
+ parts.push(file + ".part" + i);
136
+ }
137
+ return parts;
138
+ }
139
+
140
+ (async () => {
141
+ try {
142
+ const dataParts = getParts("Build/Web.data.unityweb", 1);
143
+ const wasmParts = getParts("Build/Web.wasm.unityweb", 2);
144
+ const allParts = [...dataParts, ...wasmParts, "Build/Web.framework.js.unityweb"];
145
+ const sizes = await Promise.all(allParts.map(getSize));
146
+ totalBytes = sizes.reduce((a, b) => a + b, 0);
147
+
148
+ const [dataUrl, wasmUrl, frameworkUrl] = await Promise.all([
149
+ mergeParts(dataParts),
150
+ mergeParts(wasmParts),
151
+ mergeParts(["Build/Web.framework.js.unityweb"], 'application/javascript')
152
+ ]);
153
+
154
+ var canvas = document.querySelector("#unity-canvas");
155
+ var scaleToFit = true;
156
+
157
+ function onResize() {
158
+ var container = canvas.parentElement;
159
+ var w, h;
160
+ if (scaleToFit) {
161
+ w = window.innerWidth;
162
+ h = window.innerHeight;
163
+ var r = 540 / 960;
164
+ if (w * r > window.innerHeight) {
165
+ w = Math.min(w, Math.ceil(h / r));
166
+ }
167
+ h = Math.floor(w * r);
168
+ } else {
169
+ w = 960;
170
+ h = 540;
171
+ }
172
+ container.style.width = canvas.style.width = w + "px";
173
+ container.style.height = canvas.style.height = h + "px";
174
+ container.style.top = Math.floor((window.innerHeight - h) / 2) + "px";
175
+ container.style.left = Math.floor((window.innerWidth - w) / 2) + "px";
176
+ window.focus();
177
+ }
178
+ window.addEventListener('resize', onResize);
179
+ onResize();
180
+
181
+ await (async function waitForLoader() {
182
+ if (typeof createUnityInstance === 'function') return;
183
+ await new Promise(resolve => {
184
+ const check = setInterval(() => {
185
+ if (typeof createUnityInstance === 'function') {
186
+ clearInterval(check);
187
+ resolve();
188
+ }
189
+ }, 50);
190
+ });
191
+ })();
192
+
193
+ const config = {
194
+ dataUrl: dataUrl,
195
+ frameworkUrl: frameworkUrl,
196
+ codeUrl: wasmUrl,
197
+ streamingAssetsUrl: "StreamingAssets",
198
+ companyName: "",
199
+ productName: "",
200
+ productVersion: ""
201
+ };
202
+
203
+ createUnityInstance(canvas, config, function(progress) {
204
+ const percent = Math.round(progress * 100);
205
+ loadingText.textContent = `LOADING... ${percent}%`;
206
+ }).then(function(unityInstance) {
207
+ loadingText.remove();
208
+ }).catch(function(message) {
209
+ loadingText.textContent = 'Failed to start Unity: ' + message;
210
+ console.error(message);
211
+ });
212
+ } catch (err) {
213
+ loadingText.textContent = 'ERROR: ' + (err.message || err);
214
+ console.error(err);
215
+ }
216
+ })();
217
+ </script>
218
+
219
+
220
+
221
+ </div>
222
+ </body>
223
+
224
+ </html>
@@ -0,0 +1,50 @@
1
+ <!DOCTYPE html>
2
+
3
+
4
+ <!-- Ultimate Game Stash file-->
5
+ <!-- For the regularly updating doc go to https://docs.google.com/document/d/1_FmH3BlSBQI7FGgAQL59-ZPe8eCxs35wel6JUyVaG8Q/ -->
6
+
7
+
8
+
9
+ <html>
10
+ <head>
11
+ <base href="https://cdn.jsdelivr.net/gh/bubbls/UGS-Assets@main/baldis-basics/">
12
+ <title>Baldi's Basics</title>
13
+ <link rel="icon" type="image/png" href="/favicon.ico" />
14
+ <script type="text/javascript" src="/js/main.js"></script>
15
+
16
+ <link rel="stylesheet" href="TemplateData/style.css" />
17
+ <script>
18
+ window.fileMergerConfig = {
19
+ files: [
20
+ { name: 'baldi.data.unityweb', parts: 2 },
21
+ { name: 'baldi.wasm.code.unityweb', parts: 1 },
22
+ { name: 'baldi.wasm.framework.unityweb', parts: 1 },
23
+ ],
24
+ basePath: 'unity/',
25
+ debug: true
26
+ };
27
+ </script>
28
+ <script src="https://cdn.jsdelivr.net/gh/bubbls/UGS-Assets@main/merge.js"></script>
29
+ <script src="TemplateData/UnityProgress.js"></script>
30
+ <script src="baldi.js"></script>
31
+ <script>
32
+ var gameInstance = UnityLoader.instantiate("gameContainer", "baldi.json", {
33
+ onProgress: UnityProgress,
34
+ Module: {
35
+ onRuntimeInitialized: function () {
36
+ UnityProgress(gameInstance, "complete");
37
+ },
38
+ },
39
+ });
40
+ </script>
41
+ </head>
42
+ <body style="margin: 0;">
43
+ <div class="webgl-content">
44
+ <div id="unityContainer" style="width: 960px; height: 600px; padding: 0px; margin: 0px; border: 0px; position: relative; background: rgb(35, 31, 32);">
45
+ <div id="gameContainer" style="width: 800px; height: 560px; margin: auto;"></div>
46
+ </div>
47
+ <script src="firebase-app.js"></script>
48
+ </div>
49
+ </body>
50
+ </html>
@@ -0,0 +1,132 @@
1
+ <Module>
2
+
3
+
4
+ <!-- Ultimate Game Stash file-->
5
+ <!-- For the regularly updating doc go to https://docs.google.com/document/d/1_FmH3BlSBQI7FGgAQL59-ZPe8eCxs35wel6JUyVaG8Q/ -->
6
+
7
+
8
+
9
+ <html lang="en">
10
+ <head>
11
+ <meta charset="utf-8">
12
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
13
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
14
+ <title>really cool flash game</title>
15
+ <style>
16
+ html, body {
17
+ margin: 0;
18
+ padding: 0;
19
+ background: black;
20
+ overflow: hidden;
21
+ height: 100%;
22
+ width: 100%;
23
+ }
24
+ #flash-container {
25
+ position: absolute;
26
+ top: 50%;
27
+ left: 50%;
28
+ transform: translate(-50%, -50%);
29
+ background: black;
30
+ overflow: hidden;
31
+ }
32
+ .black-box {
33
+ position: fixed;
34
+ background: black;
35
+ z-index: 10;
36
+ }
37
+ #box-top {
38
+ top: 0;
39
+ left: 0;
40
+ width: 100%;
41
+ height: 0;
42
+ }
43
+ #box-bottom {
44
+ bottom: 0;
45
+ left: 0;
46
+ width: 100%;
47
+ height: 0;
48
+ }
49
+ #box-left {
50
+ top: 0;
51
+ left: 0;
52
+ width: 0;
53
+ height: 100%;
54
+ }
55
+ #box-right {
56
+ top: 0;
57
+ right: 0;
58
+ width: 0;
59
+ height: 100%;
60
+ }
61
+ ruffle-player {
62
+ width: 100%;
63
+ height: 100%;
64
+ background: black;
65
+ display: block;
66
+ }
67
+ </style>
68
+ <script src="https://cdn.jsdelivr.net/npm/@ruffle-rs/ruffle@0.2.0-nightly.2025.10.2/ruffle.min.js"></script>
69
+ </head>
70
+ <body>
71
+ <div id="flash-container"></div>
72
+ <div class="black-box" id="box-top"></div>
73
+ <div class="black-box" id="box-bottom"></div>
74
+ <div class="black-box" id="box-left"></div>
75
+ <div class="black-box" id="box-right"></div>
76
+ <script>
77
+ const container = document.getElementById("flash-container");
78
+ const boxTop = document.getElementById("box-top");
79
+ const boxBottom = document.getElementById("box-bottom");
80
+ const boxLeft = document.getElementById("box-left");
81
+ const boxRight = document.getElementById("box-right");
82
+
83
+ function resizeGame() {
84
+ const windowWidth = window.innerWidth;
85
+ const windowHeight = window.innerHeight;
86
+ const aspectRatio = 5.5 / 3;
87
+
88
+ // Use 95% of available space instead of 100%
89
+ let width = Math.floor(windowWidth * 1);
90
+ let height = Math.floor(width / aspectRatio);
91
+
92
+ if (height > windowHeight * 1) {
93
+ height = Math.floor(windowHeight * 1);
94
+ width = Math.floor(height * aspectRatio);
95
+ }
96
+
97
+ container.style.width = `${width}px`;
98
+ container.style.height = `${height}px`;
99
+
100
+ // Calculate margins
101
+ const topMargin = (windowHeight - height) / 2;
102
+ const leftMargin = (windowWidth - width) / 2;
103
+
104
+ // Set black box sizes
105
+ boxTop.style.height = `${topMargin}px`;
106
+ boxBottom.style.height = `${topMargin}px`;
107
+ boxLeft.style.width = `${leftMargin}px`;
108
+ boxRight.style.width = `${leftMargin}px`;
109
+ }
110
+
111
+ window.addEventListener("resize", resizeGame);
112
+ window.addEventListener("DOMContentLoaded", () => {
113
+ resizeGame();
114
+ const ruffle = window.RufflePlayer?.newest() || window.RufflePlayer?.createPlayer();
115
+ if (ruffle && container) {
116
+ const player = ruffle.createPlayer();
117
+ player.style.width = "100%";
118
+ player.style.height = "100%";
119
+ player.style.background = "black";
120
+ container.appendChild(player);
121
+ player.load("$1");
122
+ } else {
123
+ container.textContent = "Ruffle failed to load.";
124
+ }
125
+ });
126
+ </script>
127
+ <param name="movie" value="https://cdn.jsdelivr.net/gh/RobiFet/CMinterview@a4017231eca9f2173ad7ec0e63b01e4786b4ad6b/web/src/BiWrath.swf">
128
+ <embed src="https://cdn.jsdelivr.net/gh/RobiFet/CMinterview@a4017231eca9f2173ad7ec0e63b01e4786b4ad6b/web/src/BiWrath.swf" width="100%" height="100%">
129
+ </body>
130
+ </html>
131
+ ]]></Content>
132
+ </Module>