mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
Allocate an atlas per map to keep sprite paint orders correct. If you already use one atlas permap, this will have no benifit. Multiple tileset images will see both a performance gain from single batch renders, and correct painting on staggered maps. Fix animations with offets - Remove TiledLayer._loadImages - no longer used. - Animations that are in other layers need also translate by offset Cheap 2D rect bin packing - Sort: images from large->small - Keep searching for smallest rect, but input rects should be big->small Parallel load atlas images Moved some testing classes around for better code sharing Fixed tests for external tsx loading. It is dangerous to override global static values... Co-authored-by: Lukas Klingsbo <me@lukas.fyi>
flame_tiled
⚠️ Under the current sprite batch implementation, you might experience extra lines while rendering due to a bug in Flutter, see this issue.
Package to bridge the tiled library into easy-to-use Flame components.
More here.