Skip to content

Instantly share code, notes, and snippets.

@chunkyguy
Created August 25, 2014 03:54
Show Gist options
  • Save chunkyguy/eeef94c541f527227fc8 to your computer and use it in GitHub Desktop.
Save chunkyguy/eeef94c541f527227fc8 to your computer and use it in GitHub Desktop.
Texture Atlas format for use in an upcoming game engine. This format works with Zwoptex.app
<?xml version="1.0" encoding="UTF-8"?>
<TextureAtlas>
<meta>
<textureName>{{ metadata.target.textureFileName }}</textureName>
<textureExtension>{{ metadata.target.textureFileExtension }}</textureExtension>
<textureSize>{{ metadata.size }}</textureSize>
</meta>
<SubTextures>
{% for sprite in spritesAndAliases %}
<SubTexture>
<name>{{ sprite.name }}</name>
<x>{{ sprite.textureRectX }}</x>
<y>{{ sprite.textureRectY }}</y>
<width>{{ sprite.textureRectWidth }}</width>
<height>{{ sprite.textureRectHeight }}</height>
<spriteTrimmed>{{ sprite.isTrimmed }}</spriteTrimmed>
<textureRotated>{{ sprite.isRotated }}</textureRotated>
</SubTexture>
{% /for %}
</SubTextures>
</TextureAtlas>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment