Skip to content

Commit

Permalink
bouncy basketball
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNotSus committed Jan 5, 2025
1 parent fbb0c3d commit 21e3757
Show file tree
Hide file tree
Showing 16 changed files with 4,925 additions and 24 deletions.
6 changes: 6 additions & 0 deletions static/assets/json/load/games.json
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,12 @@
"image": "/misc/motox3m/splash.jpg",
"usesProxy": false
},
{
"name": "Bouncy Basketball",
"url": "/misc/play/bouncybasketball.html",
"image": "/misc/bouncybasketball/img.webp",
"usesProxy": false
},
{
"name": "MotoX3M Pool Party",
"url": "/misc/play/motox3m-party.html",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
16 changes: 16 additions & 0 deletions static/misc/bouncybasketball/BouncyBasketball.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"companyName": "Dreamon Studios",
"productName": "Bouncy Basketball",
"productVersion": "1",
"dataUrl": "BouncyBasketball.data.unityweb",
"wasmCodeUrl": "BouncyBasketball.wasm.code.unityweb",
"wasmFrameworkUrl": "BouncyBasketball.wasm.framework.unityweb",
"graphicsAPI": ["WebGL 2.0","WebGL 1.0"],
"webglContextAttributes": {"preserveDrawingBuffer": false},
"splashScreenStyle": "Dark",
"backgroundColor": "#231F20",
"cacheControl": {"default": "must-revalidate"},
"developmentBuild": false,
"multithreading": false,
"unityVersion": "2019.2.11f1"
}
Binary file not shown.

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions static/misc/bouncybasketball/UnityLoader.2019.2.js

Large diffs are not rendered by default.

Binary file added static/misc/bouncybasketball/img.webp
Binary file not shown.
36 changes: 36 additions & 0 deletions static/misc/bouncybasketball/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Bouncy Basketball</title>
<script>
window.config = {
loader: 'unity',
debug: false,
maxRatio: 16 / 9,
minRatio: 9 / 16,

title: 'Bouncy Basketball',
thumbnail: '23c3f1f4e67c91efb96189adcd94f6796968077ca8d638224c5d1ab6a6f87a60.jpg',
numScreenshots: 4,

unityVersion: '2019.2.11f1',
unityWebglBuildUrl: 'BouncyBasketball.json',

fileSize: 8,
cachedDecompressedFileSizes: {
'BouncyBasketball.data.unityweb': 4733559,
'BouncyBasketball.wasm.code.unityweb': 3933648,
'BouncyBasketball.wasm.framework.unityweb': 81511,
},
};
</script>
</head>

<body>
<script src="master-loader.js"></script>
</body>

</html>
31 changes: 31 additions & 0 deletions static/misc/bouncybasketball/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.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 = "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 21e3757

Please sign in to comment.