-
-
Notifications
You must be signed in to change notification settings - Fork 265
Technical Improvements #1 #755
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
base: main
Are you sure you want to change the base?
Conversation
- Adjustable Speed - Name change preset: 'PULSING' -> 'BEATING' - lil' bit of code refactoring
This pull request can only be tested using the GitHub CLI in the most generic case, at least on my end. I prefer regular Git to handle these operations instead to offer the pure branch name. If I were you, I'd also probably split this into separate pull requests and have these be separate branches to offer the most secure way of handling merging, but that might just be me being picky about my branching as I usually am. Now, for the review. |
I'll take that as an advice, it's kind of my first time submitting PRs and whatnot and I only know the basics of Git and stuff T-T |
A small update, but the review was partially delayed because I had found an issue with my own custom version management program that prevented Lime from running properly in non-Visual Studio Code environments. I've issued a fix to it on my end, and, at the moment, I'm able to compile properly without issues. I'll review it once it compiles cleanly, since I had removed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The help message appears to work as intended. However, I do feel that the way the countdown is set up appears to be somewhat odd.
source/funkin/game/PlayState.hx
Outdated
event.spriteTween = tween; | ||
event.cancelled = false; | ||
var countdown:Countdown = new Countdown({ | ||
event: gameAndCharsEvent("onCountdown", EventManager.get(CountdownEvent).recycle( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do wish to address this particular hunk. What would be the use case of not being able to manage most of the properties of Countdown
in the event itself, like with the other events in PlayState
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, yeah, now that I think about it, it does feel like it's set up a little oddly. I thought of making an event as a parameter and just handling it (the event) within the Countdown class itself. Now that this has been brought up I start to wonder whether or not it'll break some backend functionality but it seemed to work as intended.
Reverting back to old CNE code where it has an event variable (in PlayState's countdown()
method) and using that in the event parameter when making a new Countdown makes no difference (readability wise, I think it's better).
It's an odd setup I know 😅, and my apologies if I replied late. I was asleep by that time. I'll try coming up with an alternative solution later. For now, this is all I've really got.
Hallo, I really like and love this engine, I thought I would try contributing to it as a gesture <3 (Also kind of my first contribution to any open-source project)
Sys.println(...)
, and making good use of conditional compilation flags to get the executables for the AsyncUpdater class