Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Even more cleanups #40

Merged
merged 9 commits into from
Jul 27, 2024
Merged

Even more cleanups #40

merged 9 commits into from
Jul 27, 2024

Conversation

dengr1065
Copy link
Collaborator

Explained in detail in the commit messages. In short, this mostly consists of removing dead code, support for legacy browsers and savegames. A bugfix for Vector#equalsEpsilon is also included. Dependency on rusha was removed since SHA1 is no longer used anywhere.

Obfuscation is useless in an open source game.
Includes prefixed document.hidden property with respective
visibilitychanged event and redundant support for navigator.language /
lack of navigator.languages check.
All modern browsers should support \1 as the compression prefix, even
outside of Electron or recent Chromium versions. Local storage /
IndexedDB platform wrappers were removed a while ago.
Remove secrets that are no longer used and fetchDiscounts preload step.
webkitImageSmoothingEnabled got deprecated back in 2016.
globalConfig.smoothing.quality is now properly typed as well.
The Math polyfills might still be needed (even though they are polluting
the Math object) and I'm not sure about DOM polyfills yet.
Also remove an unused function and switch to crypto.randomUUID() for
savegame ID generation.
Provided epsilon parameter was used for Y axis but ignored for X axis.
Some useless return statements are also removed.
@dengr1065 dengr1065 merged commit cbd3f20 into master Jul 27, 2024
1 check passed
@dengr1065 dengr1065 deleted the dengr1065/even-more-cleanups branch September 22, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant