Merge pull request 'more games' (#18) from selenite/pages:main into main
Reviewed-on: https://codeberg.org/skysthelimitt/selenite/pulls/18
@ -1,4 +1,49 @@
|
||||
[
|
||||
{
|
||||
"name": "Counter Strike: DS",
|
||||
"image": "cover.svg",
|
||||
"directory": "cds"
|
||||
},
|
||||
{
|
||||
"name": "Terri-Fried",
|
||||
"image": "cover.svg",
|
||||
"directory": "terrifried"
|
||||
},
|
||||
{
|
||||
"name": "Geometry Dash Remastered",
|
||||
"image": "cover.svg",
|
||||
"directory": "geodashrm"
|
||||
},
|
||||
{
|
||||
"name": "The Minions: Resurrection",
|
||||
"image": "cover.svg",
|
||||
"directory": "minion"
|
||||
},
|
||||
{
|
||||
"name": "Geometry Dash Sky",
|
||||
"image": "cover.svg",
|
||||
"directory": "geodashsky"
|
||||
},
|
||||
{
|
||||
"name": "Drift Mania",
|
||||
"image": "cover.svg",
|
||||
"directory": "drift"
|
||||
},
|
||||
{
|
||||
"name": "Dashy Reaper",
|
||||
"image": "cover.svg",
|
||||
"directory": "dashy"
|
||||
},
|
||||
{
|
||||
"name": "Driving Force 4",
|
||||
"image": "cover.svg",
|
||||
"directory": "driving"
|
||||
},
|
||||
{
|
||||
"name": "Bullet Fury",
|
||||
"image": "cover.svg",
|
||||
"directory": "bulletfury"
|
||||
},
|
||||
{
|
||||
"name": "Minecraft Games",
|
||||
"image": "cover.svg",
|
||||
|
3
semag/bulletfury/cover.svg
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
semag/bulletfury/game.swf
Normal file
2
semag/bulletfury/index.html
Normal file
@ -0,0 +1,2 @@
|
||||
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
|
||||
<embed src="game.swf" width="100%" height="100%"></embed>
|
BIN
semag/cds/counter_strike.nds
Normal file
4
semag/cds/cover.svg
Normal file
After Width: | Height: | Size: 360 KiB |
1
semag/cds/credit
Normal file
@ -0,0 +1 @@
|
||||
https://fewnity.itch.io/
|
20
semag/cds/index.html
Normal file
3
semag/dashy/cover.svg
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
semag/dashy/game.swf
Normal file
2
semag/dashy/index.html
Normal file
@ -0,0 +1,2 @@
|
||||
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
|
||||
<embed src="game.swf" width="100%" height="100%"></embed>
|
3
semag/drift/cover.svg
Normal file
After Width: | Height: | Size: 6.5 KiB |
157
semag/drift/driftmania.js
Normal file
7
semag/drift/favicon.ico
Normal file
@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<head><title>404 Not Found</title></head>
|
||||
<body>
|
||||
<center><h1>404 Not Found</h1></center>
|
||||
<hr><center>nginx/1.20.1</center>
|
||||
</body>
|
||||
</html>
|
1243
semag/drift/index.html
Normal file
3
semag/driving/cover.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
|
||||
<image href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEALgAuAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCABkAGQDASIAAhEBAxEB/8QAHAAAAQUBAQEAAAAAAAAAAAAABQADBAYHAgEI/8QANxAAAgEDAwIFAgQFAwUBAAAAAQIDAAQRBRIhEzEGByJBUWFxFCOBkRUyobHBCDNCFiRSY9Hh/8QAGQEAAgMBAAAAAAAAAAAAAAAAAQMAAgQF/8QAKhEAAgIBBAAFAgcAAAAAAAAAAAECEQMEEiExBRNBUXFh8AYiI4GRscH/2gAMAwEAAhEDEQA/AKb5RXFlH5j6S91cJBGDNuld8Afkv3qr20sPVXYcYPz3qHIYxgKx3fenLbpF1wxzn3NKKUFrmVGiBO4kMCD/AHqM0yiJRvYBaenMZt2HPA4xQyUyfxCFVE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5/lFX85A2lCgQSPt/tUhLF35TruMhfSpIyewq+2VhYQsuIY157he1H9JvJ9LjnXTbiW1E8ZilER2iRPggdxUeb6E2lF8N6I6sbm6RkVeERhyfk1YJOmFK/Ax2qXPIO3b9MVDYK798fekSludjG2+xg7Xw2QOPilXskGxyFLMDzwOKVAA/e28ccm1NwHHv8ASure3iMLOQSQQO/ycUqVH0IS9MVeo0ZGV2k9/g4/zUuUjpTZUHYrMCe5P1pUqo+yIgKgP4fuOorBsfTFcSgLMMf8hgn9aVKrIgiihV4zke9MgD4HelSokJMUaHnFEYo0Eedo7UqVBkGXhikQsyDI+KHzRonIHvSpVCDbHDEYH7UqVKoQ/9k=" height="200" width="200" />
|
||||
</svg>
|
After Width: | Height: | Size: 4.2 KiB |
BIN
semag/driving/game.swf
Normal file
2
semag/driving/index.html
Normal file
@ -0,0 +1,2 @@
|
||||
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
|
||||
<embed src="game.swf" width="100%" height="100%"></embed>
|
3
semag/geodashrm/cover.svg
Normal file
After Width: | Height: | Size: 47 KiB |
772
semag/geodashrm/gdr.js
Normal file
BIN
semag/geodashrm/gdr.pck
Normal file
BIN
semag/geodashrm/gdr.wasm
Normal file
2587
semag/geodashrm/howler.core.js
Normal file
305
semag/geodashrm/index.html
Normal file
@ -0,0 +1,305 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns='http://www.w3.org/1999/xhtml' lang='' xml:lang=''>
|
||||
<head>
|
||||
<meta charset='utf-8' />
|
||||
<meta name='viewport' content='width=device-width, user-scalable=no' />
|
||||
<link id='-gd-engine-icon' rel='icon' type='image/png' href='favicon.png' />
|
||||
<title>GD remastered</title>
|
||||
<style type='text/css'>
|
||||
|
||||
body {
|
||||
touch-action: none;
|
||||
margin: 0;
|
||||
border: 0 none;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
#canvas {
|
||||
display: block;
|
||||
margin: 0;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#canvas:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.godot {
|
||||
font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif;
|
||||
color: #e0e0e0;
|
||||
background-color: #3b3943;
|
||||
background-image: linear-gradient(to bottom, #403e48, #35333c);
|
||||
border: 1px solid #45434e;
|
||||
box-shadow: 0 0 1px 1px #2f2d35;
|
||||
}
|
||||
|
||||
|
||||
/* Status display
|
||||
* ============== */
|
||||
|
||||
#status {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
/* don't consume click events - make children visible explicitly */
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
#status-progress {
|
||||
width: 366px;
|
||||
height: 7px;
|
||||
background-color: #38363A;
|
||||
border: 1px solid #444246;
|
||||
padding: 1px;
|
||||
box-shadow: 0 0 2px 1px #1B1C22;
|
||||
border-radius: 2px;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
@media only screen and (orientation:portrait) {
|
||||
#status-progress {
|
||||
width: 61.8%;
|
||||
}
|
||||
}
|
||||
|
||||
#status-progress-inner {
|
||||
height: 100%;
|
||||
width: 0;
|
||||
box-sizing: border-box;
|
||||
transition: width 0.5s linear;
|
||||
background-color: #202020;
|
||||
border: 1px solid #222223;
|
||||
box-shadow: 0 0 1px 1px #27282E;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
#status-indeterminate {
|
||||
visibility: visible;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#status-indeterminate > div {
|
||||
width: 4.5px;
|
||||
height: 0;
|
||||
border-style: solid;
|
||||
border-width: 9px 3px 0 3px;
|
||||
border-color: #2b2b2b transparent transparent transparent;
|
||||
transform-origin: center 21px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
#status-indeterminate > div:nth-child(1) { transform: rotate( 22.5deg); }
|
||||
#status-indeterminate > div:nth-child(2) { transform: rotate( 67.5deg); }
|
||||
#status-indeterminate > div:nth-child(3) { transform: rotate(112.5deg); }
|
||||
#status-indeterminate > div:nth-child(4) { transform: rotate(157.5deg); }
|
||||
#status-indeterminate > div:nth-child(5) { transform: rotate(202.5deg); }
|
||||
#status-indeterminate > div:nth-child(6) { transform: rotate(247.5deg); }
|
||||
#status-indeterminate > div:nth-child(7) { transform: rotate(292.5deg); }
|
||||
#status-indeterminate > div:nth-child(8) { transform: rotate(337.5deg); }
|
||||
|
||||
#status-notice {
|
||||
margin: 0 100px;
|
||||
line-height: 1.3;
|
||||
visibility: visible;
|
||||
padding: 4px 6px;
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<canvas id='canvas'>
|
||||
HTML5 canvas appears to be unsupported in the current browser.<br />
|
||||
Please try updating or use a different browser.
|
||||
</canvas>
|
||||
<div id='status'>
|
||||
<div id='status-progress' style='display: none;' oncontextmenu='event.preventDefault();'><div id ='status-progress-inner'></div></div>
|
||||
<div id='status-indeterminate' style='display: none;' oncontextmenu='event.preventDefault();'>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<div id='status-notice' class='godot' style='display: none;'></div>
|
||||
</div>
|
||||
|
||||
<script type='text/javascript' src='gdr.js'></script>
|
||||
<script type='text/javascript' src='howler.core.js'></script>
|
||||
<script type='text/javascript'>//<![CDATA[
|
||||
|
||||
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"executable":"gdr","experimentalVK":false,"fileSizes":{"gdr.pck":1165376,"gdr.wasm":18131449},"gdnativeLibs":[]};
|
||||
var engine = new Engine(GODOT_CONFIG);
|
||||
|
||||
var wad = new Howl({src: ['Music/Within_a_Dream.ogg'], loop: false});
|
||||
var tss = new Howl({src: ['Music/The_Seven_Seas.ogg'], loop: false});
|
||||
var hyp = new Howl({src: ['Music/Hypnotized.ogg'], loop: false});
|
||||
var arr = new Howl({src: ['Music/Airborne_Robots.ogg'], loop: false});
|
||||
var vka = new Howl({src: ['Music/Viking_Arena.ogg'], loop: false});
|
||||
var ccat = new Howl({src: ['Music/Cycles_Catconet.ogg'], loop: false});
|
||||
|
||||
var logo = new Howl({src: ['Sound/logo.wav'], rate: 0.8});
|
||||
var sound1 = new Howl({src: ['Sound/sound_1.wav']});
|
||||
var sound2 = new Howl({src: ['Sound/sound_2.wav']});
|
||||
|
||||
var track_id = new Array(2);
|
||||
var track_time = 0;
|
||||
|
||||
function play_music(track, index) {
|
||||
if (!track.playing()) {
|
||||
track_id[index] = track.play();
|
||||
}
|
||||
}
|
||||
|
||||
function stop_music(track) {
|
||||
track.stop();
|
||||
}
|
||||
|
||||
function toggle_music(track, index) {
|
||||
if (!track.playing()) {
|
||||
track.play();
|
||||
track.seek(track_time, track_id[index]);
|
||||
} else {
|
||||
track.pause(track_id[index]);
|
||||
track_time = track.seek(track_id[index]);
|
||||
}
|
||||
}
|
||||
|
||||
function pause_music(track, index) {
|
||||
if (track.playing()) {
|
||||
track.pause(track_id[index]);
|
||||
track_time = track.seek(track_id[index]);
|
||||
}
|
||||
}
|
||||
|
||||
function unpause_music(track, index) {
|
||||
if (!track.playing()) {
|
||||
track.play();
|
||||
track.seek(track_time, track_id[index]);
|
||||
}
|
||||
}
|
||||
|
||||
function set_music_volume(track, value, index) {
|
||||
track.volume(value, track_id[index]);
|
||||
}
|
||||
|
||||
function fade_music(track, from, to, duration, index) {
|
||||
track.fade(from, to, duration, track_id[index]);
|
||||
}
|
||||
|
||||
console.log('CONSOLE OK');
|
||||
|
||||
(function() {
|
||||
const INDETERMINATE_STATUS_STEP_MS = 100;
|
||||
var statusProgress = document.getElementById('status-progress');
|
||||
var statusProgressInner = document.getElementById('status-progress-inner');
|
||||
var statusIndeterminate = document.getElementById('status-indeterminate');
|
||||
var statusNotice = document.getElementById('status-notice');
|
||||
|
||||
var initializing = true;
|
||||
var statusMode = 'hidden';
|
||||
|
||||
var animationCallbacks = [];
|
||||
function animate(time) {
|
||||
animationCallbacks.forEach(callback => callback(time));
|
||||
requestAnimationFrame(animate);
|
||||
}
|
||||
requestAnimationFrame(animate);
|
||||
|
||||
function setStatusMode(mode) {
|
||||
|
||||
if (statusMode === mode || !initializing)
|
||||
return;
|
||||
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
|
||||
elem.style.display = 'none';
|
||||
});
|
||||
animationCallbacks = animationCallbacks.filter(function(value) {
|
||||
return (value != animateStatusIndeterminate);
|
||||
});
|
||||
switch (mode) {
|
||||
case 'progress':
|
||||
statusProgress.style.display = 'block';
|
||||
break;
|
||||
case 'indeterminate':
|
||||
statusIndeterminate.style.display = 'block';
|
||||
animationCallbacks.push(animateStatusIndeterminate);
|
||||
break;
|
||||
case 'notice':
|
||||
statusNotice.style.display = 'block';
|
||||
break;
|
||||
case 'hidden':
|
||||
break;
|
||||
default:
|
||||
throw new Error('Invalid status mode');
|
||||
}
|
||||
statusMode = mode;
|
||||
}
|
||||
|
||||
function animateStatusIndeterminate(ms) {
|
||||
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8);
|
||||
if (statusIndeterminate.children[i].style.borderTopColor == '') {
|
||||
Array.prototype.slice.call(statusIndeterminate.children).forEach(child => {
|
||||
child.style.borderTopColor = '';
|
||||
});
|
||||
statusIndeterminate.children[i].style.borderTopColor = '#dfdfdf';
|
||||
}
|
||||
}
|
||||
|
||||
function setStatusNotice(text) {
|
||||
while (statusNotice.lastChild) {
|
||||
statusNotice.removeChild(statusNotice.lastChild);
|
||||
}
|
||||
var lines = text.split('\n');
|
||||
lines.forEach((line) => {
|
||||
statusNotice.appendChild(document.createTextNode(line));
|
||||
statusNotice.appendChild(document.createElement('br'));
|
||||
});
|
||||
};
|
||||
|
||||
function displayFailureNotice(err) {
|
||||
var msg = err.message || err;
|
||||
console.error(msg);
|
||||
setStatusNotice(msg);
|
||||
setStatusMode('notice');
|
||||
initializing = false;
|
||||
};
|
||||
|
||||
if (!Engine.isWebGLAvailable()) {
|
||||
displayFailureNotice('WebGL not available');
|
||||
} else {
|
||||
setStatusMode('indeterminate');
|
||||
engine.startGame({
|
||||
'onProgress': function (current, total) {
|
||||
if (total > 0) {
|
||||
statusProgressInner.style.width = current/total * 100 + '%';
|
||||
setStatusMode('progress');
|
||||
if (current === total) {
|
||||
// wait for progress bar animation
|
||||
setTimeout(() => {
|
||||
setStatusMode('indeterminate');
|
||||
}, 500);
|
||||
}
|
||||
} else {
|
||||
setStatusMode('indeterminate');
|
||||
}
|
||||
},
|
||||
}).then(() => {
|
||||
setStatusMode('hidden');
|
||||
initializing = false;
|
||||
}, displayFailureNotice);
|
||||
}
|
||||
})();
|
||||
//]]></script>
|
||||
</body>
|
||||
</html>
|
||||
|
1
semag/geodashsky/Polk%20V1.0.icon.png
Normal file
@ -0,0 +1 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?><Error><Code>AccessDenied</Code><Message>Access denied.</Message><Details>Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object. Permission 'storage.objects.get' denied on resource (or it may not exist).</Details></Error>
|
1
semag/geodashsky/Polk%20V1.0.manifest.json
Normal file
@ -0,0 +1 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?><Error><Code>AccessDenied</Code><Message>Access denied.</Message><Details>Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object. Permission 'storage.objects.get' denied on resource (or it may not exist).</Details></Error>
|
3
semag/geodashsky/cover.svg
Normal file
After Width: | Height: | Size: 35 KiB |
1
semag/geodashsky/credit
Normal file
@ -0,0 +1 @@
|
||||
https://itch.io/profile/alimad
|
BIN
semag/geodashsky/index.apple-touch-icon.png
Normal file
After Width: | Height: | Size: 20 KiB |
452
semag/geodashsky/index.html
Normal file
@ -0,0 +1,452 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns='http://www.w3.org/1999/xhtml' lang='' xml:lang=''>
|
||||
<head>
|
||||
<meta charset='utf-8' />
|
||||
<meta name='viewport' content='width=device-width, user-scalable=no' />
|
||||
<title>Geometry Dash Sky</title>
|
||||
<style type='text/css'>
|
||||
|
||||
body {
|
||||
touch-action: none;
|
||||
margin: 0;
|
||||
border: 0 none;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
.background {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-size: cover;
|
||||
z-index: -2;
|
||||
}
|
||||
#canvas {
|
||||
display: block;
|
||||
margin: 0;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#canvas:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.godot {
|
||||
font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif;
|
||||
color: #e0e0e0;
|
||||
background-color: #3b3943;
|
||||
background-image: linear-gradient(to bottom, #403e48, #35333c);
|
||||
border: 1px solid #45434e;
|
||||
box-shadow: 0 0 1px 1px #2f2d35;
|
||||
}
|
||||
|
||||
|
||||
/* Status display
|
||||
* ============== */
|
||||
|
||||
#status {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
/* don't consume click events - make children visible explicitly */
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
#status-progress {
|
||||
width: 500px;
|
||||
height: 12px;
|
||||
background-color: #00000000;
|
||||
border: 3px solid #ffffff;
|
||||
padding: 1px;
|
||||
border-radius: 12px;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
@media only screen and (orientation:portrait) {
|
||||
#status-progress {
|
||||
width: 61.8%;
|
||||
}
|
||||
}
|
||||
|
||||
#status-progress-inner {
|
||||
|
||||
height: 1px;
|
||||
width: 0%;
|
||||
box-sizing: border-box;
|
||||
transition: width 0.4s linear;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #00000000;
|
||||
border-radius: 5px;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
transform: translate(2px, 2px);
|
||||
}
|
||||
|
||||
#status-indeterminate {
|
||||
height: 42px;
|
||||
visibility: visible;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#status-indeterminate > div {
|
||||
width: 4.5px;
|
||||
height: 0;
|
||||
border-style: solid;
|
||||
border-width: 9px 3px 0 3px;
|
||||
border-color: #2b2b2b transparent transparent transparent;
|
||||
transform-origin: center 21px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
#status-indeterminate > div:nth-child(1) { transform: rotate( 22.5deg); }
|
||||
#status-indeterminate > div:nth-child(2) { transform: rotate( 67.5deg); }
|
||||
#status-indeterminate > div:nth-child(3) { transform: rotate(112.5deg); }
|
||||
#status-indeterminate > div:nth-child(4) { transform: rotate(157.5deg); }
|
||||
#status-indeterminate > div:nth-child(5) { transform: rotate(202.5deg); }
|
||||
#status-indeterminate > div:nth-child(6) { transform: rotate(247.5deg); }
|
||||
#status-indeterminate > div:nth-child(7) { transform: rotate(292.5deg); }
|
||||
#status-indeterminate > div:nth-child(8) { transform: rotate(337.5deg); }
|
||||
|
||||
#status-notice {
|
||||
margin: 0 100px;
|
||||
line-height: 1.3;
|
||||
visibility: visible;
|
||||
padding: 4px 6px;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
#loading-header {
|
||||
position: absolute;
|
||||
top: 39%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
font-size: 24px;
|
||||
font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
|
||||
color: white;
|
||||
}
|
||||
#loading-footer {
|
||||
position: absolute;
|
||||
top: 55%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
font-size: 24px;
|
||||
font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
<link id='-gd-engine-icon' rel='icon' type='image/png' href='Polk V1.0.icon.png' />
|
||||
<link rel='apple-touch-icon' href='Polk V1.0.apple-touch-icon.png'/>
|
||||
<link rel='manifest' href='Polk V1.0.manifest.json'>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="background"></div>
|
||||
<div id='loading-header'><b>Alimad Interactive Entertainment<b></div>
|
||||
<div id='loading-footer'><b>Downoading, Please Stand By.</b></div>
|
||||
<canvas id='canvas'>
|
||||
HTML5 canvas appears to be unsupported in the current browser.<br />
|
||||
Please try updating or use a different browser.
|
||||
</canvas>
|
||||
<div id='status'>
|
||||
<div id='status-progress' style='display: none;' oncontextmenu='event.preventDefault();'><div id ='status-progress-inner'></div></div>
|
||||
<div id='status-indeterminate' style='display: none;' oncontextmenu='event.preventDefault();'>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<div id='status-notice' class='godot' style='display: none;'></div>
|
||||
</div>
|
||||
|
||||
<script type='text/javascript' src='index.js'></script>
|
||||
<script type='text/javascript'>//<![CDATA[
|
||||
|
||||
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":11516880,"index.wasm":26059464},"focusCanvas":true,"gdnativeLibs":[],"serviceWorker":"index.service.worker.js"};
|
||||
var engine = new Engine(GODOT_CONFIG);
|
||||
|
||||
const Background = document.querySelector('.background');
|
||||
let rotation = 0;
|
||||
const rotationSpeed = -2; // Change this value to control the rotation speed
|
||||
function rotateBackground() {
|
||||
rotation += rotationSpeed;
|
||||
Background.style.transform = `rotate(${rotation}deg) scale(${4.4})`;
|
||||
requestAnimationFrame(rotateBackground);
|
||||
}
|
||||
|
||||
rotateBackground();
|
||||
// Function to generate a random hue
|
||||
|
||||
let currentHue = getRandomHue();
|
||||
let animationRequestId = null;
|
||||
|
||||
function getRandomHue() {
|
||||
return Math.floor(Math.random() * 360);
|
||||
}
|
||||
|
||||
function animateColorChange(timestamp) {
|
||||
if (!animationRequestId) {
|
||||
animationRequestId = timestamp;
|
||||
}
|
||||
|
||||
const background = document.querySelector('.background');
|
||||
const currentTime = timestamp || performance.now();
|
||||
const duration = 5000; // Duration of the animation in milliseconds
|
||||
|
||||
function updateColor(currentTime) {
|
||||
const startTime = animationRequestId;
|
||||
const elapsed = currentTime - startTime;
|
||||
const progress = (elapsed % duration) / duration;
|
||||
|
||||
const currentHueShift = 30 * Math.sin(2 * Math.PI * progress);
|
||||
const currentColor = (currentHue + currentHueShift + 360) % 360;
|
||||
background.style.backgroundImage = `radial-gradient(at 40% 25%, hsl(${currentColor}, 100%, 90%), hsl(${(currentColor + 110) % 360}, 100%, 50%) 50%)`;
|
||||
|
||||
animationRequestId = requestAnimationFrame(updateColor);
|
||||
}
|
||||
|
||||
requestAnimationFrame(updateColor);
|
||||
}
|
||||
|
||||
// Call the function when the page loads
|
||||
window.addEventListener('load', () => {
|
||||
animateColorChange();
|
||||
});
|
||||
(function() {
|
||||
const INDETERMINATE_STATUS_STEP_MS = 100;
|
||||
var statusProgress = document.getElementById('status-progress');
|
||||
var statusProgressInner = document.getElementById('status-progress-inner');
|
||||
var statusIndeterminate = document.getElementById('status-indeterminate');
|
||||
var statusNotice = document.getElementById('status-notice');
|
||||
|
||||
var initializing = true;
|
||||
var statusMode = 'hidden';
|
||||
|
||||
var animationCallbacks = [];
|
||||
function animate(time) {
|
||||
animationCallbacks.forEach(callback => callback(time));
|
||||
requestAnimationFrame(animate);
|
||||
}
|
||||
requestAnimationFrame(animate);
|
||||
|
||||
function setStatusMode(mode) {
|
||||
|
||||
if (statusMode === mode || !initializing)
|
||||
return;
|
||||
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
|
||||
elem.style.display = 'none';
|
||||
});
|
||||
animationCallbacks = animationCallbacks.filter(function(value) {
|
||||
return (value != animateStatusIndeterminate);
|
||||
});
|
||||
switch (mode) {
|
||||
case 'progress':
|
||||
statusProgress.style.display = 'block';
|
||||
break;
|
||||
case 'indeterminate':
|
||||
statusIndeterminate.style.display = 'block';
|
||||
animationCallbacks.push(animateStatusIndeterminate);
|
||||
break;
|
||||
case 'notice':
|
||||
statusNotice.style.display = 'block';
|
||||
break;
|
||||
case 'hidden':
|
||||
break;
|
||||
default:
|
||||
throw new Error('Invalid status mode');
|
||||
}
|
||||
statusMode = mode;
|
||||
}
|
||||
|
||||
function animateStatusIndeterminate(ms) {
|
||||
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8);
|
||||
if (statusIndeterminate.children[i].style.borderTopColor == '') {
|
||||
Array.prototype.slice.call(statusIndeterminate.children).forEach(child => {
|
||||
child.style.borderTopColor = '';
|
||||
});
|
||||
statusIndeterminate.children[i].style.borderTopColor = '#dfdfdf';
|
||||
}
|
||||
}
|
||||
|
||||
function setStatusNotice(text) {
|
||||
while (statusNotice.lastChild) {
|
||||
statusNotice.removeChild(statusNotice.lastChild);
|
||||
}
|
||||
var lines = text.split('\n');
|
||||
lines.forEach((line) => {
|
||||
statusNotice.appendChild(document.createTextNode(line));
|
||||
statusNotice.appendChild(document.createElement('br'));
|
||||
});
|
||||
};
|
||||
|
||||
function displayFailureNotice(err) {
|
||||
var msg = err.message || err;
|
||||
console.error(msg);
|
||||
setStatusNotice(msg);
|
||||
setStatusMode('notice');
|
||||
initializing = false;
|
||||
|
||||
// Step 1: Get a reference to the div element
|
||||
const divElement = document.getElementById('loading-footer');
|
||||
|
||||
// Step 2: Create a new anchor element
|
||||
const linkElement = document.createElement('a');
|
||||
|
||||
// Step 3: Set the 'href' attribute of the anchor element
|
||||
const linkURL = 'https://alimad.itch.io/polk'; // Replace with your desired link URL
|
||||
linkElement.setAttribute('href', linkURL);
|
||||
|
||||
// Step 4: Set the inner text or HTML content of the anchor element
|
||||
const linkText = 'Retry'; // Replace with your desired link text
|
||||
linkElement.innerText = linkText; // If you want to set plain text
|
||||
// Alternatively, you can set HTML content like this:
|
||||
// linkElement.innerHTML = '<strong>Click here to visit the link</strong>';
|
||||
linkElement.style.textDecoration = 'none'; // Disable underline
|
||||
linkElement.style.color = 'white'; // Make the text white
|
||||
// Step 5: Replace the content of the div element with the anchor element
|
||||
divElement.innerHTML = ''; // Clear existing content of the div
|
||||
divElement.appendChild(linkElement); // Add the anchor element to the div
|
||||
|
||||
};
|
||||
|
||||
if (!Engine.isWebGLAvailable()) {
|
||||
displayFailureNotice('WebGL not available');
|
||||
} else {
|
||||
setStatusMode('indeterminate');
|
||||
engine.startGame({
|
||||
'onProgress': function (current, total) {
|
||||
if (total > 0) {
|
||||
statusProgressInner.style.width = ((current/total)/1.345918239972628) * 100 + '%';
|
||||
setStatusMode('progress');
|
||||
if (current/total > 0.01 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Starting Download...';
|
||||
}
|
||||
if (current/total > 0.03 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Creating Temporary Directory...';
|
||||
}
|
||||
if (current/total > 0.07 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Reserving VRAM...';
|
||||
}
|
||||
if (current/total > 0.15 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Downoading Game Assets...';
|
||||
}
|
||||
if (current/total > 0.29 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Downoading Godot Engine 3 HTML Packages...';
|
||||
}
|
||||
if (current/total > 0.37 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Downoading Game Engine Runtime...';
|
||||
}
|
||||
if (current/total > 0.5 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Creating User Data Folder...';
|
||||
}
|
||||
if (current/total > 0.51 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Extracting index.wasm';
|
||||
}
|
||||
if (current/total > 0.52 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Extracting index.pck';
|
||||
}
|
||||
if (current/total > 0.53 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Praparing Execution index.js';
|
||||
}
|
||||
if (current/total > 0.54 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Praparing Execution godotlib3.js';
|
||||
}
|
||||
if (current/total > 0.55 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Praparing Execution gameengineruntime3.js';
|
||||
}
|
||||
if (current/total > 0.56 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Generating Patches...';
|
||||
}
|
||||
if (current/total > 0.58 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Generating Logic Instance...';
|
||||
}
|
||||
if (current/total > 0.6 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Generating Scene instances...';
|
||||
}
|
||||
if (current/total > 0.62 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Reading User Data Folder...';
|
||||
}
|
||||
if (current/total > 0.63 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Loading...';
|
||||
}
|
||||
if (current/total > 0.65 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Building ByteCode...';
|
||||
}
|
||||
|
||||
if (current/total > 0.67 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Loading Scripts...';
|
||||
}
|
||||
|
||||
if (current/total > 0.68 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Loading Styles...';
|
||||
}
|
||||
|
||||
if (current/total > 0.69 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Setting Up Collision Masks...';
|
||||
}
|
||||
|
||||
if (current/total > 0.7 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Initializing Game Logic...';
|
||||
}
|
||||
|
||||
if (current/total > 0.74 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Loading Timer and Tween Scripts...';
|
||||
}
|
||||
|
||||
if (current/total > 0.79 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Indexing Functions...';
|
||||
}
|
||||
|
||||
if (current/total > 0.83 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Indexing Nodes and Scripts...';
|
||||
}
|
||||
if (current/total > 0.85 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Compiling GDScript ByteCode...';
|
||||
}
|
||||
if (current/total > 0.87 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Configuring Game Settings...';
|
||||
}
|
||||
|
||||
if (current/total > 0.91 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Optimizing Performance...';
|
||||
}
|
||||
|
||||
if (current/total > 0.95 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Finalizing Initialization...';
|
||||
}
|
||||
|
||||
if (current/total > 0.99 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Launching Game Engine...';
|
||||
}
|
||||
if (current === total) {
|
||||
// wait for progress bar animation
|
||||
setTimeout(() => {
|
||||
setStatusMode('indeterminate');
|
||||
}, 200);
|
||||
}
|
||||
} else {
|
||||
setStatusMode('indeterminate');
|
||||
}
|
||||
},
|
||||
}).then(() => {
|
||||
setStatusMode('hidden');
|
||||
initializing = false;
|
||||
}, displayFailureNotice);
|
||||
}
|
||||
})();
|
||||
//]]></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
BIN
semag/geodashsky/index.icon.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
796
semag/geodashsky/index.js
Normal file
42
semag/geodashsky/index.offline.html
Normal file
@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>You are offline</title>
|
||||
<style>
|
||||
html {
|
||||
background-color: #000000;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||
margin: 2rem;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-block: 1rem;
|
||||
}
|
||||
|
||||
button {
|
||||
display: block;
|
||||
padding: 1rem 2rem;
|
||||
margin: 3rem auto 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>You are offline</h1>
|
||||
<p>This application requires an Internet connection to run for the first time.</p>
|
||||
<p>Press the button below to try reloading:</p>
|
||||
<button type="button">Reload</button>
|
||||
|
||||
<script>
|
||||
document.querySelector("button").addEventListener("click", () => {
|
||||
window.location.reload();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
BIN
semag/geodashsky/index.pck
Normal file
106
semag/geodashsky/index.service.worker.js
Normal file
@ -0,0 +1,106 @@
|
||||
// This service worker is required to expose an exported Godot project as a
|
||||
// Progressive Web App. It provides an offline fallback page telling the user
|
||||
// that they need an Internet connection to run the project if desired.
|
||||
// Incrementing CACHE_VERSION will kick off the install event and force
|
||||
// previously cached resources to be updated from the network.
|
||||
const CACHE_VERSION = "1690111599|1286968711";
|
||||
const CACHE_PREFIX = "Sky Dash-sw-cache-";
|
||||
const CACHE_NAME = CACHE_PREFIX + CACHE_VERSION;
|
||||
const OFFLINE_URL = "index.offline.html";
|
||||
// Files that will be cached on load.
|
||||
const CACHED_FILES = ["index.html","index.js","index.offline.html","index.icon.png","index.apple-touch-icon.png"];
|
||||
// Files that we might not want the user to preload, and will only be cached on first load.
|
||||
const CACHABLE_FILES = ["index.wasm","index.pck"];
|
||||
const FULL_CACHE = CACHED_FILES.concat(CACHABLE_FILES);
|
||||
|
||||
self.addEventListener("install", (event) => {
|
||||
event.waitUntil(caches.open(CACHE_NAME).then(cache => cache.addAll(CACHED_FILES)));
|
||||
});
|
||||
|
||||
self.addEventListener("activate", (event) => {
|
||||
event.waitUntil(caches.keys().then(
|
||||
function (keys) {
|
||||
// Remove old caches.
|
||||
return Promise.all(keys.filter(key => key.startsWith(CACHE_PREFIX) && key != CACHE_NAME).map(key => caches.delete(key)));
|
||||
}).then(function() {
|
||||
// Enable navigation preload if available.
|
||||
return ("navigationPreload" in self.registration) ? self.registration.navigationPreload.enable() : Promise.resolve();
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
async function fetchAndCache(event, cache, isCachable) {
|
||||
// Use the preloaded response, if it's there
|
||||
let response = await event.preloadResponse;
|
||||
if (!response) {
|
||||
// Or, go over network.
|
||||
response = await self.fetch(event.request);
|
||||
}
|
||||
if (isCachable) {
|
||||
// And update the cache
|
||||
cache.put(event.request, response.clone());
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
self.addEventListener("fetch", (event) => {
|
||||
const isNavigate = event.request.mode === "navigate";
|
||||
const url = event.request.url || "";
|
||||
const referrer = event.request.referrer || "";
|
||||
const base = referrer.slice(0, referrer.lastIndexOf("/") + 1);
|
||||
const local = url.startsWith(base) ? url.replace(base, "") : "";
|
||||
const isCachable = FULL_CACHE.some(v => v === local) || (base === referrer && base.endsWith(CACHED_FILES[0]));
|
||||
if (isNavigate || isCachable) {
|
||||
event.respondWith(async function () {
|
||||
// Try to use cache first
|
||||
const cache = await caches.open(CACHE_NAME);
|
||||
if (event.request.mode === "navigate") {
|
||||
// Check if we have full cache during HTML page request.
|
||||
const fullCache = await Promise.all(FULL_CACHE.map(name => cache.match(name)));
|
||||
const missing = fullCache.some(v => v === undefined);
|
||||
if (missing) {
|
||||
try {
|
||||
// Try network if some cached file is missing (so we can display offline page in case).
|
||||
return await fetchAndCache(event, cache, isCachable);
|
||||
} catch (e) {
|
||||
// And return the hopefully always cached offline page in case of network failure.
|
||||
console.error("Network error: ", e);
|
||||
return await caches.match(OFFLINE_URL);
|
||||
}
|
||||
}
|
||||
}
|
||||
const cached = await cache.match(event.request);
|
||||
if (cached) {
|
||||
return cached;
|
||||
} else {
|
||||
// Try network if don't have it in cache.
|
||||
return await fetchAndCache(event, cache, isCachable);
|
||||
}
|
||||
}());
|
||||
}
|
||||
});
|
||||
|
||||
self.addEventListener("message", (event) => {
|
||||
// No cross origin
|
||||
if (event.origin != self.origin) {
|
||||
return;
|
||||
}
|
||||
const id = event.source.id || "";
|
||||
const msg = event.data || "";
|
||||
// Ensure it's one of our clients.
|
||||
self.clients.get(id).then(function (client) {
|
||||
if (!client) {
|
||||
return; // Not a valid client.
|
||||
}
|
||||
if (msg === "claim") {
|
||||
self.skipWaiting().then(() => self.clients.claim());
|
||||
} else if (msg === "clear") {
|
||||
caches.delete(CACHE_NAME);
|
||||
} else if (msg === "update") {
|
||||
self.skipWaiting().then(() => self.clients.claim()).then(() => self.clients.matchAll()).then(all => all.forEach(c => c.navigate(c.url)));
|
||||
} else {
|
||||
onClientMessage(event);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
BIN
semag/geodashsky/index.wasm
Normal file
3
semag/minion/cover.svg
Normal file
After Width: | Height: | Size: 1.9 MiB |
1
semag/minion/credit
Normal file
@ -0,0 +1 @@
|
||||
https://itch.io/profile/alimad
|
457
semag/minion/index.html
Normal file
@ -0,0 +1,457 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns='http://www.w3.org/1999/xhtml' lang='' xml:lang=''>
|
||||
<head>
|
||||
<meta charset='utf-8' />
|
||||
<meta name='viewport' content='width=device-width, user-scalable=no' />
|
||||
<title>The Minions Resurrection</title>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap">
|
||||
|
||||
<style type='text/css'>
|
||||
|
||||
body {
|
||||
touch-action: none;
|
||||
margin: 0;
|
||||
border: 0 none;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
background-color: black;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.background {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-size: cover;
|
||||
z-index: -2;
|
||||
}
|
||||
|
||||
|
||||
#canvas {
|
||||
display: block;
|
||||
margin: 0;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#canvas:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.godot {
|
||||
font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif;
|
||||
color: #e0e0e0;
|
||||
background-color: #3b3943;
|
||||
background-image: linear-gradient(to bottom, #403e48, #35333c);
|
||||
border: 1px solid #45434e;
|
||||
box-shadow: 0 0 1px 1px #2f2d35;
|
||||
}
|
||||
|
||||
|
||||
/* Status display
|
||||
* ============== */
|
||||
|
||||
#status {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
/* don't consume click events - make children visible explicitly */
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
#status-progress {
|
||||
width: 500px;
|
||||
height: 12px;
|
||||
background-color: #00000000;
|
||||
border: 3px solid #ffffff;
|
||||
padding: 1px;
|
||||
border-radius: 12px;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
@media only screen and (orientation:portrait) {
|
||||
#status-progress {
|
||||
width: 61.8%;
|
||||
}
|
||||
}
|
||||
|
||||
#status-progress-inner {
|
||||
|
||||
height: 1px;
|
||||
width: 0%;
|
||||
box-sizing: border-box;
|
||||
transition: width 0.4s linear;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #00000000;
|
||||
border-radius: 5px;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
transform: translate(2px, 2px);
|
||||
}
|
||||
|
||||
#status-indeterminate {
|
||||
height: 42px;
|
||||
visibility: visible;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#status-indeterminate > div {
|
||||
width: 4.5px;
|
||||
height: 0;
|
||||
border-style: solid;
|
||||
border-width: 9px 3px 0 3px;
|
||||
border-color: #2b2b2b transparent transparent transparent;
|
||||
transform-origin: center 21px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
#status-indeterminate > div:nth-child(1) { transform: rotate( 22.5deg); }
|
||||
#status-indeterminate > div:nth-child(2) { transform: rotate( 67.5deg); }
|
||||
#status-indeterminate > div:nth-child(3) { transform: rotate(112.5deg); }
|
||||
#status-indeterminate > div:nth-child(4) { transform: rotate(157.5deg); }
|
||||
#status-indeterminate > div:nth-child(5) { transform: rotate(202.5deg); }
|
||||
#status-indeterminate > div:nth-child(6) { transform: rotate(247.5deg); }
|
||||
#status-indeterminate > div:nth-child(7) { transform: rotate(292.5deg); }
|
||||
#status-indeterminate > div:nth-child(8) { transform: rotate(337.5deg); }
|
||||
|
||||
#status-notice {
|
||||
margin: 0 100px;
|
||||
line-height: 1.3;
|
||||
visibility: visible;
|
||||
padding: 4px 6px;
|
||||
visibility: visible;
|
||||
}
|
||||
#loading-header {
|
||||
position: absolute;
|
||||
top: 39%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
font-size: 24px;
|
||||
font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
|
||||
color: white;
|
||||
}
|
||||
#loading-footer {
|
||||
position: absolute;
|
||||
top: 55%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
font-size: 24px;
|
||||
font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
<link id='-gd-engine-icon' rel='icon' type='image/png' href='index.icon.png' />
|
||||
<link rel='apple-touch-icon' href='index.apple-touch-icon.png'/>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="background"></div>
|
||||
<div id='loading-header'><b>Alimad Interactive Entertainment<b></div>
|
||||
<div id='loading-footer'><b>Downoading, Please Stand By.</b></div>
|
||||
<canvas id='canvas'>
|
||||
HTML5 canvas appears to be unsupported in the current browser.<br />
|
||||
Please try updating or use a different browser.
|
||||
</canvas>
|
||||
<div id='status'>
|
||||
<div id='status-progress' style='display: none;' oncontextmenu='event.preventDefault();'><div id ='status-progress-inner'></div></div>
|
||||
<div id='status-indeterminate' style='display: none;' oncontextmenu='event.preventDefault();'>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<div id='status-notice' class='godot' style='display: none;'></div>
|
||||
</div>
|
||||
|
||||
<script type='text/javascript' src='index.js'></script>
|
||||
<script type='text/javascript'>//<![CDATA[
|
||||
|
||||
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"executable":"index","experimentalVK":true,"fileSizes":{"index.pck":2925248,"index.wasm":18790437},"focusCanvas":true,"gdnativeLibs":[]};
|
||||
var engine = new Engine(GODOT_CONFIG);
|
||||
// Continuously rotate the background image
|
||||
const Background = document.querySelector('.background');
|
||||
let rotation = 0;
|
||||
const rotationSpeed = 0.5; // Change this value to control the rotation speed
|
||||
function rotateBackground() {
|
||||
rotation += rotationSpeed;
|
||||
Background.style.transform = `rotate(${rotation}deg) scale(${4.5})`;
|
||||
requestAnimationFrame(rotateBackground);
|
||||
}
|
||||
|
||||
rotateBackground();
|
||||
// Function to generate a random hue
|
||||
|
||||
let currentHue = getRandomHue();
|
||||
let animationRequestId = null;
|
||||
|
||||
function getRandomHue() {
|
||||
return Math.floor(Math.random() * 360);
|
||||
}
|
||||
|
||||
function animateColorChange(timestamp) {
|
||||
if (!animationRequestId) {
|
||||
animationRequestId = timestamp;
|
||||
}
|
||||
|
||||
const background = document.querySelector('.background');
|
||||
const currentTime = timestamp || performance.now();
|
||||
const duration = 5000; // Duration of the animation in milliseconds
|
||||
|
||||
function updateColor(currentTime) {
|
||||
const startTime = animationRequestId;
|
||||
const elapsed = currentTime - startTime;
|
||||
const progress = (elapsed % duration) / duration;
|
||||
|
||||
const currentHueShift = 30 * Math.sin(2 * Math.PI * progress);
|
||||
const currentColor = (currentHue + currentHueShift + 360) % 360;
|
||||
background.style.backgroundImage = `radial-gradient(at 40% 25%, hsl(${currentColor}, 100%, 60%), hsl(${(currentColor + 180) % 360}, 100%, 50%) 50%)`;
|
||||
|
||||
animationRequestId = requestAnimationFrame(updateColor);
|
||||
}
|
||||
|
||||
requestAnimationFrame(updateColor);
|
||||
}
|
||||
|
||||
// Call the function when the page loads
|
||||
window.addEventListener('load', () => {
|
||||
animateColorChange();
|
||||
});
|
||||
|
||||
|
||||
|
||||
(function() {
|
||||
const INDETERMINATE_STATUS_STEP_MS = 100;
|
||||
var statusProgress = document.getElementById('status-progress');
|
||||
var statusProgressInner = document.getElementById('status-progress-inner');
|
||||
var statusIndeterminate = document.getElementById('status-indeterminate');
|
||||
var statusNotice = document.getElementById('status-notice');
|
||||
|
||||
var initializing = true;
|
||||
var statusMode = 'hidden';
|
||||
|
||||
var animationCallbacks = [];
|
||||
function animate(time) {
|
||||
animationCallbacks.forEach(callback => callback(time));
|
||||
requestAnimationFrame(animate);
|
||||
}
|
||||
requestAnimationFrame(animate);
|
||||
|
||||
function setStatusMode(mode) {
|
||||
|
||||
if (statusMode === mode || !initializing)
|
||||
return;
|
||||
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
|
||||
elem.style.display = 'none';
|
||||
});
|
||||
animationCallbacks = animationCallbacks.filter(function(value) {
|
||||
return (value != animateStatusIndeterminate);
|
||||
});
|
||||
switch (mode) {
|
||||
case 'progress':
|
||||
statusProgress.style.display = 'block';
|
||||
break;
|
||||
case 'indeterminate':
|
||||
statusIndeterminate.style.display = 'block';
|
||||
animationCallbacks.push(animateStatusIndeterminate);
|
||||
break;
|
||||
case 'notice':
|
||||
statusNotice.style.display = 'block';
|
||||
break;
|
||||
case 'hidden':
|
||||
break;
|
||||
default:
|
||||
throw new Error('Invalid status mode');
|
||||
|
||||
}
|
||||
statusMode = mode;
|
||||
}
|
||||
|
||||
function animateStatusIndeterminate(ms) {
|
||||
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8);
|
||||
if (statusIndeterminate.children[i].style.borderTopColor == '') {
|
||||
Array.prototype.slice.call(statusIndeterminate.children).forEach(child => {
|
||||
child.style.borderTopColor = '';
|
||||
});
|
||||
statusIndeterminate.children[i].style.borderTopColor = '#dfdfdf';
|
||||
}
|
||||
}
|
||||
|
||||
function setStatusNotice(text) {
|
||||
while (statusNotice.lastChild) {
|
||||
statusNotice.removeChild(statusNotice.lastChild);
|
||||
}
|
||||
var lines = text.split('\n');
|
||||
lines.forEach((line) => {
|
||||
statusNotice.appendChild(document.createTextNode(line));
|
||||
statusNotice.appendChild(document.createElement('br'));
|
||||
});
|
||||
};
|
||||
|
||||
function displayFailureNotice(err) {
|
||||
var msg = err.message || err;
|
||||
console.error(msg);
|
||||
setStatusNotice(msg);
|
||||
setStatusMode('notice');
|
||||
initializing = false;
|
||||
// Step 1: Get a reference to the div element
|
||||
const divElement = document.getElementById('loading-footer');
|
||||
|
||||
// Step 2: Create a new anchor element
|
||||
const linkElement = document.createElement('a');
|
||||
|
||||
// Step 3: Set the 'href' attribute of the anchor element
|
||||
const linkURL = 'https://alimad.itch.io/theminions'; // Replace with your desired link URL
|
||||
linkElement.setAttribute('href', linkURL);
|
||||
|
||||
// Step 4: Set the inner text or HTML content of the anchor element
|
||||
const linkText = 'Retry'; // Replace with your desired link text
|
||||
linkElement.innerText = linkText; // If you want to set plain text
|
||||
// Alternatively, you can set HTML content like this:
|
||||
// linkElement.innerHTML = '<strong>Click here to visit the link</strong>';
|
||||
linkElement.style.textDecoration = 'none'; // Disable underline
|
||||
linkElement.style.color = 'white'; // Make the text white
|
||||
// Step 5: Replace the content of the div element with the anchor element
|
||||
divElement.innerHTML = ''; // Clear existing content of the div
|
||||
divElement.appendChild(linkElement); // Add the anchor element to the div
|
||||
|
||||
};
|
||||
|
||||
if (!Engine.isWebGLAvailable()) {
|
||||
displayFailureNotice('WebGL not available');
|
||||
} else {
|
||||
setStatusMode('indeterminate');
|
||||
engine.startGame({
|
||||
'onProgress': function (current, total) {
|
||||
if (total > 0) {
|
||||
statusProgressInner.style.width = ((current/total)/1.345918239972628) * 100 + '%';
|
||||
setStatusMode('progress');
|
||||
if (current/total > 0.01 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Starting Download...';
|
||||
}
|
||||
if (current/total > 0.03 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Creating Temporary Directory...';
|
||||
}
|
||||
if (current/total > 0.07 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Reserving VRAM...';
|
||||
}
|
||||
if (current/total > 0.15 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Downoading Game Assets...';
|
||||
}
|
||||
if (current/total > 0.29 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Downoading Godot Engine 3 HTML Packages...';
|
||||
}
|
||||
if (current/total > 0.37 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Downoading Game Engine Runtime...';
|
||||
}
|
||||
if (current/total > 0.5 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Creating User Data Folder...';
|
||||
}
|
||||
if (current/total > 0.51 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Extracting index.wasm';
|
||||
}
|
||||
if (current/total > 0.52 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Extracting index.pck';
|
||||
}
|
||||
if (current/total > 0.53 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Praparing Execution index.js';
|
||||
}
|
||||
if (current/total > 0.54 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Praparing Execution godotlib3.js';
|
||||
}
|
||||
if (current/total > 0.55 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Praparing Execution gameengineruntime3.js';
|
||||
}
|
||||
if (current/total > 0.56 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Generating Patches...';
|
||||
}
|
||||
if (current/total > 0.58 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Generating Logic Instance...';
|
||||
}
|
||||
if (current/total > 0.6 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Generating Scene instances...';
|
||||
}
|
||||
if (current/total > 0.62 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Reading User Data Folder...';
|
||||
}
|
||||
if (current/total > 0.63 * 1.334918239972628){
|
||||
document.getElementById('loading-footer').innerHTML = 'Loading...';
|
||||
}
|
||||
if (current/total > 0.65 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Applying Shaders...';
|
||||
}
|
||||
|
||||
if (current/total > 0.67 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Creating 2D Models...';
|
||||
}
|
||||
|
||||
if (current/total > 0.68 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Generating Textures...';
|
||||
}
|
||||
|
||||
if (current/total > 0.69 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Setting Up Audio...';
|
||||
}
|
||||
|
||||
if (current/total > 0.7 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Initializing Game Logic...';
|
||||
}
|
||||
|
||||
if (current/total > 0.74 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Loading Game Levels...';
|
||||
}
|
||||
|
||||
if (current/total > 0.79 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Indexing Scenes and Functions...';
|
||||
}
|
||||
|
||||
if (current/total > 0.83 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Indexing Nodes and Scripts...';
|
||||
}
|
||||
if (current/total > 0.85 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Compiling GDScript ByteCode...';
|
||||
}
|
||||
if (current/total > 0.87 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Configuring Game Settings...';
|
||||
}
|
||||
|
||||
if (current/total > 0.91 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Optimizing Performance...';
|
||||
}
|
||||
|
||||
if (current/total > 0.95 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Finalizing Initialization...';
|
||||
}
|
||||
|
||||
if (current/total > 0.99 * 1.334918239972628) {
|
||||
document.getElementById('loading-footer').innerHTML = 'Launching Game Engine...';
|
||||
}
|
||||
if (current === total) {
|
||||
// wait for progress bar animation
|
||||
setTimeout(() => {
|
||||
setStatusMode('indeterminate');
|
||||
}, 200);
|
||||
}
|
||||
} else {
|
||||
setStatusMode('indeterminate');
|
||||
}
|
||||
},
|
||||
}).then(() => {
|
||||
setStatusMode('hidden');
|
||||
initializing = false;
|
||||
}, displayFailureNotice);
|
||||
}
|
||||
})();
|
||||
//]]></script>
|
||||
</body>
|
||||
</html>
|
||||
|
BIN
semag/minion/index.icon.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
796
semag/minion/index.js
Normal file
BIN
semag/minion/index.pck
Normal file
BIN
semag/minion/index.wasm
Normal file
BIN
semag/terrifried/Terri-Fried (FAT Disabled).nds
Normal file
3
semag/terrifried/cover.svg
Normal file
After Width: | Height: | Size: 24 KiB |
1
semag/terrifried/credit
Normal file
@ -0,0 +1 @@
|
||||
https://polymars.itch.io
|