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.
- Open TexturePacker
- Open TexturePacker preferences
- Find the ‘Exporter Directory’ box
- Click the ‘...’ button and navigate to your firmament folder.
- navigate to the following folder: Firmament/tools/ 3rdPartySupport/texturePacker and hit ‘select’ or ‘choose’ depending on your system.
- Hit ‘ok’ to save your changes.
- 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.
...