Skip to content

Instantly share code, notes, and snippets.

@nunof07

nunof07/custom.txt

Last active Jun 3, 2018
Embed
What would you like to do?
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