flame_fire_atlas 1.7.0 copy "flame_fire_atlas: ^1.7.0" to clipboard
flame_fire_atlas: ^1.7.0 copied to clipboard

Easy to use texture atlases for the flame engine created with the fire atlas editor

flame

Adds support for fire_atlas-based sprite sheets inside Flame.


flame_fire_atlas #

Flame Fire Atlas is a texture atlas lib for Flame. Atlases can be created using the
Fire Atlas Editor.

How to use #

Add the flame_fire_atlas dependency on your pubspec.yaml.

Then, load the atlas from your assets:

// file at assets/atlas.fa
final atlas = await FireAtlas.loadAsset('atlas.fa');

or when inside a game instance, the loadFireAtlas can be used:

// file at assets/atlas.fa
final atlas = await loadFireAtlas('atlas.fa');

With the instance loaded you can now get sprites and animations like:

atlas.getAnimation('animation_name');
atlas.getSprite('sprite_name');
14
likes
160
points
689
downloads

Publisher

verified publisherflame-engine.org

Weekly Downloads

Easy to use texture atlases for the flame engine created with the fire atlas editor

Repository (GitHub)
View/report issues
Contributing

Topics

#flame #tools

Documentation

API reference

Funding

Consider supporting this project:

opencollective.com
github.com
patreon.com

License

MIT (license)

Dependencies

archive, flame, flutter

More

Packages that depend on flame_fire_atlas