Install to ~/Library/Application Support/Zwoptex/Coordinates Formats/
Last active
August 29, 2015 14:04
-
-
Save rkusa/1942a2daf53f2f196acd to your computer and use it in GitHub Desktop.
Custom Zwoptex 2 coordinates JSON template.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: JSON | |
extension: json | |
--- | |
{ | |
"frames": { | |
{% for sprite in spritesAndAliases %} | |
"{{ sprite.pathName }}": { | |
"frame": {"x":{{ sprite.textureRect.x }},"y":{{ sprite.textureRect.y }},"w":{{ sprite.textureRect.width }},"h":{{ sprite.textureRect.height }}}, | |
"rotated": false, | |
"trimmed": {% if sprite.trimmed %}true{% else %}false{% /if %}, | |
"spriteSourceSize": {"x":0,"y":0,"w":{{ sprite.sourceSize.width }},"h":{{ sprite.sourceSize.height }}}, | |
"sourceSize": {"w":{{ sprite.sourceSize.width }},"h":{{ sprite.sourceSize.height }}}, | |
"spriteColorRect": {"x":{{ sprite.sourceColorRect.x }},"y":{{ sprite.sourceColorRect.y }},"w":{{ sprite.sourceColorRect.width }},"h":{{ sprite.sourceColorRect.height }}}, | |
"spriteOffset": {"x":{{ sprite.offset.x }}, "y":{{ sprite.offset.y }}} | |
}{% unless loop.last %},{% endunless %} | |
{% /for %} | |
}, | |
"meta": { | |
"app": "http://zwoptexapp.com", | |
"version": "{{ metadata.version }}", | |
"name": "{{ metadata.name }}", | |
"image": "{{ sheet.textureFile.name }}", | |
"size": {"w":{{ sheet.size.width }},"h":{{ sheet.size.height }}}, | |
"scale": "{{ target.scale }}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment