flame_texturepacker
5.1.2, released 4 months ago by flame-engine.org
Import TexturePacker sprite sheets into the Flame Engine
What it does
A plugin for the Flame Engine that allows you to import sprite sheets and atlases generated by Gdx Texture Packer and Code & Web Texture Packer. It supports features like rotation, multiple pages, sprite indices, whitespace stripping, and sprite whitelisting.
AI-written summary of version 5.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Flame game and use TexturePacker for sprite sheets
- You need to load sprite animations or individual sprites from texture atlases
Skip it when
- You are not using the Flame Engine
- You do not use texture atlases for your assets
Strengths
- Supports multiple pages and rotation from TexturePacker
- Convenience extensions for Flame games
- Memory optimizations via sprite whitelisting
Weaknesses
- Specific to the Flame Engine ecosystem
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add the package to pubspec.yaml, drop generated atlas and image files into your assets folder, and link them in your pubspec.yaml.
final atlas = await TexturePackerAtlas.load('atlas_map.atlas');
final animation = atlas.getAnimation('robot_walk', stepTime: 0.1, loop: true);Alternatives
Packages that do the same job and could replace flame_texturepacker.
- forge2d
A 2D physics engine for Dart, binding to the native Box2D v3 library.
91Compare - bonfire
Create RPG-style games and similar 2D games using Flame engine.
84Compare - flame_camera_tools
Tools for smooth following, camera shake, zooming, and rotating in Flame games.
72Compare - jenny
YarnSpinner narrative game tools equivalent for Dart and Flame.
69Compare
Works with
Packages commonly used together with flame_texturepacker: ones it builds on, ones built on it, and its own family.
- cross_fileflame_texturepacker depends on itAn abstraction to allow working with files across multiple platforms.
- flameflame_texturepacker depends on itA minimalist Flutter game engine, provides a nice set of somewhat independent modules you can choose from.
- flame_audioSame familyAudio support wrapper for the Flame game engine
- flame_testSame familyClasses and helpers for testing applications built with the Flame Engine.
- flame_svgSame familyAdds SVG rendering support for the Flame game engine
- flame_blocSame familyIntegration for the Bloc state management library to Flame games.
- flame_lintSame familyA strict and satisfying lint package for Flame, Flutter, or Dart projects.
- flame_forge2dSame familyForge2D physics engine support and wrappers for the Flame game engine.