@indextools/index-games 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +73 -2
  2. package/index.svg +53 -0
  3. package/package.json +47 -5
  4. package/public/404.html +50 -0
  5. package/public/baremux/worker.js +2 -0
  6. package/public/config.js +27 -0
  7. package/public/games/agesofconflict.html +224 -0
  8. package/public/games/baldi.html +50 -0
  9. package/public/games/boi.html +132 -0
  10. package/public/games/brotato.html +142 -0
  11. package/public/games/fnae.html +153 -0
  12. package/public/games/games.json +122 -0
  13. package/public/games/gamesuggestion.html +12 -0
  14. package/public/games/geodash.html +274 -0
  15. package/public/games/kidchess.html +49 -0
  16. package/public/games/lebronclicker.html +763 -0
  17. package/public/games/monstertracks.html +31 -0
  18. package/public/games/nealfun.html +49 -0
  19. package/public/games/slitherio.html +186 -0
  20. package/public/games/slope.html +114 -0
  21. package/public/games/spacewaves.html +246 -0
  22. package/public/games/wheeliebike.html +50 -0
  23. package/public/icons/BNG-Favicon.png +0 -0
  24. package/public/icons/CGPT-Favicon.png +0 -0
  25. package/public/icons/CMG-Favicon.jpg +0 -0
  26. package/public/icons/CZG-Favicon.png +0 -0
  27. package/public/icons/DC-Favicon.png +0 -0
  28. package/public/icons/DDG-Favicon.png +0 -0
  29. package/public/icons/G-Favicon.png +0 -0
  30. package/public/icons/GH-Favicon.png +0 -0
  31. package/public/icons/GameSuggestions-Favicons.png +0 -0
  32. package/public/icons/MCTF-Favicon.png +0 -0
  33. package/public/icons/MP4-Favicon.webp +0 -0
  34. package/public/icons/NDF-Favicon.png +0 -0
  35. package/public/icons/NGG-Favicon.png +0 -0
  36. package/public/icons/RDT-Favicon.png +0 -0
  37. package/public/icons/RPT-Favicon.png +0 -0
  38. package/public/icons/S-Favicon.png +0 -0
  39. package/public/icons/TT-Favicon.png +0 -0
  40. package/public/icons/X-Favicon.jpg +0 -0
  41. package/public/icons/YT-Favicon.png +0 -0
  42. package/public/index.css +888 -0
  43. package/public/index.html +1132 -0
  44. package/public/index.js +72 -0
  45. package/public/index.svg +53 -0
  46. package/public/register-sw.js +25 -0
  47. package/public/search.js +32 -0
  48. package/public/sw.js +16 -0
  49. package/server.js +46 -0
  50. package/src/index.js +96 -0
@@ -0,0 +1,31 @@
1
+ <!-- Ultimate Game Stash file-->
2
+ <!-- For the regularly updating doc go to https://docs.google.com/document/d/1_FmH3BlSBQI7FGgAQL59-ZPe8eCxs35wel6JUyVaG8Q/ -->
3
+ <!-- made by genizy -->
4
+
5
+ <!DOCTYPE html>
6
+ <html lang="en-us">
7
+
8
+ <head>
9
+ <meta charset="utf-8">
10
+ <title>Monster Tracks</title>
11
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/genizy/google-class@23207b238c7c587d12da3cac4233366120ea47c0/monster-tracks/Jump_Gamemonetize.js"></script>
12
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/genizy/google-class/monster-tracks/webapp/fancade.css">
13
+ </head>
14
+
15
+ <body>
16
+ <div id="canvas_border">
17
+ <div id="play_content" class="middle center">
18
+ <div class="box">
19
+ <img src="https://cdn.jsdelivr.net/gh/genizy/google-class/monster-tracks/webapp/cover.jpg" class="cover">
20
+ <p class="title">Monster Tracks</p>
21
+ <p class="author">TGC</p>
22
+ </div>
23
+ <progress id="progress" class="loading" value="0" max="100"></progress>
24
+ </div>
25
+ <canvas class="emscripten" id="canvas" tabindex="-1"></canvas>
26
+ </div>
27
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/genizy/google-class/monster-tracks/webapp/source_min.js" crossorigin="anonymous"></script>
28
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/genizy/google-class/monster-tracks/webapp/index.js" crossorigin="anonymous"></script>
29
+ </body>
30
+
31
+ </html>
@@ -0,0 +1,49 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <base href="/" />
6
+ <title>neal.fun</title>
7
+ <script src="config.js"></script>
8
+ <script src="https://unpkg.com/@mercuryworkshop/scramjet@2.0.0-alpha/dist/scramjet.all.js"></script>
9
+ <script src="https://unpkg.com/@mercuryworkshop/bare-mux@2.1.7/dist/index.js"></script>
10
+ <style>
11
+ * { margin: 0; padding: 0; box-sizing: border-box; }
12
+ html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
13
+ </style>
14
+ </head>
15
+ <body>
16
+ <script src="/register-sw.js"></script>
17
+ <script>
18
+ (async () => {
19
+ const cfg = (typeof window !== "undefined" && window.__INDEX_CONFIG) || {};
20
+ const scramjetFiles = cfg.scramjet || {
21
+ wasm: "https://unpkg.com/@mercuryworkshop/scramjet@2.0.0-alpha/dist/scramjet.wasm.wasm",
22
+ all: "https://unpkg.com/@mercuryworkshop/scramjet@2.0.0-alpha/dist/scramjet.all.js",
23
+ sync: "https://unpkg.com/@mercuryworkshop/scramjet@2.0.0-alpha/dist/scramjet.sync.js"
24
+ };
25
+ const { ScramjetController } = $scramjetLoadController();
26
+ const sj = new ScramjetController({
27
+ files: scramjetFiles
28
+ });
29
+
30
+ await sj.init();
31
+
32
+ const workerPath = (cfg.baremux && cfg.baremux.worker) || "/baremux/worker.js";
33
+ const c = new BareMux.BareMuxConnection(workerPath);
34
+ const wispUrl = cfg.wispUrl || (location.host && location.host.includes("unpkg.com") ? "wss://wisp.mercurywork.shop/" : ((location.protocol === "https:" ? "wss" : "ws") + "://" + location.host + "/wisp/"));
35
+ const transportUrl = (cfg.libcurl && cfg.libcurl.transport) || "https://unpkg.com/@mercuryworkshop/libcurl-transport@1.5.2/dist/index.mjs";
36
+ if ((await c.getTransport()) !== transportUrl) {
37
+ await c.setTransport(transportUrl, [{ websocket: wispUrl }]);
38
+ }
39
+
40
+ await registerSW();
41
+
42
+ const f = sj.createFrame();
43
+ f.frame.style.cssText = "width:100vw;height:100vh;border:none;display:block;position:fixed;inset:0;";
44
+ document.body.appendChild(f.frame);
45
+ f.go("https://neal.fun");
46
+ })();
47
+ </script>
48
+ </body>
49
+ </html>
@@ -0,0 +1,186 @@
1
+
2
+ <!-- Ultimate Game Stash file-->
3
+ <!-- For the regularly updating doc go to https://docs.google.com/document/d/1_FmH3BlSBQI7FGgAQL59-ZPe8eCxs35wel6JUyVaG8Q/ -->
4
+
5
+
6
+
7
+ </style><script src="https://26515722-282596139816136697.preview.editmysite.com/uploads/b/7547235-562404422326578714/files/offlineClient.js"></script><style type="text/css">#button {
8
+ display:none;
9
+ }
10
+ .imgb_vis {
11
+ animation: imgb-animation 7s linear;
12
+ }
13
+ @keyframes imgb-animation {
14
+ 10% {
15
+ transform: translateX(0);
16
+ }
17
+ 20% {
18
+ transform: translateX(100px);
19
+ }
20
+ 90% {
21
+ transform: translateX(100px);
22
+ }
23
+ 100% {
24
+ transform: translateX(0);
25
+ }
26
+ }</style></head><body dir="ltr" style="cursor: auto;">
27
+ <div id="fb-root"></div>
28
+
29
+ <script>
30
+
31
+ function On_GameLoaded()
32
+ {
33
+ isGameLoaded = true;
34
+ }
35
+
36
+ function Show_Ads()
37
+ {
38
+ c2_callFunction("On_GameResumed");
39
+ showad1();
40
+
41
+ }
42
+
43
+ // Issue a warning if trying to preview an exported project on disk.
44
+ (function(){
45
+ // Check for running exported on file protocol
46
+ if (window.location.protocol.substr(0, 4) ==="file")
47
+ {
48
+ alert("Exported games won't work until you upload them. (When running on the file:/// protocol, browsers block many features from working for security reasons.)");
49
+ }
50
+ })();
51
+ </script>
52
+
53
+ <!-- The canvas must be inside a div called c2canvasdiv -->
54
+ <div id="c2canvasdiv" style="width: 1262px; height: 928px; margin-left: 0px; margin-top: 0px;">
55
+
56
+ <!-- The canvas the project will render to. If you change its ID, don't forget to change the
57
+ ID the runtime looks for in the jQuery events above (ready() and cr_sizeCanvas()). -->
58
+ <canvas height="928" id="c2canvas" width="1262" style="width: 1262px; height: 928px;">
59
+ <!-- This text is displayed if the visitor's browser does not support HTML5.
60
+ You can change it, but it is a good idea to link to a description of a browser
61
+ and provide some links to download some popular HTML5-compatible browsers. -->
62
+ <h1>Your browser does not appear to support HTML5. Try upgrading your browser to the latest version. <a href="http://www.whatbrowser.org">What is a browser?</a>
63
+ <br><br><a href="http://www.microsoft.com/windows/internet-explorer/default.aspx">Microsoft Internet Explorer</a><br>
64
+ <a href="http://www.mozilla.com/firefox/">Mozilla Firefox</a><br>
65
+ <a href="http://www.google.com/chrome/">Google Chrome</a><br>
66
+ <a href="http://www.apple.com/safari/download/">Apple Safari</a></h1>
67
+ </canvas>
68
+
69
+ <input type="text" id="" autocomplete="off" placeholder="Your Name Here" title="" spellcheck="false" style="position: absolute; top: 432px; left: 436px; width: 373px; height: 35px; border: none; background-color: rgba(0, 0, 0, 0); color: rgb(255, 255, 255); font-size: 20px; font-family: Oswald; padding: 10px; border-radius: 100px;"></div>
70
+
71
+ <!-- Pages load faster with scripts at the bottom -->
72
+
73
+ <!-- Construct 2 exported games require jQuery. -->
74
+ <script src="https://26515722-282596139816136697.preview.editmysite.com/uploads/b/7547235-562404422326578714/files/jquery-2.1.1.min.js"></script>
75
+
76
+
77
+
78
+ <!-- The runtime script. You can rename it, but don't forget to rename the reference here as well.
79
+ This file will have been minified and obfuscated if you enabled "Minify script" during export. -->
80
+ <script src="https://26515722-282596139816136697.preview.editmysite.com/uploads/b/7547235-562404422326578714/files/c2runtime.js"></script>
81
+
82
+ <script>
83
+ // Start the Construct 2 project running on window load.
84
+ jQuery(document).ready(function ()
85
+ {
86
+ // Create new runtime using the c2canvas
87
+ cr_createRuntime("c2canvas");
88
+ });
89
+
90
+ // Pause and resume on page becoming visible/invisible
91
+ function onVisibilityChanged() {
92
+ if (document.hidden || document.mozHidden || document.webkitHidden || document.msHidden)
93
+ cr_setSuspended(true);
94
+ else
95
+ cr_setSuspended(false);
96
+ };
97
+
98
+ document.addEventListener("visibilitychange", onVisibilityChanged, false);
99
+ document.addEventListener("mozvisibilitychange", onVisibilityChanged, false);
100
+ document.addEventListener("webkitvisibilitychange", onVisibilityChanged, false);
101
+ document.addEventListener("msvisibilitychange", onVisibilityChanged, false);
102
+
103
+ function OnRegisterSWError(e)
104
+ {
105
+ console.warn("Failed to register service worker: ", e);
106
+ };
107
+
108
+ // Runtime calls this global method when ready to start caching (i.e. after startup).
109
+ // This registers the service worker which caches resources for offline support.
110
+ window.C2_RegisterSW = function C2_RegisterSW()
111
+ {
112
+ if (!navigator.serviceWorker)
113
+ return; // no SW support, ignore call
114
+
115
+ try {
116
+ navigator.serviceWorker.register("sw.js", { scope: "./" })
117
+ .then(function (reg)
118
+ {
119
+ console.log("Registered service worker on " + reg.scope);
120
+ })
121
+ .catch(OnRegisterSWError);
122
+ }
123
+ catch (e)
124
+ {
125
+ OnRegisterSWError(e);
126
+ }
127
+ };
128
+ </script>
129
+ <script src=""></script>
130
+
131
+
132
+ <script>gadgets.util.runOnLoadHandlers();</script><script>window.google.csi.tickDl();
133
+ </script></body></html>
134
+ </style><style type="text/css">
135
+ * {
136
+ padding: 0;
137
+ margin: 0;
138
+ }
139
+ html, body {
140
+ background: #000;
141
+ color: #fff;
142
+ overflow: hidden;
143
+ touch-action: none;
144
+ -ms-touch-action: none;
145
+ }
146
+ canvas {
147
+ touch-action-delay: none;
148
+ touch-action: none;
149
+ -ms-touch-action: none;
150
+ }
151
+ @font-face {
152
+ font-family: Oswald Regular;
153
+ src: url(https://26515722-282596139816136697.preview.editmysite.com/uploads/b/7547235-562404422326578714/files/oswald_regular.ttf);
154
+ }
155
+ html, body {
156
+ padding: 0;
157
+ margin: 0;
158
+ overflow: hidden;
159
+
160
+ background: #000000;
161
+ }
162
+
163
+ html, body, canvas {
164
+ touch-action: none;
165
+ touch-action-delay: none;
166
+ }
167
+
168
+ </style>
169
+ <meta charset="UTF-8">
170
+ <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
171
+ <title>Snake</title>
172
+ <meta content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" name="viewport">
173
+
174
+ <!-- Allow fullscreen mode on iOS devices. (These are Apple specific meta tags.) -->
175
+ <meta content="true" name="HandheldFriendly">
176
+
177
+ <!-- Chrome for Android web app tags -->
178
+ <meta content="yes" name="mobile-web-app-capable">
179
+
180
+
181
+
182
+
183
+ <!-- All margins and padding must be zero for the canvas to fill the screen. -->
184
+
185
+
186
+ <script>
@@ -0,0 +1,114 @@
1
+ <!-- Ultimate Game Stash file-->
2
+ <!-- For the regularly updating doc go to https://docs.google.com/document/d/1_FmH3BlSBQI7FGgAQL59-ZPe8eCxs35wel6JUyVaG8Q/ -->
3
+
4
+ <!DOCTYPE html>
5
+ <html lang="en-us">
6
+
7
+ <head>
8
+ <base href="https://cdn.jsdelivr.net/gh/gn-math/assets@51462750d29b68ac1e33887c1bf13d9c478d5ead/198/">
9
+ <meta charset="utf-8">
10
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
11
+ <title>Unity WebGL Player | Slope Plus</title>
12
+ <link rel="shortcut icon" href="TemplateData/favicon.ico">
13
+ <link rel="stylesheet" href="TemplateData/style.css">
14
+ <style>
15
+ html,
16
+ body {
17
+ margin: 0;
18
+ padding: 0;
19
+ overflow: hidden;
20
+ height: 100%;
21
+ width: 100%;
22
+ }
23
+
24
+ #unity-container {
25
+ width: 100%;
26
+ height: 100%;
27
+ position: absolute;
28
+ top: 0;
29
+ left: 0;
30
+ }
31
+ </style>
32
+ <script src="TemplateData/UnityProgress.js"></script>
33
+ <script src="Build/UnityLoader.js"></script>
34
+ <script>
35
+ function mergeFiles(fileParts) {
36
+ return new Promise((resolve, reject) => {
37
+ let buffers = [];
38
+
39
+ function fetchPart(index) {
40
+ if (index >= fileParts.length) {
41
+ let mergedBlob = new Blob(buffers);
42
+ let mergedFileUrl = URL.createObjectURL(mergedBlob);
43
+ resolve(mergedFileUrl);
44
+ return;
45
+ }
46
+ fetch(fileParts[index]).then((response) => response.arrayBuffer()).then((data) => {
47
+ buffers.push(data);
48
+ fetchPart(index + 1);
49
+ }).catch(reject);
50
+ }
51
+ fetchPart(0);
52
+ });
53
+ }
54
+
55
+ function getParts(file, start, end) {
56
+ let parts = [];
57
+ for (let i = start; i <= end; i++) {
58
+ parts.push(file + ".part" + i);
59
+ }
60
+ return parts;
61
+ }
62
+
63
+ window.addEventListener('resize', resizeGameContainer);
64
+
65
+ function resizeGameContainer() {
66
+ const container = document.getElementById('gameContainer');
67
+ if (container) {
68
+ const width = window.innerWidth;
69
+ const height = window.innerHeight;
70
+ container.style.width = `${width}px`;
71
+ container.style.height = `${height}px`;
72
+ }
73
+ }
74
+
75
+ window.onload = function () {
76
+ resizeGameContainer();
77
+
78
+ Promise.all([
79
+ mergeFiles(getParts("https://cdn.jsdelivr.net/gh/gn-math/assets@51462750d29b68ac1e33887c1bf13d9c478d5ead/198/Build/WEB1.2.1.data.unityweb", 1, 2))
80
+ ]).then(([dataUrl]) => {
81
+ let json = {
82
+ companyName: "Slope Plus",
83
+ productName: "Slope Plus",
84
+ dataUrl: dataUrl,
85
+ wasmCodeUrl: "https://cdn.jsdelivr.net/gh/gn-math/assets@51462750d29b68ac1e33887c1bf13d9c478d5ead/198/Build/WEB1.2.1.wasm.code.unityweb",
86
+ wasmFrameworkUrl: "https://cdn.jsdelivr.net/gh/gn-math/assets@51462750d29b68ac1e33887c1bf13d9c478d5ead/198/Build/WEB1.2.1.wasm.framework.unityweb",
87
+ TOTAL_MEMORY: 268435456,
88
+ graphicsAPI: ["WebGL 2.0", "WebGL 1.0"],
89
+ webglContextAttributes: {
90
+ preserveDrawingBuffer: false
91
+ },
92
+ splashScreenStyle: "Dark",
93
+ backgroundColor: "#000000"
94
+ }
95
+ let blob = new Blob([JSON.stringify(json)], {
96
+ type: 'application/json'
97
+ });
98
+ let blobUrl = URL.createObjectURL(blob);
99
+ UnityLoader.instantiate("gameContainer", json, {
100
+ onProgress: UnityProgress,
101
+ url: blobUrl
102
+ });
103
+ });
104
+ };
105
+ </script>
106
+ </head>
107
+
108
+ <body>
109
+ <div class="webgl-content">
110
+ <div id="gameContainer"></div>
111
+ </div>
112
+ </body>
113
+
114
+ </html>
@@ -0,0 +1,246 @@
1
+ <!DOCTYPE html>
2
+
3
+
4
+ <!-- Ultimate Game Stash file-->
5
+ <!-- For the regularly updating doc go to https://docs.google.com/document/d/1_FmH3BlSBQI7FGgAQL59-ZPe8eCxs35wel6JUyVaG8Q/ -->
6
+
7
+
8
+
9
+
10
+ <html lang="en-us">
11
+ <base href="https://cdn.jsdelivr.net/gh/bubbls/UGS-Assets@d84a892372bc6e836fafbd784d9c12f83071b9e3/space%20waves/">
12
+ <head>
13
+ <meta charset="utf-8">
14
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
15
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
16
+ <title>Space Waves</title>
17
+ <link rel="stylesheet" href="TemplateData/style.css">
18
+ <link rel="manifest" href="manifest.json">
19
+ </head>
20
+ <body class="noselect">
21
+ <div id="unity-container">
22
+ <canvas id="unity-canvas"></canvas>
23
+ </div>
24
+ <div id="loading-cover" style="display:none;">
25
+ <div id="unity-loading-bar">
26
+ <div id="unity-logo"><img src="logo.png"></div>
27
+ </br></br></br>
28
+ <div id="unity-progress-bar-empty" style="display: none;">
29
+ <div id="unity-progress-bar-full"></div>
30
+ </div>
31
+ <div class="spinner"></div>
32
+ </div>
33
+ </div>
34
+
35
+ <script src="microsoftDataMigrationDO.js"></script>
36
+ <script>
37
+ document.addEventListener("DOMContentLoaded", () => {
38
+ microsoftMigration();
39
+ });
40
+
41
+ window.addEventListener("PlayerPrefsReady", () => {
42
+ migratePlayerPrefs();
43
+ });
44
+ </script>
45
+
46
+ <script>
47
+ window.addEventListener("load", function () {
48
+ if ("serviceWorker" in navigator) {
49
+ navigator.serviceWorker.register("ServiceWorker.js");
50
+ }
51
+ });
52
+
53
+ const container = document.querySelector("#unity-container");
54
+ const canvas = document.querySelector("#unity-canvas");
55
+ const loadingCover = document.querySelector("#loading-cover");
56
+ const progressBarEmpty = document.querySelector("#unity-progress-bar-empty");
57
+ const progressBarFull = document.querySelector("#unity-progress-bar-full");
58
+ const spinner = document.querySelector('.spinner');
59
+
60
+ const buildUrl = "Build";
61
+ const loaderUrl = buildUrl + "/dae5c7bd2b15915f51ae4e56b8f5367d.loader.js";
62
+ const config = {
63
+ dataUrl: buildUrl + "/568ea6b3af616bd57f419c508c933303.data.unityweb",
64
+ frameworkUrl: buildUrl + "/c699bc4c24abfbdb4c8b3e15b0af7d3f.framework.js.unityweb",
65
+ codeUrl: buildUrl + "/7fb5141de5923189bc1dc5f94eb619f2.wasm.unityweb",
66
+ streamingAssetsUrl: "StreamingAssets",
67
+ companyName: "do.Games",
68
+ productName: "Space Waves",
69
+ productVersion: "1.1.2-ms",
70
+ matchWebGLToCanvasSize: "false"
71
+ };
72
+
73
+ loadingCover.style.display = "";
74
+
75
+ var needMigrate = false;
76
+ var gameInstance;
77
+ var script = document.createElement("script");
78
+ script.src = loaderUrl;
79
+ script.onload = () => {
80
+ createUnityInstance(canvas, config, (progress) => {
81
+ spinner.style.display = "none";
82
+ progressBarEmpty.style.display = "";
83
+ progressBarFull.style.width = 100 * progress + "%";
84
+ }).then((unityInstance) => {
85
+ console.log("<do.G> Unity inited");
86
+ gameInstance = unityInstance;
87
+ loadingCover.style.display = "none";
88
+ resizeCanvas();
89
+ loadAds();
90
+
91
+ if (needMigrate) {
92
+ needMigrate = false;
93
+ gameInstance.SendMessage('MSStartSDK', 'OnMigratePlayerPrefs', window["fetchPlayerPrefs"]);
94
+ }
95
+
96
+ }).catch((message) => {
97
+ alert(message);
98
+ });
99
+ };
100
+ document.body.appendChild(script);
101
+
102
+ // Focus
103
+ function setFocus() {
104
+ container.focus();
105
+ window.focus();
106
+ canvas.focus();
107
+ }
108
+
109
+ window.addEventListener("touchstart", () => {
110
+ setFocus();
111
+ });
112
+ window.addEventListener("pointerdown", () => {
113
+ setFocus();
114
+ });
115
+ window.addEventListener("resize", () => {
116
+ setFocus();
117
+ resizeCanvas();
118
+ });
119
+
120
+ function resizeCanvas() {
121
+ var pixelRatio = window.devicePixelRatio || 1;
122
+ var width = canvas.clientWidth * pixelRatio;
123
+ var height = canvas.clientHeight * pixelRatio;
124
+
125
+ if (canvas.width != width || canvas.height != height) {
126
+ if (height > 1080) {
127
+ canvas.width = Math.floor(width / height * 1080);
128
+ canvas.height = 1080;
129
+ }
130
+ else
131
+ {
132
+ canvas.width = width;
133
+ canvas.height = height;
134
+ }
135
+ }
136
+ }
137
+
138
+ function migratePlayerPrefs() {
139
+ if (typeof gameInstance !== 'undefined') {
140
+ gameInstance.SendMessage('MSStartSDK', 'OnMigratePlayerPrefs', window["fetchPlayerPrefs"]);
141
+ } else {
142
+ needMigrate = true;
143
+ }
144
+ }
145
+ </script>
146
+
147
+ <script src="msstart-v1.0.0-rc.13.min.js"></script>
148
+
149
+ <script>
150
+
151
+ var _interstitialAdInstance = null;
152
+ var _rewardedAdInstance = null;
153
+
154
+ function loadAds() {
155
+ loadInterstitialAd();
156
+ loadRewardedAd();
157
+ }
158
+
159
+ function loadInterstitialAd() {
160
+ _interstitialAdInstance = null;
161
+
162
+ $msstart.loadAdsAsync().then(adInstance => {
163
+ // Use the adInstance.instanceId to make a call to showAdsAsync
164
+ _interstitialAdInstance = adInstance;
165
+ console.log("Interstitial ad successfully loaded!");
166
+ }).catch(e => {
167
+ console.error('<do.G> Error loading interstitial ad. Will retry in 20 seconds...', e);
168
+ setTimeout(loadInterstitialAd, 20000);
169
+ });
170
+ }
171
+
172
+ function loadRewardedAd() {
173
+ _rewardedAdInstance = null;
174
+
175
+ $msstart.loadAdsAsync(true).then(adInstance => {
176
+ // Pass in boolean true for the optional parameter isRewardedAd, to fetch Rewarded ads
177
+ _rewardedAdInstance = adInstance;
178
+ console.log("Rewarded ad successfully loaded!");
179
+ }).catch(e => {
180
+ console.error('<do.G> Error loading rewarded ad. Will retry in 20 seconds...', e);
181
+ setTimeout(loadRewardedAd, 20000);
182
+ });
183
+ }
184
+
185
+ async function showInterstitialAd() {
186
+ if (_interstitialAdInstance == null) {
187
+ gameInstance.SendMessage('MSStartSDK', 'OnInterstitialAdShowError');
188
+ return;
189
+ }
190
+
191
+ let t;
192
+
193
+ try {
194
+ t = await $msstart.showAdsAsync(_interstitialAdInstance.instanceId);
195
+ } catch (e) {
196
+ console.error('<do.G> Error show interstitial ad: ', e);
197
+ gameInstance.SendMessage('MSStartSDK', 'OnInterstitialAdShowError');
198
+ loadInterstitialAd();
199
+ }
200
+
201
+ if (t) {
202
+ try {
203
+ await t.showAdsCompletedAsync;
204
+ gameInstance.SendMessage('MSStartSDK', 'OnInterstitialAdClose');
205
+ loadInterstitialAd();
206
+ } catch (e) {
207
+ console.error('<do.G> Error interstitial showAdsCompletedAsync: ', e);
208
+ gameInstance.SendMessage('MSStartSDK', 'OnInterstitialAdShowError');
209
+ loadInterstitialAd();
210
+ }
211
+ }
212
+ }
213
+
214
+ async function showRewardedAd() {
215
+ if (_rewardedAdInstance == null) {
216
+ gameInstance.SendMessage('MSStartSDK', 'OnRewardedAdShowError');
217
+ return;
218
+ }
219
+
220
+ let t;
221
+
222
+ try {
223
+ t = await $msstart.showAdsAsync(_rewardedAdInstance.instanceId);
224
+ } catch (e) {
225
+ console.error('<do.G> Error show rewarded ad: ', e);
226
+ gameInstance.SendMessage('MSStartSDK', 'OnRewardedAdShowError');
227
+ loadRewardedAd();
228
+ }
229
+
230
+ if (t) {
231
+ try {
232
+ await t.showAdsCompletedAsync;
233
+ gameInstance.SendMessage('MSStartSDK', 'OnReward');
234
+ loadRewardedAd();
235
+ } catch (e) {
236
+ console.error('<do.G> Error rewarded showAdsCompletedAsync: ', e);
237
+ gameInstance.SendMessage('MSStartSDK', 'OnRewardedAdShowError');
238
+ loadRewardedAd();
239
+ }
240
+ }
241
+ }
242
+
243
+ </script>
244
+
245
+ </body>
246
+ </html>
@@ -0,0 +1,50 @@
1
+
2
+ <!DOCTYPE html>
3
+
4
+
5
+ <!-- Ultimate Game Stash file-->
6
+ <!-- For the regularly updating doc go to https://docs.google.com/document/d/1_FmH3BlSBQI7FGgAQL59-ZPe8eCxs35wel6JUyVaG8Q/ -->
7
+
8
+
9
+
10
+ <html>
11
+ <head>
12
+ <base href="https://cdn.jsdelivr.net/gh/bubbls/UGS-Assets@1a8377d87253610bca22dc9dc44f79020b395c1e/wheelie-bike/">
13
+ <meta charset="UTF-8">
14
+ <title>Wheelie Bike</title>
15
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
16
+
17
+ <meta name="generator" content="Scirra Construct">
18
+ <meta name="author" content="stefano">
19
+ <meta name="description" content="wheelie bike game">
20
+ <link rel="manifest" href="appmanifest.json">
21
+ <link rel="apple-touch-icon" sizes="128x128" href="icons/icon-128.png">
22
+ <link rel="apple-touch-icon" sizes="256x256" href="icons/icon-256.png">
23
+ <link rel="icon" type="image/png" href="icons/icon-256.png">
24
+
25
+ <link rel="stylesheet" href="style.css">
26
+
27
+
28
+ </head>
29
+ <body>
30
+
31
+ <script>
32
+ if (location.protocol.substr(0, 4) === "file")
33
+ {
34
+ alert("Web exports won't work until you upload them. (When running on the file: protocol, browsers block many features from working for security reasons.)");
35
+ }
36
+ </script>
37
+ <script src="box2d.wasm.js"></script>
38
+ <noscript>
39
+ <div id="notSupportedWrap">
40
+ <h2 id="notSupportedTitle">This content requires JavaScript</h2>
41
+ <p class="notSupportedMessage">JavaScript appears to be disabled. Please enable it to view this content.</p>
42
+ </div>
43
+ </noscript>
44
+ <script src="scripts/supportcheck.js"></script>
45
+ <script src="scripts/offlineclient.js" type="module"></script>
46
+ <script src="scripts/main.js" type="module"></script>
47
+ <script src="scripts/register-sw.js" type="module"></script>
48
+
49
+ </body>
50
+ </html>
Binary file
Binary file
Binary file
Binary file