Code Monkey home page Code Monkey logo

flame_behaviors's People

Contributors

bbariskilic avatar dependabot[bot] avatar felangel avatar renancaraujo avatar tomarra avatar wolfenrain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

flame_behaviors's Issues

refactor: make the entity into a generic component

Description

Right now behaviors can't be composed on top of non-positioned components, but there is no reason that an entity has to be a positioned component.

We should refactor the internal logic to allow for behaviors to be composed onto anything that is a form of entity (and not just a position component).

refactor: convert input behaviors to the new APIs once they hit stable.

Description

The input behaviors, like DraggableBehavior and TappableBehavior are using the old input system. There is now a (experimental) new API for handing drag and tap events:

Ones these hit as stable we should refactor these behaviors to work with the new API. This will introduce a breaking change in flame_behaviors.

Requirements

  • Refactor input behaviors to the new API
  • Test their functionality
  • Write migration documentation

fix: `PropagatingCollisionBehavior` should also work for non entity components

Description

As a developer, I want to be able to detect collision with non-entity components as well. This would allow me to use flame_behaviors in any existing game and slowly migrate to the design rules. The CollisionBehavior already supports any type of component as the Collider but the PropagatingCollisionBehavior has an internal method that filters down on Entities only.

And while we do have an explicit test that ensures it shouldn't work for non-entity components, I do consider this a bug in the current implementation because the CollisionBehavior already works under the assumption that any component is allowed.

Requirements

  • Update the internal method of PropagatingCollisionBehavior to be less strict towards entities.
  • Update the tests to ensure that non-entity components are also able to collide.

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

Description

@renancaraujo mentioned in #20 (comment) 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.