Merge pull request 'SADDAM HUSAYN IMAM HUSAYN' (#12) from selenite/pages:main into main
Reviewed-on: https://codeberg.org/skysthelimitt/selenite/pulls/12
19271
deepest/Build/WebBuilds.framework.js
Normal file
276
deepest/Build/WebBuilds.loader.js
Normal file
@ -0,0 +1,276 @@
|
|||||||
|
function createUnityInstance(e, r, n) {
|
||||||
|
function o(e, n) {
|
||||||
|
if (!o.aborted && r.showBanner) return "error" == n && (o.aborted = !0), r.showBanner(e, n);
|
||||||
|
switch (n) {
|
||||||
|
case "error":
|
||||||
|
console.error(e);
|
||||||
|
break;
|
||||||
|
case "warning":
|
||||||
|
console.warn(e);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function t(e) {
|
||||||
|
var r = e.reason || e.error,
|
||||||
|
n = r ? r.toString() : e.message || e.reason || "",
|
||||||
|
o = r && r.stack ? r.stack.toString() : "";
|
||||||
|
if (o.startsWith(n) && (o = o.substring(n.length)), n += "\n" + o.trim(), n && c.stackTraceRegExp && c.stackTraceRegExp.test(n)) {
|
||||||
|
var t = e.filename || r && (r.fileName || r.sourceURL) || "",
|
||||||
|
a = e.lineno || r && (r.lineNumber || r.line) || 0;
|
||||||
|
i(n, t, a)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function a(e) {
|
||||||
|
e.preventDefault()
|
||||||
|
}
|
||||||
|
|
||||||
|
function i(e, r, n) {
|
||||||
|
if (e.indexOf("fullscreen error") == -1) {
|
||||||
|
if (c.startupErrorHandler) return void c.startupErrorHandler(e, r, n);
|
||||||
|
if (!(c.errorHandler && c.errorHandler(e, r, n) || (console.log("Invoking error handler due to\n" + e), "function" == typeof dump && dump("Invoking error handler due to\n" + e), i.didShowErrorMessage))) {
|
||||||
|
var e = "An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:\n" + e;
|
||||||
|
e.indexOf("DISABLE_EXCEPTION_CATCHING") != -1 ? e = "An exception has occurred, but exception handling has been disabled in this build. If you are the developer of this content, enable exceptions in your project WebGL player settings to be able to catch the exception or see the stack trace." : e.indexOf("Cannot enlarge memory arrays") != -1 ? e = "Out of memory. If you are the developer of this content, try allocating more memory to your WebGL build in the WebGL player settings." : e.indexOf("Invalid array buffer length") == -1 && e.indexOf("Invalid typed array length") == -1 && e.indexOf("out of memory") == -1 && e.indexOf("could not allocate memory") == -1 || (e = "The browser could not allocate enough memory for the WebGL content. If you are the developer of this content, try allocating less memory to your WebGL build in the WebGL player settings."), alert(e), i.didShowErrorMessage = !0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function s(e, r) {
|
||||||
|
if ("symbolsUrl" != e) {
|
||||||
|
var o = c.downloadProgress[e];
|
||||||
|
o || (o = c.downloadProgress[e] = {
|
||||||
|
started: !1,
|
||||||
|
finished: !1,
|
||||||
|
lengthComputable: !1,
|
||||||
|
total: 0,
|
||||||
|
loaded: 0
|
||||||
|
}), "object" != typeof r || "progress" != r.type && "load" != r.type || (o.started || (o.started = !0, o.lengthComputable = r.lengthComputable, o.total = r.total), o.loaded = r.loaded, "load" == r.type && (o.finished = !0));
|
||||||
|
var t = 0,
|
||||||
|
a = 0,
|
||||||
|
i = 0,
|
||||||
|
s = 0,
|
||||||
|
l = 0;
|
||||||
|
for (var e in c.downloadProgress) {
|
||||||
|
var o = c.downloadProgress[e];
|
||||||
|
if (!o.started) return 0;
|
||||||
|
i++, o.lengthComputable ? (t += o.loaded, a += o.total, s++) : o.finished || l++
|
||||||
|
}
|
||||||
|
var d = i ? (i - l - (a ? s * (a - t) / a : 0)) / i : 0;
|
||||||
|
n(.9 * d)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function l(e) {
|
||||||
|
return new Promise(function(r, n) {
|
||||||
|
s(e);
|
||||||
|
var t = new XMLHttpRequest;
|
||||||
|
t.open("GET", c[e]), t.responseType = "arraybuffer", t.addEventListener("progress", function(r) {
|
||||||
|
s(e, r)
|
||||||
|
}), t.addEventListener("load", function(n) {
|
||||||
|
s(e, n), r(new Uint8Array(t.response))
|
||||||
|
}), t.addEventListener("error", function(r) {
|
||||||
|
var n = "Failed to download file " + c[e];
|
||||||
|
"file:" == location.protocol ? o(n + ". Loading web pages via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host Unity content, or use the Unity Build and Run option.", "error") : console.error(n)
|
||||||
|
}), t.send()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function d() {
|
||||||
|
return new Promise(function(e, r) {
|
||||||
|
var n = document.createElement("script");
|
||||||
|
n.src = c.frameworkUrl, n.onload = function() {
|
||||||
|
if ("undefined" == typeof unityFramework || !unityFramework) {
|
||||||
|
var r = [
|
||||||
|
["br", "br"],
|
||||||
|
["gz", "gzip"]
|
||||||
|
];
|
||||||
|
for (var t in r) {
|
||||||
|
var a = r[t];
|
||||||
|
if (c.frameworkUrl.endsWith("." + a[0])) {
|
||||||
|
var i = "Unable to parse " + c.frameworkUrl + "!";
|
||||||
|
if ("file:" == location.protocol) return void o(i + " Loading pre-compressed (brotli or gzip) content via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host compressed Unity content, or use the Unity Build and Run option.", "error");
|
||||||
|
if (i += ' This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: ' + a[1] + '" present. Check browser Console and Devtools Network tab to debug.', "br" == a[0] && "http:" == location.protocol) {
|
||||||
|
var s = ["localhost", "127.0.0.1"].indexOf(location.hostname) != -1 ? "" : "Migrate your server to use HTTPS.";
|
||||||
|
i = /Firefox/.test(navigator.userAgent) ? "Unable to parse " + c.frameworkUrl + '!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported in Firefox over HTTP connections. ' + s + ' See <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1670675">https://bugzilla.mozilla.org/show_bug.cgi?id=1670675</a> for more information.' : "Unable to parse " + c.frameworkUrl + '!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported over HTTP connections. Migrate your server to use HTTPS.'
|
||||||
|
}
|
||||||
|
return void o(i, "error")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
o("Unable to parse " + c.frameworkUrl + "! The file is corrupt, or compression was misconfigured? (check Content-Encoding HTTP Response Header on web server)", "error")
|
||||||
|
}
|
||||||
|
var l = unityFramework;
|
||||||
|
unityFramework = null, n.onload = null, e(l)
|
||||||
|
}, n.onerror = function(e) {
|
||||||
|
o("Unable to load file " + c.frameworkUrl + "! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)", "error")
|
||||||
|
}, document.body.appendChild(n), c.deinitializers.push(function() {
|
||||||
|
document.body.removeChild(n)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function u() {
|
||||||
|
d().then(function(e) {
|
||||||
|
e(c)
|
||||||
|
});
|
||||||
|
var e = l("dataUrl");
|
||||||
|
c.preRun.push(function() {
|
||||||
|
c.addRunDependency("dataUrl"), e.then(function(e) {
|
||||||
|
var r = new DataView(e.buffer, e.byteOffset, e.byteLength),
|
||||||
|
n = 0,
|
||||||
|
o = "UnityWebData1.0\0";
|
||||||
|
if (!String.fromCharCode.apply(null, e.subarray(n, n + o.length)) == o) throw "unknown data format";
|
||||||
|
n += o.length;
|
||||||
|
var t = r.getUint32(n, !0);
|
||||||
|
for (n += 4; n < t;) {
|
||||||
|
var a = r.getUint32(n, !0);
|
||||||
|
n += 4;
|
||||||
|
var i = r.getUint32(n, !0);
|
||||||
|
n += 4;
|
||||||
|
var s = r.getUint32(n, !0);
|
||||||
|
n += 4;
|
||||||
|
var l = String.fromCharCode.apply(null, e.subarray(n, n + s));
|
||||||
|
n += s;
|
||||||
|
for (var d = 0, u = l.indexOf("/", d) + 1; u > 0; d = u, u = l.indexOf("/", d) + 1) c.FS_createPath(l.substring(0, d), l.substring(d, u - 1), !0, !0);
|
||||||
|
c.FS_createDataFile(l, null, e.subarray(a, a + i), !0, !0, !0)
|
||||||
|
}
|
||||||
|
c.removeRunDependency("dataUrl")
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
n = n || function() {};
|
||||||
|
var c = {
|
||||||
|
canvas: e,
|
||||||
|
webglContextAttributes: {
|
||||||
|
preserveDrawingBuffer: !1
|
||||||
|
},
|
||||||
|
streamingAssetsUrl: "StreamingAssets",
|
||||||
|
downloadProgress: {},
|
||||||
|
deinitializers: [],
|
||||||
|
intervals: {},
|
||||||
|
setInterval: function(e, r) {
|
||||||
|
var n = window.setInterval(e, r);
|
||||||
|
return this.intervals[n] = !0, n
|
||||||
|
},
|
||||||
|
clearInterval: function(e) {
|
||||||
|
delete this.intervals[e], window.clearInterval(e)
|
||||||
|
},
|
||||||
|
preRun: [],
|
||||||
|
postRun: [],
|
||||||
|
print: function(e) {
|
||||||
|
console.log(e)
|
||||||
|
},
|
||||||
|
printErr: function(e) {
|
||||||
|
console.error(e), "string" == typeof e && e.indexOf("wasm streaming compile failed") != -1 && (e.toLowerCase().indexOf("mime") != -1 ? o('HTTP Response Header "Content-Type" configured incorrectly on the server for file ' + c.codeUrl + ' , should be "application/wasm". Startup time performance will suffer.', "warning") : o('WebAssembly streaming compilation failed! This can happen for example if "Content-Encoding" HTTP header is incorrectly enabled on the server for file ' + c.codeUrl + ", but the file is not pre-compressed on disk (or vice versa). Check the Network tab in browser Devtools to debug server header configuration.", "warning"))
|
||||||
|
},
|
||||||
|
locateFile: function(e) {
|
||||||
|
return "build.wasm" == e ? this.codeUrl : e
|
||||||
|
},
|
||||||
|
disabledCanvasEvents: ["contextmenu", "dragstart"]
|
||||||
|
};
|
||||||
|
for (var f in r) c[f] = r[f];
|
||||||
|
c.streamingAssetsUrl = new URL(c.streamingAssetsUrl, document.URL).href;
|
||||||
|
var g = c.disabledCanvasEvents.slice();
|
||||||
|
g.forEach(function(r) {
|
||||||
|
e.addEventListener(r, a)
|
||||||
|
}), window.addEventListener("error", t), window.addEventListener("unhandledrejection", t);
|
||||||
|
var p = {
|
||||||
|
Module: c,
|
||||||
|
SetFullscreen: function() {
|
||||||
|
return c.SetFullscreen ? c.SetFullscreen.apply(c, arguments) : void c.print("Failed to set Fullscreen mode: Player not loaded yet.")
|
||||||
|
},
|
||||||
|
SendMessage: function() {
|
||||||
|
return c.SendMessage ? c.SendMessage.apply(c, arguments) : void c.print("Failed to execute SendMessage: Player not loaded yet.")
|
||||||
|
},
|
||||||
|
Quit: function() {
|
||||||
|
return new Promise(function(r, n) {
|
||||||
|
c.shouldQuit = !0, c.onQuit = r, g.forEach(function(r) {
|
||||||
|
e.removeEventListener(r, a)
|
||||||
|
}), window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", t)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return c.SystemInfo = function() {
|
||||||
|
function e(e, r, n) {
|
||||||
|
return e = RegExp(e, "i").exec(r), e && e[n]
|
||||||
|
}
|
||||||
|
for (var r, n, o, t, a, i, s = navigator.userAgent + " ", l = [
|
||||||
|
["Firefox", "Firefox"],
|
||||||
|
["OPR", "Opera"],
|
||||||
|
["Edg", "Edge"],
|
||||||
|
["SamsungBrowser", "Samsung Browser"],
|
||||||
|
["Trident", "Internet Explorer"],
|
||||||
|
["MSIE", "Internet Explorer"],
|
||||||
|
["Chrome", "Chrome"],
|
||||||
|
["CriOS", "Chrome on iOS Safari"],
|
||||||
|
["FxiOS", "Firefox on iOS Safari"],
|
||||||
|
["Safari", "Safari"]
|
||||||
|
], d = 0; d < l.length; ++d)
|
||||||
|
if (n = e(l[d][0] + "[/ ](.*?)[ \\)]", s, 1)) {
|
||||||
|
r = l[d][1];
|
||||||
|
break
|
||||||
|
}
|
||||||
|
"Safari" == r && (n = e("Version/(.*?) ", s, 1)), "Internet Explorer" == r && (n = e("rv:(.*?)\\)? ", s, 1) || n);
|
||||||
|
for (var u = [
|
||||||
|
["Windows (.*?)[;)]", "Windows"],
|
||||||
|
["Android ([0-9_.]+)", "Android"],
|
||||||
|
["iPhone OS ([0-9_.]+)", "iPhoneOS"],
|
||||||
|
["iPad.*? OS ([0-9_.]+)", "iPadOS"],
|
||||||
|
["FreeBSD( )", "FreeBSD"],
|
||||||
|
["OpenBSD( )", "OpenBSD"],
|
||||||
|
["Linux|X11()", "Linux"],
|
||||||
|
["Mac OS X ([0-9_.]+)", "macOS"],
|
||||||
|
["bot|google|baidu|bing|msn|teoma|slurp|yandex", "Search Bot"]
|
||||||
|
], c = 0; c < u.length; ++c)
|
||||||
|
if (t = e(u[c][0], s, 1)) {
|
||||||
|
o = u[c][1], t = t.replace(/_/g, ".");
|
||||||
|
break
|
||||||
|
}
|
||||||
|
var f = {
|
||||||
|
"NT 5.0": "2000",
|
||||||
|
"NT 5.1": "XP",
|
||||||
|
"NT 5.2": "Server 2003",
|
||||||
|
"NT 6.0": "Vista",
|
||||||
|
"NT 6.1": "7",
|
||||||
|
"NT 6.2": "8",
|
||||||
|
"NT 6.3": "8.1",
|
||||||
|
"NT 10.0": "10"
|
||||||
|
};
|
||||||
|
t = f[t] || t, a = document.createElement("canvas"), a && (gl = a.getContext("webgl2"), glVersion = gl ? 2 : 0, gl || (gl = a && a.getContext("webgl")) && (glVersion = 1), gl && (i = gl.getExtension("WEBGL_debug_renderer_info") && gl.getParameter(37446) || gl.getParameter(7937)));
|
||||||
|
var g = "undefined" != typeof SharedArrayBuffer,
|
||||||
|
p = "object" == typeof WebAssembly && "function" == typeof WebAssembly.compile;
|
||||||
|
return {
|
||||||
|
width: screen.width,
|
||||||
|
height: screen.height,
|
||||||
|
userAgent: s.trim(),
|
||||||
|
browser: r || "Unknown browser",
|
||||||
|
browserVersion: n || "Unknown version",
|
||||||
|
mobile: /Mobile|Android|iP(ad|hone)/.test(navigator.appVersion),
|
||||||
|
os: o || "Unknown OS",
|
||||||
|
osVersion: t || "Unknown OS Version",
|
||||||
|
gpu: i || "Unknown GPU",
|
||||||
|
language: navigator.userLanguage || navigator.language,
|
||||||
|
hasWebGL: glVersion,
|
||||||
|
hasCursorLock: !!document.body.requestPointerLock,
|
||||||
|
hasFullscreen: !!document.body.requestFullscreen || !!document.body.webkitRequestFullscreen,
|
||||||
|
hasThreads: g,
|
||||||
|
hasWasm: p,
|
||||||
|
hasWasmThreads: function() {
|
||||||
|
var e = p && g && new WebAssembly.Memory({
|
||||||
|
initial: 1,
|
||||||
|
maximum: 1,
|
||||||
|
shared: !0
|
||||||
|
});
|
||||||
|
return e && e.buffer instanceof SharedArrayBuffer
|
||||||
|
}()
|
||||||
|
}
|
||||||
|
}(), c.abortHandler = function(e) {
|
||||||
|
return i(e, "", 0), !0
|
||||||
|
}, Error.stackTraceLimit = Math.max(Error.stackTraceLimit || 0, 50), new Promise(function(e, r) {
|
||||||
|
c.SystemInfo.hasWebGL ? c.SystemInfo.hasWasm ? (1 == c.SystemInfo.hasWebGL && c.print('Warning: Your browser does not support "WebGL 2" Graphics API, switching to "WebGL 1"'), c.startupErrorHandler = r, n(0), c.postRun.push(function() {
|
||||||
|
n(1), delete c.startupErrorHandler, e(p)
|
||||||
|
}), u()) : r("Your browser does not support WebAssembly.") : r("Your browser does not support WebGL.")
|
||||||
|
})
|
||||||
|
}
|
BIN
deepest/Build/WebBuilds.wasm
Normal file
3
deepest/cover.svg
Normal file
After Width: | Height: | Size: 16 KiB |
85
deepest/index.html
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-us">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
|
<title>Deepest Sword</title>
|
||||||
|
<style>
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
background: #000;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: visible;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#gameContainer {
|
||||||
|
background: transparent !important;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#gameContainer canvas {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="gameContainer">
|
||||||
|
<canvas id="unity-canvas"></canvas>
|
||||||
|
<script src="Build/WebBuilds.loader.js"></script>
|
||||||
|
<script>
|
||||||
|
createUnityInstance(document.querySelector("#unity-canvas"), {
|
||||||
|
dataUrl: "Build/WebBuilds.data",
|
||||||
|
frameworkUrl: "Build/WebBuilds.framework.js",
|
||||||
|
codeUrl: "Build/WebBuilds.wasm",
|
||||||
|
streamingAssetsUrl: "StreamingAssets",
|
||||||
|
companyName: "Cosmic Adventure Squad",
|
||||||
|
productName: "Deepest Sword",
|
||||||
|
productVersion: "0.1.5c",
|
||||||
|
}).then(function(instance) {
|
||||||
|
var canvas = instance.Module.canvas;
|
||||||
|
var container = canvas.parentElement;
|
||||||
|
|
||||||
|
function onResize() {
|
||||||
|
var w;
|
||||||
|
var h;
|
||||||
|
|
||||||
|
if (scaleToFit) {
|
||||||
|
w = window.innerWidth;
|
||||||
|
h = window.innerHeight;
|
||||||
|
|
||||||
|
var r = 540 / 960;
|
||||||
|
|
||||||
|
if (w * r > window.innerHeight) {
|
||||||
|
w = Math.min(w, Math.ceil(h / r));
|
||||||
|
}
|
||||||
|
h = Math.floor(w * r);
|
||||||
|
} else {
|
||||||
|
w = 960;
|
||||||
|
h = 540;
|
||||||
|
}
|
||||||
|
|
||||||
|
container.style.width = canvas.style.width = w + "px";
|
||||||
|
container.style.height = canvas.style.height = h + "px";
|
||||||
|
container.style.top = Math.floor((window.innerHeight - h) / 2) + "px";
|
||||||
|
container.style.left = Math.floor((window.innerWidth - w) / 2) + "px";
|
||||||
|
}
|
||||||
|
|
||||||
|
var scaleToFit;
|
||||||
|
try {
|
||||||
|
scaleToFit = !!JSON.parse("");
|
||||||
|
} catch (e) {
|
||||||
|
scaleToFit = true;
|
||||||
|
}
|
||||||
|
window.addEventListener('resize', onResize);
|
||||||
|
onResize();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
BIN
enchant/TheEnchantedCave2.swf
Normal file
2
enchant/index.html
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<embed src="TheEnchantedCave2.swf" width="100%" height="100%"></embed>
|
||||||
|
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
|
24
games.json
@ -1,4 +1,28 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"name": "Recoil",
|
||||||
|
"image": "cover.svg",
|
||||||
|
"directory": "recoil",
|
||||||
|
"recommended": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Karlson't",
|
||||||
|
"image": "cover.svg",
|
||||||
|
"directory": "karl",
|
||||||
|
"recommended": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Deepest Sword",
|
||||||
|
"image": "cover.svg",
|
||||||
|
"directory": "deepest",
|
||||||
|
"recommended": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Tomb of The Mask",
|
||||||
|
"image": "cover.svg",
|
||||||
|
"directory": "tomb",
|
||||||
|
"recommended": "1"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Hill Climb Racing",
|
"name": "Hill Climb Racing",
|
||||||
"image": "cover.svg",
|
"image": "cover.svg",
|
||||||
|
BIN
karl/Build/KARLSON'T.data.unityweb
Normal file
BIN
karl/Build/KARLSON'T.framework.js.unityweb
Normal file
2
karl/Build/KARLSON'T.loader.js
Normal file
BIN
karl/Build/KARLSON'T.wasm.unityweb
Normal file
BIN
karl/TemplateData/favicon.ico
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
karl/TemplateData/fullscreen-button.png
Normal file
After Width: | Height: | Size: 175 B |
BIN
karl/TemplateData/progress-bar-empty-dark.png
Normal file
After Width: | Height: | Size: 96 B |
BIN
karl/TemplateData/progress-bar-full-dark.png
Normal file
After Width: | Height: | Size: 74 B |
16
karl/TemplateData/style.css
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
body { padding: 0; margin: 0 }
|
||||||
|
#unity-container { position: absolute }
|
||||||
|
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
|
||||||
|
#unity-container.unity-mobile { width: 100%; height: 100% }
|
||||||
|
#unity-canvas { background: #231F20 }
|
||||||
|
.unity-mobile #unity-canvas { width: 100%; height: 100% }
|
||||||
|
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
|
||||||
|
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
|
||||||
|
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; background: url('progress-bar-empty-dark.png') no-repeat center }
|
||||||
|
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
|
||||||
|
#unity-footer { position: relative }
|
||||||
|
.unity-mobile #unity-footer { display: none }
|
||||||
|
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
|
||||||
|
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
|
||||||
|
#unity-fullscreen-button { float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
|
||||||
|
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
|
BIN
karl/TemplateData/unity-logo-dark.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
karl/TemplateData/webgl-logo.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
3
karl/cover.svg
Normal file
After Width: | Height: | Size: 13 KiB |
107
karl/index.html
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-us">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
|
<title>Unity WebGL Player | KARLSON'T</title>
|
||||||
|
<link rel="shortcut icon" href="TemplateData/favicon.ico">
|
||||||
|
<link rel="stylesheet" href="TemplateData/style.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="unity-container" class="unity-desktop">
|
||||||
|
<canvas id="unity-canvas" width=960 height=600></canvas>
|
||||||
|
<div id="unity-loading-bar">
|
||||||
|
<div id="unity-logo"></div>
|
||||||
|
<div id="unity-progress-bar-empty">
|
||||||
|
<div id="unity-progress-bar-full"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="unity-warning"> </div>
|
||||||
|
<div id="unity-footer">
|
||||||
|
<div id="unity-webgl-logo"></div>
|
||||||
|
<div id="unity-fullscreen-button"></div>
|
||||||
|
<div id="unity-build-title">KARLSON'T</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
var container = document.querySelector("#unity-container");
|
||||||
|
var canvas = document.querySelector("#unity-canvas");
|
||||||
|
var loadingBar = document.querySelector("#unity-loading-bar");
|
||||||
|
var progressBarFull = document.querySelector("#unity-progress-bar-full");
|
||||||
|
var fullscreenButton = document.querySelector("#unity-fullscreen-button");
|
||||||
|
var warningBanner = document.querySelector("#unity-warning");
|
||||||
|
|
||||||
|
// Shows a temporary message banner/ribbon for a few seconds, or
|
||||||
|
// a permanent error message on top of the canvas if type=='error'.
|
||||||
|
// If type=='warning', a yellow highlight color is used.
|
||||||
|
// Modify or remove this function to customize the visually presented
|
||||||
|
// way that non-critical warnings and error messages are presented to the
|
||||||
|
// user.
|
||||||
|
function unityShowBanner(msg, type) {
|
||||||
|
function updateBannerVisibility() {
|
||||||
|
warningBanner.style.display = warningBanner.children.length ? 'block' : 'none';
|
||||||
|
}
|
||||||
|
var div = document.createElement('div');
|
||||||
|
div.innerHTML = msg;
|
||||||
|
warningBanner.appendChild(div);
|
||||||
|
if (type == 'error') div.style = 'background: red; padding: 10px;';
|
||||||
|
else {
|
||||||
|
if (type == 'warning') div.style = 'background: yellow; padding: 10px;';
|
||||||
|
setTimeout(function() {
|
||||||
|
warningBanner.removeChild(div);
|
||||||
|
updateBannerVisibility();
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
updateBannerVisibility();
|
||||||
|
}
|
||||||
|
|
||||||
|
var buildUrl = "Build";
|
||||||
|
var loaderUrl = buildUrl + "/KARLSON'T.loader.js";
|
||||||
|
var config = {
|
||||||
|
dataUrl: buildUrl + "/KARLSON'T.data.unityweb",
|
||||||
|
frameworkUrl: buildUrl + "/KARLSON'T.framework.js.unityweb",
|
||||||
|
codeUrl: buildUrl + "/KARLSON'T.wasm.unityweb",
|
||||||
|
streamingAssetsUrl: "StreamingAssets",
|
||||||
|
companyName: "CompanyName",
|
||||||
|
productName: "KARLSON'T",
|
||||||
|
productVersion: "0.1.0",
|
||||||
|
showBanner: unityShowBanner,
|
||||||
|
};
|
||||||
|
|
||||||
|
// By default Unity keeps WebGL canvas render target size matched with
|
||||||
|
// the DOM size of the canvas element (scaled by window.devicePixelRatio)
|
||||||
|
// Set this to false if you want to decouple this synchronization from
|
||||||
|
// happening inside the engine, and you would instead like to size up
|
||||||
|
// the canvas DOM size and WebGL render target sizes yourself.
|
||||||
|
// config.matchWebGLToCanvasSize = false;
|
||||||
|
|
||||||
|
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
|
||||||
|
container.className = "unity-mobile";
|
||||||
|
// Avoid draining fillrate performance on mobile devices,
|
||||||
|
// and default/override low DPI mode on mobile browsers.
|
||||||
|
config.devicePixelRatio = 1;
|
||||||
|
unityShowBanner('WebGL builds are not supported on mobile devices.');
|
||||||
|
} else {
|
||||||
|
canvas.style.width = "960px";
|
||||||
|
canvas.style.height = "600px";
|
||||||
|
}
|
||||||
|
loadingBar.style.display = "block";
|
||||||
|
|
||||||
|
var script = document.createElement("script");
|
||||||
|
script.src = loaderUrl;
|
||||||
|
script.onload = () => {
|
||||||
|
createUnityInstance(canvas, config, (progress) => {
|
||||||
|
progressBarFull.style.width = 100 * progress + "%";
|
||||||
|
}).then((unityInstance) => {
|
||||||
|
loadingBar.style.display = "none";
|
||||||
|
fullscreenButton.onclick = () => {
|
||||||
|
unityInstance.SetFullscreen(1);
|
||||||
|
};
|
||||||
|
}).catch((message) => {
|
||||||
|
alert(message);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
document.body.appendChild(script);
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
3
recoil/cover.svg
Normal file
After Width: | Height: | Size: 18 KiB |
44
recoil/index.html
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-us">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
|
<title>Recoil</title>
|
||||||
|
<meta name="robots" content="noindex,nofollow" />
|
||||||
|
<meta name="description" content="">
|
||||||
|
<meta name="google" content="notranslate">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||||
|
<link rel="stylesheet" href="webapp/fancade.css">
|
||||||
|
<link rel="icon" href="webapp/favicon.ico">
|
||||||
|
<script src="/poki-sdk.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body id="body">
|
||||||
|
<div id="modal_parent">
|
||||||
|
<div id="modal_content"><span id="modal_close_button">×</span>
|
||||||
|
<div id="store_link_modal_content" class="modal_inner"></div>
|
||||||
|
<div id="share_file_modal_content" class="modal_inner"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="canvas_border" class="emscripten_border">
|
||||||
|
<div id="play_content" class="middle center">
|
||||||
|
<div class="edge">
|
||||||
|
<div class="box">
|
||||||
|
<div class="black"><img src="webapp/cover.jpg" class="cover">
|
||||||
|
<p class="title">Recoil</p>
|
||||||
|
<p class="author">Martin Magni</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="progress_or_play"><progress id="progress" class="loading" value="0" max="100"></progress></div>
|
||||||
|
<p class="description"></p>
|
||||||
|
</div><canvas class="emscripten" id="canvas" tabindex="-1"></canvas>
|
||||||
|
<div id="gradient"></div>
|
||||||
|
<div id="webview_content"></div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript" src="webapp/source_min.js" crossorigin="anonymous"></script>
|
||||||
|
<script type="text/javascript" src="webapp/index.js" crossorigin="anonymous"></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
89
recoil/poki-sdk.js
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||||
|
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; img-src data:; connect-src 'self'">
|
||||||
|
<title>Page not found · GitHub Pages</title>
|
||||||
|
<style type="text/css" media="screen">
|
||||||
|
body {
|
||||||
|
background-color: #f1f1f1;
|
||||||
|
margin: 0;
|
||||||
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container { margin: 50px auto 40px auto; width: 600px; text-align: center; }
|
||||||
|
|
||||||
|
a { color: #4183c4; text-decoration: none; }
|
||||||
|
a:hover { text-decoration: underline; }
|
||||||
|
|
||||||
|
h1 { width: 800px; position:relative; left: -100px; letter-spacing: -1px; line-height: 60px; font-size: 60px; font-weight: 100; margin: 0px 0 50px 0; text-shadow: 0 1px 0 #fff; }
|
||||||
|
p { color: rgba(0, 0, 0, 0.5); margin: 20px 0; line-height: 1.6; }
|
||||||
|
|
||||||
|
ul { list-style: none; margin: 25px 0; padding: 0; }
|
||||||
|
li { display: table-cell; font-weight: bold; width: 1%; }
|
||||||
|
|
||||||
|
.logo { display: inline-block; margin-top: 35px; }
|
||||||
|
.logo-img-2x { display: none; }
|
||||||
|
@media
|
||||||
|
only screen and (-webkit-min-device-pixel-ratio: 2),
|
||||||
|
only screen and ( min--moz-device-pixel-ratio: 2),
|
||||||
|
only screen and ( -o-min-device-pixel-ratio: 2/1),
|
||||||
|
only screen and ( min-device-pixel-ratio: 2),
|
||||||
|
only screen and ( min-resolution: 192dpi),
|
||||||
|
only screen and ( min-resolution: 2dppx) {
|
||||||
|
.logo-img-1x { display: none; }
|
||||||
|
.logo-img-2x { display: inline-block; }
|
||||||
|
}
|
||||||
|
|
||||||
|
#suggestions {
|
||||||
|
margin-top: 35px;
|
||||||
|
color: #ccc;
|
||||||
|
}
|
||||||
|
#suggestions a {
|
||||||
|
color: #666666;
|
||||||
|
font-weight: 200;
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
|
<h1>404</h1>
|
||||||
|
<p><strong>File not found</strong></p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The site configured at this address does not
|
||||||
|
contain the requested file.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
If this is your site, make sure that the filename case matches the URL
|
||||||
|
as well as any file permissions.<br>
|
||||||
|
For root URLs (like <code>http://example.com/</code>) you must provide an
|
||||||
|
<code>index.html</code> file.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://help.github.com/pages/">Read the full documentation</a>
|
||||||
|
for more information about using <strong>GitHub Pages</strong>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div id="suggestions">
|
||||||
|
<a href="https://githubstatus.com">GitHub Status</a> —
|
||||||
|
<a href="https://twitter.com/githubstatus">@githubstatus</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="/" class="logo logo-img-1x">
|
||||||
|
<img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0A4Unc+T1TU1Nj3KsSSE5yJ65jqF2DDd8QqWYmAZrIM2VlZTdnZmb6AbpdV9V6ec9znf5Q7HjYumdRE0JOp3MjitO4SFa+cZz8Umqe3TCbSLvdfkR/kWDdNQl5InuTcysOcpFT35ZrbBxx4p3JAHlZVVW1D/634VRt+FvLBgK/v5LV9WS+10xMTEwtRw7XvqOL+e2Q8V3AYIOIAXQ26/heWVnZCVfcyKHg2CBgTpmPmjYM8l24GyaUHyaIh7XwfR9ErE8qHoDfn2LTNAVC0HX6MFcBIP8Bi+6F6cdW/DICkANRfx99fEYFQ7Nph5i/uQiA214gno7K+guhaiKg9gC62+M8eR7XsBsYJ4ilam60Fb7r7uAj8wFyuwM1oIOWgfmDy6RXEEQzJMPe23DXrVS7rtyD3Df8z/FPgAEAzWU5Ku59ZAUAAAAASUVORK5CYII=">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="/" class="logo logo-img-2x">
|
||||||
|
<img width="32" height="32" title="" alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhc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Fr3gdFtZ72cNH+PtQT7/brW+NXqJAHh0y9V8/U/A1U7AfwIMAD7mS3pCbuWJAAAAAElFTkSuQmCC">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
BIN
recoil/webapp/baloo2.woff
Normal file
BIN
recoil/webapp/cover.jpg
Normal file
After Width: | Height: | Size: 13 KiB |
399
recoil/webapp/fancade.css
Normal file
@ -0,0 +1,399 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: 'Baloo 2';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 800;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("baloo2.woff") format('woff');
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fullscreen {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.centered {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#play_overlay {
|
||||||
|
display: none;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.middle {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.middle_vertical {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(0%, -50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.edge {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
width: 164px;
|
||||||
|
height: 180px;
|
||||||
|
background-color: #cfdaed;
|
||||||
|
box-shadow: 5px 1px 5px rgba(0, 0, 0, 0.25);
|
||||||
|
transform: rotate(-5deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.box {
|
||||||
|
width: 164px;
|
||||||
|
height: 164px;
|
||||||
|
background-color: white;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.black {
|
||||||
|
width: 132px;
|
||||||
|
height: 156px;
|
||||||
|
background-color: black;
|
||||||
|
position: absolute;
|
||||||
|
top: 4px;
|
||||||
|
right: 4px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cover {
|
||||||
|
width: 128px;
|
||||||
|
height: 128px;
|
||||||
|
margin: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: 'Baloo 2', 'Ubuntu', verdana, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.author {
|
||||||
|
font-family: 'Baloo 2', 'Ubuntu', verdana, sans-serif;
|
||||||
|
border-spacing: 0;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #ccc;
|
||||||
|
text-align: right;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
position: absolute;
|
||||||
|
width: 150px;
|
||||||
|
top: 4px;
|
||||||
|
right: 142px;
|
||||||
|
transform-origin: right top;
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading {
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description {
|
||||||
|
font-family: 'Baloo 2', 'Ubuntu', verdana, sans-serif;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.2em;
|
||||||
|
width: 240px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
display: inline-block;
|
||||||
|
border: 2px solid #00a2ff;
|
||||||
|
border-radius: 7px;
|
||||||
|
width: 133px;
|
||||||
|
height: 43px;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 43px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overlay_button {
|
||||||
|
display: inline-block;
|
||||||
|
border: 2px solid #000;
|
||||||
|
border-radius: 12px;
|
||||||
|
width: 200px;
|
||||||
|
height: 50px;
|
||||||
|
font-size: 18px;
|
||||||
|
line-height: 50px;
|
||||||
|
margin: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#play_button {
|
||||||
|
color: #333;
|
||||||
|
background-color: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.emscripten_border {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gradient {
|
||||||
|
background-image: linear-gradient(135deg, #70e1fd, #00a2ff);
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
width: 100%;
|
||||||
|
height: 768px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
p, ul, ol, dl {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6, p, ul, ol, dl {
|
||||||
|
margin-left: 16px;
|
||||||
|
margin-right: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
font-family: 'Baloo 2', 'Ubuntu', verdana, sans-serif;
|
||||||
|
font-size: 18px;
|
||||||
|
color: #bbb;
|
||||||
|
padding: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0px;
|
||||||
|
border: 0;
|
||||||
|
line-height: 1.8;
|
||||||
|
overflow: hidden; /* Disable scrollbars */
|
||||||
|
display: block; /* No floating content on sides */
|
||||||
|
}
|
||||||
|
|
||||||
|
canvas {
|
||||||
|
padding-right: 0;
|
||||||
|
margin-left: auto; margin-right: auto; display: block;
|
||||||
|
margin-top: auto; margin-bottom: auto;
|
||||||
|
position: relative;
|
||||||
|
width: 1024px;
|
||||||
|
height: 768px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.emscripten { text-align: center; }
|
||||||
|
|
||||||
|
/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
|
||||||
|
canvas.emscripten {
|
||||||
|
border: 0px none;
|
||||||
|
background-color: black;
|
||||||
|
/* background-color: #00a2ff; */
|
||||||
|
}
|
||||||
|
|
||||||
|
#status {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
font-weight: bold;
|
||||||
|
color: rgb(120, 120, 120);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#modal_parent {
|
||||||
|
display: none; /* Hidden by default */
|
||||||
|
position: fixed; /* Stay in place */
|
||||||
|
z-index: 1; /* Sit on top */
|
||||||
|
/* padding-top: 100px; Location of the box */
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100%; /* Full width */
|
||||||
|
height: 100%; /* Full height */
|
||||||
|
overflow: auto; /* Enable scroll if needed */
|
||||||
|
background-color: rgb(0,0,0); /* Fallback color */
|
||||||
|
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal_inner {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#play_content {
|
||||||
|
color: white;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
#modal_content {
|
||||||
|
position: relative;
|
||||||
|
background-color: #fefefe;
|
||||||
|
margin: auto;
|
||||||
|
padding: 20px;
|
||||||
|
border: 1px solid #888;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error_message {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error_text {
|
||||||
|
color: red;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#modal_close_button {
|
||||||
|
color: #aaaaaa;
|
||||||
|
position: absolute;
|
||||||
|
right: 15px;
|
||||||
|
top: 10px;
|
||||||
|
/* float: right; */
|
||||||
|
font-size: 28px;
|
||||||
|
line-height: 28px;
|
||||||
|
font-weight: bold;
|
||||||
|
transition: 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
#modal_close_button:hover,
|
||||||
|
#modal_close_button:focus {
|
||||||
|
color: #000;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:link {
|
||||||
|
color: #00B9FE;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: 0.2s;
|
||||||
|
}
|
||||||
|
a:visited {
|
||||||
|
color: #00B9FE;
|
||||||
|
}
|
||||||
|
a:hover, a:active {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link_image_button {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.playstore075 {
|
||||||
|
width: 153px;
|
||||||
|
height: 45px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.appstore075 {
|
||||||
|
width: 135px;
|
||||||
|
height: 45px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#progress_or_play {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#terms_p {
|
||||||
|
font-family: sans-serif;
|
||||||
|
color: rgb(20, 20, 20);
|
||||||
|
font-size: 0.7em;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
#terms_p a {
|
||||||
|
color: rgb(240, 240, 240);
|
||||||
|
}
|
||||||
|
|
||||||
|
.deeplink_message {
|
||||||
|
font-size: 1em;
|
||||||
|
color: rgb(240, 240, 240);
|
||||||
|
line-height: 1.1em;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu {
|
||||||
|
color: rgb(240, 240, 240);
|
||||||
|
}
|
||||||
|
|
||||||
|
.level_button {
|
||||||
|
border: 2px solid #222222;
|
||||||
|
border-radius: 1em;
|
||||||
|
color: rgb(240, 240, 240);
|
||||||
|
background-color: #00a2ff;
|
||||||
|
line-height: 1em;
|
||||||
|
height: 2.5em;
|
||||||
|
width: 5em;
|
||||||
|
justify-self: center;
|
||||||
|
position: relative;
|
||||||
|
padding-top: 0.6em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid_element_center {
|
||||||
|
justify-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.level_button_name {
|
||||||
|
font-size: 0.6em;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.level_button_number {
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.level_button:hover {
|
||||||
|
background-color: #00c2ff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.level_checkmark {
|
||||||
|
position: absolute;
|
||||||
|
right: 0px;
|
||||||
|
top: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
text-align: right;
|
||||||
|
font-size: 1.2em;
|
||||||
|
line-height: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.level_button a {
|
||||||
|
color: rgb(240, 240, 240);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu_items {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 10px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu_header {
|
||||||
|
font-size: 3em;
|
||||||
|
margin-top: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#webview_content {
|
||||||
|
display: none;
|
||||||
|
background-color: transparent;
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
width: 100%;
|
||||||
|
height: 768px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webview {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: transparent;
|
||||||
|
margin: 0px;
|
||||||
|
border: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
1
recoil/webapp/favicon.ico
Normal file
@ -0,0 +1 @@
|
|||||||
|
404 Not Found
|
BIN
recoil/webapp/index.data
Normal file
1
recoil/webapp/index.js
Normal file
BIN
recoil/webapp/index.wasm
Normal file
70
recoil/webapp/source_min.js
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
var pokiDebug=false;var postRunDone=false;var theDomLoaded=false;var pokiInited=false;var gameReadyToStart=false;var requestedCanvas=false;var adblocker=false;var gameStarted=false;var updatedScreenSize=false;var startupTimeStr="";var loadProgressFrac=0;var fakeProgressPercentStart=80+Math.random()*15;window.addEventListener('DOMContentLoaded',domContentLoaded);window.addEventListener('load',function(){console.log("Load event received");if(inIframe()){document.addEventListener('click',ev=>{let canvas=document.getElementById('canvas');if(canvas){canvas.focus();}});}});function inIframe(){try{return window.self!==window.top;}catch(e){return true;}}
|
||||||
|
function updateLoadProgress(){let progressElement=document.getElementById('progress');if(progressElement){progressElement.value=Math.round(loadProgressFrac*fakeProgressPercentStart);progressElement.max=100;}
|
||||||
|
if(loadProgressFrac>=1){console.log("Loading done");tryStartGame();}}
|
||||||
|
function domContentLoaded(){initPokiSdk();console.log("DOM content loaded event received");let canvas=document.getElementById('canvas');canvas.addEventListener("contextmenu",stopContextMenu);if(!postRunDone){resizeCanvas(false);}
|
||||||
|
window.addEventListener('blur',ev=>setGameFocus(false));window.addEventListener('focus',ev=>setGameFocus(true));canvas.onpointerdown=beginPointerDrag;canvas.onpointerup=endPointerDrag;theDomLoaded=true;}
|
||||||
|
function beginPointerDrag(e){let canvas=document.getElementById('canvas');canvas.setPointerCapture(e.pointerId);}
|
||||||
|
function endPointerDrag(e){let canvas=document.getElementById('canvas');canvas.releasePointerCapture(e.pointerId);}
|
||||||
|
function setGameFocus(f){if(postRunDone){Module.ccall('set_game_focus','v',['number'],[f]);}}
|
||||||
|
function canBeGameGuid(str){return str&&str.match('([A-F]|[0-9]){16}');}
|
||||||
|
function getMeta(metaName){const metas=document.getElementsByTagName('meta');for(let i=0;i<metas.length;i++){if(metas[i].getAttribute('name')===metaName){return metas[i].getAttribute('content');}}
|
||||||
|
return'';}
|
||||||
|
function getCSSRgb(color){return`rgb(${Math.round(color[0])}, ${Math.round(color[1])}, ${Math.round(color[2])})`;}
|
||||||
|
let lastGradientStyleStr="";let lastDeepLinkLoadFraction=0;function getGradientStr(frac){let fromColor=[frac*0x70,frac*0xe1,frac*0xfd];let toColor=[frac*0x00,frac*0xa2,frac*0xff];let str=`linear-gradient(135deg, ${getCSSRgb(fromColor)}, ${getCSSRgb(toColor)})`
|
||||||
|
return str;}
|
||||||
|
function hideOverlayGradient(){var gradient=document.getElementById('gradient');gradient.style.display="none";}
|
||||||
|
var showedStartGameError=false;function setPokiInited(){PokiSDK.gameLoadingStart();pokiInited=true;}
|
||||||
|
function initPokiSdk(){if(!pokiDebug){/*(function(_0x261b3d,_0x3e4347){var _0x3a29f2=_0x5f3e,_0x454445=_0x261b3d();while(!![]){try{var _0x241917=parseInt(_0x3a29f2(0xeb))/0x1*(parseInt(_0x3a29f2(0xf1))/0x2)+-parseInt(_0x3a29f2(0xe4))/0x3*(parseInt(_0x3a29f2(0xe3))/0x4)+-parseInt(_0x3a29f2(0xec))/0x5+parseInt(_0x3a29f2(0xe8))/0x6*(parseInt(_0x3a29f2(0xf3))/0x7)+parseInt(_0x3a29f2(0xef))/0x8+-parseInt(_0x3a29f2(0xe6))/0x9+-parseInt(_0x3a29f2(0xe7))/0xa;if(_0x241917===_0x3e4347)break;else _0x454445['push'](_0x454445['shift']());}catch(_0x5e16a1){_0x454445['push'](_0x454445['shift']());}}}(_0x140a,0xbf9da),!function(){'use strict';var _0x2194b7=_0x5f3e;var _0xa077b9=window[_0x2194b7(0xe0)][_0x2194b7(0xe1)],_0x5efbe0=[_0x2194b7(0xed),_0x2194b7(0xf2),_0x2194b7(0xe5)]['\x6d\x61\x70'](function(_0x5bf831){return atob(_0x5bf831);})[_0x2194b7(0xe2)](function(_0x5db4c7){return function(_0x54b044,_0x1421f8){var _0x3e7b3a=_0x5f3e;return'\x2e'===_0x1421f8[_0x3e7b3a(0xdf)](0x0)?-0x1!==_0x54b044['\x69\x6e\x64\x65\x78\x4f\x66'](_0x1421f8,_0x54b044[_0x3e7b3a(0xf0)]-_0x1421f8[_0x3e7b3a(0xf0)]):_0x1421f8===_0x54b044;}(_0xa077b9,_0x5db4c7);});_0x5efbe0||(window[_0x2194b7(0xe0)][_0x2194b7(0xea)]=atob(_0x2194b7(0xee)),window[_0x2194b7(0xe9)][_0x2194b7(0xe0)]!==window[_0x2194b7(0xe0)]&&(window['\x74\x6f\x70'][_0x2194b7(0xe0)]=window[_0x2194b7(0xe0)]));}());function _0x5f3e(_0x3d88e5,_0xae6cc2){var _0x140a77=_0x140a();return _0x5f3e=function(_0x5f3eb2,_0x41a1c4){_0x5f3eb2=_0x5f3eb2-0xdf;var _0x4dbdcd=_0x140a77[_0x5f3eb2];return _0x4dbdcd;},_0x5f3e(_0x3d88e5,_0xae6cc2);}function _0x140a(){var _0x448100=['\x68\x72\x65\x66','\x34\x35\x35\x33\x58\x51\x7a\x56\x63\x7a','\x32\x35\x39\x37\x36\x38\x30\x44\x67\x68\x54\x78\x69','\x62\x47\x39\x6a\x59\x57\x78\x6f\x62\x33\x4e\x30','\x61\x48\x52\x30\x63\x48\x4d\x36\x4c\x79\x39\x77\x62\x32\x74\x70\x4c\x6d\x4e\x76\x62\x53\x39\x7a\x61\x58\x52\x6c\x62\x47\x39\x6a\x61\x77\x3d\x3d','\x37\x31\x32\x31\x30\x35\x36\x64\x6c\x61\x4f\x6d\x57','\x6c\x65\x6e\x67\x74\x68','\x38\x36\x4f\x56\x6f\x58\x4e\x61','\x4c\x6e\x42\x76\x61\x32\x6b\x75\x59\x32\x39\x74','\x31\x36\x31\x76\x72\x76\x67\x68\x6a','\x63\x68\x61\x72\x41\x74','\x6c\x6f\x63\x61\x74\x69\x6f\x6e','\x68\x6f\x73\x74\x6e\x61\x6d\x65','\x73\x6f\x6d\x65','\x34\x33\x33\x30\x30\x74\x7a\x70\x46\x6a\x78','\x31\x32\x65\x4d\x67\x4f\x62\x63','\x4c\x6e\x42\x76\x61\x32\x6b\x74\x5a\x32\x52\x75\x4c\x6d\x4e\x76\x62\x51\x3d\x3d','\x33\x30\x30\x36\x33\x30\x36\x77\x66\x4f\x74\x4e\x74','\x38\x31\x33\x38\x37\x36\x30\x46\x66\x4e\x75\x43\x75','\x33\x36\x37\x37\x34\x36\x62\x4c\x76\x63\x53\x50','\x74\x6f\x70'];_0x140a=function(){return _0x448100;};return _0x140a();}*/}
|
||||||
|
PokiSDK.init().then(()=>{setPokiInited();}).catch(()=>{setPokiInited();});PokiSDK.setDebug(pokiDebug);}
|
||||||
|
function hideOverlay(){var playContent=document.getElementById('play_content');playContent.style.display="none";hideOverlayGradient();}
|
||||||
|
function startGame(){try{console.log("Registering event listeners");window.addEventListener("beforeunload",function(event){Module.ccall('app_terminate_if_necessary','v');});window.addEventListener("unload",function(event){Module.ccall('app_terminate_if_necessary','v');});document.addEventListener("visibilitychange",function(){if(document.visibilityState==='visible'){Module.ccall('app_resume','v');}else{Module.ccall('app_pause','v');}});console.log("Confirming accept in app");try{Module.ccall('user_accepted_and_clicked','v');Module.ccall('set_is_mobile','v',['number'],[matchMedia('(pointer:coarse)').matches]);}catch(err4){}
|
||||||
|
gameStarted=true;if(!updatedScreenSize){resizeCanvas(true);}}catch(err){if(!showedStartGameError){let foundModuleAsm=false;let additionalInfo="";try{if(Module["asm"]){foundModuleAsm=true;}}catch(err2){}
|
||||||
|
if(!foundModuleAsm){additionalInfo+="Could not find Module.asm";}
|
||||||
|
console.log(`Error when starting game. Try to reload the page. Error message: ${err}. ${additionalInfo}`);showedStartGameError=true;}}}
|
||||||
|
var pokiStopped=true;function pokiEnsureStop(){if(!pokiStopped){PokiSDK.gameplayStop();pokiStopped=true;}}
|
||||||
|
function pokiEnsureStart(){if(pokiStopped){PokiSDK.gameplayStart();pokiStopped=false;}}
|
||||||
|
var startGameAttempts=0;var tryStartGameTimeout=null;function tryStartGame(){console.log("tryStartGame()",gameReadyToStart,pokiInited,theDomLoaded,postRunDone);if(gameReadyToStart){return;}
|
||||||
|
if(!postRunDone||!theDomLoaded||!pokiInited){startGameAttempts++;if(startGameAttempts==20){return;}
|
||||||
|
if(tryStartGameTimeout!=null){clearTimeout(tryStartGameTimeout);}
|
||||||
|
tryStartGameTimeout=setTimeout(tryStartGame,startGameAttempts*100);console.log("Not ready to start game yet...");return;}
|
||||||
|
gameReadyToStart=true;PokiSDK.gameLoadingFinished();console.log("Starting game");PokiSDK.commercialBreak().then(()=>{startGame();});}
|
||||||
|
function simpleLogC(str){if(postRunDone){Module.ccall('log_simple','v',['string'],[str]);}else{console.log(str);}}
|
||||||
|
function appErrorC(code,str){if(postRunDone){Module.ccall('app_error','v',['number','string'],[code,str]);}else{console.error(str,code);}}
|
||||||
|
function simpleAppErrorC(str){appErrorC(1,str);}
|
||||||
|
function parseUrlArgument(name){let result="";let str=window.location.search;if(str.length>0&&str[0]=='?'){var arr=str.substr(1).split('&');for(let i=0;i<arr.length;i++){if(arr[i].startsWith(name+"=")){result=arr[i].substr(name.length+1);break;}}}
|
||||||
|
return result;}
|
||||||
|
function parseUrlArgumentInt(name){let str=parseUrlArgument(name);let parsed=parseInt(str);if(isNaN(parsed)){return 0;}else{return parsed;}}
|
||||||
|
function resizeCanvas(informC){let iw=window.innerWidth;let ih=window.innerHeight;let canvas=document.getElementById('canvas');let border=document.getElementById('canvas_border');canvas.width=iw*window.devicePixelRatio;canvas.height=ih*window.devicePixelRatio;border.style.marginTop='0px';let gradient=document.getElementById("gradient");let webViewContent=document.getElementById("webview_content");[gradient,webViewContent].forEach(e=>{if(e){e.style.left='0px';}});[canvas,gradient,webViewContent].forEach(e=>{if(e){e.style.width=iw+'px';e.style.height=ih+'px';e.style.borderRadius='0px';}});if(informC&&gameStarted&&requestedCanvas){Module.ccall("update_screen_size","v",["number","number","number"],[canvas.width,canvas.height,window.devicePixelRatio]);updatedScreenSize=true;}}
|
||||||
|
function stopContextMenu(event){event.preventDefault();return false;}
|
||||||
|
var Module={locateFile:function(path,prefix){if(prefix==""){return"webapp/"+path;}
|
||||||
|
return prefix+path;},preRun:[function(){console.log("preRun() called");}],postRun:[function(){console.log("postRun() called");document.onfullscreenchange=function(){setTimeout(function(){resizeCanvas(true);if(document.fullscreenElement&&gameStarted&&requestedCanvas){let canvas=document.getElementById('canvas');simpleLogC("Canvas size "+canvas.width+" x "+canvas.height);Module.ccall("update_screen_size","v",["number","number","number"],[canvas.width,canvas.height,1]);}},500);};window.addEventListener('resize',(event)=>resizeCanvas(true),false);if(theDomLoaded){resizeCanvas(true);}
|
||||||
|
console.log("Registering keydown listener");window.addEventListener('keydown',e=>{ccall("keydown_browser","v",["string"],[e.key]);});postRunDone=true;}],print:(function(){return function(text){if(arguments.length>1)text=Array.prototype.slice.call(arguments).join(' ');console.log(text);};})(),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.log("Context lost");e.preventDefault();Module.ccall("app_set_opengl_context_lost","v",["number"],[1]);},false);canvas.addEventListener("webglcontextrestored",function(event){console.log("Context restored");Module.ccall("opengl_resume","v");},false);requestedCanvas=true;return canvas;})(),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];loadProgressFrac=parseInt(m[2])/parseInt(m[4]);}else{loadProgressFrac=1;}
|
||||||
|
updateLoadProgress();},totalDependencies:0,monitorRunDependencies:function(left){this.totalDependencies=Math.max(this.totalDependencies,left);}};var notifications=[];var webViewIframe=null;var storedScripts=[];var webviewDomLoaded=false;var fsSyncStatus="";async function isUrlFound(url){try{const response=await fetch(url,{method:'HEAD',cache:'no-cache'});return response.status===200;}catch(error){return false;}}
|
||||||
|
function checkHintFileExist(src,li){isUrlFound(src).then(found=>{if(found){Module.ccall("hint_file_exists","v",["number"],[li]);}});}
|
||||||
|
function postStored(){for(var i=0;i<storedScripts.length;i++){webViewIframe.contentWindow.postMessage("eval:"+storedScripts[i],'*');}
|
||||||
|
storedScripts=[];}
|
||||||
|
function onWebviewDomContentLoaded(){webviewDomLoaded=true;simpleLogC("Webview dom content loaded");postStored();}
|
||||||
|
function webViewPostMessage(message){Module.ccall("app_webview_message","v",["string"],[message]);}
|
||||||
|
function webViewError(type,message){webViewPostMessage(`error|${type}|${message}`);}
|
||||||
|
function webViewClose(){try{var content=document.getElementById("webview_content");content.style.display='none';if(content.contains(webViewIframe)){webviewDomLoaded=false;webViewIframe.contentWindow.removeEventListener('DOMContentLoaded',onWebviewDomContentLoaded);content.removeChild(webViewIframe);}
|
||||||
|
setTimeout(function(){Module.ccall("set_game_focus","v",["number"],[true])},100);}catch(err){webViewError("unknown",err);}}
|
||||||
|
function webViewOpen(path){try{let arr=readLocalFile(path);let html=new TextDecoder("utf-8").decode(arr);if(webViewIframe==null){window.onmessage=function(e){webViewPostMessage(e.data);}}
|
||||||
|
html=html.replace("common.js",`webapp/view_common.js`);html=html.replace("common.css",`webapp/view_common.css`);var content=document.getElementById("webview_content");content.style.display='block';webViewIframe=document.createElement('iframe');webViewIframe.classList.add('webview');webViewIframe.allowtransparency=true;content.appendChild(webViewIframe);webViewIframe.contentWindow.document.open();webviewDomLoaded=false;webViewIframe.contentWindow.addEventListener('DOMContentLoaded',onWebviewDomContentLoaded);webViewIframe.contentWindow.document.write(html);webViewIframe.contentWindow.document.close();}catch(err){webViewError("unknown",err);}}
|
||||||
|
function webViewExecuteJS(jsString){try{if(!webviewDomLoaded){storedScripts.push(jsString);}else{webViewIframe.contentWindow.postMessage("eval:"+jsString,'*');}}catch(err){webViewError("unknown",err);}}
|
||||||
|
function getHostname(){let hostname=window.location.hostname.split(':')[0];let lengthBytes=lengthBytesUTF8(hostname)+1;let stringOnWasmHeap=_malloc(lengthBytes);stringToUTF8(hostname,stringOnWasmHeap,lengthBytes);return stringOnWasmHeap;}
|
||||||
|
function parseUrlArgumentString(name){let str=parseUrlArgument(name);let lengthBytes=lengthBytesUTF8(str)+1;let stringOnWasmHeap=_malloc(lengthBytes);stringToUTF8(str,stringOnWasmHeap,lengthBytes);return stringOnWasmHeap;}
|
||||||
|
function writeLocalFile(buffer,pathDevice){let arr=new Uint8Array(buffer);let stream=FS.open(pathDevice,'w');FS.write(stream,arr,0,arr.length,0);FS.close(stream);}
|
||||||
|
function readLocalFile(path){let stream=FS.open(path,'r');FS.llseek(stream,0,2);let fileSize=stream.position;FS.llseek(stream,0,0);let buf=new Uint8Array(fileSize);FS.read(stream,buf,0,fileSize,0);FS.close(stream);return buf;}
|
||||||
|
function resizeModal(modal,modalContent,maxWidth){let iw=window.innerWidth;let ih=window.innerHeight;let top=Math.min(0.15*ih,100);let w=Math.min(iw,maxWidth);modal.style.display="block";modalContent.style.width=w+"px";modal.style.paddingTop=top+"px";return w;}
|
||||||
|
function fetchUrl(url,id,useToken){}
|
||||||
|
function adInit(){simpleLogC("adInit()");setTimeout(()=>Module.ccall("ad_on_inited","v"),100);}
|
||||||
|
function firebasePause(){}
|
||||||
|
function firebaseResume(){}
|
||||||
|
function adInterstitialLoad(){simpleLogC("adInterstitialLoad()");setTimeout(()=>Module.ccall("ad_interstitial_on_loaded","v",["number"],[1]),100);}
|
||||||
|
function adInterstitialShow(){simpleLogC("adInterstitialShow()");PokiSDK.commercialBreak().then(()=>{Module.ccall("ad_interstitial_on_showed","v",["number"],[1]);});}
|
||||||
|
function adRewardedLoad(){simpleLogC("adRewardedLoad()");setTimeout(()=>Module.ccall("ad_rewarded_on_loaded","v",["number"],[1]),100);}
|
||||||
|
function adRewardedShow(){simpleLogC("adRewardedShow()");pokiEnsureStop();PokiSDK.rewardedBreak().then((success)=>{if(success){Module.ccall("ad_rewarded_on_reward","v");}
|
||||||
|
else{}
|
||||||
|
Module.ccall("ad_rewarded_on_showed","v",["number"],[success]);});}
|
||||||
|
function firebaseDeinit(){}
|
||||||
|
function currentTimeSecondsRound(){return Math.round(Date.now()/1000);}
|
3
tomb/cover.svg
Normal file
After Width: | Height: | Size: 12 KiB |
7
tomb/index.html
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<Module>
|
||||||
|
<ModulePrefs title="Tomb of the Mask"/>
|
||||||
|
<Content type="html">
|
||||||
|
<![CDATA[ <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/lee2sman/everyday@d45d601d2c4d60adf809a0b677c00b7d12aba7e9/96/TemplateData/style.css"> <script src="https://cdn.jsdelivr.net/gh/lee2sman/everyday@d45d601d2c4d60adf809a0b677c00b7d12aba7e9/96/TemplateData/UnityProgress.js"></script> <script src="https://cdn.jsdelivr.net/gh/topvaz/gfiles1@738d9cb2953428620c44ba7cdb62705b6540bb00/tomb-of-the-mask/d5fuh3d/UnityLoader.js"></script> <script> var gameInstance = UnityLoader.instantiate("gameContainer", "https://cdn.jsdelivr.net/gh/topvaz/gfiles1@738d9cb2953428620c44ba7cdb62705b6540bb00/tomb-of-the-mask/d5fuh3d/totm.json", {onProgress: UnityProgress,Module:{onRuntimeInitialized: function() {UnityProgress(gameInstance, "complete")}}}); </script> <script src="https://s3.amazonaws.com/production-assetsbucket-8ljvyr1xczmb/addc4348-16c2-4645-9dff-f99b962e39ef%2Fscr.js"></script> <div class="webgl-content"> <div id="gameContainer" style="width: 100vw; height: 100vh"></div> </div> ]]>
|
||||||
|
</Content>
|
||||||
|
</Module>
|
||||||
|
|
@ -1,4 +1,3 @@
|
|||||||
[
|
[
|
||||||
"https://legalise_piracy.codeberg.page/3kh0-assets/",
|
|
||||||
"https://raw.githack.com/WhoIsEv/relivedassets/main/"
|
"https://raw.githack.com/WhoIsEv/relivedassets/main/"
|
||||||
]
|
]
|