Giter Club home page Giter Club logo

forte's Introduction

Forte

Bevy ECS ability framework

Design & Goals

  • Attributes are all 64 bit fixed integers with 4 decimal places, floating point was avoided for a couple of reasons like adding/removing from an attribute might cause issues, however this might not be the case.

  • Attributes are also ideally composable. To set up a regenerating effect we shouldn't need to re-implement that for every attribute, so instead we have a single Regen<A> component for each attribute.

    These can also end up being recursive, for example if we wanted a maximum of health and a maximum to the max health we would have 3 components, Attribute<Health>, Attribute<Max<Health>>, and Attribute<Max<Max<Health>>>.

  • Abilitys are each their own Entity. When an ability hits an interactable it may apply an Effect which would be a child entity of the interactable or the ability itself.

  • Effects are ideally self-reducing to the parent, the developer ultimately should not care what is in the children of the interactable entity, only what is on the entity itself. Therefore we need some sort of "registry" stack for effects so we can determine how we want to stack effects ontop of eachother.

    For a very simple effect, say a "burn", each child entity would just tick each time it wants to damage the target, and just damage an Attribute.

    An example of a reducing stack would be a stun, ideally we could query for just a single Stunned component on the interactable. However, this has issues if they are hit with multiple stuns. So we need a kind of "crowdsourced" stun count from each of the effects so that it only removes the Stunned component when all the stuns have ended.

    In more complex examples, stacking could be done

forte's People

Contributors

aceeri avatar

Stargazers

 avatar

Watchers

 avatar

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.