Skip to content

Commit

Permalink
added Blockpost game
Browse files Browse the repository at this point in the history
  • Loading branch information
IamChristianS committed Aug 11, 2023
1 parent 0f08c83 commit da4d975
Show file tree
Hide file tree
Showing 25 changed files with 4,911 additions and 0 deletions.
6 changes: 6 additions & 0 deletions games.html
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,12 @@
</a>
<a href="games/1v1lol/index.html" target="_blank"><strong>1v1.lol</strong></a>
</div>
<div class="game-item">
<a href="games/blockpost/index.html" target="_blank">
<img src="games/img/placeholder.png" alt="Blockpost">
</a>
<a href="games/blockpost/index.html" target="_blank"><strong>Blockpost</strong></a>
</div>
<div class="game-item">
<a href="games/minecraft/index.html" target="_blank">
<img src="games/img/minecraft.png" alt="Minecraft">
Expand Down
7 changes: 7 additions & 0 deletions games/blockpost/92ef3c6de52472d7c1f1fea074dd3c55

Large diffs are not rendered by default.

Binary file added games/blockpost/Build/webgl_poki.data.unityweb
Binary file not shown.
13 changes: 13 additions & 0 deletions games/blockpost/Build/webgl_poki.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"companyName": "Skullcap Studios",
"productName": "BLOCKPOST MOBILE",
"dataUrl": "webgl_poki.data.unityweb",
"wasmCodeUrl": "webgl_poki.wasm.code.unityweb",
"wasmFrameworkUrl": "webgl_poki.wasm.framework.unityweb",
"TOTAL_MEMORY": 268435456,
"graphicsAPI": ["WebGL 2.0", "WebGL 1.0"],
"webglContextAttributes": {"preserveDrawingBuffer": false},
"splashScreenStyle": "Dark",
"backgroundColor": "#231F20",
"cacheControl": {"default": "must-revalidate"}
}
Binary file not shown.
7 changes: 7 additions & 0 deletions games/blockpost/Build/webgl_poki.wasm.framework.unityweb

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions games/blockpost/UnityLoader.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions games/blockpost/data/sharedres4
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added games/blockpost/fonts/torus-bold-webfont.woff2
Binary file not shown.
33 changes: 33 additions & 0 deletions games/blockpost/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Blockpost</title>
<script>
window.config = {
loader: 'unity',
debug: false,
maxRatio: 16 / 9,
minRatio: 9 / 16,

title: 'Blockpost',
thumbnail: 'thumb.png',
numScreenshots: 4,

unityVersion: '2018.4.32f1',
unityWebglBuildUrl: 'Build/webgl_poki.json',

fileSize: 22,
cachedDecompressedFileSizes: {
'webgl_poki.data.unityweb': 12379304 ,
'webgl_poki.wasm.code.unityweb': 9776558 ,
'webgl_poki.wasm.framework.unityweb': 100499 ,
},
};
</script>
<script type="text/javascript" src="scr.js"></script></head>
<body>
<script src="master-loader.js"></script>
</body>
</html>
31 changes: 31 additions & 0 deletions games/blockpost/master-loader.js
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.js";
// switch (year) {
// case "2019":
// window.config.unityWebglLoaderUrl = 1 === minor ? "./UnityLoader.2019.1.js" : "./UnityLoader.2019.2.js";
// break;
// default:
// window.config.unityWebglLoaderUrl = "https://game-cdn.poki.com/loaders/v2/unity/static/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);
Loading

0 comments on commit da4d975

Please sign in to comment.