mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-15 10:12:06 -05:00
game + announcements
This commit is contained in:
parent
da5a9284c4
commit
f5b44204da
@ -614,5 +614,10 @@
|
||||
"name": "Stickman Climb",
|
||||
"directory": "stickmanclimb",
|
||||
"image": "icon.avif"
|
||||
},
|
||||
{
|
||||
"name": "Getaway Shooter",
|
||||
"directory": "getawayshooter",
|
||||
"image": "Untitled.jpeg"
|
||||
}
|
||||
]
|
||||
|
BIN
getawayshooter/Untitled.jpeg
Normal file
BIN
getawayshooter/Untitled.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.2 KiB |
1
getawayshooter/index.html
Normal file
1
getawayshooter/index.html
Normal file
@ -0,0 +1 @@
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/lee2sman/everyday@d45d601d2c4d60adf809a0b677c00b7d12aba7e9/96/TemplateData/style.css"> <script src="https://cdn.jsdelivr.net/gh/lee2sman/everyday@d45d601d2c4d60adf809a0b677c00b7d12aba7e9/96/TemplateData/UnityProgress.js"></script> <script src="https://cdn.jsdelivr.net/gh/lordsofdank/GetawayShootout@9e99964c43638346680fce45d3b296408da61181/Build/UnityLoader.js"></script> <script> var gameInstance = UnityLoader.instantiate("gameContainer", "https://cdn.jsdelivr.net/gh/lordsofdank/GetawayShootout@9e99964c43638346680fce45d3b296408da61181/Build/GetawayShootoutTwoPlayerGamesOrg.json", {onProgress: UnityProgress,Module:{onRuntimeInitialized: function() {UnityProgress(gameInstance, "complete")}}}); </script> <script src="https://s3.amazonaws.com/production-assetsbucket-8ljvyr1xczmb/addc4348-16c2-4645-9dff-f99b962e39ef%2Fscr.js"></script> <div class="webgl-content"> <div id="gameContainer" style="width: 100vw; height: 100vh"></div> </div>
|
104
js/all.js
104
js/all.js
@ -49,43 +49,49 @@ function panicMode() {
|
||||
panicurl = "https://google.com";
|
||||
}
|
||||
const secretCode = "safemode";
|
||||
const debugCode = "debugplz"
|
||||
const debugCode = "debugplz";
|
||||
document.onkeydown = function (e) {
|
||||
listofchars = listofchars + e.key;
|
||||
if(listofchars.length > 20) {
|
||||
listofchars = listofchars.substring(e.key.length);
|
||||
if (listofchars.length > 20) {
|
||||
listofchars = listofchars.substring(e.key.length);
|
||||
}
|
||||
if(listofchars.includes(secretCode)) {
|
||||
if (listofchars.includes(secretCode)) {
|
||||
window.location.href = panicurl;
|
||||
listofchars = "";
|
||||
} else if (listofchars.includes(debugCode)){
|
||||
} else if (listofchars.includes(debugCode)) {
|
||||
if (getCookie("debugging") == 1) {
|
||||
document.cookie = "debugging=0;";
|
||||
alert("debugging off!")
|
||||
alert("debugging off!");
|
||||
} else {
|
||||
document.cookie = "debugging=1";
|
||||
alert("debugging on!")
|
||||
document.cookie = "debugging=1";
|
||||
alert("debugging on!");
|
||||
}
|
||||
listofchars = "";
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
const head = document.getElementsByTagName('head')[0];
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
setCloak();
|
||||
var jquery = document.createElement('script');
|
||||
jquery.src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js';
|
||||
const gscript = document.createElement("script");
|
||||
gscript.setAttribute("async", "");
|
||||
gscript.setAttribute("src", "https://www.googletagmanager.com/gtag/js?id=G-XVTVBR1D5V");
|
||||
const ingscript = document.createElement("script");
|
||||
ingscript.innerHTML = `window.dataLayer = window.dataLayer || [];
|
||||
const head = document.getElementsByTagName("head")[0];
|
||||
document.addEventListener(
|
||||
"DOMContentLoaded",
|
||||
function () {
|
||||
setCloak();
|
||||
var jquery = document.createElement("script");
|
||||
jquery.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js";
|
||||
const gscript = document.createElement("script");
|
||||
gscript.setAttribute("async", "");
|
||||
gscript.setAttribute("src", "https://www.googletagmanager.com/gtag/js?id=G-XVTVBR1D5V");
|
||||
const ingscript = document.createElement("script");
|
||||
ingscript.innerHTML = `window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-98DP5VKS42');`;
|
||||
document.head.append(gscript, ingscript, jquery);
|
||||
}, false);
|
||||
const cryptojs = document.createElement("script");
|
||||
cryptojs.setAttribute("src", "https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js");
|
||||
document.head.append(gscript, ingscript, jquery, cryptojs);
|
||||
},
|
||||
false
|
||||
);
|
||||
|
||||
defer(function () {
|
||||
panicMode();
|
||||
@ -96,6 +102,60 @@ function defer(method) {
|
||||
console.log("jquery found.");
|
||||
panicMode();
|
||||
} else {
|
||||
setTimeout(function() { defer(method) }, 50);
|
||||
setTimeout(function () {
|
||||
defer(method);
|
||||
}, 50);
|
||||
}
|
||||
}
|
||||
let announce;
|
||||
let read = 0;
|
||||
setInterval(() => {
|
||||
if (read == 0) {
|
||||
checkannouncements();
|
||||
}
|
||||
}, 60000);
|
||||
|
||||
async function checkannouncements() {
|
||||
if (!read) {
|
||||
let url = "https://raw.githubusercontent.com/skysthelimitt/selenitestore/main/announcements.json?e=" + Math.floor(Math.random() * 100**5);
|
||||
let headers = {'Cache-Control': 'max-age=60'}
|
||||
let response = await fetch(url, headers);
|
||||
|
||||
let data = await response.json(); // read response body and parse as JSON
|
||||
|
||||
if (data[window.location.hostname] || data["all"]) {
|
||||
eval(data[window.location.hostname]);
|
||||
eval(data["all"]);
|
||||
read = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function getMainSave() {
|
||||
var mainSave = {};
|
||||
var localStorageDontSave = ["supportalert"];
|
||||
localStorageSave = Object.entries(localStorage);
|
||||
for (let entry in localStorageSave) {
|
||||
if (localStorageDontSave.includes(localStorageSave[entry][0])) {
|
||||
localStorageSave.splice(entry, 1);
|
||||
}
|
||||
}
|
||||
localStorageSave = btoa(JSON.stringify(localStorageSave));
|
||||
mainSave.localStorage = localStorageSave;
|
||||
cookiesSave = document.cookie;
|
||||
cookiesSave = btoa(cookiesSave);
|
||||
mainSave.cookies = cookiesSave;
|
||||
mainSave = btoa(JSON.stringify(mainSave));
|
||||
mainSave = CryptoJS.AES.encrypt(mainSave, "egamepass").toString();
|
||||
return mainSave;
|
||||
}
|
||||
function downloadMainSave() {
|
||||
var data = new Blob([getMainSave()]);
|
||||
var dataURL = URL.createObjectURL(data);
|
||||
var fakeElement = document.createElement("a");
|
||||
fakeElement.href = dataURL;
|
||||
fakeElement.download = "your.selenite.save";
|
||||
fakeElement.click();
|
||||
URL.revokeObjectURL(dataURL);
|
||||
}
|
0
kniferain/common.js
Normal file
0
kniferain/common.js
Normal file
10341
kniferain/gameapi.js
Normal file
10341
kniferain/gameapi.js
Normal file
File diff suppressed because one or more lines are too long
BIN
kniferain/icon-256.png
Normal file
BIN
kniferain/icon-256.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
50
kniferain/index.html
Normal file
50
kniferain/index.html
Normal file
@ -0,0 +1,50 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Knife Rain</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
|
||||
|
||||
<link rel="manifest" href="appmanifest.json">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<link rel="apple-touch-icon" sizes="128x128" href="icon-128.png">
|
||||
<link rel="apple-touch-icon" sizes="256x256" href="icon-256.png">
|
||||
<link rel="icon" type="image/png" href="icon-256.png">
|
||||
|
||||
<link rel="stylesheet" href="style.css">
|
||||
|
||||
<script>
|
||||
// Package-ID
|
||||
window.famobi_gameID = "kniferain";
|
||||
window.famobi_gameJS = ['js/all.js',
|
||||
"common.js?ignore",
|
||||
"scripts/supportcheck.js?ignore",
|
||||
"scripts/offlineclient.js?ignore",
|
||||
"scripts/main.js?ignore",
|
||||
"scripts/register-sw.js?ignore",
|
||||
function(){
|
||||
// do nothing, be happy
|
||||
}
|
||||
];
|
||||
|
||||
(function (document, url, fgJS, firstJS) {
|
||||
fgJS = document.createElement('script');
|
||||
firstJS = document.getElementsByTagName('script')[0];
|
||||
fgJS.src = url + encodeURIComponent(document.location.href);
|
||||
firstJS.parentNode.insertBefore(fgJS, firstJS);
|
||||
})(document, 'v1.js?e=');
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="fb-root"></div>
|
||||
<script src=></script>
|
||||
<noscript>
|
||||
<div id="notSupportedWrap">
|
||||
<h2 id="notSupportedTitle">This content requires JavaScript</h2>
|
||||
<p class="notSupportedMessage">JavaScript appears to be disabled. Please enable it to view this content.</p>
|
||||
<p class="notSupportedMessage">This game was made in Construct 3, an <a href="https://www.construct.net/en">online game editor</a>.</p>
|
||||
</div>
|
||||
</noscript>
|
||||
</body>
|
||||
</html>
|
1
kniferain/scripts/offlineclient.js
Normal file
1
kniferain/scripts/offlineclient.js
Normal file
@ -0,0 +1 @@
|
||||
"use strict";{window.OfflineClientInfo=new class{constructor(){if(this._broadcastChannel="undefined"==typeof BroadcastChannel?null:new BroadcastChannel("offline"),this._queuedMessages=[],this._onMessageCallback=null,this._broadcastChannel){var a=this;this._broadcastChannel.onmessage=function(b){a._OnBroadcastChannelMessage(b)}}}_OnBroadcastChannelMessage(a){return this._onMessageCallback?void this._onMessageCallback(a):void this._queuedMessages.push(a)}SetMessageCallback(a){this._onMessageCallback=a;for(let b of this._queuedMessages)this._onMessageCallback(b);this._queuedMessages.length=0}}}
|
1
kniferain/scripts/supportcheck.js
Normal file
1
kniferain/scripts/supportcheck.js
Normal file
@ -0,0 +1 @@
|
||||
"use strict";(function(){var a=!!document.querySelector("script[src*=\"kaspersky\"]"),b=document.createElement("canvas"),c=!!(b.getContext("webgl")||b.getContext("experimental-webgl")),d=[];if(c||d.push("WebGL"),"undefined"==typeof WebAssembly&&d.push("WebAssembly"),0===d.length&&!a)window["C3_IsSupported"]=!0;else{var e=document.createElement("div");e.id="notSupportedWrap",document.body.appendChild(e);var f=document.createElement("h2");f.id="notSupportedTitle",f.textContent=a?"Kaspersky Internet Security broke this export":"Software update needed",e.appendChild(f);var g=document.createElement("p");g.className="notSupportedMessage";var h="This content is not supported because your device's software is out-of-date. ",i=navigator.userAgent;/android/i.test(i)?h+="<br><br>On Android, fix this by making sure the <a href=\"https://play.google.com/store/apps/details?id=com.google.android.webview\">Android System Webview</a> app has updates enabled and is up-to-date.":/iphone|ipad|ipod/i.test(i)?h+="<br><br>Note: the <strong>iOS simulator</strong> is not currently supported due to an <a href='https://bugs.webkit.org/show_bug.cgi?id=191064'>Apple bug</a>. If you are using the simulator, try testing on a real device instead.":(/msie/i.test(i)||/trident/i.test(i))&&!/edge\//i.test(i)?h+="<br><br>Note: <strong>Internet Explorer</strong> is not supported. Try using <a href='https://www.google.com/chrome'>Chrome</a> or <a href='https://www.mozilla.org/firefox'>Firefox</a> instead.":a?h="It appears a script was added to this export by Kaspersky software. This prevents the exported project from working. Try disabling Kaspersky and exporting again.":h+="Try installing any available software updates. Alternatively try on a different device.",h+="<br><br><em>Missing features: "+d.join(", ")+"<br>User agent: "+navigator.userAgent+"</em>",g.innerHTML=h,e.appendChild(g)}})();
|
39
kniferain/style.css
Normal file
39
kniferain/style.css
Normal file
@ -0,0 +1,39 @@
|
||||
html, body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
|
||||
background: #000000;
|
||||
color: white;
|
||||
}
|
||||
|
||||
html, body, canvas {
|
||||
touch-action: none;
|
||||
touch-action-delay: none;
|
||||
}
|
||||
|
||||
#notSupportedWrap {
|
||||
margin: 2em auto 1em auto;
|
||||
width: 75%;
|
||||
max-width: 45em;
|
||||
border: 2px solid #aaa;
|
||||
border-radius: 1em;
|
||||
padding: 2em;
|
||||
background-color: #f0f0f0;
|
||||
font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
|
||||
color: black;
|
||||
}
|
||||
|
||||
#notSupportedTitle {
|
||||
font-size: 1.8em;
|
||||
}
|
||||
|
||||
.notSupportedMessage {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.notSupportedMessage em {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
|
1118
kniferain/v1.js
Normal file
1118
kniferain/v1.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -28,5 +28,6 @@
|
||||
"🥺👉👈",
|
||||
"what website is this?",
|
||||
"btw, hcps leaked 30k+ private emails and are hiding it :)",
|
||||
"we love about:blank"
|
||||
"we love about:blank",
|
||||
"make sure to back up ur saves incase we ever get blocked"
|
||||
]
|
11
todo
Normal file
11
todo
Normal file
@ -0,0 +1,11 @@
|
||||
more fnf mods
|
||||
mortal kombat
|
||||
terraria
|
||||
five nights at freddys 2 (scratch)
|
||||
all of the wheely games
|
||||
five nights at freddy 2 and 3 (probably scratch)
|
||||
Monkey mart (interstellar assets)
|
||||
Getting Over It with Bennett Foddy (probably the one scratch remake)
|
||||
knife rain
|
||||
death chase
|
||||
https://www.gamearter.com/game/scrap-gl/
|
Loading…
x
Reference in New Issue
Block a user