Expand description
Position, layers, velocity, anchors, etc.
Structs§
- PxPosition
- The position of an entity
- PxSub
Position - Float-based position. Add to entities that have
PxPosition, but also need a sub-pixel position. UsePxPositionunless a sub-pixel position is necessary. - PxVelocity
- Velocity. Entities with this and
PxSubPositionwill move at this velocity over time.
Enums§
- PxAnchor
- How a sprite is positioned relative to its
PxPosition. It defaults toPxAnchor::Center.
Traits§
- PxLayer
- Trait implemented for your game’s custom layer type. Use the
px_layerattribute or derive/implement the required traits manually. The layers will be rendered in the order defined by thePartialOrdimplementation. So, lower values will be in the back and vice versa.