Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

3. Compile individual images into tilesheet(s)

Note

This step can still be done but is no longer required. Firmament will now dynamically create tilesheets on the fly if you don't generate them before-hand.

The rest is left here for those wishing to improve loading performance by pre-generating tilesheets.

 

This can be done manually, but it is recommended that you use a tool like TexturePacker (http://www.codeandweb.com/texturepacker) for this. Firmament comes with an exporter for texture packer.
 

Setting up TexturePacker

After TexturePacker is installed, you will need to tell it where to find the firmament plugin. These instructions assume you already have firmament engine somewhere.
 
 

  1. Open TexturePacker
  2. Open TexturePacker preferences
  3. Find the ‘Exporter Directory’ box
  4. Click the ‘...’ button and navigate to your firmament folder.
  5. navigate to the following folder: Firmament/tools/ 3rdPartySupport/texturePacker and hit ‘select’ or ‘choose’ depending on your system.
  6. Hit ‘ok’ to save your changes.
  7. in the ‘Output’ pane on the left, you should now see ‘Firmament Engine’ as an option in the ‘Data Format’ dropdown. If you do, then all is well!

 

Building Tilesheets With TexturePacker

Building tilesheets and their metadata is very easy with TexturePacker.

...