flame
flame copied to clipboard
feat(flame_behaviours): add an abstract ScreenCollisionBehavior to interact with a ScreenHitbox
Problem to solve
Originally this issue was in the old repository: https://github.com/VeryGoodOpenSource/flame_behaviors/issues/21
Description
@renancaraujo mentioned in https://github.com/VeryGoodOpenSource/flame_behaviors/pull/20#discussion_r901742664 that it would be nice to provide a behavior that simplifies collision interaction with a ScreenHitbox. We should provide an abstract API for that, that people can extend from to implement their own if I hit the screen then do this logic.
Proposal
- [ ] An API that allows developers to interact with the
ScreenHitboxfrom a behavior. - [ ] Add tests that ensure this new API works as expected.
More information
No response
Other
- [ ] Are you interested in working on a PR for this?