• 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
    that.
    
    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`.
    c12ef4fe
sprite.rs 609 Bytes