[FEATURE] Move songScore to a new class - #7647
Open
zxcksharks wants to merge 2 commits into
Open
Conversation
Cooking...
Author
|
i targeted the wrong branch whoops |
Collaborator
|
Does this have any difference over #5114? (Although it doesn't seem like that one will be updated anytime soon) |
Author
Not much, but it does use a singleton pattern instead of a static class |
songScore to a new classsongScore to a new class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Breaking change - all scripts using
songScoremust now referenceSongScore.instance.getScore().Linked Issues
N/A
Description
In PlayState.hx, songScore used to have a TODO comment saying "Move this to a class."
Not sure if that's still needed, but I did it anyway! This allows us to add further logic into score logic when needed.
This used to be part of a bigger PR I was working on, regarding held note scoring consistency.
However, I'm holding off (giving up?) on that for now until some other PRs are pulled (namely #6914) and until my psyche recovers (my contributions to FNF last about as long as I am motivated, and I can't promise anything 😭 )
For the details on the incomplete held note scoring PR, if anyone wants to tackle it themselves if I die or just out of curiosity (it's worked on in my
accurate-sustainsbranch):pendingPointsand functiongetWithPending()to the newSongScoreclasspointsvariableappliedScorefield, tracking how much score they've applied topendingScoreso farprocessInputQueue(maybe into a function calledgoodHoldNoteHit())goodNoteHit(), remove theappliedScorefrom thependingScore, and apply the real score topoints.This would be a massive change in input handling, which is why I didn't do it 😅
Screenshots/Videos
N/A