Skip to content
This repository was archived by the owner on Oct 27, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Unity WebGL Player | Slope</title>
<base href="https://cdn.jsdelivr.net/gh/codingfun1072/slope@fc0e936561dd7b8a838e97525cb56ec62ca81baa/" target="_blank">
<link rel="shortcut icon" href="TemplateData/favicon.ico">
<link rel="stylesheet" href="TemplateData/style.css">
</head>
Expand All @@ -25,13 +26,14 @@
<div id="unity-build-title">Slope</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/gh/gh-canon/stack-snippet-console@master/console.js"></script>
<script>
var buildUrl = "Build";
var loaderUrl = buildUrl + "/SlopeBuild.loader.js";
var config = {
dataUrl: buildUrl + "/SlopeBuild.data.gz",
frameworkUrl: buildUrl + "/SlopeBuild.framework.js.gz",
codeUrl: buildUrl + "/SlopeBuild.wasm.gz",
codeUrl: "https://raw.githack.com/codingfun1072/slope/fc0e936561dd7b8a838e97525cb56ec62ca81baa/Build/SlopeBuild.wasm.gz",
streamingAssetsUrl: "StreamingAssets",
companyName: "Y8",
productName: "Slope",
Expand Down
18 changes: 8 additions & 10 deletions js/gameBreakBeta.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
window.adsbygoogle = window.adsbygoogle || [];
window.adsbygoogle = [];
const adBreak = adConfig = function(o) {adsbygoogle.push(o);}
adConfig({
preloadAdBreaks: 'on',
Expand All @@ -7,9 +7,8 @@ adConfig({
console.log("ready");
}, // Called when API has initialised and adBreak() is ready
});
function showNextAd()
{
console.log("showNextAd")
function showNextAd() {
/*console.log("showNextAd")
adBreak({
type: 'next', // ad shows at start of next level
name: 'next-game',
Expand All @@ -28,15 +27,14 @@ function showNextAd()
console.log(placementInfo.breakFormat);
console.log(placementInfo.breakStatus);
},
});
});*/
console.log("No ad code");
}

function passBeforeAdData()
{
function passBeforeAdData() {
myGameInstance.SendMessage('Canvas', 'pauseGame');
}

function adBreakDoneData()
{
function adBreakDoneData() {
myGameInstance.SendMessage('Canvas', 'resumeGame');
}
}