Skip to content
pubscout

flame_texturepacker

5.1.2, released 4 months ago by flame-engine.org

Import TexturePacker sprite sheets into the Flame Engine

WASM-ready
$ flutter pub add flame_texturepacker
Source repository

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.

  • bonfire

    Create RPG-style games and similar 2D games using Flame engine.

  • flame_camera_tools

    Tools for smooth following, camera shake, zooming, and rotating in Flame games.

  • jenny

    YarnSpinner narrative game tools equivalent for Dart and Flame.

Works with

Packages commonly used together with flame_texturepacker: ones it builds on, ones built on it, and its own family.