Atlas
Last updated
Last updated
The atlas file (with extension .atlas) is produced by Spine. The purpose of an atlas file is to define the coordinates in a PNG file used for different named regions. The atlas file defines both the .png that is used as well as its regions.
By default, atlas files are loaded into the runtime type Spine.Atlas.
You can produce an .atlas file from a FlatRedBall .achx file by using the AchxToSpineAtlas.exe tool.
At the time of this writing you must build this tool yourself. To do this:
Clone the FlatRedBall Repository
Open <FRB Root>\FRBDK\AchxToSpineAtlas\AchxToSpineAtlas.sln
Build the tool which produces a .exe
Once you have built the tool you can use it either in the command line, or you can set up a File Build Tool association.
To run the tool in the command line, run the .exe with two parameters:
The source (.achx) file
The destination (.atlas) file
For example, you can run the tool using the following command to build an .atlas file:
To use the AchxToSpineAtlas.exe tool as a File Build Tool in FlatRedBall:
Open your project in FlatRedBall
Select the Settings -> File Build Tools menu item
Click Add new build tool
Click the ... button to select the BuildTool. Navigate to where AchxToSpineAtlas.exe is located
Set the SourceFileType as achx
(no period before the extension)
Set the DestinationFileType as atlas
After you click the OK button, FlatRedBall understands that .achx files may be used to build .atlas files.
Note that this change now results in FlatRedBall asking you about the build tool whenever you add a new .achx file.
If you are adding a file which you would like to be treated as an AnimationChain, then select the <None> option. For more information on build tools, see the File Build Tools documentation.