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

Refactor 7 #25

Open
wants to merge 1 commit into
base: refactor-6
Choose a base branch
from
Open

Refactor 7 #25

wants to merge 1 commit into from

Conversation

michaeltintiuc
Copy link
Member

This is the seventh step of refactoring:

  • Further simplify Player component
  • Add score feature
  • Group UI

We've further simplified the player's collision logic and introduced new utility functions as well as new methods on the collider class. We've replaced some of the player variables defined in the image onLoad function with top-level refs making it easier to track and maintain which allowed us to easily move the damage effect into a separate utility function.

We've introduced the ability to disable collisions and added a scoring feature.
We've fixed the bug within the useSprite and useAnimatedSprite hooks which was causing re-rendering by destructuring the props object.

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