flame_behaviors
flame_behaviors copied to clipboard
feat: add an abstract `ScreenCollisionBehavior` to interact with a `ScreenHitbox`
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.
Requirements
- [ ] An API that allows developers to interact with the
ScreenHitboxfrom a behavior. - [ ] Add tests that ensure this new API works as expected.