flutter_sprite_stack 0.2.0
flutter_sprite_stack: ^0.2.0 copied to clipboard
Render sprite-stacking props in Flutter with free turntable rotation from a horizontal strip of top-down cross-sections. One draw per slice.
Changelog #
0.2.0 #
SpriteStack.boundsForreports the projected bounds (rotated footprint, outline and ground shadow) instead of the flat slice box.SpriteStackComponent.sizeand its ground anchor follow those bounds, so culling and hit boxes match the drawing at any yaw. Camera setters refresh them automatically.pixelSnap(defaulttrue) rounds the ground anchor — and the per-slice lifts of the fallback path — to whole pixels.SpriteStack.bakerecords a frame into aBakedSpriteStackthat replays with onedrawPicture.SpriteStackTurntablebakes one frame per yaw bucket, lazily, withwarmUp.SpriteStackCacheshares decoded stacks by asset path.- README and docs gained a turntable GIF, a pub.dev screenshot and the new API.
0.1.0 #
SpriteStack: load/decode a horizontal slice strip and render it with free yaw, pitch, scale and slice spacing.SpriteStackPainterfor plain Flutter canvases.SpriteStackComponentfor Flame/Bonfire, with size kept in sync for hit boxes and Y sorting.- Offline-cached projection helpers (
squashFor,heightFor). - Example app with sliders and a generated demo asset.
- Example Bonfire game: drive the sprite-stacked F1 car around a circuit.