flame_behaviors icon indicating copy to clipboard operation
flame_behaviors copied to clipboard

feat: add an abstract `ScreenCollisionBehavior` to interact with a `ScreenHitbox`

Open wolfenrain opened this issue 3 years ago • 0 comments

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 ScreenHitbox from a behavior.
  • [ ] Add tests that ensure this new API works as expected.

wolfenrain avatar Jun 20 '22 19:06 wolfenrain