-
Notifications
You must be signed in to change notification settings - Fork 7
/
json.template
41 lines (41 loc) · 1.1 KB
/
json.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
41
{
"animations": [
{{ #each animations as |animation| }}
{
"name": "{{ animation.name }}",
"looping": {{ animation.is_looping }},
"sequences": [
{{ #each animation.sequences as |sequence| }}
{
"direction": "{{ sequence.direction }}",
"keyframes": [
{{ #each sequence.keyframes as |keyframe| }}
{
"x": {{ keyframe.x }},
"y": {{ keyframe.y }},
"duration": {{ keyframe.duration }},
"atlasX": {{ keyframe.frame.x }},
"atlasY": {{ keyframe.frame.y }},
"width": {{ keyframe.frame.width }},
"height": {{ keyframe.frame.height }},
"hitboxes": [
{{ #each keyframe.hitboxes as |hitbox| }}
{
"name": "{{ hitbox.name }}",
"x": {{ hitbox.x }},
"y": {{ hitbox.y }},
"width": {{ hitbox.width }},
"height": {{ hitbox.height }}
}{{ #unless @last }},{{ /unless }}
{{ /each }}
]
}{{ #unless @last }},{{ /unless }}
{{ /each }}
]
}{{ #unless @last }},{{ /unless }}
{{ /each }}
]
}{{ #unless @last }},{{ /unless }}
{{ /each }}
]
}