forked from phaserjs/phaser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zwoptex-phaser.template
40 lines (35 loc) · 1.97 KB
/
zwoptex-phaser.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"frames":
[
{% for sprite in spritesAndAliases %}{% if currentLoop.currentIndex > 0 %},{% /if %}
{
"filename": "{{ sprite.name }}",
"frame": {"x":{{ sprite.textureRectX }},"y":{{ sprite.textureRectY }},"w":{{ sprite.textureRectWidth }},"h":{{ sprite.textureRectHeight }}},
"rotated": {% if sprite.isRotated %}true{% else %}false{% /if %},
"trimmed": {% if sprite.isTrimmed %}true{% else %}false{% /if %},
"spriteSourceSize": {"x":0,"y":0,"w":{{ sprite.sourceSizeWidth }},"h":{{ sprite.sourceSizeHeight }}},
"sourceSize": {"w":{{ sprite.sourceSizeWidth }},"h":{{ sprite.sourceSizeHeight }}},
"spriteColorRect": {"x":{{ sprite.sourceColorRectX }},"y":{{ sprite.sourceColorRectY }},"w":{{ sprite.sourceColorRectWidth }},"h":{{ sprite.sourceColorRectHeight }}},
"spriteOffset": {"x":{{ sprite.offsetX }}, "y":{{ sprite.offsetY }}},
"spriteSize": {"w":{{ sprite.sizeWidth }}, "h":{{ sprite.sizeHeight }}}
}{% /for %}
],
"meta":
{
"app": "http://zwoptexapp.com",
"version": "{{ metadata.version }}",
"image": "{{ metadata.target.textureFileName }}{{ metadata.target.textureFileExtension }}",
"size": {"w":{{ metadata.sizeWidth }},"h":{{ metadata.sizeHeight }}},
"name": "{{ metadata.name }}",
"premultipliedAlpha": {% if metadata.premultipliedAlpha %}true{% else %}false{% /if %},
"target": {
"name": "{{ metadata.target.name }}",
"textureFileName": "{{ metadata.target.textureFileName }}",
"textureFileExtension": "{{ metadata.target.textureFileExtension }}",
"coordinatesFileName": "{{ metadata.target.coordinatesFileName }}",
"coordinatesFileExtension": "{{ metadata.target.coordinatesFileExtension }}",
"premultipliedAlpha": {% if metadata.target.premultipliedAlpha %}true{% else %}false{% /if %}
},
"scale": "1"
}
}