• Rahix's avatar
    sprite: Add custom offsetting mechanism · c12ef4fe
    Rahix authored
    In case some entity needs its sprite to be offset from its position, add
    an `offset` attribute to the `Sprite` component which allows doing just
    The offset is a translation vector from the default position.  By
    default, a sprite is placed such that its center is located at the
    entities `Position`.
sprite.rs 518 Bytes