-
-
Notifications
You must be signed in to change notification settings - Fork 64
refactor: context in 1 variable #502
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
Conversation
commit: |
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.
See comments
@@ -20,17 +20,17 @@ export function opacity(a: number): OpacityComp { | |||
return { | |||
id: "opacity", | |||
opacity: a ?? 1, | |||
fadeIn(time = 1, easeFunc = k.easings.linear): TweenController { | |||
return game.root.tween( | |||
fadeIn(time = 1, easeFunc = _k.k.easings.linear): TweenController { |
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.
_k.k ?
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.
yep, _k also contains the k handler
|
||
export function dt() { | ||
return app.dt() * debug.timeScale; |
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.
debug.timeScale is no longer needed?
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.
no because app.dt() already did it, it was dupplied
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.
😱
Description
Issues or related