-
Notifications
You must be signed in to change notification settings - Fork 2
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
Combine SoccerPlayer.isActiveProperty into the SoccerPlayer.phaseProperty #327
Comments
I'm not sure this is a win/win proposal. For instance, in SoccerPlayerNode, it is nice that the poses all have a distinct associated image. @matthew-blackman can you please inspect and advise? |
@samreid I agree that the pose logic works well, but I still think that soccerPlayerNode can be improved by implementing a phaseProperty and moving the isActiveProperty logic into it. For example, we could update the pose based on the phase, and also implement a screen-specific way to show/hide the players when they are done kicking in the different screens. So we'd have poseProperty and phaseProperty, but no isActiveProperty (or one that derives from phaseProperty and accounts for screen-specific logic). Thoughts? |
Good idea, let's do that, thanks. |
The above commit seems to be working well aside from one bug that I'm tracking: To address #328, in the Variability screen the soccer player should stay visible and standing after the last ball has been kicked. The above commit achieves this for all maxKicks except for maxKicks = 30. I'm thinking this may have something to do with maxKicksLimit but I haven't deeply investigated yet. @marlitas I'll mark this help-wanted so we can do a code review and look at this synchronously. |
This is ready for review @marlitas. Let me know if you want to discuss anything synchronously. |
@matthew-blackman I'm a little confused. I don't see any commits that address the bug you reported #327 (comment). Was the bug fixed in another issue or was it something else? |
That bug was addressed in a commit in #328. |
Reviewed with @marlitas and all looks good. Closing. |
Get rid of isActiveProperty. Change poseProperty to phaseProperty. Discovered in #193
The text was updated successfully, but these errors were encountered: