[][src]Module deathframe::systems

A collection of systems, giving the components in this crate functionality.

Modules

prelude
system_prelude

Structs

AnimationSystem
CameraSystem
CollisionSystem

The CollisionSystem is in charge of setting collision states for colliding entities. Entities with CheckCollision (and with Collision) check for collision against other entities with Collision. Only checks for entities with either NO Loadable and NO Loaded components or for entities with Loadable AND Loaded components; does not check for entities with Loadable but NOT Loaded components.

ConfineEntitiesSystem

This system confines all entities with Transform and Confined to the rect defined in Confined, taking Size into account.

DecreaseVelocitiesSystem

Gets all entities with Velocity and DecreaseVelocity, and decreases their velocities every frame.

GravitySystem

This system increases entities' velocities every frame.

InputManagerSystem

Handles all the logic for InputManager.

LimitVelocitiesSystem

Gets all entities with Velocity and MaxVelocity, and caps their velocities if they are above or below a certain limit.

MoveEntitiesSystem

This system is responsible for moving all entities with Transform and Velocity, by manipulating their Transform appropriately. It also handles collision with Solid entities; Solid entities may not move into each other.

ParallaxSystem

The ParallaxSystem is in charge of managing all parallax backgrounds.

ScaleSpritesSystem

This system gets all entities with Transform, Size, SpriteRender, and ScaleOnce, and scales their sprite to their entity's size once; after scaling, the ScaleOnce component is removed from the entity.