Sprite

:= {
    texture : Texture,
    source : Rect,
    pos : Vec2,
    origin : Vec2,
    rotation : F32,
    scale : Vec2,
    tint : Color,
}

Sprite module - pure helpers for texture sprites and simple animations.

Drawing still goes through Draw/Assets. This module provides a compact game-facing shape for sprites, spritesheet frame rectangles, and animation state.

sheet_frame : { frame_size : Vec2, row : U64, col : U64 } -> Rect

Return a source rectangle for a regular grid spritesheet.

step : Animation, F32 -> Animation