{"repo":"Seldom-SE/seldom_state","free":true,"listed":false,"github":"https://github.com/Seldom-SE/seldom_state","clone":"git clone https://github.com/Seldom-SE/seldom_state.git","description":"Component-based state machine plugin for Bevy. Useful for AI, player state, and other entities that occupy different states.","language":"Rust","stars":318,"topics":["ai","bevy","bevy-engine","bevy-plugin","rust","state-machine"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"seldom state seldom state is a component-based state machine plugin for Bevy. It's useful for AI, player state, and other entities that occupy various states. It allows for greater reusability of state logic between entities, compared to managing mutually-exclusive components directly in your systems. A state is a component attached to an entity that defines its current behavior, such as Jumping or Stunned . A trigger is a system that checks information about entities in the world, such as near position or health below threshold . A transition links two states: one to transition from, and one to transition to; once a given trigger has occurred. A state machine is a component attached to an entity that keeps track of that entity's transitions, and automatically changes the entity's state according to those transitions. State machines are created like so: For more complete examples, see the examples directory. The chase.rs example is written like a guide, so it is good for learning. If you need help, feel free to ping me on the Bevy Discord server ( @Seldom )! If anything needs improvement, feel free to submit an issue or pr! Features - State machine component with user-defined states and triggers - 30 built-in triggers - always : always triggers - NotTrigger , AndTrigger , and OrTrigger : combines triggers with boolean logic - done : triggers when the Done component is added to the entity - 24 more triggers enabled by the leafwing input feature: action data , axis pair , axis ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Seldom-SE","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Seldom-SE/seldom_state/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}