Retro-style 8×8 sprite rendering with animations and transformations
The Sprite System provides classic 2D sprite rendering perfect for retro games. Sprites are 8×8 pixel tiles that can be animated, flipped, and layered.
Draws a sprite from the sprite sheet.
spr(5, playerX, playerY, facingLeft); // Draw player sprite
Loads a sprite sheet image.
await loadSpriteSheet("/sprites/characters.png");