flame_kenney_xml 0.1.1+1 copy "flame_kenney_xml: ^0.1.1+1" to clipboard
flame_kenney_xml: ^0.1.1+1 copied to clipboard

Support for Kenney XML spritesheets for the Flame game engine. This package parses XML files produced by Kenney.

flame

Adds support for parsing XML sprite sheets from https://kenney.nl, and other sprite sheets on the same format.


Getting started #

To get started, first add flame_kenney_xml as a dependency in your flutter project.

flutter pub add flame_kenney_xml

Then place the spritesheet.json in assets/ and spritesheet.png in assets/images/ (or whatever the names of the files are).

Then load the image and the spritesheet using:

final spritesheet = await XmlSpriteSheet.load(
  image: 'spritesheet.png',
  xml: 'spritesheet.xml`,
);
4
likes
160
pub points
86%
popularity

Publisher

verified publisherflame-engine.org

Support for Kenney XML spritesheets for the Flame game engine. This package parses XML files produced by Kenney.

Repository (GitHub)
View/report issues
Contributing

Topics

#flame #spritesheet #kenney #tilemap

Documentation

API reference

Funding

Consider supporting this project:

opencollective.com
github.com
patreon.com

License

MIT (license)

Dependencies

flame, flutter, xml

More

Packages that depend on flame_kenney_xml