Skip to content

Instantly share code, notes, and snippets.

@nunof07
Last active June 3, 2018 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nunof07/464ccf0c352d9959395a32f299feee1e to your computer and use it in GitHub Desktop.
Save nunof07/464ccf0c352d9959395a32f299feee1e to your computer and use it in GitHub Desktop.
Phaser 3 export format for "Free texture packer"
{
"textures": [
{
"image": "{{config.imageName}}",
"format": "{{config.format}}",
"size": {
"w": {{config.imageWidth}},
"h": {{config.imageHeight}}
},
"scale": {{config.scale}},
"frames": [
{{#rects}}
{
"filename": "{{{name}}}",
"frame": {
"x": {{frame.x}},
"y": {{frame.y}},
"w": {{frame.w}},
"h": {{frame.h}}
},
"rotated": {{rotated}},
"trimmed": {{trimmed}},
"spriteSourceSize": {
"x": {{spriteSourceSize.x}},
"y": {{spriteSourceSize.y}},
"w": {{spriteSourceSize.w}},
"h": {{spriteSourceSize.h}}
},
"sourceSize": {
"w": {{sourceSize.w}},
"h": {{sourceSize.h}}
},
"pivot": {
"x": 0.5,
"y": 0.5
}
}{{^last}},{{/last}}
{{/rects}}
]
}
],
"meta": {
"app": "{{{appInfo.url}}}",
"version": "{{appInfo.version}}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment