fixes for many games

This commit is contained in:
skysthelimitt 2023-12-09 22:00:25 -05:00
parent dd75c89e04
commit 9cdb83ba9d
28 changed files with 12345 additions and 1226 deletions

2
ads.txt Normal file
View File

@ -0,0 +1,2 @@
appnexus.com, 14163, RESELLER
pubcenter.microsoft.com, 253179244, DIRECT

View File

@ -0,0 +1,36 @@
function CompatibilityCheck()
{var browser=(function(){var ua=navigator.userAgent,tem,M=ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(M[1])){tem=/\brv[ :]+(\d+)/g.exec(ua)||[];return 'IE '+(tem[1]||'');}
if(M[1]==='Chrome'){tem=ua.match(/\bOPR\/(\d+)/)
if(tem!=null)return 'Opera '+tem[1];}
M=M[2]?[M[1],M[2]]:[navigator.appName,navigator.appVersion,'-?'];if((tem=ua.match(/version\/(\d+)/i))!=null)M.splice(1,1,tem[1]);return M.join(' ');})();var hasWebGL=(function(){if(!window.WebGLRenderingContext)
{return 0;}
var canvas=document.createElement('canvas');var gl=canvas.getContext("webgl");if(!gl)
{gl=canvas.getContext("experimental-webgl");if(!gl)
{return 0;}}
return 1;})();var mobile=(function(a){return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))})(navigator.userAgent||navigator.vendor||window.opera);if(!0&&!hasWebGL)
{alert("You need a browser which supports WebGL to run this content. Try installing Firefox.");window.history.back();}
else if(mobile)
{if(!confirm("Please note that Unity WebGL is not currently supported on mobiles. Press Ok if you wish to continue anyways."))
window.history.back();}
else if(browser.indexOf("Firefox")==-1&&browser.indexOf("Chrome")==-1&&browser.indexOf("Safari")==-1)
{if(!confirm("Please note that your browser is not currently supported for this Unity WebGL content. Try installing Firefox, or press Ok if you wish to continue anyways."))
window.history.back();}}
CompatibilityCheck();var didShowErrorMessage=false;if(typeof window.onerror!='function')
{window.onerror=function UnityErrorHandler(err,url,line)
{console.log("Invoking error handler due to\n"+err);if(typeof dump=='function')
dump("Invoking error handler due to\n"+err);if(didShowErrorMessage)
return;if(err.indexOf("UnknownError")!=-1)
return;didShowErrorMessage=true;if(err.indexOf("DISABLE_EXCEPTION_CATCHING")!=-1)
{alert("An exception has occured, but exception handling has been disabled in this build. If you are the developer of this content, enable exceptions in your project's WebGL player settings to be able to catch the exception or see the stack trace.");return;}
if(err.indexOf("uncaught exception: abort()")!=-1)
{if(err.indexOf("Runtime.dynamicAlloc")!=-1)
{alert("Out of memory. If you are the developer of this content, try allocating more memory to your WebGL build in the WebGL player settings.");return;}}
if(err.indexOf("Invalid array buffer length")!=-1)
{alert("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.");return;}
if(err.indexOf("Script error.")!=-1&&document.URL.indexOf("file:")==0)
{alert("It seems your browser does not support running Unity WebGL content from file:// urls. Please upload it to an http server, or try a different browser.");return;}
alert("An error occured running the Unity content on this page. See your browser's JavaScript console for more info. The error was:\n"+err);}}
function SetFullscreen(fullscreen)
{if(typeof JSEvents==='undefined')
{console.log("Player not loaded yet.");return;}
var tmp=JSEvents.canPerformEventHandlerRequests;JSEvents.canPerformEventHandlerRequests=function(){return 1;};Module.cwrap('SetFullscreen','void',['number'])(fullscreen);JSEvents.canPerformEventHandlerRequests=tmp;}

View File

@ -0,0 +1,9 @@
var Module;if(typeof Module==='undefined')Module=eval('(function() { try { return Module || {} } catch(e) { return {} } })()');if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0;Module.finishedDataFileDownloads=0;}
Module.expectedDataFileDownloads++;(function(){var PACKAGE_PATH;if(typeof window==='object'){PACKAGE_PATH=window['encodeURIComponent'](window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf('/'))+'/');}else if(typeof location!=='undefined'){PACKAGE_PATH=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf('/'))+'/');}else{throw 'using preloaded data can only be done on a web page or in a web worker';}
var PACKAGE_NAME='webgl.data';var REMOTE_PACKAGE_BASE='webgl.data';if(typeof Module['locateFilePackage']==='function'&&!Module['locateFile']){Module['locateFile']=Module['locateFilePackage'];Module.printErr('warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)');}
var REMOTE_PACKAGE_NAME=typeof Module['locateFile']==='function'?Module['locateFile'](REMOTE_PACKAGE_BASE):((Module['filePackagePrefixURL']||'')+REMOTE_PACKAGE_BASE);var REMOTE_PACKAGE_SIZE=94384055;var PACKAGE_UUID='2d56c75e-a666-4391-b126-de77bdeb0f84';function fetchRemotePackage(packageName,packageSize,callback,errback){var xhr=new XMLHttpRequest();xhr.open('GET',packageName,true);xhr.responseType='arraybuffer';xhr.onprogress=function(event){var url=packageName;var size=packageSize;if(event.total)size=event.total;if(event.loaded){if(!xhr.addedTotal){xhr.addedTotal=true;if(!Module.dataFileDownloads)Module.dataFileDownloads={};Module.dataFileDownloads[url]={loaded:event.loaded,total:size};}else{Module.dataFileDownloads[url].loaded=event.loaded;}
var total=0;var loaded=0;var num=0;for(var download in Module.dataFileDownloads){var data=Module.dataFileDownloads[download];total+=data.total;loaded+=data.loaded;num++;}
total=Math.ceil(total*Module.expectedDataFileDownloads/num);if(Module['setStatus'])Module['setStatus']('Downloading data... ('+loaded+'/'+total+')');}else if(!Module.dataFileDownloads){if(Module['setStatus'])Module['setStatus']('Downloading data...');}};xhr.onload=function(event){var packageData=xhr.response;callback(packageData);};xhr.send(null);};function handleError(error){console.error('package error:',error);};var fetched=null,fetchedCallback=null;fetchRemotePackage(REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE,function(data){if(fetchedCallback){fetchedCallback(data);fetchedCallback=null;}else{fetched=data;}},handleError);function runWithFS(){function assert(check,msg){if(!check)throw msg+new Error().stack;}
Module['FS_createPath']('/','Il2CppData',true,true);Module['FS_createPath']('/Il2CppData','Metadata',true,true);Module['FS_createPath']('/','Resources',true,true);function DataRequest(start,end,crunched,audio){this.start=start;this.end=end;this.crunched=crunched;this.audio=audio;}
DataRequest.prototype={requests:{},open:function(mode,name){this.name=name;this.requests[name]=this;Module['addRunDependency']('fp '+this.name);},send:function(){},onload:function(){var byteArray=this.byteArray.subarray(this.start,this.end);this.finish(byteArray);},finish:function(byteArray){var that=this;Module['FS_createPreloadedFile'](this.name,null,byteArray,true,true,function(){Module['removeRunDependency']('fp '+that.name);},function(){if(that.audio){Module['removeRunDependency']('fp '+that.name);}else{Module.printErr('Preloading file '+that.name+' failed');}},false,true);this.requests[this.name]=null;},};new DataRequest(0,450096,0,0).open('GET','/level0');new DataRequest(450096,881888,0,0).open('GET','/level1');new DataRequest(881888,946172,0,0).open('GET','/mainData');new DataRequest(946172,959387,0,0).open('GET','/methods_pointedto_by_uievents.xml');new DataRequest(959387,1144731,0,0).open('GET','/resources.assets');new DataRequest(1144731,4930535,0,0).open('GET','/sharedassets0.assets');new DataRequest(4930535,53349371,0,0).open('GET','/sharedassets1.assets');new DataRequest(53349371,56827461,0,0).open('GET','/sharedassets1.resource');new DataRequest(56827461,81798217,0,0).open('GET','/sharedassets2.assets');new DataRequest(81798217,88548383,0,0).open('GET','/sharedassets2.resource');new DataRequest(88548383,92306367,0,0).open('GET','/Il2CppData/Metadata/global-metadata.dat');new DataRequest(92306367,93881403,0,0).open('GET','/Resources/unity_default_resources');new DataRequest(93881403,94384055,0,0).open('GET','/Resources/unity_builtin_extra');function processPackageData(arrayBuffer){Module.finishedDataFileDownloads++;assert(arrayBuffer,'Loading data file failed.');var byteArray=new Uint8Array(arrayBuffer);var curr;DataRequest.prototype.byteArray=byteArray;DataRequest.prototype.requests["/level0"].onload();DataRequest.prototype.requests["/level1"].onload();DataRequest.prototype.requests["/mainData"].onload();DataRequest.prototype.requests["/methods_pointedto_by_uievents.xml"].onload();DataRequest.prototype.requests["/resources.assets"].onload();DataRequest.prototype.requests["/sharedassets0.assets"].onload();DataRequest.prototype.requests["/sharedassets1.assets"].onload();DataRequest.prototype.requests["/sharedassets1.resource"].onload();DataRequest.prototype.requests["/sharedassets2.assets"].onload();DataRequest.prototype.requests["/sharedassets2.resource"].onload();DataRequest.prototype.requests["/Il2CppData/Metadata/global-metadata.dat"].onload();DataRequest.prototype.requests["/Resources/unity_default_resources"].onload();DataRequest.prototype.requests["/Resources/unity_builtin_extra"].onload();Module['removeRunDependency']('datafile_webgl.data');};Module['addRunDependency']('datafile_webgl.data');if(!Module.preloadResults)Module.preloadResults={};Module.preloadResults[PACKAGE_NAME]={fromCache:false};if(fetched){processPackageData(fetched);fetched=null;}else{fetchedCallback=processPackageData;}}
if(Module['calledRun']){runWithFS();}else{if(!Module['preRun'])Module['preRun']=[];Module["preRun"].push(runWithFS);}})();

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -1 +1,24 @@
html,body{margin:0;padding:0}canvas{padding:0;margin:0 auto;display:block;width:1024px;height:640px}body{overflow:hidden}div#loadingBox{width:100%;height:20px;position:absolute;top:50%;margin-top:-10px;text-align:center}div#bgBar{position:absolute;width:200px;margin-left:-100px;left:50%;height:2px;display:block;background-color:#333}div#progressBar{left:50%;position:absolute;margin-left:-100px;width:0;height:2px;background-color:#fff;border-radius:2px}div#bgBar{border-radius:2px}p#loadingInfo{color:#666;letter-spacing:1px;position:absolute;width:100%;font-family:monaco,sans-serif;text-transform:uppercase;text-align:center;font-size:14px;margin-top:10px} html,body{margin:0;padding:0}canvas{padding:0;margin:0 auto;display:block;width:1024px;height:640px}body{overflow:hidden}div#loadingBox{width:100%;height:20px;position:absolute;top:50%;margin-top:-10px;text-align:center}div#bgBar{position:absolute;width:200px;margin-left:-100px;left:50%;height:2px;display:block;background-color:#333}div#progressBar{left:50%;position:absolute;margin-left:-100px;width:0;height:2px;background-color:#fff;border-radius:2px}div#bgBar{border-radius:2px}p#loadingInfo{color:#666;letter-spacing:1px;position:absolute;width:100%;font-family:monaco,sans-serif;text-transform:uppercase;text-align:center;font-size:14px;margin-top:10px}
body {margin: 0; padding: 0}.webgl-content * {border: 0; margin: 0; padding: 0}
.webgl-content {position: absolute} .webgl-content, #gameContainer, #unityContainer, canvas {width:100%!important; height: 100%!important}
.webgl-content .logo, .progress {position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);}
.webgl-content .logo {background: url('progressLogo.Light.png') no-repeat center / contain; width: 154px; height: 130px;}
.webgl-content .progress {height: 18px; width: 141px; margin-top: 90px;}
.webgl-content .progress .empty {background: url('progressEmpty.Light.png') no-repeat right / cover; float: right; width: 100%; height: 100%; display: inline-block;}
.webgl-content .progress .full {background: url('progressFull.Light.png') no-repeat left / cover; float: left; width: 0%; height: 100%; display: inline-block;}
.webgl-content .logo.Dark {background-image: url('progressLogo.Dark.png');}
.webgl-content .progress.Dark .empty {background-image: url('progressEmpty.Dark.png');}
.webgl-content .progress.Dark .full {background-image: url('progressFull.Dark.png');}
.webgl-content .footer {margin-top: 5px; height: 38px; line-height: 38px; font-family: Helvetica, Verdana, Arial, sans-serif; font-size: 18px;}
.webgl-content .footer .webgl-logo, .title, .fullscreen {height: 100%; display: inline-block; background: transparent center no-repeat;}
/*.webgl-content .footer .webgl-logo {background-image: url('webgl-logo.png'); width: 204px; float: left;}*/
.webgl-content .footer .title {margin-right: 10px; float: right;}
.webgl-content .footer .fullscreen {background-image: url('fullscreen.png'); width: 38px; float: right;}
* {
background-color: #2C3547;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

View File

@ -7,23 +7,26 @@
<title>Unity WebGL Player | AdVenture Capitalist!</title> <title>Unity WebGL Player | AdVenture Capitalist!</title>
<link rel="stylesheet" href="TemplateData/style.css"> <link rel="stylesheet" href="TemplateData/style.css">
<script src="TemplateData/UnityProgress.js"></script> <script src="TemplateData/UnityProgress.js"></script>
<script src="/js/all.js"></script>
</head> </head>
<body class="template"> <body class="template">
<script src="/js/all.js"></script> <div class="webgl-content">
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()" height="100%" width="100%"></canvas> <div id="unityContainer" style="width: 960px; height: 600px; padding: 0px; margin: 0px; border: 0px; position: relative; background: rgb(35, 31, 32);">
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()" id="canvas"width=335 height=667 style="width: 100%; height: 100%; background: #231F20"></canvas>
<div id="loadingBox"> <div id="loadingBox">
<div id="bgBar"></div> <div id="bgBar"></div>
<div id="progressBar"></div> <div id="progressBar"></div>
<p id="loadingInfo">Loading...</p> <p id="loadingInfo">Loading...</p>
</div> </div>
<script type='text/javascript'> <script type='text/javascript'>
alert('Want to go to the old Adventure Capitalist? Just add "old" to the end of the url.');
// connect to canvas // connect to canvas
var Module = { var Module = {
TOTAL_MEMORY: 201326592, TOTAL_MEMORY: 201326592,
filePackagePrefixURL: "https://rawcdn.githack.com/EmulatorOS/gfile/a353d35ac44f2c72439d6d765636765f0fd9b0f0/adcap/Release/", filePackagePrefixURL: "Release/",
memoryInitializerPrefixURL: "https://rawcdn.githack.com/EmulatorOS/gfile/a353d35ac44f2c72439d6d765636765f0fd9b0f0/adcap/Release/", memoryInitializerPrefixURL: "Release/",
preRun: [], preRun: [],
postRun: [], postRun: [],
print: (function() { print: (function() {
@ -62,16 +65,16 @@
}; };
Module.setStatus('Downloading (0.0/1)'); Module.setStatus('Downloading (0.0/1)');
</script> </script>
<script src="https://cdn.jsdelivr.net/gh/EmulatorOS/gfile@main/adcap/Release/UnityConfig.js"></script> <script src="Release/UnityConfig.js"></script>
<script src="https://cdn.jsdelivr.net/gh/EmulatorOS/gfile@main/adcap/Release/fileloader.js"></script> <script src="Release/fileloader.js"></script>
<script> <script>
if (!(!Math.fround)) { if (!(!Math.fround)) {
var script = document.createElement('script'); var script = document.createElement('script');
script.src = "https://rawcdn.githack.com/EmulatorOS/gfile/a353d35ac44f2c72439d6d765636765f0fd9b0f0/adcap/Release/webgl.js"; script.src = "Release/webgl.js";
document.body.appendChild(script); document.body.appendChild(script);
} else { } else {
var codeXHR = new XMLHttpRequest(); var codeXHR = new XMLHttpRequest();
codeXHR.open('GET', 'https://rawcdn.githack.com/EmulatorOS/gfile/a353d35ac44f2c72439d6d765636765f0fd9b0f0/adcap/Release/webgl.js', true); codeXHR.open('GET', 'Release/webgl.js', true);
codeXHR.onload = function() { codeXHR.onload = function() {
var code = codeXHR.responseText; var code = codeXHR.responseText;
if (!Math.fround) { if (!Math.fround) {
@ -111,7 +114,6 @@
codeXHR.send(null); codeXHR.send(null);
} }
</script> </script>
<script src="97c35fd0-ea33-4844-a283-b7a4c6942643" id="c4174e706ac02e24f4101391e93a5db9"></script>
</body> </body>
</html> </html>

Binary file not shown.

View File

@ -1,7 +1,7 @@
{ {
"companyName": "hgamesartspider", "companyName": "hgamesartspider",
"productName": "Amazing Strange Rope Police - Vice Spider Vegas", "productName": "Amazing Strange Rope Police - Vice Spider Vegas",
"dataUrl": "https://raw.githubusercontent.com/3kh0/3kh0-Assets/main/amazing-rope-police/spider.data.unityweb", "dataUrl": "spider.data.unityweb",
"asmCodeUrl": "spider.asm.code.unityweb", "asmCodeUrl": "spider.asm.code.unityweb",
"asmMemoryUrl": "spider.asm.memory.unityweb", "asmMemoryUrl": "spider.asm.memory.unityweb",
"asmFrameworkUrl": "spider.asm.framework.unityweb", "asmFrameworkUrl": "spider.asm.framework.unityweb",

View File

@ -3,68 +3,69 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Basket Random</title> <title>Basket Random</title>
<script src="/js/all.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="generator" content="Scirra Construct"> <meta name="generator" content="Scirra Construct">
<meta name="author" content="RHM Interactive"> <meta name="author" content="RHM Interactive">
<meta name="description" content="Basket Random - Twoplayergames.org"> <meta name="description" content="Basket Random - Twoplayergames.org">
<link rel="manifest" href="appmanifest.json"> <link rel="manifest" href="appmanifest.json">
<script src="/js/all.js"></script>
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
<script> <script>
window.addEventListener("keydown", function(e) { window.addEventListener("keydown", function(e) {
// space and arrow keys // space and arrow keys
if([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) { if([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) {
e.preventDefault(); e.preventDefault();
} }
}, false); }, false);
</script> </script>
<script>
<script> const adBreak = adConfig = function(o) {return;}
function initSDK() { function initSDK() {
// Game start logic // Game start logic
let adConfigPromise = let adConfigPromise =
new Promise((resolve, reject) => adConfig({ new Promise((resolve, reject) => adConfig({
preloadAdBreaks: 'on', preloadAdBreaks: 'on',
onReady: () => resolve(true) onReady: () => resolve(true)
})); }));
let timeoutPromise = let timeoutPromise =
new Promise((resolve, reject) => { new Promise((resolve, reject) => {
setTimeout(() => { setTimeout(() => {
console.log("Ad timeout"); console.log("Ad timeout");
resolve(false); resolve(false);
}, 2000); }, 2000);
}); });
// Whatever happens first resolves this promise. // Whatever happens first resolves this promise.
Promise.race([ Promise.race([
adConfigPromise, adConfigPromise,
timeoutPromise timeoutPromise
]).then((shouldShowPreRoll) => { ]).then((shouldShowPreRoll) => {
if (shouldShowPreRoll) { if (shouldShowPreRoll) {
showPreRoll(); showPreRoll();
} else { } else {
c3_callFunction("startGame"); console.log("start game called");
} c3_callFunction("startGame");
}); }
} });
}
function showPreRoll() { function showPreRoll() {
// Show ad // Show ad
// adBreak({ adBreak({
// type: 'start', type: 'start',
// adBreakDone: function() { adBreakDone: function () {
c3_callFunction("startGame"); console.log("start game called");
// }, // always called, unblocks the game logic c3_callFunction("startGame");
//}); }, // always called, unblocks the game logic
} });
}
</script>
</script> <script>
<script>
function CallInterstitialAds() function CallInterstitialAds()
{ {
adBreak({ adBreak({
@ -86,39 +87,108 @@
} }
var rewardReadyShowAds = null; var rewardReadyShowAds = null;
function CallRewardedAds() {
function CallRewardedAds()
{
adBreak({ adBreak({
type: "reward", type: "reward",
name: "test-reward", name: "extra_life_skin",
beforeReward: (showAdFn) => { beforeReward: (showAdFn) => {
rewardReadyShowAds = showAdFn; rewardReadyShowAds = showAdFn;
if(this.rewardReadyShowAds) if (this.rewardReadyShowAds) {
{ c3_callFunction("adStarted");
c3_callFunction("adStarted"); c3_runtimeInterface._GetLocalRuntime().SetSuspended(true);
c3_runtimeInterface._GetLocalRuntime().SetSuspended(true); this.rewardReadyShowAds();
this.rewardReadyShowAds();
}
},
adViewed: () => {
rewardReadyShowAds = null;
c3_runtimeInterface._GetLocalRuntime().SetSuspended(false);
c3_callFunction("onClose");
c3_callFunction("OnRewardedCompleted");
// ad viewed, resume the game!
},
adDismissed: () => {
rewardReadyShowAds = null;
c3_runtimeInterface._GetLocalRuntime().SetSuspended(false);
c3_callFunction("onClose");
// ad dismissed, go to the Home screen
} }
}); },
} adViewed: () => {
</script> rewardReadyShowAds = null;
c3_runtimeInterface._GetLocalRuntime().SetSuspended(false);
c3_callFunction("onClose");
c3_callFunction("rewardedAdFinished");
console.log('Rewarded Success!');
},
adDismissed: () => {
rewardReadyShowAds = null;
c3_runtimeInterface._GetLocalRuntime().SetSuspended(false);
c3_callFunction("onClose");
c3_callFunction("rewardedFailed");
console.log('Rewarded Dismissed!');
},
adBreakDone: (placementInfo) => {
switch (placementInfo.breakStatus) {
case 'notReady':
console.log('Ad Placement API not ready');
c3_callFunction("onClose");
c3_callFunction("rewardedFailed");
c3_runtimeInterface._GetLocalRuntime().SetSuspended(false);
break;
case 'timeout':
console.log('Ad Placement API timeout');
c3_callFunction("onClose");
c3_callFunction("rewardedFailed");
c3_runtimeInterface._GetLocalRuntime().SetSuspended(false);
break;
case 'invalid':
console.log('Invalid placement');
break;
case 'error':
console.log('Error in adBreak callback');
break;
case 'noAdPreloaded':
console.log('No ad preloaded');
c3_callFunction("onClose");
c3_callFunction("rewardedFailed");
c3_runtimeInterface._GetLocalRuntime().SetSuspended(false);
break;
case 'frequencyCapped':
console.log('Frequency capped');
c3_callFunction("onClose");
c3_callFunction("rewardedFailed");
c3_callFunction("FrequencyWarning");
c3_runtimeInterface._GetLocalRuntime().SetSuspended(false);
break;
case 'ignored':
console.log('User ignored the reward prompt');
break;
case 'other':
console.log('Ad not shown for another reason');
c3_callFunction("onClose");
c3_callFunction("rewardedFailed");
c3_runtimeInterface._GetLocalRuntime().SetSuspended(false);
break;
case 'dismissed':
console.log('User dismissed the rewarded ad');
c3_callFunction("onClose");
c3_callFunction("rewardedFailed");
c3_runtimeInterface._GetLocalRuntime().SetSuspended(false);
break;
case 'viewed':
console.log('Rewarded ad viewed');
break;
default:
console.log('Unknown break status');
break;
}
}
});
}
</script>
</head> </head>
<body> <body>

80
basketrandom/style.css Normal file
View File

@ -0,0 +1,80 @@
html, body {
padding: 0;
margin: 0;
overflow: hidden;
background: #000000;
color: white;
}
html, body, canvas {
touch-action: none;
touch-action-delay: none;
}
#notSupportedWrap {
margin: 2em auto 1em auto;
width: 75%;
max-width: 45em;
border: 2px solid #aaa;
border-radius: 1em;
padding: 2em;
background-color: #f0f0f0;
font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
color: black;
}
#notSupportedTitle {
font-size: 1.8em;
}
.notSupportedMessage {
font-size: 1.2em;
}
.notSupportedMessage em {
color: #888;
}
/* bbcode styles */
.bbCodeH1 {
font-size: 2em;
font-weight: bold;
}
.bbCodeH2 {
font-size: 1.5em;
font-weight: bold;
}
.bbCodeH3 {
font-size: 1.25em;
font-weight: bold;
}
.bbCodeH4 {
font-size: 1.1em;
font-weight: bold;
}
.bbCodeItem::before {
content: " • ";
}
/* For text icons converted to HTML: size the height to the line height
preserving the aspect ratio. Also add position: relative as that allows
just adding a 'top' style for the iconoffsety style. */
.c3-text-icon {
height: 1em;
width: auto;
position: relative;
}
/* screen reader text */
.c3-screen-reader-text {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
}

Binary file not shown.

View File

@ -1,7 +1,7 @@
{ {
"companyName": "Mofunzone", "companyName": "Mofunzone",
"productName": "Duck Life: Space", "productName": "Duck Life: Space",
"dataUrl": "https://raw.githubusercontent.com/Edward358-AI/HTML5-games/3c35856e44aea5d93ebe781cb1af84570dd8512c/html5/ducklife5/play/Build/WebGL5MP-DATA.unityweb", "dataUrl": "WebGL5MP-DATA.unityweb",
"asmCodeUrl": "WebGL5MP-CODE.unityweb", "asmCodeUrl": "WebGL5MP-CODE.unityweb",
"asmMemoryUrl": "WebGL5MP-MEMORY.unityweb", "asmMemoryUrl": "WebGL5MP-MEMORY.unityweb",
"asmFrameworkUrl": "WebGL5MP-FRAMEWORK.unityweb", "asmFrameworkUrl": "WebGL5MP-FRAMEWORK.unityweb",

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -28,7 +28,7 @@
'FunnyShooter2_Poki.loader.js': 110821 , 'FunnyShooter2_Poki.loader.js': 110821 ,
'FunnyShooter2_Poki.wasm.unityweb': 4670173 , 'FunnyShooter2_Poki.wasm.unityweb': 4670173 ,
}, },
"metadata": {"poki_template_version":1,"background_color":"#FFFFFF","background_filename":"FunnyShooter2_Poki.jpg","code_filename":"FunnyShooter2_Poki.wasm.unityweb","company_name":"GoGoMan","data_filename":"https://raw.githubusercontent.com/funnyshooter/funnyshooter.github.io/main/file/Build/FunnyShooter2_Poki.data.unityweb/","decompression_fallback":"Brotli","development_player":"false","framework_filename":"FunnyShooter2_Poki.framework.js.unityweb","height":"600","loader_filename":"FunnyShooter2_Poki.loader.js","product_name":"Funny Shooter 2","product_version":"1.0.1","splash_screen_style":"Dark","total_memory":"268435456","unity_version":"2020.3.37f1","use_data_caching":"true","use_threads":"false","use_wasm":"true","use_webgl_1_0":"true","use_webgl_2_0":"true","width":"960"} "metadata": {"poki_template_version":1,"background_color":"#FFFFFF","background_filename":"FunnyShooter2_Poki.jpg","code_filename":"FunnyShooter2_Poki.wasm.unityweb","company_name":"GoGoMan","data_filename":"FunnyShooter2_Poki.data.unityweb","decompression_fallback":"Brotli","development_player":"false","framework_filename":"FunnyShooter2_Poki.framework.js.unityweb","height":"600","loader_filename":"FunnyShooter2_Poki.loader.js","product_name":"Funny Shooter 2","product_version":"1.0.1","splash_screen_style":"Dark","total_memory":"268435456","unity_version":"2020.3.37f1","use_data_caching":"true","use_threads":"false","use_wasm":"true","use_webgl_1_0":"true","use_webgl_2_0":"true","width":"960"}
}; };
</script> </script>
<!-- will be copied to the resulting head //--> <!-- will be copied to the resulting head //-->

View File

@ -1,7 +1,7 @@
{ {
"companyName": "Madalin Games", "companyName": "Madalin Games",
"productName": "Madalin Cars Multiplayer", "productName": "Madalin Cars Multiplayer",
"dataUrl": "https://raw.githubusercontent.com/xlegends/Game-Hub-Lite/main/madalin-cars-multiplayer/Build/7d7b82eb5e1c0ce8feedf2e1323e904d.unityweb", "dataUrl": "7d7b82eb5e1c0ce8feedf2e1323e904d.unityweb",
"asmCodeUrl": "9b295d23076674c38dbcfccd30746d6a.unityweb", "asmCodeUrl": "9b295d23076674c38dbcfccd30746d6a.unityweb",
"asmMemoryUrl": "4d451a766092c974a014877a34ad2f00.unityweb", "asmMemoryUrl": "4d451a766092c974a014877a34ad2f00.unityweb",
"asmFrameworkUrl": "cf0bec62445ad7dcdbd3523e8a04bab6.unityweb", "asmFrameworkUrl": "cf0bec62445ad7dcdbd3523e8a04bab6.unityweb",

View File

@ -77,7 +77,7 @@
})), ["setDebug", "gameplayStart", "gameplayStop", "gameLoadingProgress", "happyTime", "setPlayerAge", "togglePlayerAdvertisingConsent", "logError", "sendHighscore", "setDebugTouchOverlayController"].forEach((function(e) { })), ["setDebug", "gameplayStart", "gameplayStop", "gameLoadingProgress", "happyTime", "setPlayerAge", "togglePlayerAdvertisingConsent", "logError", "sendHighscore", "setDebugTouchOverlayController"].forEach((function(e) {
window.PokiSDK[e] = t.oneArgument(e) window.PokiSDK[e] = t.oneArgument(e)
})); }));
var o, i = ((o = window.pokiSDKVersion) || (o = e("ab") || "v2.263.0"), "//tbg95.github.io/poki-sdk-" + (n ? "kids" : "core") + "-" + o + ".js"), var o, i = ((o = window.pokiSDKVersion) || (o = e("ab") || "v2.263.0"), "poki-sdk-" + (n ? "kids" : "core") + "-" + o + ".js"),
r = document.createElement("script"); r = document.createElement("script");
r.setAttribute("src", i), r.setAttribute("type", "text/javascript"), r.setAttribute("crossOrigin", "anonymous"), r.onload = function() { r.setAttribute("src", i), r.setAttribute("type", "text/javascript"), r.setAttribute("crossOrigin", "anonymous"), r.onload = function() {
return t.dequeue() return t.dequeue()

1
rocketleague/README.md Normal file
View File

@ -0,0 +1 @@
# Rocket-Soccer

Binary file not shown.

Binary file not shown.

View File

@ -1,9 +1,9 @@
{ {
"companyName": "Destruction Crew", "companyName": "Destruction Crew",
"productName": "Rocket Soccer", "productName": "Rocket Soccer",
"dataUrl": "https://raw.githubusercontent.com/supremegmes/supremegmes.github.io/main/games/rocketSoccer/RSD%201.1.0rc4.data.unityweb", "dataUrl": "RSD%201.1.0rc4.data.unityweb?v=1676589996006",
"wasmCodeUrl": "https://raw.githubusercontent.com/supremegmes/supremegmes.github.io/main/games/rocketSoccer/RSD%201.1.0rc4.wasm.code.unityweb", "wasmCodeUrl": "RSD%201.1.0rc4.wasm.code.unityweb?v=1676589961332",
"wasmFrameworkUrl": "RSD%201.1.0rc4.wasm.framework.unityweb", "wasmFrameworkUrl": "RSD%201.1.0rc4.wasm.framework.unityweb?v=1676589935084",
"TOTAL_MEMORY": 268435456, "TOTAL_MEMORY": 268435456,
"graphicsAPI": ["WebGL 2.0", "WebGL 1.0"], "graphicsAPI": ["WebGL 2.0", "WebGL 1.0"],
"webglContextAttributes": {"preserveDrawingBuffer": false}, "webglContextAttributes": {"preserveDrawingBuffer": false},

23
rocketleague/dehar.py Normal file
View File

@ -0,0 +1,23 @@
# script used for crawling pages
# use the network tab in chrome devtools, clear it before loading the game, and when all assets have finished being requested, press the Export HAR button (looks like download)
# then, use this script like so (this is an example): python3 dehar.py example.com.har outputdirectory/
import os, sys, subprocess
banned = [] #[".php", ".asp"]
infile = sys.argv[1]
outdir = sys.argv[2]
input = open(infile, "r", encoding="utf-8").read().splitlines()
lis2 = []
for x in input:
if ('"url"' in x) and not(any(i in x for i in banned)):
lis2.append(x.split('"')[3].split("?")[0])
lis2 = list(dict.fromkeys(lis2))
open("./wgettemp.txt", "w", encoding="utf-8").write("\n".join(lis2))
subprocess.call("wget -x -i ./wgettemp.txt -P %s" % outdir, shell=True)
os.remove("./wgettemp.txt")

View File

@ -4,6 +4,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow"> <meta name="robots" content="noindex, nofollow">
<title>Rocket League</title> <title>Rocket League</title>
<script src="/js/all.js"></script>
<script> <script>
window.config = { window.config = {
loader: 'unity', loader: 'unity',
@ -11,7 +12,7 @@
maxRatio: 16 / 9, maxRatio: 16 / 9,
minRatio: 9 / 16, minRatio: 9 / 16,
title: 'Legends', title: 'Rocket League',
thumbnail: 'RocketSoccer.jpg', thumbnail: 'RocketSoccer.jpg',
numScreenshots: 4, numScreenshots: 4,
@ -23,9 +24,9 @@
fileSize: 27, fileSize: 27,
loadingComments: ['Loading...'], loadingComments: ['Loading...'],
cachedDecompressedFileSizes: { cachedDecompressedFileSizes: {
'https://cdn.glitch.global/e9e96233-30e8-4cf8-855a-84008f504f2e/RSD%201.1.0rc4.wasm.framework.unityweb':538308, 'RSD 1.1.0rc4.wasm.framework.unityweb':538308,
'https://cdn.glitch.me/e9e96233-30e8-4cf8-855a-84008f504f2e/RSD%201.1.0rc4.wasm.code.unityweb':26620102, 'RSD 1.1.0rc4.wasm.code.unityweb':26620102,
'https://cdn.glitch.me/e9e96233-30e8-4cf8-855a-84008f504f2e/RSD%201.1.0rc4.data.unityweb':29723236, 'RSD 1.1.0rc4.data.unityweb':29723236,
}, },
// //
}; };
@ -33,9 +34,6 @@
</head> </head>
<body> <body>
<script src="master-loader.js"></script> <script src="master-loader.js"></script>
<script defer src="https://static.cloudflareinsights.com/beacon.min.js/vaafb692b2aea4879b33c060e79fe94621666317369993" integrity="sha512-0ahDYl866UMhKuYcW078ScMalXqtFJggm7TmlUtp0UlD4eQk0Ixfnm5ykXKvGJNFjLMoortdseTfsRT8oCfgGA==" data-cf-beacon='{"rayId":"79a9f3414df430b4","token":"c843b8c381814d58b40d4597a1bf7962","version":"2023.2.0","si":100}' crossorigin="anonymous"></script>
</body> </body>
</html> </html>
<script src="/js/all.js"></script>

11953
rocketleague/rl.har Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB