-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
917a752
commit 0a96351
Showing
16 changed files
with
4,832 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<link rel="icon" type="image/x-icon" href="thumb.png" /> | ||
<title>Papery Planes | 3kh0</title> | ||
|
||
<script> | ||
window.config = { | ||
loader: "unity", | ||
debug: false, | ||
maxRatio: 16 / 9, | ||
minRatio: 9 / 16, | ||
|
||
title: "Papery Planes", | ||
|
||
thumbnail: "thumb.png", | ||
numScreenshots: 4, | ||
|
||
unityWebglBuildUrl: "ppw.json", | ||
unityWebglLoaderUrl: "UnityLoader.2019.1.js", | ||
|
||
// **** Optional Settings **** | ||
fileSize: 12, | ||
loadingComments: ["Loading..."], | ||
cachedDecompressedFileSizes: { | ||
"ppw.wasm.framework.unityweb": 533280, | ||
"ppw.data.unityweb": 12545865, | ||
"ppw.wasm.code.unityweb": 20975416, | ||
}, | ||
}; | ||
</script> | ||
</head> | ||
<body> | ||
<script src="master-loader.js"></script> | ||
<script src="/js/main.js"></script> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"use strict"; | ||
var scripts = document.getElementsByTagName("script"), | ||
scriptUrl = scripts[scripts.length - 1].src, | ||
root = scriptUrl.split("master-loader.js")[0], | ||
loaders = { | ||
unity: "unity.js", "unity-2020": "unity-2020.js" | ||
}; | ||
if (0 <= window.location.href.indexOf("pokiForceLocalLoader") | ||
&& (loaders.unity = "unity.js", | ||
|
||
root = "/loaders"), !window.config) throw Error("window.config not found"); | ||
var loader = loaders[window.config.loader]; | ||
if (!loader) throw Error('Loader "' + window.config.loader + '" not found'); | ||
if (!window.config.unityWebglLoaderUrl) { | ||
var versionSplit = window.config.unityVersion ? window.config.unityVersion.split(".") : [], | ||
year = versionSplit[0], | ||
minor = versionSplit[1]; | ||
window.config.unityWebglLoaderUrl ="./UnityLoader.2019.2.js"; | ||
// switch (year) { | ||
// case "2019": | ||
// window.config.unityWebglLoaderUrl = 1 === minor ? "./UnityLoader.2019.1.js" : "./UnityLoader.2019.2.js"; | ||
// break; | ||
// default: | ||
// window.config.unityWebglLoaderUrl = "UnityLoader.js" | ||
// } | ||
} | ||
var sdkScript = document.createElement("script"); | ||
sdkScript.src = "./poki-sdk.js", sdkScript.onload = function() { | ||
var i = document.createElement("script"); | ||
i.src = root + loader, document.body.appendChild(i) | ||
}, document.body.appendChild(sdkScript);poki-sdk-core.js |
Oops, something went wrong.