[go: up one dir, main page]

openfl-atlas

Atlas parser to use with Tilemap. Create all rectangles for you. Allow to get tile's size and a tile by its name
https://github.com/loudoweb/openfl-atlas

To install, run:

haxelib install openfl-atlas 1.2.0 

See using Haxelib in Haxelib documentation for more information.

README.md

openfl-atlas

atlas importer for Tilemap (openfl >=4.0.2)

Now use Haxe 4!

Code based fairly inspired by tilelayer by elsassph

Atlas format supported

  • SparrowTileset : (sparrow and starling format)
  • SpriterTileset : (custom format for Spriter based on Sparrow that you can install for TexturePacker from here: https://github.com/loudoweb/SpriterHaxeEngine/tree/master/texturePackerExporter/spriterhaxeengine)

Feature

  • get tile id from atlas. e.g: new Tile(tilesetEx.getImageID('knight'))
  • use TileClip to animate your tiles. e.g : new TileClip('knight_', tilesetEx) and then use update() each frame

TODO

  • SpriterJSONTileset : (official format for Spriter in json)
  • ask for one or make a pull request
Contributors
loudoweb
Version
1.2.0
Published
4 years ago
Dependencies
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub