Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 6 additions & 41 deletions assets/scripts/core/game-scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -5346,7 +5346,7 @@ _buildSettingsPopup() {
false
);

createToggle(container, column2X, startY, "Unlock All Levels",
createToggle(container, column2X, startY + (spacingY * 2), "Unlock All Levels",
() => window.unlockAllLevels,
(v) => window.unlockAllLevels = v,
null,
Expand Down Expand Up @@ -6520,56 +6520,21 @@ _showwippopup() {
*/
const updateEntries = [
{ text: "Update Log", scale: 1, font: "goldFont" },
{ text: "Coins reworked", scale: 0.75, },
{ text: "Ufo rotation changed", scale: 0.75, },
{ text: "Unlockable Levels", scale: 0.7, },
{ text: "Saws optimized", scale: 0.75, },
{ text: "Special suprise in Blast Processing...", scale: 0.6, },
{ text: "Rate, Help, and Songs menu", scale: 0.75, },
{ text: "Songs is empty- ;-;", scale: 0.5, color: 0x666666},
{ text: "Default Mini Icon", scale: 0.75, },
{ text: "New animation plays when-", scale: 0.75, },
{ text: "-hitting orbs, pads, etc.", scale: 0.75, },
{ text: "New More Games button-", scale: 0.7, },
{ text: "-that links Interdimentional", scale: 0.7, },
{ text: "Links and Notes page coming-", scale: 0.7, color: 0x666666 },
{ text: "Next PR, still working on them.", scale: 0.7, color: 0x666666 },
{ text: "Slopes OVERHAULED", scale: 0.75, color: 0xff9944 },
{ text: "Bug reports are appreciated", scale: 0.75, },
{ text: "-Bari", scale: 0.75, },
{ text: "Credits menu fixed :3", scale: 0.75, },
{ text: "Small Icon Kit changes", scale: 0.75, },
{ text: "Low Detail Mode", scale: 0.75, },
{ text: "Object culling changes", scale: 0.75, },
{ text: "MOST Animated objects", scale: 0.75, },
{ text: "Added a bunch of missing buttons", scale: 0.7, },
{ text: "Level select info icon is bouncy now", scale: 0.65, },
{ text: "Rotation for deco and saws", scale: 0.75, },
{ text: "Particlesheet added <3", scale: 0.75, },
{ text: "Better ball rotation ", scale: 0.75, },
{ text: "Fixed ball noclip too.", scale: 0.75, },
{ text: "Editor placing offsets", scale: 0.75, },
{ text: "Pulsing rods reworked a lil", scale: 0.75, },
{ text: "Breakable blocks break now.", scale: 0.75, },
{ text: "Fixed objects not showing in editor", scale: 0.65, },
{ text: "Slopes (very buggy)", scale: 0.75, color: 0xff9944 },
{ text: "THEY WILL BE FIXED-", scale: 0.75, },
{ text: "OVER TIME.", scale: 0.75, },
{ text: "Slopes work in imported-", scale: 0.75, },
{ text: "levels now (thanks lasokadadyy)", scale: 0.7, },
{ text: "Fixed SOME objects", scale: 0.75 },
{ text: "-pinkdih", scale: 0.65, color: 0xFF008E }
{ text: "Sorry for the 10 hour downtime\ni forgot to change the proxy\nurl because i changed the\nsubdomain - rohanis0000", scale: 0.7, color: 0xaaddff },
{ text: "To anyone who is wondering\nwhy online features don't work,\nthe worker is constantly being\nused and its request limit\nis hit daily in a short time\ndue to many users using\nthe online levels feature.\nThis has hopefully been\nfixed now with this update.\n- rohanis0000", scale: 0.7, color: 0xaaddff },
{ text: "Added 2 new proxies to fall back\nto when ones request limit is\n hit to allow you to still\nbe able to use online features.", scale: 0.65 }
];
let yPos = 0;
const lineItems = [];
updateEntries.forEach(entry => {
const txt = this.add.bitmapText(0, yPos, entry.font || "bigFont", entry.text, 32)
.setOrigin(0.5, 0)
.setCenterAlign()
.setScale(entry.scale || 0.65);
if (entry.color != null) txt.setTint(entry.color);
contentContainer.add(txt);
lineItems.push(txt);
yPos += Math.round(32 * (entry.scale || 0.65)) + 10;
yPos += txt.displayHeight + 10;
});
const totalContentH = yPos;
const maxScrollDown = Math.max(0, totalContentH - scrollAreaH + 16);
Expand Down
4 changes: 4 additions & 0 deletions assets/scripts/core/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -4823,6 +4823,10 @@ if (this.p.isFlying || this.p.isUfo) {
gameObj, pieceWidth, playersY, playersLastY, left, right, top, bottom, playerSize, waveHitSize, gamemodeAddition
);
if (slopeResult.died) {
if (window.noClip) {
this.p.diedThisFrame = true;
continue;
}
this.killPlayer();
return;
}
Expand Down
66 changes: 62 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,76 @@
<script src="assets/scripts/api/GDapiWrapper.js"></script>
<script src="assets/scripts/utils/api-config.js"></script>
<script src="assets/scripts/api/account-api.js"></script>
<!-- worker -->
<!-- workerssdsss nwo-->
<script>
window._gdProxyUrl = "https://gd-proxy.gmdc.workers.dev";
(function () {
var GD_PROXY_HOSTS = [
"https://gd-proxy.webdashers.workers.dev",
"https://webdashers.webdashersdevelopement.workers.dev/",
"fallbackgdproxy.webdashers.workers.dev",
"fallback2.webdashers.workers.dev"
];
window._gdProxyUrl = GD_PROXY_HOSTS[0];
window._gdProxyHosts = GD_PROXY_HOSTS;
var activeIndex = 0;
var nativeFetch = window.fetch.bind(window);
function matchingHost(url) {
for (var i = 0; i < GD_PROXY_HOSTS.length; i++) {
if (url.indexOf(GD_PROXY_HOSTS[i]) === 0) return GD_PROXY_HOSTS[i];
}
return null;
}
function withHost(url, oldHost, newHost) {
return newHost + url.slice(oldHost.length);
}
window.fetch = function (input, init) {
var isRequestObj = (typeof Request !== "undefined") && (input instanceof Request);
var url = isRequestObj ? input.url : input;
if (typeof url !== "string") {
return nativeFetch(input, init);
}
var oldHost = matchingHost(url);
if (!oldHost) {
return nativeFetch(input, init);
}
var attempts = 0;
var lastError = null;
function tryHost(hostIndex) {
var host = GD_PROXY_HOSTS[hostIndex];
var attemptUrl = withHost(url, oldHost, host);
var attemptInput = isRequestObj ? new Request(attemptUrl, input) : attemptUrl;

return nativeFetch(attemptInput, init).then(function (res) {
if ((res.status === 429 || res.status === 503) && attempts < GD_PROXY_HOSTS.length - 1) {
attempts++;
var nextIndex = (hostIndex + 1) % GD_PROXY_HOSTS.length;
return tryHost(nextIndex);
}
activeIndex = hostIndex;
window._gdProxyUrl = host;
return res;
}, function (err) {
lastError = err;
if (attempts < GD_PROXY_HOSTS.length - 1) {
attempts++;
var nextIndex = (hostIndex + 1) % GD_PROXY_HOSTS.length;
return tryHost(nextIndex);
}
throw lastError;
});
}
return tryHost(activeIndex);
};
})();
</script>
<script defer src="assets/scripts/utils/config.js"></script>
<script defer src="assets/scripts/core/triggers.js"></script>
<script defer src="assets/scripts/core/level.js?opt2"></script>
<script defer src="assets/scripts/core/player.js?wt1"></script>
<script defer src="assets/scripts/core/player.js?nc1"></script>
<script defer src="assets/scripts/core/audio.js"></script>
<script defer src="assets/scripts/core/loading-screen.js"></script>
<script defer src="assets/scripts/core/level-editor.js?latest"></script>
<script defer src="assets/scripts/core/game-scene.js?unlock1"></script>
<script defer src="assets/scripts/core/game-scene.js?unlock2"></script>
<script defer src="assets/scripts/core/main.js"></script>
<script>
new ResizeObserver(() => {
Expand Down