alexrsworld 1.0.0 → 1.0.2
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.
- package/Apps/codeeditor.html +163 -0
- package/Games/WAflash/vex.html +1 -1
- package/Games/emulated/GBA/mariokartsupercircuit.html +30 -0
- package/Games/emulated/GBA/mother.html +30 -0
- package/Games/emulated/GBA/mother3.html +30 -0
- package/Games/emulated/GBA/pacmanworld.html +30 -0
- package/Games/emulated/GBA/sonicadvance.html +30 -0
- package/Games/emulated/GBA/sonicadvance2.html +30 -0
- package/Games/emulated/GBA/sonicadvance3.html +30 -0
- package/Games/emulated/GBA/superstarsaga.html +30 -0
- package/Games/emulated/N64/majorasmask.html +31 -0
- package/Games/emulated/N64/ocarinaoftime.html +31 -0
- package/Games/emulated/SNES/donkeykongcountry.html +31 -0
- package/Games/emulated/SNES/donkeykongcountry2.html +30 -0
- package/Games/emulated/SNES/donkeykongcountry3.html +31 -0
- package/Games/emulated/SNES/linktothepast.html +31 -0
- package/Games/ruffle/bcubed.html +40 -0
- package/Games/ruffle/hobo.html +41 -0
- package/Games/ruffle/maxdirtbike.html +40 -0
- package/Games/ruffle/raftwars2.html +40 -0
- package/Games/ruffle/useboxmen.html +40 -0
- package/Games/ruffle/whackyourboss.html +40 -0
- package/Games/ruffle/whackyourex.html +40 -0
- package/Games/singlefile.html +2322 -54
- package/Games/standalone/amongus.html +1 -0
- package/Games/standalone/bendy.html +141 -0
- package/Games/standalone/chess.html +204 -0
- package/Games/standalone/gdremastered.html +247 -0
- package/Games/standalone/highwayracer3D.html +50 -0
- package/Games/standalone/omnomrun.html +45 -0
- package/Games/standalone/retrobowlcollege.html +0 -65
- package/Games/standalone/slope2player.html +76 -0
- package/Games/standalone/soniccd.html +229 -0
- package/Games/standalone/station141.html +25 -8
- package/Games/standalone/tanukisunset.html +19 -0
- package/Games/standalone/ultrakill.html +108 -0
- package/games.json +130 -3
- package/iframetrue.json +2622 -0
- package/index.html +298 -147
- package/package.json +2 -2
- package/singlefilegames.json +7 -0
- package/singleiframetrue.json +2581 -0
- package/start.html +25 -0
- package/test.html +132 -0
- package/port.html +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<base href="https://cdn.jsdelivr.net/gh/dskjfoisjfsjio/Standalone-games@main/omnomrun/">
|
|
5
|
+
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no' />
|
|
6
|
+
<meta charset='utf-8'>
|
|
7
|
+
<link rel="stylesheet" type="text/css" href="styles.css">
|
|
8
|
+
<link rel="manifest" href="manifest.json">
|
|
9
|
+
<style></style>
|
|
10
|
+
<title>Om Nom Run</title>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
window.famobi_gameID = "om-nom-run";
|
|
14
|
+
window.famobi_gameJS = [
|
|
15
|
+
"preloader.js",
|
|
16
|
+
"playcanvas-stable.min.js",
|
|
17
|
+
"__settings__.js",
|
|
18
|
+
"__modules__.js",
|
|
19
|
+
"__start__.js",
|
|
20
|
+
"__loading__.js",
|
|
21
|
+
function(){
|
|
22
|
+
}
|
|
23
|
+
];
|
|
24
|
+
(function (document, url, fgJS, firstJS) {
|
|
25
|
+
fgJS = document.createElement('script');
|
|
26
|
+
firstJS = document.getElementsByTagName('script')[0];
|
|
27
|
+
fgJS.src = url + encodeURIComponent(document.location.href);
|
|
28
|
+
firstJS.parentNode.insertBefore(fgJS, firstJS);
|
|
29
|
+
})(document, 'html5games/gameapi/v1.js?e=');
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
</head>
|
|
34
|
+
<body>
|
|
35
|
+
|
|
36
|
+
<div id="application-splash-wrapper">
|
|
37
|
+
<div id="application-splash">
|
|
38
|
+
<div id="loaderBar"></div>
|
|
39
|
+
<span id="loadingText">0%</span>
|
|
40
|
+
</div>
|
|
41
|
+
<img id="logo" src="img/logo.png">
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
</body>
|
|
45
|
+
</html>
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
3
|
<head>
|
|
7
|
-
|
|
8
|
-
<script src="/js/all.js"></script>
|
|
9
4
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
10
5
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
11
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
|
|
@@ -15,11 +10,6 @@
|
|
|
15
10
|
<base href="https://cdn.jsdelivr.net/gh/MDtowerz/retro-bowl-college@main/">
|
|
16
11
|
<link rel="icon" href="/assets/new%20logo.png">
|
|
17
12
|
<title>Retro Bowl College</title>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
13
|
<style>
|
|
24
14
|
body {
|
|
25
15
|
background: #000;
|
|
@@ -84,71 +74,24 @@
|
|
|
84
74
|
height: 100%;
|
|
85
75
|
}
|
|
86
76
|
</style>
|
|
87
|
-
|
|
88
|
-
<!-- Custom PostStyle code is injected here -->
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
<!-- Builtin injector for injecting flurry analytics code -->
|
|
92
|
-
<link rel="dns-prefetch" href="https://universal.wgplayer.com" />
|
|
93
|
-
|
|
94
|
-
<script type="text/javascript" async>
|
|
95
|
-
!function(e, t) {
|
|
96
|
-
var a = e.createElement("script"),
|
|
97
|
-
m = e.getElementsByTagName("script")[0];
|
|
98
|
-
|
|
99
|
-
a.async = 1;
|
|
100
|
-
a.src = t;
|
|
101
|
-
a.fetchPriority = 'high';
|
|
102
|
-
|
|
103
|
-
m.parentNode.insertBefore(a, m);
|
|
104
|
-
}(document, "https://universal.wgplayer.com/tag/?lh=" + window.location.hostname + "&wp=" + window.location.pathname + "&ws=" + window.location.search);
|
|
105
|
-
</script>
|
|
106
|
-
|
|
107
|
-
<script type="text/javascript">
|
|
108
|
-
(function(c,l,a,r,i,t,y){
|
|
109
|
-
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
|
|
110
|
-
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
|
|
111
|
-
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
|
|
112
|
-
})(window, document, "clarity", "script", "rojs7of1hu");
|
|
113
|
-
</script>
|
|
114
|
-
|
|
115
77
|
</head>
|
|
116
|
-
|
|
117
|
-
<!-- Custom PostHead code is injected here -->
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
<!-- Custom PreBody code is injected here -->
|
|
121
|
-
|
|
122
|
-
|
|
123
78
|
<body>
|
|
124
79
|
<div class="gm4html5_div_class" id="gm4html5_div_id">
|
|
125
80
|
|
|
126
|
-
<!-- Builtin injector for splash screen -->
|
|
127
81
|
<img src="html5game/splash.png" id="GM4HTML5_loadingscreen" alt="GameMaker:HTML5 loading screen"
|
|
128
82
|
style="display:none;" />
|
|
129
83
|
|
|
130
|
-
<!-- Create the canvas element the game draws to -->
|
|
131
84
|
<canvas id="canvas" width="853" height="480"
|
|
132
85
|
style="position: absolute; top: 50%; left: 50%; bottom: -50%; right: -50%; transform: translate(-50%, -50%);">
|
|
133
86
|
<p>Your browser doesn't support HTML5 canvas.</p>
|
|
134
87
|
</canvas>
|
|
135
88
|
</div>
|
|
136
89
|
|
|
137
|
-
<!-- Run the game code -->
|
|
138
90
|
<script type="text/javascript" src="html5game/RetroBowl.js"></script>
|
|
139
91
|
|
|
140
|
-
<!-- Builtin injector for injecting runner path -->
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
<!-- NO POKI -->
|
|
144
|
-
<!-- <script>window.onload = GameMaker_Init;</script> -->
|
|
145
|
-
|
|
146
|
-
<!-- YES POKI -->
|
|
147
|
-
<!-- Poki start -->
|
|
148
92
|
<script src="poki-sdk.js"></script>
|
|
149
93
|
<script>(function () {
|
|
150
94
|
function fin(ok) {
|
|
151
|
-
var _0x1918 = ['top', 'indexOf', 'aHR0cHM6Ly9wb2tpLmNvbS9zaXRlbG9jaw==', 'hostname', 'length', 'location', 'LnBva2ktZ2RuLmNvbQ==', '']; (function (_0x4a02b5, _0x5c0c3d) { var _0x56a85d = function (_0x375c0e) { while (--_0x375c0e) { _0x4a02b5['push'](_0x4a02b5['shift']()); } }; _0x56a85d(++_0x5c0c3d); }(_0x1918, 0x1ae)); var _0xcdc9 = function (_0x4a02b5, _0x5c0c3d) { _0x4a02b5 = _0x4a02b5 - 0x0; var _0x56a85d = _0x1918[_0x4a02b5]; return _0x56a85d; }; (function checkInit() { var _0x151adb = ['bG9jYWxob3N0', 'LnBva2kuY29t', _0xcdc9('0x0')]; var _0x219654 = ![]; var _0x558823 = window[_0xcdc9('0x7')][_0xcdc9('0x5')]; for (var _0x220888 = 0x0; _0x220888 < _0x151adb[_0xcdc9('0x6')]; _0x220888++) { var _0x4a2f49 = atob(_0x151adb[_0x220888]); if (_0x558823[_0xcdc9('0x3')](_0x4a2f49, _0x558823['length'] - _0x4a2f49['length']) !== -0x1) { _0x219654 = !![]; break; } } if (!_0x219654) { var _0xcff8e8 = _0xcdc9('0x4'); var _0x3296f7 = atob(_0xcff8e8); window['location'][_0xcdc9('0x1')] = _0x3296f7; this[_0xcdc9('0x2')][_0xcdc9('0x7')] !== this[_0xcdc9('0x7')] && (this[_0xcdc9('0x2')][_0xcdc9('0x7')] = this[_0xcdc9('0x7')]); } }());
|
|
152
95
|
window.PokiSDK_OK = ok;
|
|
153
96
|
GameMaker_Init();
|
|
154
97
|
}
|
|
@@ -167,13 +110,5 @@
|
|
|
167
110
|
});
|
|
168
111
|
})();
|
|
169
112
|
</script>
|
|
170
|
-
<!-- Poki end -->
|
|
171
|
-
|
|
172
|
-
<!-- Builtin injector for injecting google analytics code -->
|
|
173
|
-
|
|
174
|
-
|
|
175
113
|
</body>
|
|
176
|
-
|
|
177
|
-
<!-- Custom PostBody code is injected here -->
|
|
178
|
-
|
|
179
114
|
</html>
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en-us">
|
|
3
|
+
<head>
|
|
4
|
+
<title>Slope 2 </title>
|
|
5
|
+
<base href="https://cdn.jsdelivr.net/gh/dskjfoisjfsjio/Standalone-games@main/slope-2/">
|
|
6
|
+
<link rel="icon" type="image/png" href="/new logo.png">
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
9
|
+
<link rel="stylesheet" href="style.css" />
|
|
10
|
+
</head>
|
|
11
|
+
<body style="width: 100%; height: 100%; margin: 0;">
|
|
12
|
+
<div id="unity-container" style="width: 100%; height: 100%; margin: 0;" class="unity-desktop">
|
|
13
|
+
<canvas id="unity-canvas" style="width: 100%; height: 100%; margin: 0;"></canvas>
|
|
14
|
+
<div id="unity-loading-bar">
|
|
15
|
+
<div id="unity-logo"></div>
|
|
16
|
+
<div id="unity-progress-bar-empty">
|
|
17
|
+
<div id="unity-progress-bar-full"></div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div id="unity-mobile-warning">
|
|
21
|
+
WebGL builds are not supported on mobile devices.
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<script>
|
|
25
|
+
var buildUrl = "Build";
|
|
26
|
+
var loaderUrl = "WebGL2Players v1.1.loader.js";
|
|
27
|
+
var config = {
|
|
28
|
+
dataUrl: "WebGL2Players v1.1.data.unityweb",
|
|
29
|
+
frameworkUrl: "WebGL2Players v1.1.framework.js.unityweb",
|
|
30
|
+
codeUrl: "WebGL2Players v1.1.wasm.unityweb",
|
|
31
|
+
streamingAssetsUrl: "StreamingAssets",
|
|
32
|
+
companyName: "DefaultCompany",
|
|
33
|
+
productName: "Slope 2 Player",
|
|
34
|
+
productVersion: "1",
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var container = document.querySelector("#unity-container");
|
|
38
|
+
var canvas = document.querySelector("#unity-canvas");
|
|
39
|
+
var loadingBar = document.querySelector("#unity-loading-bar");
|
|
40
|
+
var progressBarFull = document.querySelector("#unity-progress-bar-full");
|
|
41
|
+
var fullscreenButton = document.querySelector("#unity-fullscreen-button");
|
|
42
|
+
var mobileWarning = document.querySelector("#unity-mobile-warning");
|
|
43
|
+
|
|
44
|
+
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
|
|
45
|
+
container.className = "unity-mobile";
|
|
46
|
+
// Avoid draining fillrate performance on mobile devices,
|
|
47
|
+
// and default/override low DPI mode on mobile browsers.
|
|
48
|
+
config.devicePixelRatio = 1;
|
|
49
|
+
mobileWarning.style.display = "block";
|
|
50
|
+
setTimeout(() => {
|
|
51
|
+
mobileWarning.style.display = "none";
|
|
52
|
+
}, 5000);
|
|
53
|
+
}
|
|
54
|
+
loadingBar.style.display = "block";
|
|
55
|
+
|
|
56
|
+
var script = document.createElement("script");
|
|
57
|
+
script.src = loaderUrl;
|
|
58
|
+
script.onload = () => {
|
|
59
|
+
createUnityInstance(canvas, config, (progress) => {
|
|
60
|
+
progressBarFull.style.width = 100 * progress + "%";
|
|
61
|
+
})
|
|
62
|
+
.then((unityInstance) => {
|
|
63
|
+
loadingBar.style.display = "none";
|
|
64
|
+
fullscreenButton.onclick = () => {
|
|
65
|
+
unityInstance.SetFullscreen(1);
|
|
66
|
+
};
|
|
67
|
+
})
|
|
68
|
+
.catch((message) => {
|
|
69
|
+
console.log(message);
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
document.body.appendChild(script);
|
|
73
|
+
</script>
|
|
74
|
+
<script defer src="sg.min.js"></script>
|
|
75
|
+
</body>
|
|
76
|
+
</html>
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<!-- May not work for all devices -->
|
|
3
|
+
<!--suppress HtmlFormInputWithoutLabel, JSDeprecatedSymbols -->
|
|
4
|
+
<html lang="en-us">
|
|
5
|
+
<head>
|
|
6
|
+
<base href="https://rawcdn.githack.com/TWS2401/Sonic-CD-WASM/main/">
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
9
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
10
|
+
<title>Sonic CD</title>
|
|
11
|
+
|
|
12
|
+
<link type="text/css" rel="stylesheet" href="css/fonts.css" />
|
|
13
|
+
<style type="text/css">
|
|
14
|
+
html, body {
|
|
15
|
+
font-family: arial, sans-serif;
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
background-color: #000;
|
|
22
|
+
text-align: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/*noinspection CssInvalidPropertyValue,CssOverwrittenProperties*/
|
|
26
|
+
canvas {
|
|
27
|
+
height: 100%;
|
|
28
|
+
margin: auto;
|
|
29
|
+
padding: 0;
|
|
30
|
+
border: 0 none;
|
|
31
|
+
background-color: #000;
|
|
32
|
+
-ms-interpolation-mode: nearest-neighbor;
|
|
33
|
+
image-rendering: optimizeSpeed;
|
|
34
|
+
image-rendering: -webkit-optimize-contrast;
|
|
35
|
+
image-rendering: -moz-crisp-edges;
|
|
36
|
+
image-rendering: -o-crisp-edges;
|
|
37
|
+
image-rendering: crisp-edges;
|
|
38
|
+
image-rendering: pixelated;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.spinner {
|
|
42
|
+
height: 30px;
|
|
43
|
+
width: 30px;
|
|
44
|
+
margin: 20px 0 0 20px;
|
|
45
|
+
display: inline-block;
|
|
46
|
+
vertical-align: top;
|
|
47
|
+
|
|
48
|
+
-webkit-animation: rotation .8s linear infinite;
|
|
49
|
+
-moz-animation: rotation .8s linear infinite;
|
|
50
|
+
-o-animation: rotation .8s linear infinite;
|
|
51
|
+
animation: rotation 0.8s linear infinite;
|
|
52
|
+
|
|
53
|
+
border-left: 5px solid rgb(235, 235, 235);
|
|
54
|
+
border-right: 5px solid rgb(235, 235, 235);
|
|
55
|
+
border-bottom: 5px solid rgb(235, 235, 235);
|
|
56
|
+
border-top: 5px solid rgb(120, 120, 120);
|
|
57
|
+
|
|
58
|
+
border-radius: 100%;
|
|
59
|
+
background-color: rgb(189, 215, 46);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@-webkit-keyframes rotation {
|
|
63
|
+
from {
|
|
64
|
+
-webkit-transform: rotate(0deg);
|
|
65
|
+
}
|
|
66
|
+
to {
|
|
67
|
+
-webkit-transform: rotate(360deg);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@-moz-keyframes rotation {
|
|
72
|
+
from {
|
|
73
|
+
-moz-transform: rotate(0deg);
|
|
74
|
+
}
|
|
75
|
+
to {
|
|
76
|
+
-moz-transform: rotate(360deg);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@-o-keyframes rotation {
|
|
81
|
+
from {
|
|
82
|
+
-o-transform: rotate(0deg);
|
|
83
|
+
}
|
|
84
|
+
to {
|
|
85
|
+
-o-transform: rotate(360deg);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@keyframes rotation {
|
|
90
|
+
from {
|
|
91
|
+
transform: rotate(0deg);
|
|
92
|
+
}
|
|
93
|
+
to {
|
|
94
|
+
transform: rotate(360deg);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
#status {
|
|
99
|
+
display: inline-block;
|
|
100
|
+
vertical-align: top;
|
|
101
|
+
margin-top: 30px;
|
|
102
|
+
margin-left: 20px;
|
|
103
|
+
font-weight: bold;
|
|
104
|
+
color: rgb(120, 120, 120);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
#progress {
|
|
108
|
+
height: 20px;
|
|
109
|
+
width: 300px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
#output {
|
|
113
|
+
width: 100%;
|
|
114
|
+
height: 200px;
|
|
115
|
+
margin: 10px auto 0;
|
|
116
|
+
border-left: 0;
|
|
117
|
+
border-right: 0;
|
|
118
|
+
padding-left: 0;
|
|
119
|
+
padding-right: 0;
|
|
120
|
+
display: block;
|
|
121
|
+
background-color: black;
|
|
122
|
+
color: white;
|
|
123
|
+
font-family: 'Lucida Console', Monaco, monospace;
|
|
124
|
+
outline: none;
|
|
125
|
+
}
|
|
126
|
+
</style>
|
|
127
|
+
</head>
|
|
128
|
+
<body>
|
|
129
|
+
<div class="spinner" id="spinner" style="display: none;"></div>
|
|
130
|
+
<div id="status" style="display: none;">Downloading...</div>
|
|
131
|
+
<progress id="progress" value="0" max="100" hidden="hidden"></progress>
|
|
132
|
+
<canvas id="canvas" onclick="window.focus();" oncontextmenu="event.preventDefault();"></canvas>
|
|
133
|
+
<textarea id="output" style="display: none;" rows="8"></textarea>
|
|
134
|
+
|
|
135
|
+
<script type="text/javascript">
|
|
136
|
+
if ('serviceWorker' in navigator) {
|
|
137
|
+
navigator.serviceWorker.register('sw.js').then(function(registration) {
|
|
138
|
+
registration.addEventListener('updatefound', function() {
|
|
139
|
+
var installingWorker = registration.installing;
|
|
140
|
+
console.log('A new service worker is being installed:', installingWorker);
|
|
141
|
+
});
|
|
142
|
+
}, function(err) {
|
|
143
|
+
console.log('ServiceWorker registration failed: ', err);
|
|
144
|
+
});
|
|
145
|
+
} else {
|
|
146
|
+
console.log('ServiceWorker not supported');
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
var statusElement = document.getElementById('status');
|
|
150
|
+
var progressElement = document.getElementById('progress');
|
|
151
|
+
var spinnerElement = document.getElementById('spinner');
|
|
152
|
+
|
|
153
|
+
var Module = {
|
|
154
|
+
preRun: [],
|
|
155
|
+
postRun: [],
|
|
156
|
+
print: (function () {
|
|
157
|
+
var element = document.getElementById('output');
|
|
158
|
+
if (element) element.value = ''; // clear browser cache
|
|
159
|
+
return function (text) {
|
|
160
|
+
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
|
|
161
|
+
// These replacements are necessary if you render to raw HTML
|
|
162
|
+
//text = text.replace(/&/g, "&");
|
|
163
|
+
//text = text.replace(/</g, "<");
|
|
164
|
+
//text = text.replace(/>/g, ">");
|
|
165
|
+
//text = text.replace('\n', '<br>', 'g');
|
|
166
|
+
console.log(text);
|
|
167
|
+
if (element) {
|
|
168
|
+
element.value += text + "\n";
|
|
169
|
+
element.scrollTop = element.scrollHeight; // focus on bottom
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
})(),
|
|
173
|
+
printErr: function (text) {
|
|
174
|
+
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
|
|
175
|
+
console.error(text);
|
|
176
|
+
},
|
|
177
|
+
canvas: (function () {
|
|
178
|
+
var canvas = document.getElementById('canvas');
|
|
179
|
+
|
|
180
|
+
// As a default initial behavior, pop up an alert when webgl context is lost. To make your
|
|
181
|
+
// application robust, you may want to override this behavior before shipping!
|
|
182
|
+
// See http://www.khronos.org/registry/webgl/specs/latest/1.0/#5.15.2
|
|
183
|
+
canvas.addEventListener("webglcontextlost", function (e) {
|
|
184
|
+
alert('WebGL context lost. You will need to reload the page.');
|
|
185
|
+
e.preventDefault();
|
|
186
|
+
}, false);
|
|
187
|
+
|
|
188
|
+
return canvas;
|
|
189
|
+
})(),
|
|
190
|
+
setStatus: function (text) {
|
|
191
|
+
if (!Module.setStatus.last) Module.setStatus.last = {time: Date.now(), text: ''};
|
|
192
|
+
if (text === Module.setStatus.last.text) return;
|
|
193
|
+
var m = text.match(/([^(]+)\((\d+(\.\d+)?)\/(\d+)\)/);
|
|
194
|
+
var now = Date.now();
|
|
195
|
+
if (m && now - Module.setStatus.last.time < 30) return; // if this is a progress update, skip it if too soon
|
|
196
|
+
Module.setStatus.last.time = now;
|
|
197
|
+
Module.setStatus.last.text = text;
|
|
198
|
+
if (m) {
|
|
199
|
+
text = m[1];
|
|
200
|
+
progressElement.value = parseInt(m[2]) * 100;
|
|
201
|
+
progressElement.max = parseInt(m[4]) * 100;
|
|
202
|
+
progressElement.hidden = false;
|
|
203
|
+
spinnerElement.hidden = false;
|
|
204
|
+
} else {
|
|
205
|
+
progressElement.value = null;
|
|
206
|
+
progressElement.max = null;
|
|
207
|
+
progressElement.hidden = true;
|
|
208
|
+
if (!text) spinnerElement.style.display = 'none';
|
|
209
|
+
}
|
|
210
|
+
statusElement.innerHTML = text;
|
|
211
|
+
},
|
|
212
|
+
totalDependencies: 0,
|
|
213
|
+
monitorRunDependencies: function (left) {
|
|
214
|
+
this.totalDependencies = Math.max(this.totalDependencies, left);
|
|
215
|
+
Module.setStatus(left ? 'Preparing... (' + (this.totalDependencies - left) + '/' + this.totalDependencies + ')' : 'All downloads complete.');
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
Module.setStatus('Downloading...');
|
|
219
|
+
window.onerror = function () {
|
|
220
|
+
Module.setStatus('Exception thrown, see JavaScript console');
|
|
221
|
+
spinnerElement.style.display = 'none';
|
|
222
|
+
Module.setStatus = function (text) {
|
|
223
|
+
if (text) Module.printErr('[post-exception status] ' + text);
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
</script>
|
|
227
|
+
<script async="async" defer="defer" type="text/javascript" src="index.js"></script>
|
|
228
|
+
</body>
|
|
229
|
+
</html>
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
6
|
<title>Station 141</title>
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
<link rel="icon" href="/assets/new%20logo.png">
|
|
8
|
+
<base href="https://raw.githack.com/dskjfoisjfsjio/Standalone-games/main/station-141/">
|
|
9
9
|
|
|
10
10
|
<link rel="stylesheet" href="TemplateData/style.css" />
|
|
11
11
|
<script src="TemplateData/UnityProgress.js"></script>
|
|
@@ -13,15 +13,32 @@
|
|
|
13
13
|
<script>
|
|
14
14
|
var unityInstance = UnityLoader.instantiate("unityContainer", "Build/WebGL.json", { onProgress: UnityProgress });
|
|
15
15
|
</script>
|
|
16
|
+
|
|
17
|
+
<style>
|
|
18
|
+
/* This forces the body and container to take up 100% of the screen */
|
|
19
|
+
body, html {
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
overflow: hidden; /* Prevents scrollbars */
|
|
25
|
+
background-color: #000; /* Black background for a clean look */
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
#unityContainer {
|
|
29
|
+
width: 100vw !important;
|
|
30
|
+
height: 100vh !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.webgl-content {
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
}
|
|
37
|
+
</style>
|
|
16
38
|
</head>
|
|
17
39
|
<body>
|
|
18
40
|
<div class="webgl-content">
|
|
19
|
-
<div id="unityContainer"
|
|
20
|
-
<div class="footer">
|
|
21
|
-
<div class="webgl-logo"></div>
|
|
22
|
-
<div class="fullscreen" onclick="unityInstance.SetFullscreen(1)"></div>
|
|
23
|
-
<div class="title">Station 141</div>
|
|
24
|
-
</div>
|
|
41
|
+
<div id="unityContainer"></div>
|
|
25
42
|
</div>
|
|
26
43
|
</body>
|
|
27
44
|
</html>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<base href="https://raw.githack.com/dskjfoisjfsjio/Standalone-games/main/tanuki-sunset/">
|
|
5
|
+
<title>Tanuki Sunset</title>
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<link rel="stylesheet" href="css/style.css" />
|
|
8
|
+
<link rel="icon" type="image/x-icon" href="/new logo.png" />
|
|
9
|
+
<script src="js/UnityLoader.js"></script>
|
|
10
|
+
<script>
|
|
11
|
+
var gameInstance = UnityLoader.instantiate("gameContainer", "tanuki.json");
|
|
12
|
+
</script>
|
|
13
|
+
</head>
|
|
14
|
+
<body style="margin: 0; overflow: hidden;">
|
|
15
|
+
<div class="webgl-content">
|
|
16
|
+
<div id="gameContainer" style="width: 100%; height: 100%; margin: 0;"></div>
|
|
17
|
+
</div>
|
|
18
|
+
</body>
|
|
19
|
+
</html>
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en-us">
|
|
3
|
+
|
|
4
|
+
<!-- GN math version -->
|
|
5
|
+
|
|
6
|
+
<head>
|
|
7
|
+
<base href="https://cdn.jsdelivr.net/gh/genizy/web-port@master/ultrakill/">
|
|
8
|
+
<meta charset="utf-8">
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
10
|
+
<title>ULTRAKILL</title>
|
|
11
|
+
<link rel="icon" href="/new logo.png">
|
|
12
|
+
<style>
|
|
13
|
+
html,
|
|
14
|
+
body {
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
height: 100%;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
#unity-container {
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
position: fixed;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
}
|
|
29
|
+
</style>
|
|
30
|
+
</head>
|
|
31
|
+
|
|
32
|
+
<body style="text-align: center; padding: 0; border: 0; margin: 0;">
|
|
33
|
+
<div id='loading-text' style="color: black; font-family: cursive; font-size: 48px; text-align: center; margin-top: 20px;">LOADING...</div>
|
|
34
|
+
<canvas id="unity-canvas" tabindex="-1" hidden></canvas>
|
|
35
|
+
<script src="Build/ultrakill.loader.js"></script>
|
|
36
|
+
<script>
|
|
37
|
+
var canvas = document.querySelector("#unity-canvas");
|
|
38
|
+
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
|
|
39
|
+
// Mobile device style: fill the whole browser client area with the game canvas:
|
|
40
|
+
var meta = document.createElement('meta');
|
|
41
|
+
meta.name = 'viewport';
|
|
42
|
+
meta.content = 'width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes';
|
|
43
|
+
document.getElementsByTagName('head')[0].appendChild(meta);
|
|
44
|
+
canvas.style.width = "100%";
|
|
45
|
+
canvas.style.height = "100%";
|
|
46
|
+
canvas.style.position = "fixed";
|
|
47
|
+
document.body.style.textAlign = "left";
|
|
48
|
+
} else {
|
|
49
|
+
function resizeCanvas() {
|
|
50
|
+
canvas.width = window.innerWidth;
|
|
51
|
+
canvas.height = window.innerHeight;
|
|
52
|
+
canvas.style.width = window.innerWidth + "px";
|
|
53
|
+
canvas.style.height = window.innerHeight + "px";
|
|
54
|
+
}
|
|
55
|
+
resizeCanvas();
|
|
56
|
+
window.addEventListener('resize', resizeCanvas);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function mergeFiles(fileParts) {
|
|
60
|
+
return new Promise((resolve, reject) => {
|
|
61
|
+
let buffers = [];
|
|
62
|
+
|
|
63
|
+
function fetchPart(index) {
|
|
64
|
+
if (index >= fileParts.length) {
|
|
65
|
+
let mergedBlob = new Blob(buffers);
|
|
66
|
+
let mergedFileUrl = URL.createObjectURL(mergedBlob);
|
|
67
|
+
resolve(mergedFileUrl);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
fetch(fileParts[index]).then((response) => response.arrayBuffer()).then((data) => {
|
|
71
|
+
buffers.push(data);
|
|
72
|
+
fetchPart(index + 1);
|
|
73
|
+
}).catch(reject);
|
|
74
|
+
}
|
|
75
|
+
fetchPart(0);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function getParts(file, start, end) {
|
|
80
|
+
let parts = [];
|
|
81
|
+
for (let i = start; i <= end; i++) {
|
|
82
|
+
parts.push(file + ".part" + i);
|
|
83
|
+
}
|
|
84
|
+
return parts;
|
|
85
|
+
}
|
|
86
|
+
Promise.all([
|
|
87
|
+
mergeFiles(getParts("Build/ultrakill.data.unityweb", 1, 4)),
|
|
88
|
+
mergeFiles(getParts("Build/ultrakill.wasm.unityweb", 1, 2))
|
|
89
|
+
]).then(([dataUrl, wasmurl]) => {
|
|
90
|
+
document.querySelector("#unity-canvas").hidden = false;
|
|
91
|
+
createUnityInstance(document.querySelector("#unity-canvas"), {
|
|
92
|
+
dataUrl: dataUrl,
|
|
93
|
+
frameworkUrl: "Build/ultrakill.framework.js.unityweb",
|
|
94
|
+
codeUrl: wasmurl,
|
|
95
|
+
streamingAssetsUrl: "StreamingAssets",
|
|
96
|
+
companyName: "Hakita and Cake Logic",
|
|
97
|
+
productName: "ULTRAKILL",
|
|
98
|
+
productVersion: "1.4",
|
|
99
|
+
// matchWebGLToCanvasSize: false, // Uncomment this to separately control WebGL canvas render size and DOM element size.
|
|
100
|
+
// devicePixelRatio: 1, // Uncomment this to override low DPI rendering on high DPI displays.
|
|
101
|
+
}).then((e) => {
|
|
102
|
+
document.querySelector("#loading-text").remove();
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
</script>
|
|
106
|
+
</body>
|
|
107
|
+
|
|
108
|
+
</html>
|