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 8 #26

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

Refactor 8 #26

wants to merge 1 commit into from

Conversation

michaeltintiuc
Copy link
Member

This is the eighth step of refactoring:

  • Implement events
  • Connect Lever and CellarDoor through events
  • Remove component state from top-level App component
  • Add custom hook - useChangeEffect
  • Add ability to scale Rects
  • Add new collision type and ability to interact with objects
  • Added generic types

We've introduced a new event system that allows components sharing the same context to communicate freely. In order to achieve that we've also created a custom hook that will only fire when inputs are changed in contrast to also executing when a component mounts.
We've been able to implement object interaction by building on our existing collision system

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