diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/dragonBones.png b/examples/example 12 - Spine/data/dragonBones.png deleted file mode 100644 index 12cb92e..0000000 --- a/examples/example 12 - Spine/data/dragonBones.png +++ /dev/null Binary files differ diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/dragonBones.png b/examples/example 12 - Spine/data/dragonBones.png deleted file mode 100644 index 12cb92e..0000000 --- a/examples/example 12 - Spine/data/dragonBones.png +++ /dev/null Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBonesData.json b/examples/example 12 - Spine/data/dragonBonesData.json deleted file mode 100644 index c65508a..0000000 --- a/examples/example 12 - Spine/data/dragonBonesData.json +++ /dev/null @@ -1,779 +0,0 @@ -{ -"bones": [ - { "name": "root", "y": -176.12 }, - { "name": "COG", "parent": "root", "y": 176.12 }, - { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, - { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, - { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, - { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, - { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, - { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, - { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, - { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, - { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, - { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, - { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, - { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, - { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, - { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, - { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, - { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, - { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, - { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, - { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, - { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, - { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, - { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, - { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, - { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, - { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, - { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, - { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, - { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, - { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, - { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, - { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } -], -"slots": [ - { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, - { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, - { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, - { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, - { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, - { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, - { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, - { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, - { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, - { "name": "back", "bone": "back", "attachment": "back" }, - { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, - { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, - { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, - { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, - { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, - { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, - { "name": "chest", "bone": "chest", "attachment": "chest" }, - { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, - { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, - { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, - { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, - { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, - { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, - { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, - { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, - { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, - { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, - { "name": "chin", "bone": "chin", "attachment": "chin" }, - { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, - { "name": "head", "bone": "head", "attachment": "head" } -], -"skins": { - "default": { - "L_front_leg": { - "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } - }, - "L_front_thigh": { - "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } - }, - "L_front_toe1": { - "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } - }, - "L_front_toe2": { - "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } - }, - "L_front_toe3": { - "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } - }, - "L_front_toe4": { - "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } - }, - "L_rear_leg": { - "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } - }, - "L_rear_thigh": { - "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } - }, - "L_wing": { - "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, - "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, - "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, - "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, - "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, - "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, - "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, - "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, - "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } - }, - "R_front_leg": { - "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } - }, - "R_front_thigh": { - "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } - }, - "R_front_toe1": { - "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } - }, - "R_front_toe2": { - "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } - }, - "R_front_toe3": { - "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } - }, - "R_rear_leg": { - "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } - }, - "R_rear_thigh": { - "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } - }, - "R_rear_toe1": { - "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } - }, - "R_rear_toe2": { - "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } - }, - "R_rear_toe3": { - "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } - }, - "R_wing": { - "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, - "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, - "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, - "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, - "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, - "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, - "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, - "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, - "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } - }, - "back": { - "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } - }, - "chest": { - "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } - }, - "chin": { - "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } - }, - "head": { - "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } - }, - "tail1": { - "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } - }, - "tail2": { - "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } - }, - "tail3": { - "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } - }, - "tail4": { - "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } - }, - "tail5": { - "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } - }, - "tail6": { - "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } - } - } -}, -"animations": { - "flying": { - "bones": { - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.39 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.8333, "angle": 7 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -8.18 }, - { "time": 0.3333, "angle": -23.16 }, - { "time": 0.5, "angle": -18.01 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chest": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -2.42 }, - { "time": 0.3333, "angle": -26.2 }, - { "time": 0.5, "angle": -29.65 }, - { "time": 0.6666, "angle": -23.15 }, - { "time": 0.8333, "angle": -55.46 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_thigh": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -1.12 }, - { "time": 0.3333, "angle": 10.48 }, - { "time": 0.5, "angle": 7.89 }, - { "time": 0.8333, "angle": -10.38 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 8.24 }, - { "time": 0.3333, "angle": 15.21 }, - { "time": 0.5, "angle": 14.84 }, - { "time": 0.8333, "angle": -18.9 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.46 }, - { "time": 0.3333, "angle": 22.15 }, - { "time": 0.5, "angle": 22.76 }, - { "time": 0.8333, "angle": -4.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail5": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 7.4 }, - { "time": 0.3333, "angle": 28.5 }, - { "time": 0.5, "angle": 21.33 }, - { "time": 0.8333, "angle": -1.27 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail6": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 45.99 }, - { "time": 0.4, "angle": 43.53 }, - { "time": 0.5, "angle": 61.79 }, - { "time": 0.8333, "angle": 13.28 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -14.21 }, - { "time": 0.5, "angle": 47.17 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -36.06 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -20.32 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -18.71 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.408, 1.36, 0.675, 1.43 ] - }, - { "time": 0.5, "angle": 1.03 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chin": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.416, 1.15, 0.494, 1.27 ] - }, - { "time": 0.3333, "angle": -5.15 }, - { "time": 0.5, "angle": 9.79 }, - { "time": 0.6666, "angle": 18.94 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -19.18 }, - { "time": 0.3333, "angle": -32.02 }, - { "time": 0.5, "angle": -19.62 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -12.96 }, - { "time": 0.5, "angle": 16.2 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 37.77 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -16.08 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.33, "y": 1.029 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 26.51 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.239, "y": 0.993 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 16.99 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.402, "y": 1.007 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 26.07 }, - { "time": 0.5, "angle": -21.6 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 29.23 }, - { "time": 0.5, "angle": 34.83 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.412, "y": 1 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 24.89 }, - { "time": 0.5, "angle": 23.16 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.407, "y": 1.057 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 11.01 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.329, "y": 1.181 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 25.19 }, - { "time": 0.6666, "angle": -15.65 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "COG": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.456, 0.2, 0.422, 1.06 ] - }, - { "time": 0.3333, "angle": 23.93 }, - { - "time": 0.6666, - "angle": 337.8, - "curve": [ 0.41, 0, 0.887, 0.75 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.33, 1, 0.816, 1.33 ] - }, - { - "time": 0.5, - "x": 0, - "y": 113.01, - "curve": [ 0.396, 0, 0.709, 2.03 ] - }, - { "time": 1, "x": 0, "y": 0 } - ] - } - }, - "slots": { - "R_wing": { - "attachment": [ - { "time": 0, "name": "R_wing01" }, - { "time": 0.0666, "name": "R_wing02" }, - { "time": 0.1333, "name": "R_wing03" }, - { "time": 0.2, "name": "R_wing04" }, - { "time": 0.2666, "name": "R_wing05" }, - { "time": 0.3333, "name": "R_wing06" }, - { "time": 0.4, "name": "R_wing07" }, - { "time": 0.4666, "name": "R_wing08" }, - { "time": 0.5333, "name": "R_wing09" }, - { "time": 0.6, "name": "R_wing01" }, - { "time": 0.7333, "name": "R_wing02" }, - { "time": 0.7666, "name": "R_wing02" }, - { "time": 0.8, "name": "R_wing03" }, - { "time": 0.8333, "name": "R_wing04" }, - { "time": 0.8666, "name": "R_wing05" }, - { "time": 0.9, "name": "R_wing06" }, - { "time": 0.9333, "name": "R_wing07" }, - { "time": 0.9666, "name": "R_wing08" }, - { "time": 1, "name": "R_wing09" } - ] - }, - "L_wing": { - "attachment": [ - { "time": 0, "name": "L_wing01" }, - { "time": 0.0666, "name": "L_wing02" }, - { "time": 0.1333, "name": "L_wing03" }, - { "time": 0.2, "name": "L_wing04" }, - { "time": 0.2666, "name": "L_wing05" }, - { "time": 0.3333, "name": "L_wing06" }, - { "time": 0.4, "name": "L_wing07" }, - { "time": 0.4666, "name": "L_wing08" }, - { "time": 0.5333, "name": "L_wing09" }, - { "time": 0.6, "name": "L_wing01" }, - { "time": 0.7333, "name": "L_wing02" }, - { "time": 0.8, "name": "L_wing03" }, - { "time": 0.8333, "name": "L_wing04" }, - { "time": 0.8666, "name": "L_wing05" }, - { "time": 0.9, "name": "L_wing06" }, - { "time": 0.9333, "name": "L_wing07" }, - { "time": 0.9666, "name": "L_wing08" }, - { "time": 1, "name": "L_wing09" } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/dragonBones.png b/examples/example 12 - Spine/data/dragonBones.png deleted file mode 100644 index 12cb92e..0000000 --- a/examples/example 12 - Spine/data/dragonBones.png +++ /dev/null Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBonesData.json b/examples/example 12 - Spine/data/dragonBonesData.json deleted file mode 100644 index c65508a..0000000 --- a/examples/example 12 - Spine/data/dragonBonesData.json +++ /dev/null @@ -1,779 +0,0 @@ -{ -"bones": [ - { "name": "root", "y": -176.12 }, - { "name": "COG", "parent": "root", "y": 176.12 }, - { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, - { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, - { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, - { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, - { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, - { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, - { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, - { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, - { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, - { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, - { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, - { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, - { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, - { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, - { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, - { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, - { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, - { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, - { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, - { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, - { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, - { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, - { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, - { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, - { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, - { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, - { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, - { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, - { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, - { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, - { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } -], -"slots": [ - { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, - { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, - { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, - { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, - { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, - { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, - { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, - { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, - { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, - { "name": "back", "bone": "back", "attachment": "back" }, - { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, - { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, - { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, - { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, - { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, - { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, - { "name": "chest", "bone": "chest", "attachment": "chest" }, - { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, - { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, - { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, - { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, - { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, - { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, - { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, - { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, - { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, - { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, - { "name": "chin", "bone": "chin", "attachment": "chin" }, - { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, - { "name": "head", "bone": "head", "attachment": "head" } -], -"skins": { - "default": { - "L_front_leg": { - "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } - }, - "L_front_thigh": { - "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } - }, - "L_front_toe1": { - "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } - }, - "L_front_toe2": { - "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } - }, - "L_front_toe3": { - "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } - }, - "L_front_toe4": { - "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } - }, - "L_rear_leg": { - "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } - }, - "L_rear_thigh": { - "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } - }, - "L_wing": { - "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, - "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, - "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, - "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, - "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, - "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, - "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, - "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, - "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } - }, - "R_front_leg": { - "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } - }, - "R_front_thigh": { - "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } - }, - "R_front_toe1": { - "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } - }, - "R_front_toe2": { - "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } - }, - "R_front_toe3": { - "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } - }, - "R_rear_leg": { - "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } - }, - "R_rear_thigh": { - "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } - }, - "R_rear_toe1": { - "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } - }, - "R_rear_toe2": { - "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } - }, - "R_rear_toe3": { - "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } - }, - "R_wing": { - "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, - "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, - "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, - "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, - "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, - "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, - "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, - "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, - "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } - }, - "back": { - "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } - }, - "chest": { - "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } - }, - "chin": { - "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } - }, - "head": { - "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } - }, - "tail1": { - "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } - }, - "tail2": { - "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } - }, - "tail3": { - "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } - }, - "tail4": { - "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } - }, - "tail5": { - "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } - }, - "tail6": { - "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } - } - } -}, -"animations": { - "flying": { - "bones": { - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.39 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.8333, "angle": 7 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -8.18 }, - { "time": 0.3333, "angle": -23.16 }, - { "time": 0.5, "angle": -18.01 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chest": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -2.42 }, - { "time": 0.3333, "angle": -26.2 }, - { "time": 0.5, "angle": -29.65 }, - { "time": 0.6666, "angle": -23.15 }, - { "time": 0.8333, "angle": -55.46 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_thigh": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -1.12 }, - { "time": 0.3333, "angle": 10.48 }, - { "time": 0.5, "angle": 7.89 }, - { "time": 0.8333, "angle": -10.38 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 8.24 }, - { "time": 0.3333, "angle": 15.21 }, - { "time": 0.5, "angle": 14.84 }, - { "time": 0.8333, "angle": -18.9 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.46 }, - { "time": 0.3333, "angle": 22.15 }, - { "time": 0.5, "angle": 22.76 }, - { "time": 0.8333, "angle": -4.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail5": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 7.4 }, - { "time": 0.3333, "angle": 28.5 }, - { "time": 0.5, "angle": 21.33 }, - { "time": 0.8333, "angle": -1.27 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail6": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 45.99 }, - { "time": 0.4, "angle": 43.53 }, - { "time": 0.5, "angle": 61.79 }, - { "time": 0.8333, "angle": 13.28 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -14.21 }, - { "time": 0.5, "angle": 47.17 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -36.06 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -20.32 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -18.71 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.408, 1.36, 0.675, 1.43 ] - }, - { "time": 0.5, "angle": 1.03 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chin": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.416, 1.15, 0.494, 1.27 ] - }, - { "time": 0.3333, "angle": -5.15 }, - { "time": 0.5, "angle": 9.79 }, - { "time": 0.6666, "angle": 18.94 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -19.18 }, - { "time": 0.3333, "angle": -32.02 }, - { "time": 0.5, "angle": -19.62 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -12.96 }, - { "time": 0.5, "angle": 16.2 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 37.77 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -16.08 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.33, "y": 1.029 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 26.51 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.239, "y": 0.993 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 16.99 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.402, "y": 1.007 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 26.07 }, - { "time": 0.5, "angle": -21.6 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 29.23 }, - { "time": 0.5, "angle": 34.83 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.412, "y": 1 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 24.89 }, - { "time": 0.5, "angle": 23.16 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.407, "y": 1.057 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 11.01 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.329, "y": 1.181 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 25.19 }, - { "time": 0.6666, "angle": -15.65 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "COG": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.456, 0.2, 0.422, 1.06 ] - }, - { "time": 0.3333, "angle": 23.93 }, - { - "time": 0.6666, - "angle": 337.8, - "curve": [ 0.41, 0, 0.887, 0.75 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.33, 1, 0.816, 1.33 ] - }, - { - "time": 0.5, - "x": 0, - "y": 113.01, - "curve": [ 0.396, 0, 0.709, 2.03 ] - }, - { "time": 1, "x": 0, "y": 0 } - ] - } - }, - "slots": { - "R_wing": { - "attachment": [ - { "time": 0, "name": "R_wing01" }, - { "time": 0.0666, "name": "R_wing02" }, - { "time": 0.1333, "name": "R_wing03" }, - { "time": 0.2, "name": "R_wing04" }, - { "time": 0.2666, "name": "R_wing05" }, - { "time": 0.3333, "name": "R_wing06" }, - { "time": 0.4, "name": "R_wing07" }, - { "time": 0.4666, "name": "R_wing08" }, - { "time": 0.5333, "name": "R_wing09" }, - { "time": 0.6, "name": "R_wing01" }, - { "time": 0.7333, "name": "R_wing02" }, - { "time": 0.7666, "name": "R_wing02" }, - { "time": 0.8, "name": "R_wing03" }, - { "time": 0.8333, "name": "R_wing04" }, - { "time": 0.8666, "name": "R_wing05" }, - { "time": 0.9, "name": "R_wing06" }, - { "time": 0.9333, "name": "R_wing07" }, - { "time": 0.9666, "name": "R_wing08" }, - { "time": 1, "name": "R_wing09" } - ] - }, - "L_wing": { - "attachment": [ - { "time": 0, "name": "L_wing01" }, - { "time": 0.0666, "name": "L_wing02" }, - { "time": 0.1333, "name": "L_wing03" }, - { "time": 0.2, "name": "L_wing04" }, - { "time": 0.2666, "name": "L_wing05" }, - { "time": 0.3333, "name": "L_wing06" }, - { "time": 0.4, "name": "L_wing07" }, - { "time": 0.4666, "name": "L_wing08" }, - { "time": 0.5333, "name": "L_wing09" }, - { "time": 0.6, "name": "L_wing01" }, - { "time": 0.7333, "name": "L_wing02" }, - { "time": 0.8, "name": "L_wing03" }, - { "time": 0.8333, "name": "L_wing04" }, - { "time": 0.8666, "name": "L_wing05" }, - { "time": 0.9, "name": "L_wing06" }, - { "time": 0.9333, "name": "L_wing07" }, - { "time": 0.9666, "name": "L_wing08" }, - { "time": 1, "name": "L_wing09" } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/goblins.atlas b/examples/example 12 - Spine/data/goblins.atlas new file mode 100644 index 0000000..c9cb702 --- /dev/null +++ b/examples/example 12 - Spine/data/goblins.atlas @@ -0,0 +1,293 @@ + +goblins.png +size: 228,523 +format: RGBA8888 +filter: Linear,Linear +repeat: none +dagger + rotate: false + xy: 2, 43 + size: 26, 108 + orig: 26, 108 + offset: 0, 0 + index: -1 +goblin/eyes-closed + rotate: false + xy: 166, 237 + size: 34, 12 + orig: 34, 12 + offset: 0, 0 + index: -1 +goblin/head + rotate: false + xy: 26, 372 + size: 103, 66 + orig: 103, 66 + offset: 0, 0 + index: -1 +goblin/left-arm + rotate: false + xy: 166, 251 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblin/left-foot + rotate: true + xy: 195, 358 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblin/left-hand + rotate: false + xy: 49, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/left-lower-leg + rotate: false + xy: 30, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblin/left-shoulder + rotate: true + xy: 169, 288 + size: 29, 44 + orig: 29, 44 + offset: 0, 0 + index: -1 +goblin/left-upper-leg + rotate: false + xy: 134, 305 + size: 33, 73 + orig: 33, 73 + offset: 0, 0 + index: -1 +goblin/neck + rotate: false + xy: 87, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/pelvis + rotate: false + xy: 131, 380 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblin/right-arm + rotate: false + xy: 135, 69 + size: 23, 50 + orig: 23, 50 + offset: 0, 0 + index: -1 +goblin/right-foot + rotate: true + xy: 104, 157 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblin/right-hand + rotate: false + xy: 190, 319 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblin/right-lower-leg + rotate: false + xy: 96, 294 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblin/right-shoulder + rotate: true + xy: 2, 2 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblin/right-upper-leg + rotate: false + xy: 139, 162 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblin/torso + rotate: false + xy: 131, 425 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblin/undie-straps + rotate: true + xy: 201, 466 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblin/undies + rotate: false + xy: 190, 51 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +goblingirl/eyes-closed + rotate: true + xy: 201, 427 + size: 37, 21 + orig: 37, 21 + offset: 0, 0 + index: -1 +goblingirl/head + rotate: false + xy: 26, 440 + size: 103, 81 + orig: 103, 81 + offset: 0, 0 + index: -1 +goblingirl/left-arm + rotate: true + xy: 175, 198 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblingirl/left-foot + rotate: true + xy: 133, 227 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblingirl/left-hand + rotate: true + xy: 168, 2 + size: 35, 40 + orig: 35, 40 + offset: 0, 0 + index: -1 +goblingirl/left-lower-leg + rotate: false + xy: 65, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/left-shoulder + rotate: true + xy: 135, 39 + size: 28, 46 + orig: 28, 46 + offset: 0, 0 + index: -1 +goblingirl/left-upper-leg + rotate: false + xy: 98, 222 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/neck + rotate: true + xy: 125, 2 + size: 35, 41 + orig: 35, 41 + offset: 0, 0 + index: -1 +goblingirl/pelvis + rotate: false + xy: 30, 117 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblingirl/right-arm + rotate: false + xy: 160, 69 + size: 28, 50 + orig: 28, 50 + offset: 0, 0 + index: -1 +goblingirl/right-foot + rotate: true + xy: 100, 56 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblingirl/right-hand + rotate: false + xy: 190, 82 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblingirl/right-lower-leg + rotate: true + xy: 26, 162 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblingirl/right-shoulder + rotate: true + xy: 159, 121 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblingirl/right-upper-leg + rotate: true + xy: 94, 121 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblingirl/torso + rotate: false + xy: 26, 274 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblingirl/undie-straps + rotate: true + xy: 169, 323 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblingirl/undies + rotate: false + xy: 175, 167 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +shield + rotate: false + xy: 26, 200 + size: 70, 72 + orig: 70, 72 + offset: 0, 0 + index: -1 +spear + rotate: false + xy: 2, 153 + size: 22, 368 + orig: 22, 368 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/dragonBones.png b/examples/example 12 - Spine/data/dragonBones.png deleted file mode 100644 index 12cb92e..0000000 --- a/examples/example 12 - Spine/data/dragonBones.png +++ /dev/null Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBonesData.json b/examples/example 12 - Spine/data/dragonBonesData.json deleted file mode 100644 index c65508a..0000000 --- a/examples/example 12 - Spine/data/dragonBonesData.json +++ /dev/null @@ -1,779 +0,0 @@ -{ -"bones": [ - { "name": "root", "y": -176.12 }, - { "name": "COG", "parent": "root", "y": 176.12 }, - { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, - { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, - { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, - { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, - { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, - { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, - { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, - { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, - { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, - { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, - { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, - { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, - { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, - { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, - { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, - { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, - { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, - { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, - { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, - { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, - { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, - { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, - { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, - { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, - { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, - { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, - { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, - { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, - { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, - { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, - { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } -], -"slots": [ - { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, - { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, - { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, - { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, - { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, - { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, - { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, - { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, - { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, - { "name": "back", "bone": "back", "attachment": "back" }, - { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, - { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, - { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, - { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, - { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, - { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, - { "name": "chest", "bone": "chest", "attachment": "chest" }, - { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, - { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, - { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, - { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, - { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, - { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, - { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, - { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, - { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, - { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, - { "name": "chin", "bone": "chin", "attachment": "chin" }, - { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, - { "name": "head", "bone": "head", "attachment": "head" } -], -"skins": { - "default": { - "L_front_leg": { - "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } - }, - "L_front_thigh": { - "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } - }, - "L_front_toe1": { - "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } - }, - "L_front_toe2": { - "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } - }, - "L_front_toe3": { - "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } - }, - "L_front_toe4": { - "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } - }, - "L_rear_leg": { - "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } - }, - "L_rear_thigh": { - "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } - }, - "L_wing": { - "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, - "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, - "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, - "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, - "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, - "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, - "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, - "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, - "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } - }, - "R_front_leg": { - "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } - }, - "R_front_thigh": { - "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } - }, - "R_front_toe1": { - "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } - }, - "R_front_toe2": { - "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } - }, - "R_front_toe3": { - "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } - }, - "R_rear_leg": { - "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } - }, - "R_rear_thigh": { - "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } - }, - "R_rear_toe1": { - "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } - }, - "R_rear_toe2": { - "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } - }, - "R_rear_toe3": { - "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } - }, - "R_wing": { - "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, - "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, - "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, - "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, - "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, - "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, - "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, - "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, - "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } - }, - "back": { - "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } - }, - "chest": { - "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } - }, - "chin": { - "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } - }, - "head": { - "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } - }, - "tail1": { - "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } - }, - "tail2": { - "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } - }, - "tail3": { - "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } - }, - "tail4": { - "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } - }, - "tail5": { - "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } - }, - "tail6": { - "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } - } - } -}, -"animations": { - "flying": { - "bones": { - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.39 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.8333, "angle": 7 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -8.18 }, - { "time": 0.3333, "angle": -23.16 }, - { "time": 0.5, "angle": -18.01 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chest": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -2.42 }, - { "time": 0.3333, "angle": -26.2 }, - { "time": 0.5, "angle": -29.65 }, - { "time": 0.6666, "angle": -23.15 }, - { "time": 0.8333, "angle": -55.46 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_thigh": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -1.12 }, - { "time": 0.3333, "angle": 10.48 }, - { "time": 0.5, "angle": 7.89 }, - { "time": 0.8333, "angle": -10.38 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 8.24 }, - { "time": 0.3333, "angle": 15.21 }, - { "time": 0.5, "angle": 14.84 }, - { "time": 0.8333, "angle": -18.9 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.46 }, - { "time": 0.3333, "angle": 22.15 }, - { "time": 0.5, "angle": 22.76 }, - { "time": 0.8333, "angle": -4.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail5": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 7.4 }, - { "time": 0.3333, "angle": 28.5 }, - { "time": 0.5, "angle": 21.33 }, - { "time": 0.8333, "angle": -1.27 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail6": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 45.99 }, - { "time": 0.4, "angle": 43.53 }, - { "time": 0.5, "angle": 61.79 }, - { "time": 0.8333, "angle": 13.28 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -14.21 }, - { "time": 0.5, "angle": 47.17 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -36.06 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -20.32 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -18.71 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.408, 1.36, 0.675, 1.43 ] - }, - { "time": 0.5, "angle": 1.03 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chin": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.416, 1.15, 0.494, 1.27 ] - }, - { "time": 0.3333, "angle": -5.15 }, - { "time": 0.5, "angle": 9.79 }, - { "time": 0.6666, "angle": 18.94 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -19.18 }, - { "time": 0.3333, "angle": -32.02 }, - { "time": 0.5, "angle": -19.62 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -12.96 }, - { "time": 0.5, "angle": 16.2 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 37.77 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -16.08 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.33, "y": 1.029 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 26.51 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.239, "y": 0.993 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 16.99 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.402, "y": 1.007 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 26.07 }, - { "time": 0.5, "angle": -21.6 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 29.23 }, - { "time": 0.5, "angle": 34.83 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.412, "y": 1 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 24.89 }, - { "time": 0.5, "angle": 23.16 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.407, "y": 1.057 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 11.01 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.329, "y": 1.181 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 25.19 }, - { "time": 0.6666, "angle": -15.65 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "COG": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.456, 0.2, 0.422, 1.06 ] - }, - { "time": 0.3333, "angle": 23.93 }, - { - "time": 0.6666, - "angle": 337.8, - "curve": [ 0.41, 0, 0.887, 0.75 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.33, 1, 0.816, 1.33 ] - }, - { - "time": 0.5, - "x": 0, - "y": 113.01, - "curve": [ 0.396, 0, 0.709, 2.03 ] - }, - { "time": 1, "x": 0, "y": 0 } - ] - } - }, - "slots": { - "R_wing": { - "attachment": [ - { "time": 0, "name": "R_wing01" }, - { "time": 0.0666, "name": "R_wing02" }, - { "time": 0.1333, "name": "R_wing03" }, - { "time": 0.2, "name": "R_wing04" }, - { "time": 0.2666, "name": "R_wing05" }, - { "time": 0.3333, "name": "R_wing06" }, - { "time": 0.4, "name": "R_wing07" }, - { "time": 0.4666, "name": "R_wing08" }, - { "time": 0.5333, "name": "R_wing09" }, - { "time": 0.6, "name": "R_wing01" }, - { "time": 0.7333, "name": "R_wing02" }, - { "time": 0.7666, "name": "R_wing02" }, - { "time": 0.8, "name": "R_wing03" }, - { "time": 0.8333, "name": "R_wing04" }, - { "time": 0.8666, "name": "R_wing05" }, - { "time": 0.9, "name": "R_wing06" }, - { "time": 0.9333, "name": "R_wing07" }, - { "time": 0.9666, "name": "R_wing08" }, - { "time": 1, "name": "R_wing09" } - ] - }, - "L_wing": { - "attachment": [ - { "time": 0, "name": "L_wing01" }, - { "time": 0.0666, "name": "L_wing02" }, - { "time": 0.1333, "name": "L_wing03" }, - { "time": 0.2, "name": "L_wing04" }, - { "time": 0.2666, "name": "L_wing05" }, - { "time": 0.3333, "name": "L_wing06" }, - { "time": 0.4, "name": "L_wing07" }, - { "time": 0.4666, "name": "L_wing08" }, - { "time": 0.5333, "name": "L_wing09" }, - { "time": 0.6, "name": "L_wing01" }, - { "time": 0.7333, "name": "L_wing02" }, - { "time": 0.8, "name": "L_wing03" }, - { "time": 0.8333, "name": "L_wing04" }, - { "time": 0.8666, "name": "L_wing05" }, - { "time": 0.9, "name": "L_wing06" }, - { "time": 0.9333, "name": "L_wing07" }, - { "time": 0.9666, "name": "L_wing08" }, - { "time": 1, "name": "L_wing09" } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/goblins.atlas b/examples/example 12 - Spine/data/goblins.atlas new file mode 100644 index 0000000..c9cb702 --- /dev/null +++ b/examples/example 12 - Spine/data/goblins.atlas @@ -0,0 +1,293 @@ + +goblins.png +size: 228,523 +format: RGBA8888 +filter: Linear,Linear +repeat: none +dagger + rotate: false + xy: 2, 43 + size: 26, 108 + orig: 26, 108 + offset: 0, 0 + index: -1 +goblin/eyes-closed + rotate: false + xy: 166, 237 + size: 34, 12 + orig: 34, 12 + offset: 0, 0 + index: -1 +goblin/head + rotate: false + xy: 26, 372 + size: 103, 66 + orig: 103, 66 + offset: 0, 0 + index: -1 +goblin/left-arm + rotate: false + xy: 166, 251 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblin/left-foot + rotate: true + xy: 195, 358 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblin/left-hand + rotate: false + xy: 49, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/left-lower-leg + rotate: false + xy: 30, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblin/left-shoulder + rotate: true + xy: 169, 288 + size: 29, 44 + orig: 29, 44 + offset: 0, 0 + index: -1 +goblin/left-upper-leg + rotate: false + xy: 134, 305 + size: 33, 73 + orig: 33, 73 + offset: 0, 0 + index: -1 +goblin/neck + rotate: false + xy: 87, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/pelvis + rotate: false + xy: 131, 380 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblin/right-arm + rotate: false + xy: 135, 69 + size: 23, 50 + orig: 23, 50 + offset: 0, 0 + index: -1 +goblin/right-foot + rotate: true + xy: 104, 157 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblin/right-hand + rotate: false + xy: 190, 319 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblin/right-lower-leg + rotate: false + xy: 96, 294 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblin/right-shoulder + rotate: true + xy: 2, 2 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblin/right-upper-leg + rotate: false + xy: 139, 162 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblin/torso + rotate: false + xy: 131, 425 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblin/undie-straps + rotate: true + xy: 201, 466 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblin/undies + rotate: false + xy: 190, 51 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +goblingirl/eyes-closed + rotate: true + xy: 201, 427 + size: 37, 21 + orig: 37, 21 + offset: 0, 0 + index: -1 +goblingirl/head + rotate: false + xy: 26, 440 + size: 103, 81 + orig: 103, 81 + offset: 0, 0 + index: -1 +goblingirl/left-arm + rotate: true + xy: 175, 198 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblingirl/left-foot + rotate: true + xy: 133, 227 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblingirl/left-hand + rotate: true + xy: 168, 2 + size: 35, 40 + orig: 35, 40 + offset: 0, 0 + index: -1 +goblingirl/left-lower-leg + rotate: false + xy: 65, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/left-shoulder + rotate: true + xy: 135, 39 + size: 28, 46 + orig: 28, 46 + offset: 0, 0 + index: -1 +goblingirl/left-upper-leg + rotate: false + xy: 98, 222 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/neck + rotate: true + xy: 125, 2 + size: 35, 41 + orig: 35, 41 + offset: 0, 0 + index: -1 +goblingirl/pelvis + rotate: false + xy: 30, 117 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblingirl/right-arm + rotate: false + xy: 160, 69 + size: 28, 50 + orig: 28, 50 + offset: 0, 0 + index: -1 +goblingirl/right-foot + rotate: true + xy: 100, 56 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblingirl/right-hand + rotate: false + xy: 190, 82 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblingirl/right-lower-leg + rotate: true + xy: 26, 162 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblingirl/right-shoulder + rotate: true + xy: 159, 121 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblingirl/right-upper-leg + rotate: true + xy: 94, 121 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblingirl/torso + rotate: false + xy: 26, 274 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblingirl/undie-straps + rotate: true + xy: 169, 323 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblingirl/undies + rotate: false + xy: 175, 167 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +shield + rotate: false + xy: 26, 200 + size: 70, 72 + orig: 70, 72 + offset: 0, 0 + index: -1 +spear + rotate: false + xy: 2, 153 + size: 22, 368 + orig: 22, 368 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/goblins.json b/examples/example 12 - Spine/data/goblins.json index f87ec19..5d83ae1 100644 --- a/examples/example 12 - Spine/data/goblins.json +++ b/examples/example 12 - Spine/data/goblins.json @@ -1,332 +1 @@ -{"frames": { - -"dagger.png": -{ - "frame": {"x":2,"y":372,"w":26,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":26,"h":108}, - "sourceSize": {"w":26,"h":108} -}, -"goblin/eyes-closed.png": -{ - "frame": {"x":64,"y":354,"w":34,"h":12}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":12}, - "sourceSize": {"w":34,"h":12} -}, -"goblin/head.png": -{ - "frame": {"x":59,"y":83,"w":103,"h":64}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":103,"h":64}, - "sourceSize": {"w":103,"h":66} -}, -"goblin/left-arm.png": -{ - "frame": {"x":30,"y":445,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblin/left-foot.png": -{ - "frame": {"x":59,"y":182,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblin/left-hand.png": -{ - "frame": {"x":107,"y":436,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/left-lower-leg.png": -{ - "frame": {"x":26,"y":74,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblin/left-shoulder.png": -{ - "frame": {"x":26,"y":146,"w":29,"h":44}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":44}, - "sourceSize": {"w":29,"h":44} -}, -"goblin/left-upper-leg.png": -{ - "frame": {"x":30,"y":370,"w":33,"h":73}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":73}, - "sourceSize": {"w":33,"h":73} -}, -"goblin/neck.png": -{ - "frame": {"x":146,"y":309,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/pelvis.png": -{ - "frame": {"x":163,"y":233,"w":62,"h":43}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":62,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblin/right-arm.png": -{ - "frame": {"x":30,"y":240,"w":23,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":23,"h":50}, - "sourceSize": {"w":23,"h":50} -}, -"goblin/right-foot.png": -{ - "frame": {"x":164,"y":198,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblin/right-hand.png": -{ - "frame": {"x":154,"y":462,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblin/right-lower-leg.png": -{ - "frame": {"x":26,"y":292,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblin/right-shoulder.png": -{ - "frame": {"x":105,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblin/right-upper-leg.png": -{ - "frame": {"x":136,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblin/torso.png": -{ - "frame": {"x":164,"y":2,"w":68,"h":96}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblin/undie-straps.png": -{ - "frame": {"x":59,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblin/undies.png": -{ - "frame": {"x":116,"y":479,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"goblingirl/eyes-closed.png": -{ - "frame": {"x":100,"y":419,"w":37,"h":15}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":6,"w":37,"h":15}, - "sourceSize": {"w":37,"h":21} -}, -"goblingirl/head.png": -{ - "frame": {"x":59,"y":2,"w":103,"h":79}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":79}, - "sourceSize": {"w":103,"h":81} -}, -"goblingirl/left-arm.png": -{ - "frame": {"x":124,"y":227,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblingirl/left-foot.png": -{ - "frame": {"x":59,"y":149,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblingirl/left-hand.png": -{ - "frame": {"x":55,"y":250,"w":35,"h":40}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":40}, - "sourceSize": {"w":35,"h":40} -}, -"goblingirl/left-lower-leg.png": -{ - "frame": {"x":26,"y":2,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/left-shoulder.png": -{ - "frame": {"x":26,"y":192,"w":28,"h":46}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":28,"h":46}, - "sourceSize": {"w":28,"h":46} -}, -"goblingirl/left-upper-leg.png": -{ - "frame": {"x":65,"y":368,"w":33,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/neck.png": -{ - "frame": {"x":145,"y":419,"w":33,"h":41}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":41}, - "sourceSize": {"w":35,"h":41} -}, -"goblingirl/pelvis.png": -{ - "frame": {"x":92,"y":264,"w":60,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":60,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblingirl/right-arm.png": -{ - "frame": {"x":232,"y":100,"w":22,"h":50}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":3,"y":0,"w":22,"h":50}, - "sourceSize": {"w":28,"h":50} -}, -"goblingirl/right-foot.png": -{ - "frame": {"x":59,"y":215,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblingirl/right-hand.png": -{ - "frame": {"x":69,"y":440,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblingirl/right-lower-leg.png": -{ - "frame": {"x":126,"y":149,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblingirl/right-shoulder.png": -{ - "frame": {"x":64,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblingirl/right-upper-leg.png": -{ - "frame": {"x":100,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblingirl/torso.png": -{ - "frame": {"x":164,"y":100,"w":66,"h":96}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":66,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblingirl/undie-straps.png": -{ - "frame": {"x":2,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblingirl/undies.png": -{ - "frame": {"x":154,"y":278,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"spear.png": -{ - "frame": {"x":2,"y":2,"w":22,"h":368}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":22,"h":368}, - "sourceSize": {"w":22,"h":368} -}}, -"meta": { - "app": "http://www.codeandweb.com/texturepacker ", - "version": "1.0", - "image": "goblins.png", - "format": "RGBA8888", - "size": {"w":256,"h":512}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:f89858b99c6b15e23d39806c4170313a:1/1$" -} -} +{"skeleton":{"hash":"BMzsp4a1APif5tjCQwomTTo3Ino","spine":"2.1.05","width":233.95,"height":354.87},"bones":[{"name":"root"},{"name":"hip","parent":"root","x":0.64,"y":114.41},{"name":"left upper leg","parent":"hip","length":50.39,"x":14.45,"y":2.81,"rotation":-89.09},{"name":"pelvis","parent":"hip","x":1.41,"y":-6.57},{"name":"right upper leg","parent":"hip","length":42.45,"x":-20.07,"y":-6.83,"rotation":-97.49},{"name":"torso","parent":"hip","length":85.82,"x":-6.42,"y":1.97,"rotation":93.92},{"name":"left lower leg","parent":"left upper leg","length":49.89,"x":56.34,"y":0.98,"rotation":-16.65},{"name":"left shoulder","parent":"torso","length":35.43,"x":74.04,"y":-20.38,"rotation":-156.96},{"name":"neck","parent":"torso","length":18.38,"x":81.67,"y":-6.34,"rotation":-1.51},{"name":"right lower leg","parent":"right upper leg","length":58.52,"x":42.99,"y":-0.61,"rotation":-14.34},{"name":"right shoulder","parent":"torso","length":37.24,"x":76.02,"y":18.14,"rotation":133.88},{"name":"head","parent":"neck","length":68.28,"x":20.93,"y":11.59,"rotation":-13.92},{"name":"left arm","parent":"left shoulder","length":35.62,"x":37.85,"y":-2.34,"rotation":28.16},{"name":"left foot","parent":"left lower leg","length":46.5,"x":58.94,"y":-7.61,"rotation":102.43},{"name":"right arm","parent":"right shoulder","length":36.74,"x":37.6,"y":0.31,"rotation":36.32},{"name":"right foot","parent":"right lower leg","length":45.45,"x":64.88,"y":0.04,"rotation":110.3},{"name":"left hand","parent":"left arm","length":11.52,"x":35.62,"y":0.07,"rotation":2.7},{"name":"right hand","parent":"right arm","length":15.32,"x":36.9,"y":0.34,"rotation":2.35}],"slots":[{"name":"left shoulder","bone":"left shoulder","attachment":"left shoulder"},{"name":"left arm","bone":"left arm","attachment":"left arm"},{"name":"left hand item","bone":"left hand","attachment":"spear"},{"name":"left hand","bone":"left hand","attachment":"left hand"},{"name":"left foot","bone":"left foot","attachment":"left foot"},{"name":"left lower leg","bone":"left lower leg","attachment":"left lower leg"},{"name":"left upper leg","bone":"left upper leg","attachment":"left upper leg"},{"name":"neck","bone":"neck","attachment":"neck"},{"name":"torso","bone":"torso","attachment":"torso"},{"name":"pelvis","bone":"pelvis","attachment":"pelvis"},{"name":"right foot","bone":"right foot","attachment":"right foot"},{"name":"right lower leg","bone":"right lower leg","attachment":"right lower leg"},{"name":"undie straps","bone":"pelvis","attachment":"undie straps"},{"name":"undies","bone":"pelvis","attachment":"undies"},{"name":"right upper leg","bone":"right upper leg","attachment":"right upper leg"},{"name":"head","bone":"head","attachment":"head"},{"name":"eyes","bone":"head"},{"name":"right shoulder","bone":"right shoulder","attachment":"right shoulder"},{"name":"right arm","bone":"right arm","attachment":"right arm"},{"name":"right hand item","bone":"right hand"},{"name":"right hand","bone":"right hand","attachment":"right hand"},{"name":"right hand item top","bone":"right hand","attachment":"shield"}],"skins":{"default":{"left hand item":{"dagger":{"x":7.88,"y":-23.45,"rotation":10.47,"width":26,"height":108},"spear":{"x":-4.55,"y":39.2,"rotation":13.04,"width":22,"height":368}},"right hand item":{"dagger":{"x":6.51,"y":-24.15,"rotation":-8.06,"width":26,"height":108}},"right hand item top":{"shield":{"rotation":93.49,"width":70,"height":72}}},"goblin":{"eyes":{"eyes closed":{"name":"goblin/eyes-closed","x":32.21,"y":-21.27,"rotation":-88.92,"width":34,"height":12}},"head":{"head":{"name":"goblin/head","x":25.73,"y":2.33,"rotation":-92.29,"width":103,"height":66}},"left arm":{"left arm":{"name":"goblin/left-arm","x":16.7,"y":-1.69,"scaleX":1.057,"scaleY":1.057,"rotation":33.84,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblin/left-foot","x":24.85,"y":8.74,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblin/left-hand","x":3.47,"y":3.41,"scaleX":0.892,"scaleY":0.892,"rotation":31.14,"width":36,"height":41}},"left lower leg":{"left lower leg":{"name":"goblin/left-lower-leg","x":23.58,"y":-2.06,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblin/left-shoulder","x":15.56,"y":-2.26,"rotation":62.01,"width":29,"height":44}},"left upper leg":{"left upper leg":{"name":"goblin/left-upper-leg","x":29.68,"y":-3.87,"rotation":89.09,"width":33,"height":73}},"neck":{"neck":{"name":"goblin/neck","x":10.1,"y":0.42,"rotation":-93.69,"width":36,"height":41}},"pelvis":{"pelvis":{"name":"goblin/pelvis","x":-5.61,"y":0.76,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblin/right-arm","x":16.44,"y":-1.04,"rotation":94.32,"width":23,"height":50}},"right foot":{"right foot":{"name":"goblin/right-foot","x":23.56,"y":9.8,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblin/right-hand","x":7.88,"y":2.78,"rotation":91.96,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblin/right-lower-leg","x":25.68,"y":-3.15,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblin/right-shoulder","x":15.68,"y":-1.03,"rotation":130.65,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblin/right-upper-leg","x":20.35,"y":1.47,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblin/torso","x":38.09,"y":-3.87,"rotation":-94.95,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblin/undie-straps","x":-3.87,"y":13.1,"scaleX":1.089,"width":55,"height":19}},"undies":{"undies":{"name":"goblin/undies","x":6.3,"y":0.12,"rotation":0.91,"width":36,"height":29}}},"goblingirl":{"eyes":{"eyes closed":{"name":"goblingirl/eyes-closed","x":28,"y":-25.54,"rotation":-87.04,"width":37,"height":21}},"head":{"head":{"name":"goblingirl/head","x":27.71,"y":-4.32,"rotation":-85.58,"width":103,"height":81}},"left arm":{"left arm":{"name":"goblingirl/left-arm","x":19.64,"y":-2.42,"rotation":33.05,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblingirl/left-foot","x":25.17,"y":7.92,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblingirl/left-hand","x":4.34,"y":2.39,"scaleX":0.896,"scaleY":0.896,"rotation":30.34,"width":35,"height":40}},"left lower leg":{"left lower leg":{"name":"goblingirl/left-lower-leg","x":25.02,"y":-0.6,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblingirl/left-shoulder","x":19.8,"y":-0.42,"rotation":61.21,"width":28,"height":46}},"left upper leg":{"left upper leg":{"name":"goblingirl/left-upper-leg","x":30.21,"y":-2.95,"rotation":89.09,"width":33,"height":70}},"neck":{"neck":{"name":"goblingirl/neck","x":6.16,"y":-3.14,"rotation":-98.86,"width":35,"height":41}},"pelvis":{"pelvis":{"name":"goblingirl/pelvis","x":-3.87,"y":3.18,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblingirl/right-arm","x":16.85,"y":-0.66,"rotation":93.52,"width":28,"height":50}},"right foot":{"right foot":{"name":"goblingirl/right-foot","x":23.46,"y":9.66,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblingirl/right-hand","x":7.21,"y":3.43,"rotation":91.16,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblingirl/right-lower-leg","x":26.15,"y":-3.27,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblingirl/right-shoulder","x":14.46,"y":0.45,"rotation":129.85,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblingirl/right-upper-leg","x":19.69,"y":2.13,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblingirl/torso","x":36.28,"y":-5.14,"rotation":-95.74,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblingirl/undie-straps","x":-1.51,"y":14.18,"width":55,"height":19}},"undies":{"undies":{"name":"goblingirl/undies","x":5.4,"y":1.7,"width":36,"height":29}}}},"animations":{"walk":{"slots":{"eyes":{"attachment":[{"time":0.7,"name":"eyes closed"},{"time":0.8,"name":null}]}},"bones":{"left upper leg":{"rotate":[{"time":0,"angle":-26.55},{"time":0.1333,"angle":-8.78},{"time":0.2333,"angle":9.51},{"time":0.3666,"angle":30.74},{"time":0.5,"angle":25.33},{"time":0.6333,"angle":26.11},{"time":0.7333,"angle":-7.7},{"time":0.8666,"angle":-21.19},{"time":1,"angle":-26.55}],"translate":[{"time":0,"x":-1.32,"y":1.7},{"time":0.3666,"x":-0.06,"y":2.42},{"time":1,"x":-1.32,"y":1.7}]},"right upper leg":{"rotate":[{"time":0,"angle":42.45},{"time":0.1333,"angle":52.1},{"time":0.2333,"angle":8.53},{"time":0.5,"angle":-16.93},{"time":0.6333,"angle":1.89},{"time":0.7333,"angle":28.06,"curve":[0.462,0.11,1,1]},{"time":0.8666,"angle":58.68,"curve":[0.5,0.02,1,1]},{"time":1,"angle":42.45}],"translate":[{"time":0,"x":6.23,"y":0},{"time":0.2333,"x":2.14,"y":2.4},{"time":0.5,"x":2.44,"y":4.8},{"time":1,"x":6.23,"y":0}]},"left lower leg":{"rotate":[{"time":0,"angle":-22.98},{"time":0.1333,"angle":-63.5},{"time":0.2333,"angle":-73.76},{"time":0.5,"angle":5.11},{"time":0.6333,"angle":-28.29},{"time":0.7333,"angle":4.08},{"time":0.8666,"angle":3.53},{"time":1,"angle":-22.98}],"translate":[{"time":0,"x":0,"y":0},{"time":0.2333,"x":2.55,"y":-0.47},{"time":0.5,"x":0,"y":0,"curve":"stepped"},{"time":1,"x":0,"y":0}]},"left foot":{"rotate":[{"time":0,"angle":-3.69},{"time":0.1333,"angle":-10.42},{"time":0.2333,"angle":-5.01},{"time":0.3666,"angle":3.87},{"time":0.5,"angle":-3.87},{"time":0.6333,"angle":2.78},{"time":0.7333,"angle":1.68},{"time":0.8666,"angle":-8.54},{"time":1,"angle":-3.69}]},"right shoulder":{"rotate":[{"time":0,"angle":5.29,"curve":[0.264,0,0.75,1]},{"time":0.6333,"angle":6.65},{"time":1,"angle":5.29}]},"right arm":{"rotate":[{"time":0,"angle":-4.02,"curve":[0.267,0,0.804,0.99]},{"time":0.6333,"angle":19.78,"curve":[0.307,0,0.787,0.99]},{"time":1,"angle":-4.02}]},"right hand":{"rotate":[{"time":0,"angle":8.98},{"time":0.6333,"angle":0.51},{"time":1,"angle":8.98}]},"left shoulder":{"rotate":[{"time":0,"angle":6.25,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":-11.78,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":6.25}],"translate":[{"time":0,"x":1.15,"y":0.23}]},"left hand":{"rotate":[{"time":0,"angle":-21.23,"curve":[0.295,0,0.755,0.98]},{"time":0.5,"angle":-27.28,"curve":[0.241,0,0.75,0.97]},{"time":1,"angle":-21.23}]},"left arm":{"rotate":[{"time":0,"angle":28.37,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":60.09,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":28.37}]},"torso":{"rotate":[{"time":0,"angle":-10.28},{"time":0.1333,"angle":-15.38,"curve":[0.545,0,0.818,1]},{"time":0.3666,"angle":-9.78,"curve":[0.58,0.17,0.669,0.99]},{"time":0.6333,"angle":-15.75,"curve":[0.235,0.01,0.795,1]},{"time":0.8666,"angle":-7.06,"curve":[0.209,0,0.816,0.98]},{"time":1,"angle":-10.28}],"translate":[{"time":0,"x":-1.29,"y":1.68}]},"right foot":{"rotate":[{"time":0,"angle":-5.25},{"time":0.2333,"angle":-1.91},{"time":0.3666,"angle":-6.45},{"time":0.5,"angle":-5.39},{"time":0.7333,"angle":-11.68},{"time":0.8666,"angle":0.46},{"time":1,"angle":-5.25}]},"right lower leg":{"rotate":[{"time":0,"angle":-3.39,"curve":[0.316,0.01,0.741,0.98]},{"time":0.1333,"angle":-45.53,"curve":[0.229,0,0.738,0.97]},{"time":0.2333,"angle":-4.83},{"time":0.5,"angle":-19.53},{"time":0.6333,"angle":-64.8},{"time":0.7333,"angle":-82.56,"curve":[0.557,0.18,1,1]},{"time":1,"angle":-3.39}],"translate":[{"time":0,"x":0,"y":0,"curve":"stepped"},{"time":0.5,"x":0,"y":0},{"time":0.6333,"x":2.18,"y":0.21},{"time":1,"x":0,"y":0}]},"hip":{"rotate":[{"time":0,"angle":0,"curve":"stepped"},{"time":1,"angle":0}],"translate":[{"time":0,"x":0,"y":-4.16},{"time":0.1333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.3666,"x":0,"y":6.78},{"time":0.5,"x":0,"y":-6.13},{"time":0.6333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.8666,"x":0,"y":6.78},{"time":1,"x":0,"y":-4.16}]},"neck":{"rotate":[{"time":0,"angle":3.6},{"time":0.1333,"angle":17.49},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17},{"time":0.6333,"angle":18.36},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]},"head":{"rotate":[{"time":0,"angle":3.6,"curve":[0,0,0.704,1.17]},{"time":0.1333,"angle":-0.2},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17,"curve":[0,0,0.704,1.61]},{"time":0.6666,"angle":1.1},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]}}}}} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/dragonBones.png b/examples/example 12 - Spine/data/dragonBones.png deleted file mode 100644 index 12cb92e..0000000 --- a/examples/example 12 - Spine/data/dragonBones.png +++ /dev/null Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBonesData.json b/examples/example 12 - Spine/data/dragonBonesData.json deleted file mode 100644 index c65508a..0000000 --- a/examples/example 12 - Spine/data/dragonBonesData.json +++ /dev/null @@ -1,779 +0,0 @@ -{ -"bones": [ - { "name": "root", "y": -176.12 }, - { "name": "COG", "parent": "root", "y": 176.12 }, - { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, - { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, - { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, - { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, - { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, - { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, - { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, - { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, - { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, - { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, - { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, - { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, - { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, - { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, - { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, - { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, - { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, - { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, - { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, - { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, - { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, - { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, - { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, - { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, - { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, - { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, - { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, - { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, - { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, - { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, - { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } -], -"slots": [ - { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, - { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, - { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, - { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, - { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, - { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, - { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, - { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, - { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, - { "name": "back", "bone": "back", "attachment": "back" }, - { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, - { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, - { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, - { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, - { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, - { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, - { "name": "chest", "bone": "chest", "attachment": "chest" }, - { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, - { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, - { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, - { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, - { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, - { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, - { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, - { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, - { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, - { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, - { "name": "chin", "bone": "chin", "attachment": "chin" }, - { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, - { "name": "head", "bone": "head", "attachment": "head" } -], -"skins": { - "default": { - "L_front_leg": { - "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } - }, - "L_front_thigh": { - "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } - }, - "L_front_toe1": { - "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } - }, - "L_front_toe2": { - "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } - }, - "L_front_toe3": { - "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } - }, - "L_front_toe4": { - "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } - }, - "L_rear_leg": { - "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } - }, - "L_rear_thigh": { - "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } - }, - "L_wing": { - "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, - "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, - "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, - "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, - "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, - "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, - "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, - "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, - "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } - }, - "R_front_leg": { - "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } - }, - "R_front_thigh": { - "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } - }, - "R_front_toe1": { - "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } - }, - "R_front_toe2": { - "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } - }, - "R_front_toe3": { - "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } - }, - "R_rear_leg": { - "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } - }, - "R_rear_thigh": { - "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } - }, - "R_rear_toe1": { - "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } - }, - "R_rear_toe2": { - "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } - }, - "R_rear_toe3": { - "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } - }, - "R_wing": { - "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, - "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, - "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, - "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, - "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, - "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, - "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, - "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, - "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } - }, - "back": { - "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } - }, - "chest": { - "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } - }, - "chin": { - "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } - }, - "head": { - "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } - }, - "tail1": { - "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } - }, - "tail2": { - "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } - }, - "tail3": { - "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } - }, - "tail4": { - "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } - }, - "tail5": { - "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } - }, - "tail6": { - "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } - } - } -}, -"animations": { - "flying": { - "bones": { - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.39 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.8333, "angle": 7 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -8.18 }, - { "time": 0.3333, "angle": -23.16 }, - { "time": 0.5, "angle": -18.01 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chest": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -2.42 }, - { "time": 0.3333, "angle": -26.2 }, - { "time": 0.5, "angle": -29.65 }, - { "time": 0.6666, "angle": -23.15 }, - { "time": 0.8333, "angle": -55.46 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_thigh": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -1.12 }, - { "time": 0.3333, "angle": 10.48 }, - { "time": 0.5, "angle": 7.89 }, - { "time": 0.8333, "angle": -10.38 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 8.24 }, - { "time": 0.3333, "angle": 15.21 }, - { "time": 0.5, "angle": 14.84 }, - { "time": 0.8333, "angle": -18.9 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.46 }, - { "time": 0.3333, "angle": 22.15 }, - { "time": 0.5, "angle": 22.76 }, - { "time": 0.8333, "angle": -4.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail5": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 7.4 }, - { "time": 0.3333, "angle": 28.5 }, - { "time": 0.5, "angle": 21.33 }, - { "time": 0.8333, "angle": -1.27 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail6": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 45.99 }, - { "time": 0.4, "angle": 43.53 }, - { "time": 0.5, "angle": 61.79 }, - { "time": 0.8333, "angle": 13.28 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -14.21 }, - { "time": 0.5, "angle": 47.17 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -36.06 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -20.32 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -18.71 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.408, 1.36, 0.675, 1.43 ] - }, - { "time": 0.5, "angle": 1.03 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chin": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.416, 1.15, 0.494, 1.27 ] - }, - { "time": 0.3333, "angle": -5.15 }, - { "time": 0.5, "angle": 9.79 }, - { "time": 0.6666, "angle": 18.94 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -19.18 }, - { "time": 0.3333, "angle": -32.02 }, - { "time": 0.5, "angle": -19.62 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -12.96 }, - { "time": 0.5, "angle": 16.2 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 37.77 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -16.08 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.33, "y": 1.029 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 26.51 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.239, "y": 0.993 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 16.99 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.402, "y": 1.007 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 26.07 }, - { "time": 0.5, "angle": -21.6 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 29.23 }, - { "time": 0.5, "angle": 34.83 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.412, "y": 1 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 24.89 }, - { "time": 0.5, "angle": 23.16 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.407, "y": 1.057 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 11.01 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.329, "y": 1.181 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 25.19 }, - { "time": 0.6666, "angle": -15.65 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "COG": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.456, 0.2, 0.422, 1.06 ] - }, - { "time": 0.3333, "angle": 23.93 }, - { - "time": 0.6666, - "angle": 337.8, - "curve": [ 0.41, 0, 0.887, 0.75 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.33, 1, 0.816, 1.33 ] - }, - { - "time": 0.5, - "x": 0, - "y": 113.01, - "curve": [ 0.396, 0, 0.709, 2.03 ] - }, - { "time": 1, "x": 0, "y": 0 } - ] - } - }, - "slots": { - "R_wing": { - "attachment": [ - { "time": 0, "name": "R_wing01" }, - { "time": 0.0666, "name": "R_wing02" }, - { "time": 0.1333, "name": "R_wing03" }, - { "time": 0.2, "name": "R_wing04" }, - { "time": 0.2666, "name": "R_wing05" }, - { "time": 0.3333, "name": "R_wing06" }, - { "time": 0.4, "name": "R_wing07" }, - { "time": 0.4666, "name": "R_wing08" }, - { "time": 0.5333, "name": "R_wing09" }, - { "time": 0.6, "name": "R_wing01" }, - { "time": 0.7333, "name": "R_wing02" }, - { "time": 0.7666, "name": "R_wing02" }, - { "time": 0.8, "name": "R_wing03" }, - { "time": 0.8333, "name": "R_wing04" }, - { "time": 0.8666, "name": "R_wing05" }, - { "time": 0.9, "name": "R_wing06" }, - { "time": 0.9333, "name": "R_wing07" }, - { "time": 0.9666, "name": "R_wing08" }, - { "time": 1, "name": "R_wing09" } - ] - }, - "L_wing": { - "attachment": [ - { "time": 0, "name": "L_wing01" }, - { "time": 0.0666, "name": "L_wing02" }, - { "time": 0.1333, "name": "L_wing03" }, - { "time": 0.2, "name": "L_wing04" }, - { "time": 0.2666, "name": "L_wing05" }, - { "time": 0.3333, "name": "L_wing06" }, - { "time": 0.4, "name": "L_wing07" }, - { "time": 0.4666, "name": "L_wing08" }, - { "time": 0.5333, "name": "L_wing09" }, - { "time": 0.6, "name": "L_wing01" }, - { "time": 0.7333, "name": "L_wing02" }, - { "time": 0.8, "name": "L_wing03" }, - { "time": 0.8333, "name": "L_wing04" }, - { "time": 0.8666, "name": "L_wing05" }, - { "time": 0.9, "name": "L_wing06" }, - { "time": 0.9333, "name": "L_wing07" }, - { "time": 0.9666, "name": "L_wing08" }, - { "time": 1, "name": "L_wing09" } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/goblins.atlas b/examples/example 12 - Spine/data/goblins.atlas new file mode 100644 index 0000000..c9cb702 --- /dev/null +++ b/examples/example 12 - Spine/data/goblins.atlas @@ -0,0 +1,293 @@ + +goblins.png +size: 228,523 +format: RGBA8888 +filter: Linear,Linear +repeat: none +dagger + rotate: false + xy: 2, 43 + size: 26, 108 + orig: 26, 108 + offset: 0, 0 + index: -1 +goblin/eyes-closed + rotate: false + xy: 166, 237 + size: 34, 12 + orig: 34, 12 + offset: 0, 0 + index: -1 +goblin/head + rotate: false + xy: 26, 372 + size: 103, 66 + orig: 103, 66 + offset: 0, 0 + index: -1 +goblin/left-arm + rotate: false + xy: 166, 251 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblin/left-foot + rotate: true + xy: 195, 358 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblin/left-hand + rotate: false + xy: 49, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/left-lower-leg + rotate: false + xy: 30, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblin/left-shoulder + rotate: true + xy: 169, 288 + size: 29, 44 + orig: 29, 44 + offset: 0, 0 + index: -1 +goblin/left-upper-leg + rotate: false + xy: 134, 305 + size: 33, 73 + orig: 33, 73 + offset: 0, 0 + index: -1 +goblin/neck + rotate: false + xy: 87, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/pelvis + rotate: false + xy: 131, 380 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblin/right-arm + rotate: false + xy: 135, 69 + size: 23, 50 + orig: 23, 50 + offset: 0, 0 + index: -1 +goblin/right-foot + rotate: true + xy: 104, 157 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblin/right-hand + rotate: false + xy: 190, 319 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblin/right-lower-leg + rotate: false + xy: 96, 294 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblin/right-shoulder + rotate: true + xy: 2, 2 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblin/right-upper-leg + rotate: false + xy: 139, 162 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblin/torso + rotate: false + xy: 131, 425 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblin/undie-straps + rotate: true + xy: 201, 466 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblin/undies + rotate: false + xy: 190, 51 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +goblingirl/eyes-closed + rotate: true + xy: 201, 427 + size: 37, 21 + orig: 37, 21 + offset: 0, 0 + index: -1 +goblingirl/head + rotate: false + xy: 26, 440 + size: 103, 81 + orig: 103, 81 + offset: 0, 0 + index: -1 +goblingirl/left-arm + rotate: true + xy: 175, 198 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblingirl/left-foot + rotate: true + xy: 133, 227 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblingirl/left-hand + rotate: true + xy: 168, 2 + size: 35, 40 + orig: 35, 40 + offset: 0, 0 + index: -1 +goblingirl/left-lower-leg + rotate: false + xy: 65, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/left-shoulder + rotate: true + xy: 135, 39 + size: 28, 46 + orig: 28, 46 + offset: 0, 0 + index: -1 +goblingirl/left-upper-leg + rotate: false + xy: 98, 222 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/neck + rotate: true + xy: 125, 2 + size: 35, 41 + orig: 35, 41 + offset: 0, 0 + index: -1 +goblingirl/pelvis + rotate: false + xy: 30, 117 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblingirl/right-arm + rotate: false + xy: 160, 69 + size: 28, 50 + orig: 28, 50 + offset: 0, 0 + index: -1 +goblingirl/right-foot + rotate: true + xy: 100, 56 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblingirl/right-hand + rotate: false + xy: 190, 82 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblingirl/right-lower-leg + rotate: true + xy: 26, 162 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblingirl/right-shoulder + rotate: true + xy: 159, 121 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblingirl/right-upper-leg + rotate: true + xy: 94, 121 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblingirl/torso + rotate: false + xy: 26, 274 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblingirl/undie-straps + rotate: true + xy: 169, 323 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblingirl/undies + rotate: false + xy: 175, 167 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +shield + rotate: false + xy: 26, 200 + size: 70, 72 + orig: 70, 72 + offset: 0, 0 + index: -1 +spear + rotate: false + xy: 2, 153 + size: 22, 368 + orig: 22, 368 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/goblins.json b/examples/example 12 - Spine/data/goblins.json index f87ec19..5d83ae1 100644 --- a/examples/example 12 - Spine/data/goblins.json +++ b/examples/example 12 - Spine/data/goblins.json @@ -1,332 +1 @@ -{"frames": { - -"dagger.png": -{ - "frame": {"x":2,"y":372,"w":26,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":26,"h":108}, - "sourceSize": {"w":26,"h":108} -}, -"goblin/eyes-closed.png": -{ - "frame": {"x":64,"y":354,"w":34,"h":12}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":12}, - "sourceSize": {"w":34,"h":12} -}, -"goblin/head.png": -{ - "frame": {"x":59,"y":83,"w":103,"h":64}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":103,"h":64}, - "sourceSize": {"w":103,"h":66} -}, -"goblin/left-arm.png": -{ - "frame": {"x":30,"y":445,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblin/left-foot.png": -{ - "frame": {"x":59,"y":182,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblin/left-hand.png": -{ - "frame": {"x":107,"y":436,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/left-lower-leg.png": -{ - "frame": {"x":26,"y":74,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblin/left-shoulder.png": -{ - "frame": {"x":26,"y":146,"w":29,"h":44}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":44}, - "sourceSize": {"w":29,"h":44} -}, -"goblin/left-upper-leg.png": -{ - "frame": {"x":30,"y":370,"w":33,"h":73}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":73}, - "sourceSize": {"w":33,"h":73} -}, -"goblin/neck.png": -{ - "frame": {"x":146,"y":309,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/pelvis.png": -{ - "frame": {"x":163,"y":233,"w":62,"h":43}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":62,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblin/right-arm.png": -{ - "frame": {"x":30,"y":240,"w":23,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":23,"h":50}, - "sourceSize": {"w":23,"h":50} -}, -"goblin/right-foot.png": -{ - "frame": {"x":164,"y":198,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblin/right-hand.png": -{ - "frame": {"x":154,"y":462,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblin/right-lower-leg.png": -{ - "frame": {"x":26,"y":292,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblin/right-shoulder.png": -{ - "frame": {"x":105,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblin/right-upper-leg.png": -{ - "frame": {"x":136,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblin/torso.png": -{ - "frame": {"x":164,"y":2,"w":68,"h":96}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblin/undie-straps.png": -{ - "frame": {"x":59,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblin/undies.png": -{ - "frame": {"x":116,"y":479,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"goblingirl/eyes-closed.png": -{ - "frame": {"x":100,"y":419,"w":37,"h":15}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":6,"w":37,"h":15}, - "sourceSize": {"w":37,"h":21} -}, -"goblingirl/head.png": -{ - "frame": {"x":59,"y":2,"w":103,"h":79}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":79}, - "sourceSize": {"w":103,"h":81} -}, -"goblingirl/left-arm.png": -{ - "frame": {"x":124,"y":227,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblingirl/left-foot.png": -{ - "frame": {"x":59,"y":149,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblingirl/left-hand.png": -{ - "frame": {"x":55,"y":250,"w":35,"h":40}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":40}, - "sourceSize": {"w":35,"h":40} -}, -"goblingirl/left-lower-leg.png": -{ - "frame": {"x":26,"y":2,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/left-shoulder.png": -{ - "frame": {"x":26,"y":192,"w":28,"h":46}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":28,"h":46}, - "sourceSize": {"w":28,"h":46} -}, -"goblingirl/left-upper-leg.png": -{ - "frame": {"x":65,"y":368,"w":33,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/neck.png": -{ - "frame": {"x":145,"y":419,"w":33,"h":41}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":41}, - "sourceSize": {"w":35,"h":41} -}, -"goblingirl/pelvis.png": -{ - "frame": {"x":92,"y":264,"w":60,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":60,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblingirl/right-arm.png": -{ - "frame": {"x":232,"y":100,"w":22,"h":50}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":3,"y":0,"w":22,"h":50}, - "sourceSize": {"w":28,"h":50} -}, -"goblingirl/right-foot.png": -{ - "frame": {"x":59,"y":215,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblingirl/right-hand.png": -{ - "frame": {"x":69,"y":440,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblingirl/right-lower-leg.png": -{ - "frame": {"x":126,"y":149,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblingirl/right-shoulder.png": -{ - "frame": {"x":64,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblingirl/right-upper-leg.png": -{ - "frame": {"x":100,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblingirl/torso.png": -{ - "frame": {"x":164,"y":100,"w":66,"h":96}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":66,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblingirl/undie-straps.png": -{ - "frame": {"x":2,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblingirl/undies.png": -{ - "frame": {"x":154,"y":278,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"spear.png": -{ - "frame": {"x":2,"y":2,"w":22,"h":368}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":22,"h":368}, - "sourceSize": {"w":22,"h":368} -}}, -"meta": { - "app": "http://www.codeandweb.com/texturepacker ", - "version": "1.0", - "image": "goblins.png", - "format": "RGBA8888", - "size": {"w":256,"h":512}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:f89858b99c6b15e23d39806c4170313a:1/1$" -} -} +{"skeleton":{"hash":"BMzsp4a1APif5tjCQwomTTo3Ino","spine":"2.1.05","width":233.95,"height":354.87},"bones":[{"name":"root"},{"name":"hip","parent":"root","x":0.64,"y":114.41},{"name":"left upper leg","parent":"hip","length":50.39,"x":14.45,"y":2.81,"rotation":-89.09},{"name":"pelvis","parent":"hip","x":1.41,"y":-6.57},{"name":"right upper leg","parent":"hip","length":42.45,"x":-20.07,"y":-6.83,"rotation":-97.49},{"name":"torso","parent":"hip","length":85.82,"x":-6.42,"y":1.97,"rotation":93.92},{"name":"left lower leg","parent":"left upper leg","length":49.89,"x":56.34,"y":0.98,"rotation":-16.65},{"name":"left shoulder","parent":"torso","length":35.43,"x":74.04,"y":-20.38,"rotation":-156.96},{"name":"neck","parent":"torso","length":18.38,"x":81.67,"y":-6.34,"rotation":-1.51},{"name":"right lower leg","parent":"right upper leg","length":58.52,"x":42.99,"y":-0.61,"rotation":-14.34},{"name":"right shoulder","parent":"torso","length":37.24,"x":76.02,"y":18.14,"rotation":133.88},{"name":"head","parent":"neck","length":68.28,"x":20.93,"y":11.59,"rotation":-13.92},{"name":"left arm","parent":"left shoulder","length":35.62,"x":37.85,"y":-2.34,"rotation":28.16},{"name":"left foot","parent":"left lower leg","length":46.5,"x":58.94,"y":-7.61,"rotation":102.43},{"name":"right arm","parent":"right shoulder","length":36.74,"x":37.6,"y":0.31,"rotation":36.32},{"name":"right foot","parent":"right lower leg","length":45.45,"x":64.88,"y":0.04,"rotation":110.3},{"name":"left hand","parent":"left arm","length":11.52,"x":35.62,"y":0.07,"rotation":2.7},{"name":"right hand","parent":"right arm","length":15.32,"x":36.9,"y":0.34,"rotation":2.35}],"slots":[{"name":"left shoulder","bone":"left shoulder","attachment":"left shoulder"},{"name":"left arm","bone":"left arm","attachment":"left arm"},{"name":"left hand item","bone":"left hand","attachment":"spear"},{"name":"left hand","bone":"left hand","attachment":"left hand"},{"name":"left foot","bone":"left foot","attachment":"left foot"},{"name":"left lower leg","bone":"left lower leg","attachment":"left lower leg"},{"name":"left upper leg","bone":"left upper leg","attachment":"left upper leg"},{"name":"neck","bone":"neck","attachment":"neck"},{"name":"torso","bone":"torso","attachment":"torso"},{"name":"pelvis","bone":"pelvis","attachment":"pelvis"},{"name":"right foot","bone":"right foot","attachment":"right foot"},{"name":"right lower leg","bone":"right lower leg","attachment":"right lower leg"},{"name":"undie straps","bone":"pelvis","attachment":"undie straps"},{"name":"undies","bone":"pelvis","attachment":"undies"},{"name":"right upper leg","bone":"right upper leg","attachment":"right upper leg"},{"name":"head","bone":"head","attachment":"head"},{"name":"eyes","bone":"head"},{"name":"right shoulder","bone":"right shoulder","attachment":"right shoulder"},{"name":"right arm","bone":"right arm","attachment":"right arm"},{"name":"right hand item","bone":"right hand"},{"name":"right hand","bone":"right hand","attachment":"right hand"},{"name":"right hand item top","bone":"right hand","attachment":"shield"}],"skins":{"default":{"left hand item":{"dagger":{"x":7.88,"y":-23.45,"rotation":10.47,"width":26,"height":108},"spear":{"x":-4.55,"y":39.2,"rotation":13.04,"width":22,"height":368}},"right hand item":{"dagger":{"x":6.51,"y":-24.15,"rotation":-8.06,"width":26,"height":108}},"right hand item top":{"shield":{"rotation":93.49,"width":70,"height":72}}},"goblin":{"eyes":{"eyes closed":{"name":"goblin/eyes-closed","x":32.21,"y":-21.27,"rotation":-88.92,"width":34,"height":12}},"head":{"head":{"name":"goblin/head","x":25.73,"y":2.33,"rotation":-92.29,"width":103,"height":66}},"left arm":{"left arm":{"name":"goblin/left-arm","x":16.7,"y":-1.69,"scaleX":1.057,"scaleY":1.057,"rotation":33.84,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblin/left-foot","x":24.85,"y":8.74,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblin/left-hand","x":3.47,"y":3.41,"scaleX":0.892,"scaleY":0.892,"rotation":31.14,"width":36,"height":41}},"left lower leg":{"left lower leg":{"name":"goblin/left-lower-leg","x":23.58,"y":-2.06,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblin/left-shoulder","x":15.56,"y":-2.26,"rotation":62.01,"width":29,"height":44}},"left upper leg":{"left upper leg":{"name":"goblin/left-upper-leg","x":29.68,"y":-3.87,"rotation":89.09,"width":33,"height":73}},"neck":{"neck":{"name":"goblin/neck","x":10.1,"y":0.42,"rotation":-93.69,"width":36,"height":41}},"pelvis":{"pelvis":{"name":"goblin/pelvis","x":-5.61,"y":0.76,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblin/right-arm","x":16.44,"y":-1.04,"rotation":94.32,"width":23,"height":50}},"right foot":{"right foot":{"name":"goblin/right-foot","x":23.56,"y":9.8,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblin/right-hand","x":7.88,"y":2.78,"rotation":91.96,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblin/right-lower-leg","x":25.68,"y":-3.15,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblin/right-shoulder","x":15.68,"y":-1.03,"rotation":130.65,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblin/right-upper-leg","x":20.35,"y":1.47,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblin/torso","x":38.09,"y":-3.87,"rotation":-94.95,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblin/undie-straps","x":-3.87,"y":13.1,"scaleX":1.089,"width":55,"height":19}},"undies":{"undies":{"name":"goblin/undies","x":6.3,"y":0.12,"rotation":0.91,"width":36,"height":29}}},"goblingirl":{"eyes":{"eyes closed":{"name":"goblingirl/eyes-closed","x":28,"y":-25.54,"rotation":-87.04,"width":37,"height":21}},"head":{"head":{"name":"goblingirl/head","x":27.71,"y":-4.32,"rotation":-85.58,"width":103,"height":81}},"left arm":{"left arm":{"name":"goblingirl/left-arm","x":19.64,"y":-2.42,"rotation":33.05,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblingirl/left-foot","x":25.17,"y":7.92,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblingirl/left-hand","x":4.34,"y":2.39,"scaleX":0.896,"scaleY":0.896,"rotation":30.34,"width":35,"height":40}},"left lower leg":{"left lower leg":{"name":"goblingirl/left-lower-leg","x":25.02,"y":-0.6,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblingirl/left-shoulder","x":19.8,"y":-0.42,"rotation":61.21,"width":28,"height":46}},"left upper leg":{"left upper leg":{"name":"goblingirl/left-upper-leg","x":30.21,"y":-2.95,"rotation":89.09,"width":33,"height":70}},"neck":{"neck":{"name":"goblingirl/neck","x":6.16,"y":-3.14,"rotation":-98.86,"width":35,"height":41}},"pelvis":{"pelvis":{"name":"goblingirl/pelvis","x":-3.87,"y":3.18,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblingirl/right-arm","x":16.85,"y":-0.66,"rotation":93.52,"width":28,"height":50}},"right foot":{"right foot":{"name":"goblingirl/right-foot","x":23.46,"y":9.66,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblingirl/right-hand","x":7.21,"y":3.43,"rotation":91.16,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblingirl/right-lower-leg","x":26.15,"y":-3.27,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblingirl/right-shoulder","x":14.46,"y":0.45,"rotation":129.85,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblingirl/right-upper-leg","x":19.69,"y":2.13,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblingirl/torso","x":36.28,"y":-5.14,"rotation":-95.74,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblingirl/undie-straps","x":-1.51,"y":14.18,"width":55,"height":19}},"undies":{"undies":{"name":"goblingirl/undies","x":5.4,"y":1.7,"width":36,"height":29}}}},"animations":{"walk":{"slots":{"eyes":{"attachment":[{"time":0.7,"name":"eyes closed"},{"time":0.8,"name":null}]}},"bones":{"left upper leg":{"rotate":[{"time":0,"angle":-26.55},{"time":0.1333,"angle":-8.78},{"time":0.2333,"angle":9.51},{"time":0.3666,"angle":30.74},{"time":0.5,"angle":25.33},{"time":0.6333,"angle":26.11},{"time":0.7333,"angle":-7.7},{"time":0.8666,"angle":-21.19},{"time":1,"angle":-26.55}],"translate":[{"time":0,"x":-1.32,"y":1.7},{"time":0.3666,"x":-0.06,"y":2.42},{"time":1,"x":-1.32,"y":1.7}]},"right upper leg":{"rotate":[{"time":0,"angle":42.45},{"time":0.1333,"angle":52.1},{"time":0.2333,"angle":8.53},{"time":0.5,"angle":-16.93},{"time":0.6333,"angle":1.89},{"time":0.7333,"angle":28.06,"curve":[0.462,0.11,1,1]},{"time":0.8666,"angle":58.68,"curve":[0.5,0.02,1,1]},{"time":1,"angle":42.45}],"translate":[{"time":0,"x":6.23,"y":0},{"time":0.2333,"x":2.14,"y":2.4},{"time":0.5,"x":2.44,"y":4.8},{"time":1,"x":6.23,"y":0}]},"left lower leg":{"rotate":[{"time":0,"angle":-22.98},{"time":0.1333,"angle":-63.5},{"time":0.2333,"angle":-73.76},{"time":0.5,"angle":5.11},{"time":0.6333,"angle":-28.29},{"time":0.7333,"angle":4.08},{"time":0.8666,"angle":3.53},{"time":1,"angle":-22.98}],"translate":[{"time":0,"x":0,"y":0},{"time":0.2333,"x":2.55,"y":-0.47},{"time":0.5,"x":0,"y":0,"curve":"stepped"},{"time":1,"x":0,"y":0}]},"left foot":{"rotate":[{"time":0,"angle":-3.69},{"time":0.1333,"angle":-10.42},{"time":0.2333,"angle":-5.01},{"time":0.3666,"angle":3.87},{"time":0.5,"angle":-3.87},{"time":0.6333,"angle":2.78},{"time":0.7333,"angle":1.68},{"time":0.8666,"angle":-8.54},{"time":1,"angle":-3.69}]},"right shoulder":{"rotate":[{"time":0,"angle":5.29,"curve":[0.264,0,0.75,1]},{"time":0.6333,"angle":6.65},{"time":1,"angle":5.29}]},"right arm":{"rotate":[{"time":0,"angle":-4.02,"curve":[0.267,0,0.804,0.99]},{"time":0.6333,"angle":19.78,"curve":[0.307,0,0.787,0.99]},{"time":1,"angle":-4.02}]},"right hand":{"rotate":[{"time":0,"angle":8.98},{"time":0.6333,"angle":0.51},{"time":1,"angle":8.98}]},"left shoulder":{"rotate":[{"time":0,"angle":6.25,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":-11.78,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":6.25}],"translate":[{"time":0,"x":1.15,"y":0.23}]},"left hand":{"rotate":[{"time":0,"angle":-21.23,"curve":[0.295,0,0.755,0.98]},{"time":0.5,"angle":-27.28,"curve":[0.241,0,0.75,0.97]},{"time":1,"angle":-21.23}]},"left arm":{"rotate":[{"time":0,"angle":28.37,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":60.09,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":28.37}]},"torso":{"rotate":[{"time":0,"angle":-10.28},{"time":0.1333,"angle":-15.38,"curve":[0.545,0,0.818,1]},{"time":0.3666,"angle":-9.78,"curve":[0.58,0.17,0.669,0.99]},{"time":0.6333,"angle":-15.75,"curve":[0.235,0.01,0.795,1]},{"time":0.8666,"angle":-7.06,"curve":[0.209,0,0.816,0.98]},{"time":1,"angle":-10.28}],"translate":[{"time":0,"x":-1.29,"y":1.68}]},"right foot":{"rotate":[{"time":0,"angle":-5.25},{"time":0.2333,"angle":-1.91},{"time":0.3666,"angle":-6.45},{"time":0.5,"angle":-5.39},{"time":0.7333,"angle":-11.68},{"time":0.8666,"angle":0.46},{"time":1,"angle":-5.25}]},"right lower leg":{"rotate":[{"time":0,"angle":-3.39,"curve":[0.316,0.01,0.741,0.98]},{"time":0.1333,"angle":-45.53,"curve":[0.229,0,0.738,0.97]},{"time":0.2333,"angle":-4.83},{"time":0.5,"angle":-19.53},{"time":0.6333,"angle":-64.8},{"time":0.7333,"angle":-82.56,"curve":[0.557,0.18,1,1]},{"time":1,"angle":-3.39}],"translate":[{"time":0,"x":0,"y":0,"curve":"stepped"},{"time":0.5,"x":0,"y":0},{"time":0.6333,"x":2.18,"y":0.21},{"time":1,"x":0,"y":0}]},"hip":{"rotate":[{"time":0,"angle":0,"curve":"stepped"},{"time":1,"angle":0}],"translate":[{"time":0,"x":0,"y":-4.16},{"time":0.1333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.3666,"x":0,"y":6.78},{"time":0.5,"x":0,"y":-6.13},{"time":0.6333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.8666,"x":0,"y":6.78},{"time":1,"x":0,"y":-4.16}]},"neck":{"rotate":[{"time":0,"angle":3.6},{"time":0.1333,"angle":17.49},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17},{"time":0.6333,"angle":18.36},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]},"head":{"rotate":[{"time":0,"angle":3.6,"curve":[0,0,0.704,1.17]},{"time":0.1333,"angle":-0.2},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17,"curve":[0,0,0.704,1.61]},{"time":0.6666,"angle":1.1},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]}}}}} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/goblins.png b/examples/example 12 - Spine/data/goblins.png index 5c26ca0..f2cdf16 100644 --- a/examples/example 12 - Spine/data/goblins.png +++ b/examples/example 12 - Spine/data/goblins.png Binary files differ diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/dragonBones.png b/examples/example 12 - Spine/data/dragonBones.png deleted file mode 100644 index 12cb92e..0000000 --- a/examples/example 12 - Spine/data/dragonBones.png +++ /dev/null Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBonesData.json b/examples/example 12 - Spine/data/dragonBonesData.json deleted file mode 100644 index c65508a..0000000 --- a/examples/example 12 - Spine/data/dragonBonesData.json +++ /dev/null @@ -1,779 +0,0 @@ -{ -"bones": [ - { "name": "root", "y": -176.12 }, - { "name": "COG", "parent": "root", "y": 176.12 }, - { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, - { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, - { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, - { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, - { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, - { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, - { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, - { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, - { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, - { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, - { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, - { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, - { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, - { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, - { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, - { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, - { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, - { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, - { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, - { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, - { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, - { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, - { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, - { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, - { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, - { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, - { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, - { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, - { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, - { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, - { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } -], -"slots": [ - { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, - { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, - { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, - { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, - { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, - { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, - { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, - { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, - { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, - { "name": "back", "bone": "back", "attachment": "back" }, - { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, - { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, - { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, - { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, - { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, - { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, - { "name": "chest", "bone": "chest", "attachment": "chest" }, - { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, - { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, - { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, - { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, - { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, - { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, - { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, - { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, - { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, - { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, - { "name": "chin", "bone": "chin", "attachment": "chin" }, - { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, - { "name": "head", "bone": "head", "attachment": "head" } -], -"skins": { - "default": { - "L_front_leg": { - "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } - }, - "L_front_thigh": { - "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } - }, - "L_front_toe1": { - "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } - }, - "L_front_toe2": { - "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } - }, - "L_front_toe3": { - "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } - }, - "L_front_toe4": { - "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } - }, - "L_rear_leg": { - "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } - }, - "L_rear_thigh": { - "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } - }, - "L_wing": { - "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, - "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, - "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, - "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, - "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, - "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, - "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, - "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, - "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } - }, - "R_front_leg": { - "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } - }, - "R_front_thigh": { - "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } - }, - "R_front_toe1": { - "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } - }, - "R_front_toe2": { - "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } - }, - "R_front_toe3": { - "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } - }, - "R_rear_leg": { - "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } - }, - "R_rear_thigh": { - "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } - }, - "R_rear_toe1": { - "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } - }, - "R_rear_toe2": { - "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } - }, - "R_rear_toe3": { - "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } - }, - "R_wing": { - "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, - "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, - "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, - "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, - "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, - "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, - "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, - "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, - "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } - }, - "back": { - "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } - }, - "chest": { - "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } - }, - "chin": { - "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } - }, - "head": { - "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } - }, - "tail1": { - "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } - }, - "tail2": { - "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } - }, - "tail3": { - "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } - }, - "tail4": { - "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } - }, - "tail5": { - "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } - }, - "tail6": { - "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } - } - } -}, -"animations": { - "flying": { - "bones": { - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.39 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.8333, "angle": 7 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -8.18 }, - { "time": 0.3333, "angle": -23.16 }, - { "time": 0.5, "angle": -18.01 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chest": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -2.42 }, - { "time": 0.3333, "angle": -26.2 }, - { "time": 0.5, "angle": -29.65 }, - { "time": 0.6666, "angle": -23.15 }, - { "time": 0.8333, "angle": -55.46 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_thigh": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -1.12 }, - { "time": 0.3333, "angle": 10.48 }, - { "time": 0.5, "angle": 7.89 }, - { "time": 0.8333, "angle": -10.38 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 8.24 }, - { "time": 0.3333, "angle": 15.21 }, - { "time": 0.5, "angle": 14.84 }, - { "time": 0.8333, "angle": -18.9 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.46 }, - { "time": 0.3333, "angle": 22.15 }, - { "time": 0.5, "angle": 22.76 }, - { "time": 0.8333, "angle": -4.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail5": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 7.4 }, - { "time": 0.3333, "angle": 28.5 }, - { "time": 0.5, "angle": 21.33 }, - { "time": 0.8333, "angle": -1.27 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail6": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 45.99 }, - { "time": 0.4, "angle": 43.53 }, - { "time": 0.5, "angle": 61.79 }, - { "time": 0.8333, "angle": 13.28 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -14.21 }, - { "time": 0.5, "angle": 47.17 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -36.06 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -20.32 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -18.71 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.408, 1.36, 0.675, 1.43 ] - }, - { "time": 0.5, "angle": 1.03 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chin": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.416, 1.15, 0.494, 1.27 ] - }, - { "time": 0.3333, "angle": -5.15 }, - { "time": 0.5, "angle": 9.79 }, - { "time": 0.6666, "angle": 18.94 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -19.18 }, - { "time": 0.3333, "angle": -32.02 }, - { "time": 0.5, "angle": -19.62 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -12.96 }, - { "time": 0.5, "angle": 16.2 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 37.77 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -16.08 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.33, "y": 1.029 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 26.51 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.239, "y": 0.993 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 16.99 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.402, "y": 1.007 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 26.07 }, - { "time": 0.5, "angle": -21.6 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 29.23 }, - { "time": 0.5, "angle": 34.83 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.412, "y": 1 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 24.89 }, - { "time": 0.5, "angle": 23.16 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.407, "y": 1.057 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 11.01 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.329, "y": 1.181 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 25.19 }, - { "time": 0.6666, "angle": -15.65 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "COG": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.456, 0.2, 0.422, 1.06 ] - }, - { "time": 0.3333, "angle": 23.93 }, - { - "time": 0.6666, - "angle": 337.8, - "curve": [ 0.41, 0, 0.887, 0.75 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.33, 1, 0.816, 1.33 ] - }, - { - "time": 0.5, - "x": 0, - "y": 113.01, - "curve": [ 0.396, 0, 0.709, 2.03 ] - }, - { "time": 1, "x": 0, "y": 0 } - ] - } - }, - "slots": { - "R_wing": { - "attachment": [ - { "time": 0, "name": "R_wing01" }, - { "time": 0.0666, "name": "R_wing02" }, - { "time": 0.1333, "name": "R_wing03" }, - { "time": 0.2, "name": "R_wing04" }, - { "time": 0.2666, "name": "R_wing05" }, - { "time": 0.3333, "name": "R_wing06" }, - { "time": 0.4, "name": "R_wing07" }, - { "time": 0.4666, "name": "R_wing08" }, - { "time": 0.5333, "name": "R_wing09" }, - { "time": 0.6, "name": "R_wing01" }, - { "time": 0.7333, "name": "R_wing02" }, - { "time": 0.7666, "name": "R_wing02" }, - { "time": 0.8, "name": "R_wing03" }, - { "time": 0.8333, "name": "R_wing04" }, - { "time": 0.8666, "name": "R_wing05" }, - { "time": 0.9, "name": "R_wing06" }, - { "time": 0.9333, "name": "R_wing07" }, - { "time": 0.9666, "name": "R_wing08" }, - { "time": 1, "name": "R_wing09" } - ] - }, - "L_wing": { - "attachment": [ - { "time": 0, "name": "L_wing01" }, - { "time": 0.0666, "name": "L_wing02" }, - { "time": 0.1333, "name": "L_wing03" }, - { "time": 0.2, "name": "L_wing04" }, - { "time": 0.2666, "name": "L_wing05" }, - { "time": 0.3333, "name": "L_wing06" }, - { "time": 0.4, "name": "L_wing07" }, - { "time": 0.4666, "name": "L_wing08" }, - { "time": 0.5333, "name": "L_wing09" }, - { "time": 0.6, "name": "L_wing01" }, - { "time": 0.7333, "name": "L_wing02" }, - { "time": 0.8, "name": "L_wing03" }, - { "time": 0.8333, "name": "L_wing04" }, - { "time": 0.8666, "name": "L_wing05" }, - { "time": 0.9, "name": "L_wing06" }, - { "time": 0.9333, "name": "L_wing07" }, - { "time": 0.9666, "name": "L_wing08" }, - { "time": 1, "name": "L_wing09" } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/goblins.atlas b/examples/example 12 - Spine/data/goblins.atlas new file mode 100644 index 0000000..c9cb702 --- /dev/null +++ b/examples/example 12 - Spine/data/goblins.atlas @@ -0,0 +1,293 @@ + +goblins.png +size: 228,523 +format: RGBA8888 +filter: Linear,Linear +repeat: none +dagger + rotate: false + xy: 2, 43 + size: 26, 108 + orig: 26, 108 + offset: 0, 0 + index: -1 +goblin/eyes-closed + rotate: false + xy: 166, 237 + size: 34, 12 + orig: 34, 12 + offset: 0, 0 + index: -1 +goblin/head + rotate: false + xy: 26, 372 + size: 103, 66 + orig: 103, 66 + offset: 0, 0 + index: -1 +goblin/left-arm + rotate: false + xy: 166, 251 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblin/left-foot + rotate: true + xy: 195, 358 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblin/left-hand + rotate: false + xy: 49, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/left-lower-leg + rotate: false + xy: 30, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblin/left-shoulder + rotate: true + xy: 169, 288 + size: 29, 44 + orig: 29, 44 + offset: 0, 0 + index: -1 +goblin/left-upper-leg + rotate: false + xy: 134, 305 + size: 33, 73 + orig: 33, 73 + offset: 0, 0 + index: -1 +goblin/neck + rotate: false + xy: 87, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/pelvis + rotate: false + xy: 131, 380 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblin/right-arm + rotate: false + xy: 135, 69 + size: 23, 50 + orig: 23, 50 + offset: 0, 0 + index: -1 +goblin/right-foot + rotate: true + xy: 104, 157 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblin/right-hand + rotate: false + xy: 190, 319 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblin/right-lower-leg + rotate: false + xy: 96, 294 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblin/right-shoulder + rotate: true + xy: 2, 2 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblin/right-upper-leg + rotate: false + xy: 139, 162 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblin/torso + rotate: false + xy: 131, 425 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblin/undie-straps + rotate: true + xy: 201, 466 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblin/undies + rotate: false + xy: 190, 51 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +goblingirl/eyes-closed + rotate: true + xy: 201, 427 + size: 37, 21 + orig: 37, 21 + offset: 0, 0 + index: -1 +goblingirl/head + rotate: false + xy: 26, 440 + size: 103, 81 + orig: 103, 81 + offset: 0, 0 + index: -1 +goblingirl/left-arm + rotate: true + xy: 175, 198 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblingirl/left-foot + rotate: true + xy: 133, 227 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblingirl/left-hand + rotate: true + xy: 168, 2 + size: 35, 40 + orig: 35, 40 + offset: 0, 0 + index: -1 +goblingirl/left-lower-leg + rotate: false + xy: 65, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/left-shoulder + rotate: true + xy: 135, 39 + size: 28, 46 + orig: 28, 46 + offset: 0, 0 + index: -1 +goblingirl/left-upper-leg + rotate: false + xy: 98, 222 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/neck + rotate: true + xy: 125, 2 + size: 35, 41 + orig: 35, 41 + offset: 0, 0 + index: -1 +goblingirl/pelvis + rotate: false + xy: 30, 117 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblingirl/right-arm + rotate: false + xy: 160, 69 + size: 28, 50 + orig: 28, 50 + offset: 0, 0 + index: -1 +goblingirl/right-foot + rotate: true + xy: 100, 56 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblingirl/right-hand + rotate: false + xy: 190, 82 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblingirl/right-lower-leg + rotate: true + xy: 26, 162 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblingirl/right-shoulder + rotate: true + xy: 159, 121 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblingirl/right-upper-leg + rotate: true + xy: 94, 121 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblingirl/torso + rotate: false + xy: 26, 274 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblingirl/undie-straps + rotate: true + xy: 169, 323 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblingirl/undies + rotate: false + xy: 175, 167 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +shield + rotate: false + xy: 26, 200 + size: 70, 72 + orig: 70, 72 + offset: 0, 0 + index: -1 +spear + rotate: false + xy: 2, 153 + size: 22, 368 + orig: 22, 368 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/goblins.json b/examples/example 12 - Spine/data/goblins.json index f87ec19..5d83ae1 100644 --- a/examples/example 12 - Spine/data/goblins.json +++ b/examples/example 12 - Spine/data/goblins.json @@ -1,332 +1 @@ -{"frames": { - -"dagger.png": -{ - "frame": {"x":2,"y":372,"w":26,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":26,"h":108}, - "sourceSize": {"w":26,"h":108} -}, -"goblin/eyes-closed.png": -{ - "frame": {"x":64,"y":354,"w":34,"h":12}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":12}, - "sourceSize": {"w":34,"h":12} -}, -"goblin/head.png": -{ - "frame": {"x":59,"y":83,"w":103,"h":64}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":103,"h":64}, - "sourceSize": {"w":103,"h":66} -}, -"goblin/left-arm.png": -{ - "frame": {"x":30,"y":445,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblin/left-foot.png": -{ - "frame": {"x":59,"y":182,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblin/left-hand.png": -{ - "frame": {"x":107,"y":436,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/left-lower-leg.png": -{ - "frame": {"x":26,"y":74,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblin/left-shoulder.png": -{ - "frame": {"x":26,"y":146,"w":29,"h":44}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":44}, - "sourceSize": {"w":29,"h":44} -}, -"goblin/left-upper-leg.png": -{ - "frame": {"x":30,"y":370,"w":33,"h":73}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":73}, - "sourceSize": {"w":33,"h":73} -}, -"goblin/neck.png": -{ - "frame": {"x":146,"y":309,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/pelvis.png": -{ - "frame": {"x":163,"y":233,"w":62,"h":43}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":62,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblin/right-arm.png": -{ - "frame": {"x":30,"y":240,"w":23,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":23,"h":50}, - "sourceSize": {"w":23,"h":50} -}, -"goblin/right-foot.png": -{ - "frame": {"x":164,"y":198,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblin/right-hand.png": -{ - "frame": {"x":154,"y":462,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblin/right-lower-leg.png": -{ - "frame": {"x":26,"y":292,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblin/right-shoulder.png": -{ - "frame": {"x":105,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblin/right-upper-leg.png": -{ - "frame": {"x":136,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblin/torso.png": -{ - "frame": {"x":164,"y":2,"w":68,"h":96}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblin/undie-straps.png": -{ - "frame": {"x":59,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblin/undies.png": -{ - "frame": {"x":116,"y":479,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"goblingirl/eyes-closed.png": -{ - "frame": {"x":100,"y":419,"w":37,"h":15}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":6,"w":37,"h":15}, - "sourceSize": {"w":37,"h":21} -}, -"goblingirl/head.png": -{ - "frame": {"x":59,"y":2,"w":103,"h":79}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":79}, - "sourceSize": {"w":103,"h":81} -}, -"goblingirl/left-arm.png": -{ - "frame": {"x":124,"y":227,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblingirl/left-foot.png": -{ - "frame": {"x":59,"y":149,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblingirl/left-hand.png": -{ - "frame": {"x":55,"y":250,"w":35,"h":40}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":40}, - "sourceSize": {"w":35,"h":40} -}, -"goblingirl/left-lower-leg.png": -{ - "frame": {"x":26,"y":2,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/left-shoulder.png": -{ - "frame": {"x":26,"y":192,"w":28,"h":46}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":28,"h":46}, - "sourceSize": {"w":28,"h":46} -}, -"goblingirl/left-upper-leg.png": -{ - "frame": {"x":65,"y":368,"w":33,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/neck.png": -{ - "frame": {"x":145,"y":419,"w":33,"h":41}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":41}, - "sourceSize": {"w":35,"h":41} -}, -"goblingirl/pelvis.png": -{ - "frame": {"x":92,"y":264,"w":60,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":60,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblingirl/right-arm.png": -{ - "frame": {"x":232,"y":100,"w":22,"h":50}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":3,"y":0,"w":22,"h":50}, - "sourceSize": {"w":28,"h":50} -}, -"goblingirl/right-foot.png": -{ - "frame": {"x":59,"y":215,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblingirl/right-hand.png": -{ - "frame": {"x":69,"y":440,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblingirl/right-lower-leg.png": -{ - "frame": {"x":126,"y":149,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblingirl/right-shoulder.png": -{ - "frame": {"x":64,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblingirl/right-upper-leg.png": -{ - "frame": {"x":100,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblingirl/torso.png": -{ - "frame": {"x":164,"y":100,"w":66,"h":96}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":66,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblingirl/undie-straps.png": -{ - "frame": {"x":2,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblingirl/undies.png": -{ - "frame": {"x":154,"y":278,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"spear.png": -{ - "frame": {"x":2,"y":2,"w":22,"h":368}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":22,"h":368}, - "sourceSize": {"w":22,"h":368} -}}, -"meta": { - "app": "http://www.codeandweb.com/texturepacker ", - "version": "1.0", - "image": "goblins.png", - "format": "RGBA8888", - "size": {"w":256,"h":512}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:f89858b99c6b15e23d39806c4170313a:1/1$" -} -} +{"skeleton":{"hash":"BMzsp4a1APif5tjCQwomTTo3Ino","spine":"2.1.05","width":233.95,"height":354.87},"bones":[{"name":"root"},{"name":"hip","parent":"root","x":0.64,"y":114.41},{"name":"left upper leg","parent":"hip","length":50.39,"x":14.45,"y":2.81,"rotation":-89.09},{"name":"pelvis","parent":"hip","x":1.41,"y":-6.57},{"name":"right upper leg","parent":"hip","length":42.45,"x":-20.07,"y":-6.83,"rotation":-97.49},{"name":"torso","parent":"hip","length":85.82,"x":-6.42,"y":1.97,"rotation":93.92},{"name":"left lower leg","parent":"left upper leg","length":49.89,"x":56.34,"y":0.98,"rotation":-16.65},{"name":"left shoulder","parent":"torso","length":35.43,"x":74.04,"y":-20.38,"rotation":-156.96},{"name":"neck","parent":"torso","length":18.38,"x":81.67,"y":-6.34,"rotation":-1.51},{"name":"right lower leg","parent":"right upper leg","length":58.52,"x":42.99,"y":-0.61,"rotation":-14.34},{"name":"right shoulder","parent":"torso","length":37.24,"x":76.02,"y":18.14,"rotation":133.88},{"name":"head","parent":"neck","length":68.28,"x":20.93,"y":11.59,"rotation":-13.92},{"name":"left arm","parent":"left shoulder","length":35.62,"x":37.85,"y":-2.34,"rotation":28.16},{"name":"left foot","parent":"left lower leg","length":46.5,"x":58.94,"y":-7.61,"rotation":102.43},{"name":"right arm","parent":"right shoulder","length":36.74,"x":37.6,"y":0.31,"rotation":36.32},{"name":"right foot","parent":"right lower leg","length":45.45,"x":64.88,"y":0.04,"rotation":110.3},{"name":"left hand","parent":"left arm","length":11.52,"x":35.62,"y":0.07,"rotation":2.7},{"name":"right hand","parent":"right arm","length":15.32,"x":36.9,"y":0.34,"rotation":2.35}],"slots":[{"name":"left shoulder","bone":"left shoulder","attachment":"left shoulder"},{"name":"left arm","bone":"left arm","attachment":"left arm"},{"name":"left hand item","bone":"left hand","attachment":"spear"},{"name":"left hand","bone":"left hand","attachment":"left hand"},{"name":"left foot","bone":"left foot","attachment":"left foot"},{"name":"left lower leg","bone":"left lower leg","attachment":"left lower leg"},{"name":"left upper leg","bone":"left upper leg","attachment":"left upper leg"},{"name":"neck","bone":"neck","attachment":"neck"},{"name":"torso","bone":"torso","attachment":"torso"},{"name":"pelvis","bone":"pelvis","attachment":"pelvis"},{"name":"right foot","bone":"right foot","attachment":"right foot"},{"name":"right lower leg","bone":"right lower leg","attachment":"right lower leg"},{"name":"undie straps","bone":"pelvis","attachment":"undie straps"},{"name":"undies","bone":"pelvis","attachment":"undies"},{"name":"right upper leg","bone":"right upper leg","attachment":"right upper leg"},{"name":"head","bone":"head","attachment":"head"},{"name":"eyes","bone":"head"},{"name":"right shoulder","bone":"right shoulder","attachment":"right shoulder"},{"name":"right arm","bone":"right arm","attachment":"right arm"},{"name":"right hand item","bone":"right hand"},{"name":"right hand","bone":"right hand","attachment":"right hand"},{"name":"right hand item top","bone":"right hand","attachment":"shield"}],"skins":{"default":{"left hand item":{"dagger":{"x":7.88,"y":-23.45,"rotation":10.47,"width":26,"height":108},"spear":{"x":-4.55,"y":39.2,"rotation":13.04,"width":22,"height":368}},"right hand item":{"dagger":{"x":6.51,"y":-24.15,"rotation":-8.06,"width":26,"height":108}},"right hand item top":{"shield":{"rotation":93.49,"width":70,"height":72}}},"goblin":{"eyes":{"eyes closed":{"name":"goblin/eyes-closed","x":32.21,"y":-21.27,"rotation":-88.92,"width":34,"height":12}},"head":{"head":{"name":"goblin/head","x":25.73,"y":2.33,"rotation":-92.29,"width":103,"height":66}},"left arm":{"left arm":{"name":"goblin/left-arm","x":16.7,"y":-1.69,"scaleX":1.057,"scaleY":1.057,"rotation":33.84,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblin/left-foot","x":24.85,"y":8.74,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblin/left-hand","x":3.47,"y":3.41,"scaleX":0.892,"scaleY":0.892,"rotation":31.14,"width":36,"height":41}},"left lower leg":{"left lower leg":{"name":"goblin/left-lower-leg","x":23.58,"y":-2.06,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblin/left-shoulder","x":15.56,"y":-2.26,"rotation":62.01,"width":29,"height":44}},"left upper leg":{"left upper leg":{"name":"goblin/left-upper-leg","x":29.68,"y":-3.87,"rotation":89.09,"width":33,"height":73}},"neck":{"neck":{"name":"goblin/neck","x":10.1,"y":0.42,"rotation":-93.69,"width":36,"height":41}},"pelvis":{"pelvis":{"name":"goblin/pelvis","x":-5.61,"y":0.76,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblin/right-arm","x":16.44,"y":-1.04,"rotation":94.32,"width":23,"height":50}},"right foot":{"right foot":{"name":"goblin/right-foot","x":23.56,"y":9.8,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblin/right-hand","x":7.88,"y":2.78,"rotation":91.96,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblin/right-lower-leg","x":25.68,"y":-3.15,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblin/right-shoulder","x":15.68,"y":-1.03,"rotation":130.65,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblin/right-upper-leg","x":20.35,"y":1.47,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblin/torso","x":38.09,"y":-3.87,"rotation":-94.95,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblin/undie-straps","x":-3.87,"y":13.1,"scaleX":1.089,"width":55,"height":19}},"undies":{"undies":{"name":"goblin/undies","x":6.3,"y":0.12,"rotation":0.91,"width":36,"height":29}}},"goblingirl":{"eyes":{"eyes closed":{"name":"goblingirl/eyes-closed","x":28,"y":-25.54,"rotation":-87.04,"width":37,"height":21}},"head":{"head":{"name":"goblingirl/head","x":27.71,"y":-4.32,"rotation":-85.58,"width":103,"height":81}},"left arm":{"left arm":{"name":"goblingirl/left-arm","x":19.64,"y":-2.42,"rotation":33.05,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblingirl/left-foot","x":25.17,"y":7.92,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblingirl/left-hand","x":4.34,"y":2.39,"scaleX":0.896,"scaleY":0.896,"rotation":30.34,"width":35,"height":40}},"left lower leg":{"left lower leg":{"name":"goblingirl/left-lower-leg","x":25.02,"y":-0.6,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblingirl/left-shoulder","x":19.8,"y":-0.42,"rotation":61.21,"width":28,"height":46}},"left upper leg":{"left upper leg":{"name":"goblingirl/left-upper-leg","x":30.21,"y":-2.95,"rotation":89.09,"width":33,"height":70}},"neck":{"neck":{"name":"goblingirl/neck","x":6.16,"y":-3.14,"rotation":-98.86,"width":35,"height":41}},"pelvis":{"pelvis":{"name":"goblingirl/pelvis","x":-3.87,"y":3.18,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblingirl/right-arm","x":16.85,"y":-0.66,"rotation":93.52,"width":28,"height":50}},"right foot":{"right foot":{"name":"goblingirl/right-foot","x":23.46,"y":9.66,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblingirl/right-hand","x":7.21,"y":3.43,"rotation":91.16,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblingirl/right-lower-leg","x":26.15,"y":-3.27,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblingirl/right-shoulder","x":14.46,"y":0.45,"rotation":129.85,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblingirl/right-upper-leg","x":19.69,"y":2.13,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblingirl/torso","x":36.28,"y":-5.14,"rotation":-95.74,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblingirl/undie-straps","x":-1.51,"y":14.18,"width":55,"height":19}},"undies":{"undies":{"name":"goblingirl/undies","x":5.4,"y":1.7,"width":36,"height":29}}}},"animations":{"walk":{"slots":{"eyes":{"attachment":[{"time":0.7,"name":"eyes closed"},{"time":0.8,"name":null}]}},"bones":{"left upper leg":{"rotate":[{"time":0,"angle":-26.55},{"time":0.1333,"angle":-8.78},{"time":0.2333,"angle":9.51},{"time":0.3666,"angle":30.74},{"time":0.5,"angle":25.33},{"time":0.6333,"angle":26.11},{"time":0.7333,"angle":-7.7},{"time":0.8666,"angle":-21.19},{"time":1,"angle":-26.55}],"translate":[{"time":0,"x":-1.32,"y":1.7},{"time":0.3666,"x":-0.06,"y":2.42},{"time":1,"x":-1.32,"y":1.7}]},"right upper leg":{"rotate":[{"time":0,"angle":42.45},{"time":0.1333,"angle":52.1},{"time":0.2333,"angle":8.53},{"time":0.5,"angle":-16.93},{"time":0.6333,"angle":1.89},{"time":0.7333,"angle":28.06,"curve":[0.462,0.11,1,1]},{"time":0.8666,"angle":58.68,"curve":[0.5,0.02,1,1]},{"time":1,"angle":42.45}],"translate":[{"time":0,"x":6.23,"y":0},{"time":0.2333,"x":2.14,"y":2.4},{"time":0.5,"x":2.44,"y":4.8},{"time":1,"x":6.23,"y":0}]},"left lower leg":{"rotate":[{"time":0,"angle":-22.98},{"time":0.1333,"angle":-63.5},{"time":0.2333,"angle":-73.76},{"time":0.5,"angle":5.11},{"time":0.6333,"angle":-28.29},{"time":0.7333,"angle":4.08},{"time":0.8666,"angle":3.53},{"time":1,"angle":-22.98}],"translate":[{"time":0,"x":0,"y":0},{"time":0.2333,"x":2.55,"y":-0.47},{"time":0.5,"x":0,"y":0,"curve":"stepped"},{"time":1,"x":0,"y":0}]},"left foot":{"rotate":[{"time":0,"angle":-3.69},{"time":0.1333,"angle":-10.42},{"time":0.2333,"angle":-5.01},{"time":0.3666,"angle":3.87},{"time":0.5,"angle":-3.87},{"time":0.6333,"angle":2.78},{"time":0.7333,"angle":1.68},{"time":0.8666,"angle":-8.54},{"time":1,"angle":-3.69}]},"right shoulder":{"rotate":[{"time":0,"angle":5.29,"curve":[0.264,0,0.75,1]},{"time":0.6333,"angle":6.65},{"time":1,"angle":5.29}]},"right arm":{"rotate":[{"time":0,"angle":-4.02,"curve":[0.267,0,0.804,0.99]},{"time":0.6333,"angle":19.78,"curve":[0.307,0,0.787,0.99]},{"time":1,"angle":-4.02}]},"right hand":{"rotate":[{"time":0,"angle":8.98},{"time":0.6333,"angle":0.51},{"time":1,"angle":8.98}]},"left shoulder":{"rotate":[{"time":0,"angle":6.25,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":-11.78,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":6.25}],"translate":[{"time":0,"x":1.15,"y":0.23}]},"left hand":{"rotate":[{"time":0,"angle":-21.23,"curve":[0.295,0,0.755,0.98]},{"time":0.5,"angle":-27.28,"curve":[0.241,0,0.75,0.97]},{"time":1,"angle":-21.23}]},"left arm":{"rotate":[{"time":0,"angle":28.37,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":60.09,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":28.37}]},"torso":{"rotate":[{"time":0,"angle":-10.28},{"time":0.1333,"angle":-15.38,"curve":[0.545,0,0.818,1]},{"time":0.3666,"angle":-9.78,"curve":[0.58,0.17,0.669,0.99]},{"time":0.6333,"angle":-15.75,"curve":[0.235,0.01,0.795,1]},{"time":0.8666,"angle":-7.06,"curve":[0.209,0,0.816,0.98]},{"time":1,"angle":-10.28}],"translate":[{"time":0,"x":-1.29,"y":1.68}]},"right foot":{"rotate":[{"time":0,"angle":-5.25},{"time":0.2333,"angle":-1.91},{"time":0.3666,"angle":-6.45},{"time":0.5,"angle":-5.39},{"time":0.7333,"angle":-11.68},{"time":0.8666,"angle":0.46},{"time":1,"angle":-5.25}]},"right lower leg":{"rotate":[{"time":0,"angle":-3.39,"curve":[0.316,0.01,0.741,0.98]},{"time":0.1333,"angle":-45.53,"curve":[0.229,0,0.738,0.97]},{"time":0.2333,"angle":-4.83},{"time":0.5,"angle":-19.53},{"time":0.6333,"angle":-64.8},{"time":0.7333,"angle":-82.56,"curve":[0.557,0.18,1,1]},{"time":1,"angle":-3.39}],"translate":[{"time":0,"x":0,"y":0,"curve":"stepped"},{"time":0.5,"x":0,"y":0},{"time":0.6333,"x":2.18,"y":0.21},{"time":1,"x":0,"y":0}]},"hip":{"rotate":[{"time":0,"angle":0,"curve":"stepped"},{"time":1,"angle":0}],"translate":[{"time":0,"x":0,"y":-4.16},{"time":0.1333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.3666,"x":0,"y":6.78},{"time":0.5,"x":0,"y":-6.13},{"time":0.6333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.8666,"x":0,"y":6.78},{"time":1,"x":0,"y":-4.16}]},"neck":{"rotate":[{"time":0,"angle":3.6},{"time":0.1333,"angle":17.49},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17},{"time":0.6333,"angle":18.36},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]},"head":{"rotate":[{"time":0,"angle":3.6,"curve":[0,0,0.704,1.17]},{"time":0.1333,"angle":-0.2},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17,"curve":[0,0,0.704,1.61]},{"time":0.6666,"angle":1.1},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]}}}}} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/goblins.png b/examples/example 12 - Spine/data/goblins.png index 5c26ca0..f2cdf16 100644 --- a/examples/example 12 - Spine/data/goblins.png +++ b/examples/example 12 - Spine/data/goblins.png Binary files differ diff --git a/examples/example 12 - Spine/data/goblinsSpineData.json b/examples/example 12 - Spine/data/goblinsSpineData.json deleted file mode 100644 index 8d63c62..0000000 --- a/examples/example 12 - Spine/data/goblinsSpineData.json +++ /dev/null @@ -1,502 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, - { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, - { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 }, - { "name": "right upper leg", "parent": "hip", "length": 42.45, "x": -20.07, "y": -6.83, "rotation": -97.49 }, - { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 93.92 }, - { "name": "left lower leg", "parent": "left upper leg", "length": 49.89, "x": 56.34, "y": 0.98, "rotation": -16.65 }, - { "name": "left shoulder", "parent": "torso", "length": 35.43, "x": 74.04, "y": -20.38, "rotation": -156.96 }, - { "name": "neck", "parent": "torso", "length": 18.38, "x": 81.67, "y": -6.34, "rotation": -1.51 }, - { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 42.99, "y": -0.61, "rotation": -14.34 }, - { "name": "right shoulder", "parent": "torso", "length": 37.24, "x": 76.02, "y": 18.14, "rotation": 133.88 }, - { "name": "head", "parent": "neck", "length": 68.28, "x": 20.93, "y": 11.59, "rotation": -13.92 }, - { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 37.85, "y": -2.34, "rotation": 28.16 }, - { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 58.94, "y": -7.61, "rotation": 102.43 }, - { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 37.6, "y": 0.31, "rotation": 36.32 }, - { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, - { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, - { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 } -], -"slots": [ - { "name": "left shoulder", "bone": "left shoulder", "attachment": "left shoulder" }, - { "name": "left arm", "bone": "left arm", "attachment": "left arm" }, - { "name": "left hand item", "bone": "left hand", "attachment": "spear" }, - { "name": "left hand", "bone": "left hand", "attachment": "left hand" }, - { "name": "left foot", "bone": "left foot", "attachment": "left foot" }, - { "name": "left lower leg", "bone": "left lower leg", "attachment": "left lower leg" }, - { "name": "left upper leg", "bone": "left upper leg", "attachment": "left upper leg" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "torso", "bone": "torso", "attachment": "torso" }, - { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, - { "name": "right foot", "bone": "right foot", "attachment": "right foot" }, - { "name": "right lower leg", "bone": "right lower leg", "attachment": "right lower leg" }, - { "name": "undie straps", "bone": "pelvis", "attachment": "undie straps" }, - { "name": "undies", "bone": "pelvis", "attachment": "undies" }, - { "name": "right upper leg", "bone": "right upper leg", "attachment": "right upper leg" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "eyes", "bone": "head" }, - { "name": "right shoulder", "bone": "right shoulder", "attachment": "right shoulder" }, - { "name": "right arm", "bone": "right arm", "attachment": "right arm" }, - { "name": "right hand item", "bone": "right hand", "attachment": "dagger" }, - { "name": "right hand", "bone": "right hand", "attachment": "right hand" } -], -"skins": { - "default": { - "left hand item": { - "dagger": { "x": 7.88, "y": -23.45, "rotation": 10.47, "width": 26, "height": 108 }, - "spear": { "x": -4.55, "y": 39.2, "rotation": 13.04, "width": 22, "height": 368 } - }, - "right hand item": { - "dagger": { "x": 6.51, "y": -24.15, "rotation": -8.06, "width": 26, "height": 108 } - } - }, - "goblin": { - "eyes": { - "eyes closed": { "name": "goblin/eyes-closed", "x": 32.21, "y": -21.27, "rotation": -88.92, "width": 34, "height": 12 } - }, - "head": { - "head": { "name": "goblin/head", "x": 25.73, "y": 2.33, "rotation": -92.29, "width": 103, "height": 66 } - }, - "left arm": { - "left arm": { - "name": "goblin/left-arm", - "x": 16.7, - "y": -1.69, - "scaleX": 1.057, - "scaleY": 1.057, - "rotation": 33.84, - "width": 37, - "height": 35 - } - }, - "left foot": { - "left foot": { "name": "goblin/left-foot", "x": 24.85, "y": 8.74, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblin/left-hand", - "x": 3.47, - "y": 3.41, - "scaleX": 0.892, - "scaleY": 0.892, - "rotation": 31.14, - "width": 36, - "height": 41 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblin/left-lower-leg", "x": 23.58, "y": -2.06, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblin/left-shoulder", "x": 15.56, "y": -2.26, "rotation": 62.01, "width": 29, "height": 44 } - }, - "left upper leg": { - "left upper leg": { "name": "goblin/left-upper-leg", "x": 29.68, "y": -3.87, "rotation": 89.09, "width": 33, "height": 73 } - }, - "neck": { - "neck": { "name": "goblin/neck", "x": 10.1, "y": 0.42, "rotation": -93.69, "width": 36, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblin/pelvis", "x": -5.61, "y": 0.76, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblin/right-arm", "x": 16.44, "y": -1.04, "rotation": 94.32, "width": 23, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblin/right-foot", "x": 23.56, "y": 9.8, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblin/right-hand", "x": 7.88, "y": 2.78, "rotation": 91.96, "width": 36, "height": 37 } - }, - "right lower leg": { - "right lower leg": { "name": "goblin/right-lower-leg", "x": 25.68, "y": -3.15, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblin/right-shoulder", "x": 15.68, "y": -1.03, "rotation": 130.65, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblin/right-upper-leg", "x": 20.35, "y": 1.47, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblin/torso", "x": 38.09, "y": -3.87, "rotation": -94.95, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblin/undie-straps", "x": -3.87, "y": 13.1, "scaleX": 1.089, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblin/undies", "x": 6.3, "y": 0.12, "rotation": 0.91, "width": 36, "height": 29 } - } - }, - "goblingirl": { - "eyes": { - "eyes closed": { "name": "goblingirl/eyes-closed", "x": 28, "y": -25.54, "rotation": -87.04, "width": 37, "height": 21 } - }, - "head": { - "head": { "name": "goblingirl/head", "x": 27.71, "y": -4.32, "rotation": -85.58, "width": 103, "height": 81 } - }, - "left arm": { - "left arm": { "name": "goblingirl/left-arm", "x": 19.64, "y": -2.42, "rotation": 33.05, "width": 37, "height": 35 } - }, - "left foot": { - "left foot": { "name": "goblingirl/left-foot", "x": 25.17, "y": 7.92, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblingirl/left-hand", - "x": 4.34, - "y": 2.39, - "scaleX": 0.896, - "scaleY": 0.896, - "rotation": 30.34, - "width": 35, - "height": 40 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblingirl/left-lower-leg", "x": 25.02, "y": -0.6, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblingirl/left-shoulder", "x": 19.8, "y": -0.42, "rotation": 61.21, "width": 28, "height": 46 } - }, - "left upper leg": { - "left upper leg": { "name": "goblingirl/left-upper-leg", "x": 30.21, "y": -2.95, "rotation": 89.09, "width": 33, "height": 70 } - }, - "neck": { - "neck": { "name": "goblingirl/neck", "x": 6.16, "y": -3.14, "rotation": -98.86, "width": 35, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblingirl/pelvis", "x": -3.87, "y": 3.18, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblingirl/right-arm", "x": 16.85, "y": -0.66, "rotation": 93.52, "width": 28, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblingirl/right-foot", "x": 23.46, "y": 9.66, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblingirl/right-hand", "x": 7.21, "y": 3.43, "rotation": 91.16, "width": 36, "height": 37 } - }, - "right hand item": { - "right hand item": { "name": "goblingirl/dagger-tip", "x": 13.45, "y": 22.07, "rotation": -3.23, "width": 17, "height": 17 } - }, - "right lower leg": { - "right lower leg": { "name": "goblingirl/right-lower-leg", "x": 26.15, "y": -3.27, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblingirl/right-shoulder", "x": 14.46, "y": 0.45, "rotation": 129.85, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblingirl/right-upper-leg", "x": 19.69, "y": 2.13, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblingirl/torso", "x": 36.28, "y": -5.14, "rotation": -95.74, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblingirl/undie-straps", "x": -1.51, "y": 14.18, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblingirl/undies", "x": 5.4, "y": 1.7, "width": 36, "height": 29 } - } - } -}, -"animations": { - "walk": { - "bones": { - "left upper leg": { - "rotate": [ - { "time": 0, "angle": -26.55 }, - { "time": 0.1333, "angle": -8.78 }, - { "time": 0.2333, "angle": 9.51 }, - { "time": 0.3666, "angle": 30.74 }, - { "time": 0.5, "angle": 25.33 }, - { "time": 0.6333, "angle": 26.11 }, - { "time": 0.7333, "angle": -7.7 }, - { "time": 0.8666, "angle": -21.19 }, - { "time": 1, "angle": -26.55 } - ], - "translate": [ - { "time": 0, "x": -1.32, "y": 1.7 }, - { "time": 0.3666, "x": -0.06, "y": 2.42 }, - { "time": 1, "x": -1.32, "y": 1.7 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 42.45 }, - { "time": 0.1333, "angle": 52.1 }, - { "time": 0.2333, "angle": 8.53 }, - { "time": 0.5, "angle": -16.93 }, - { "time": 0.6333, "angle": 1.89 }, - { - "time": 0.7333, - "angle": 28.06, - "curve": [ 0.462, 0.11, 1, 1 ] - }, - { - "time": 0.8666, - "angle": 58.68, - "curve": [ 0.5, 0.02, 1, 1 ] - }, - { "time": 1, "angle": 42.45 } - ], - "translate": [ - { "time": 0, "x": 6.23, "y": 0 }, - { "time": 0.2333, "x": 2.14, "y": 2.4 }, - { "time": 0.5, "x": 2.44, "y": 4.8 }, - { "time": 1, "x": 6.23, "y": 0 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -22.98 }, - { "time": 0.1333, "angle": -63.5 }, - { "time": 0.2333, "angle": -73.76 }, - { "time": 0.5, "angle": 5.11 }, - { "time": 0.6333, "angle": -28.29 }, - { "time": 0.7333, "angle": 4.08 }, - { "time": 0.8666, "angle": 3.53 }, - { "time": 1, "angle": -22.98 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 2.55, "y": -0.47 }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": -3.69 }, - { "time": 0.1333, "angle": -10.42 }, - { "time": 0.2333, "angle": -5.01 }, - { "time": 0.3666, "angle": 3.87 }, - { "time": 0.5, "angle": -3.87 }, - { "time": 0.6333, "angle": 2.78 }, - { "time": 0.7333, "angle": 1.68 }, - { "time": 0.8666, "angle": -8.54 }, - { "time": 1, "angle": -3.69 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 5.29, - "curve": [ 0.264, 0, 0.75, 1 ] - }, - { "time": 0.6333, "angle": 6.65 }, - { "time": 1, "angle": 5.29 } - ] - }, - "right arm": { - "rotate": [ - { - "time": 0, - "angle": -4.02, - "curve": [ 0.267, 0, 0.804, 0.99 ] - }, - { - "time": 0.6333, - "angle": 19.78, - "curve": [ 0.307, 0, 0.787, 0.99 ] - }, - { "time": 1, "angle": -4.02 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 8.98 }, - { "time": 0.6333, "angle": 0.51 }, - { "time": 1, "angle": 8.98 } - ] - }, - "left shoulder": { - "rotate": [ - { - "time": 0, - "angle": 6.25, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": -11.78, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 6.25 } - ], - "translate": [ - { "time": 0, "x": 1.15, "y": 0.23 } - ] - }, - "left hand": { - "rotate": [ - { - "time": 0, - "angle": -21.23, - "curve": [ 0.295, 0, 0.755, 0.98 ] - }, - { - "time": 0.5, - "angle": -27.28, - "curve": [ 0.241, 0, 0.75, 0.97 ] - }, - { "time": 1, "angle": -21.23 } - ] - }, - "left arm": { - "rotate": [ - { - "time": 0, - "angle": 28.37, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": 60.09, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 28.37 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -10.28 }, - { - "time": 0.1333, - "angle": -15.38, - "curve": [ 0.545, 0, 0.818, 1 ] - }, - { - "time": 0.3666, - "angle": -9.78, - "curve": [ 0.58, 0.17, 0.669, 0.99 ] - }, - { - "time": 0.6333, - "angle": -15.75, - "curve": [ 0.235, 0.01, 0.795, 1 ] - }, - { - "time": 0.8666, - "angle": -7.06, - "curve": [ 0.209, 0, 0.816, 0.98 ] - }, - { "time": 1, "angle": -10.28 } - ], - "translate": [ - { "time": 0, "x": -1.29, "y": 1.68 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": -5.25 }, - { "time": 0.2333, "angle": -1.91 }, - { "time": 0.3666, "angle": -6.45 }, - { "time": 0.5, "angle": -5.39 }, - { "time": 0.7333, "angle": -11.68 }, - { "time": 0.8666, "angle": 0.46 }, - { "time": 1, "angle": -5.25 } - ] - }, - "right lower leg": { - "rotate": [ - { - "time": 0, - "angle": -3.39, - "curve": [ 0.316, 0.01, 0.741, 0.98 ] - }, - { - "time": 0.1333, - "angle": -45.53, - "curve": [ 0.229, 0, 0.738, 0.97 ] - }, - { "time": 0.2333, "angle": -4.83 }, - { "time": 0.5, "angle": -19.53 }, - { "time": 0.6333, "angle": -64.8 }, - { - "time": 0.7333, - "angle": -82.56, - "curve": [ 0.557, 0.18, 1, 1 ] - }, - { "time": 1, "angle": -3.39 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.6333, "x": 2.18, "y": 0.21 }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": -4.16 }, - { - "time": 0.1333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.3666, "x": 0, "y": 6.78 }, - { "time": 0.5, "x": 0, "y": -6.13 }, - { - "time": 0.6333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.8666, "x": 0, "y": 6.78 }, - { "time": 1, "x": 0, "y": -4.16 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 3.6 }, - { "time": 0.1333, "angle": 17.49 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { "time": 0.5, "angle": 5.17 }, - { "time": 0.6333, "angle": 18.36 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 3.6, - "curve": [ 0, 0, 0.704, 1.17 ] - }, - { "time": 0.1333, "angle": -0.2 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { - "time": 0.5, - "angle": 5.17, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.6666, "angle": 1.1 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - } - }, - "slots": { - "eyes": { - "attachment": [ - { "time": 0.7, "name": "eyes closed" }, - { "time": 0.8, "name": null } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/dragonBones.png b/examples/example 12 - Spine/data/dragonBones.png deleted file mode 100644 index 12cb92e..0000000 --- a/examples/example 12 - Spine/data/dragonBones.png +++ /dev/null Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBonesData.json b/examples/example 12 - Spine/data/dragonBonesData.json deleted file mode 100644 index c65508a..0000000 --- a/examples/example 12 - Spine/data/dragonBonesData.json +++ /dev/null @@ -1,779 +0,0 @@ -{ -"bones": [ - { "name": "root", "y": -176.12 }, - { "name": "COG", "parent": "root", "y": 176.12 }, - { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, - { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, - { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, - { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, - { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, - { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, - { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, - { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, - { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, - { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, - { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, - { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, - { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, - { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, - { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, - { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, - { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, - { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, - { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, - { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, - { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, - { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, - { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, - { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, - { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, - { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, - { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, - { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, - { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, - { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, - { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } -], -"slots": [ - { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, - { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, - { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, - { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, - { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, - { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, - { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, - { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, - { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, - { "name": "back", "bone": "back", "attachment": "back" }, - { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, - { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, - { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, - { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, - { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, - { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, - { "name": "chest", "bone": "chest", "attachment": "chest" }, - { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, - { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, - { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, - { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, - { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, - { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, - { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, - { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, - { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, - { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, - { "name": "chin", "bone": "chin", "attachment": "chin" }, - { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, - { "name": "head", "bone": "head", "attachment": "head" } -], -"skins": { - "default": { - "L_front_leg": { - "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } - }, - "L_front_thigh": { - "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } - }, - "L_front_toe1": { - "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } - }, - "L_front_toe2": { - "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } - }, - "L_front_toe3": { - "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } - }, - "L_front_toe4": { - "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } - }, - "L_rear_leg": { - "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } - }, - "L_rear_thigh": { - "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } - }, - "L_wing": { - "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, - "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, - "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, - "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, - "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, - "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, - "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, - "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, - "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } - }, - "R_front_leg": { - "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } - }, - "R_front_thigh": { - "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } - }, - "R_front_toe1": { - "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } - }, - "R_front_toe2": { - "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } - }, - "R_front_toe3": { - "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } - }, - "R_rear_leg": { - "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } - }, - "R_rear_thigh": { - "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } - }, - "R_rear_toe1": { - "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } - }, - "R_rear_toe2": { - "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } - }, - "R_rear_toe3": { - "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } - }, - "R_wing": { - "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, - "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, - "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, - "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, - "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, - "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, - "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, - "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, - "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } - }, - "back": { - "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } - }, - "chest": { - "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } - }, - "chin": { - "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } - }, - "head": { - "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } - }, - "tail1": { - "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } - }, - "tail2": { - "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } - }, - "tail3": { - "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } - }, - "tail4": { - "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } - }, - "tail5": { - "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } - }, - "tail6": { - "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } - } - } -}, -"animations": { - "flying": { - "bones": { - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.39 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.8333, "angle": 7 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -8.18 }, - { "time": 0.3333, "angle": -23.16 }, - { "time": 0.5, "angle": -18.01 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chest": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -2.42 }, - { "time": 0.3333, "angle": -26.2 }, - { "time": 0.5, "angle": -29.65 }, - { "time": 0.6666, "angle": -23.15 }, - { "time": 0.8333, "angle": -55.46 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_thigh": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -1.12 }, - { "time": 0.3333, "angle": 10.48 }, - { "time": 0.5, "angle": 7.89 }, - { "time": 0.8333, "angle": -10.38 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 8.24 }, - { "time": 0.3333, "angle": 15.21 }, - { "time": 0.5, "angle": 14.84 }, - { "time": 0.8333, "angle": -18.9 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.46 }, - { "time": 0.3333, "angle": 22.15 }, - { "time": 0.5, "angle": 22.76 }, - { "time": 0.8333, "angle": -4.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail5": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 7.4 }, - { "time": 0.3333, "angle": 28.5 }, - { "time": 0.5, "angle": 21.33 }, - { "time": 0.8333, "angle": -1.27 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail6": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 45.99 }, - { "time": 0.4, "angle": 43.53 }, - { "time": 0.5, "angle": 61.79 }, - { "time": 0.8333, "angle": 13.28 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -14.21 }, - { "time": 0.5, "angle": 47.17 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -36.06 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -20.32 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -18.71 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.408, 1.36, 0.675, 1.43 ] - }, - { "time": 0.5, "angle": 1.03 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chin": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.416, 1.15, 0.494, 1.27 ] - }, - { "time": 0.3333, "angle": -5.15 }, - { "time": 0.5, "angle": 9.79 }, - { "time": 0.6666, "angle": 18.94 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -19.18 }, - { "time": 0.3333, "angle": -32.02 }, - { "time": 0.5, "angle": -19.62 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -12.96 }, - { "time": 0.5, "angle": 16.2 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 37.77 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -16.08 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.33, "y": 1.029 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 26.51 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.239, "y": 0.993 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 16.99 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.402, "y": 1.007 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 26.07 }, - { "time": 0.5, "angle": -21.6 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 29.23 }, - { "time": 0.5, "angle": 34.83 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.412, "y": 1 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 24.89 }, - { "time": 0.5, "angle": 23.16 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.407, "y": 1.057 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 11.01 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.329, "y": 1.181 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 25.19 }, - { "time": 0.6666, "angle": -15.65 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "COG": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.456, 0.2, 0.422, 1.06 ] - }, - { "time": 0.3333, "angle": 23.93 }, - { - "time": 0.6666, - "angle": 337.8, - "curve": [ 0.41, 0, 0.887, 0.75 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.33, 1, 0.816, 1.33 ] - }, - { - "time": 0.5, - "x": 0, - "y": 113.01, - "curve": [ 0.396, 0, 0.709, 2.03 ] - }, - { "time": 1, "x": 0, "y": 0 } - ] - } - }, - "slots": { - "R_wing": { - "attachment": [ - { "time": 0, "name": "R_wing01" }, - { "time": 0.0666, "name": "R_wing02" }, - { "time": 0.1333, "name": "R_wing03" }, - { "time": 0.2, "name": "R_wing04" }, - { "time": 0.2666, "name": "R_wing05" }, - { "time": 0.3333, "name": "R_wing06" }, - { "time": 0.4, "name": "R_wing07" }, - { "time": 0.4666, "name": "R_wing08" }, - { "time": 0.5333, "name": "R_wing09" }, - { "time": 0.6, "name": "R_wing01" }, - { "time": 0.7333, "name": "R_wing02" }, - { "time": 0.7666, "name": "R_wing02" }, - { "time": 0.8, "name": "R_wing03" }, - { "time": 0.8333, "name": "R_wing04" }, - { "time": 0.8666, "name": "R_wing05" }, - { "time": 0.9, "name": "R_wing06" }, - { "time": 0.9333, "name": "R_wing07" }, - { "time": 0.9666, "name": "R_wing08" }, - { "time": 1, "name": "R_wing09" } - ] - }, - "L_wing": { - "attachment": [ - { "time": 0, "name": "L_wing01" }, - { "time": 0.0666, "name": "L_wing02" }, - { "time": 0.1333, "name": "L_wing03" }, - { "time": 0.2, "name": "L_wing04" }, - { "time": 0.2666, "name": "L_wing05" }, - { "time": 0.3333, "name": "L_wing06" }, - { "time": 0.4, "name": "L_wing07" }, - { "time": 0.4666, "name": "L_wing08" }, - { "time": 0.5333, "name": "L_wing09" }, - { "time": 0.6, "name": "L_wing01" }, - { "time": 0.7333, "name": "L_wing02" }, - { "time": 0.8, "name": "L_wing03" }, - { "time": 0.8333, "name": "L_wing04" }, - { "time": 0.8666, "name": "L_wing05" }, - { "time": 0.9, "name": "L_wing06" }, - { "time": 0.9333, "name": "L_wing07" }, - { "time": 0.9666, "name": "L_wing08" }, - { "time": 1, "name": "L_wing09" } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/goblins.atlas b/examples/example 12 - Spine/data/goblins.atlas new file mode 100644 index 0000000..c9cb702 --- /dev/null +++ b/examples/example 12 - Spine/data/goblins.atlas @@ -0,0 +1,293 @@ + +goblins.png +size: 228,523 +format: RGBA8888 +filter: Linear,Linear +repeat: none +dagger + rotate: false + xy: 2, 43 + size: 26, 108 + orig: 26, 108 + offset: 0, 0 + index: -1 +goblin/eyes-closed + rotate: false + xy: 166, 237 + size: 34, 12 + orig: 34, 12 + offset: 0, 0 + index: -1 +goblin/head + rotate: false + xy: 26, 372 + size: 103, 66 + orig: 103, 66 + offset: 0, 0 + index: -1 +goblin/left-arm + rotate: false + xy: 166, 251 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblin/left-foot + rotate: true + xy: 195, 358 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblin/left-hand + rotate: false + xy: 49, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/left-lower-leg + rotate: false + xy: 30, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblin/left-shoulder + rotate: true + xy: 169, 288 + size: 29, 44 + orig: 29, 44 + offset: 0, 0 + index: -1 +goblin/left-upper-leg + rotate: false + xy: 134, 305 + size: 33, 73 + orig: 33, 73 + offset: 0, 0 + index: -1 +goblin/neck + rotate: false + xy: 87, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/pelvis + rotate: false + xy: 131, 380 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblin/right-arm + rotate: false + xy: 135, 69 + size: 23, 50 + orig: 23, 50 + offset: 0, 0 + index: -1 +goblin/right-foot + rotate: true + xy: 104, 157 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblin/right-hand + rotate: false + xy: 190, 319 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblin/right-lower-leg + rotate: false + xy: 96, 294 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblin/right-shoulder + rotate: true + xy: 2, 2 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblin/right-upper-leg + rotate: false + xy: 139, 162 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblin/torso + rotate: false + xy: 131, 425 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblin/undie-straps + rotate: true + xy: 201, 466 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblin/undies + rotate: false + xy: 190, 51 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +goblingirl/eyes-closed + rotate: true + xy: 201, 427 + size: 37, 21 + orig: 37, 21 + offset: 0, 0 + index: -1 +goblingirl/head + rotate: false + xy: 26, 440 + size: 103, 81 + orig: 103, 81 + offset: 0, 0 + index: -1 +goblingirl/left-arm + rotate: true + xy: 175, 198 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblingirl/left-foot + rotate: true + xy: 133, 227 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblingirl/left-hand + rotate: true + xy: 168, 2 + size: 35, 40 + orig: 35, 40 + offset: 0, 0 + index: -1 +goblingirl/left-lower-leg + rotate: false + xy: 65, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/left-shoulder + rotate: true + xy: 135, 39 + size: 28, 46 + orig: 28, 46 + offset: 0, 0 + index: -1 +goblingirl/left-upper-leg + rotate: false + xy: 98, 222 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/neck + rotate: true + xy: 125, 2 + size: 35, 41 + orig: 35, 41 + offset: 0, 0 + index: -1 +goblingirl/pelvis + rotate: false + xy: 30, 117 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblingirl/right-arm + rotate: false + xy: 160, 69 + size: 28, 50 + orig: 28, 50 + offset: 0, 0 + index: -1 +goblingirl/right-foot + rotate: true + xy: 100, 56 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblingirl/right-hand + rotate: false + xy: 190, 82 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblingirl/right-lower-leg + rotate: true + xy: 26, 162 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblingirl/right-shoulder + rotate: true + xy: 159, 121 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblingirl/right-upper-leg + rotate: true + xy: 94, 121 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblingirl/torso + rotate: false + xy: 26, 274 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblingirl/undie-straps + rotate: true + xy: 169, 323 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblingirl/undies + rotate: false + xy: 175, 167 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +shield + rotate: false + xy: 26, 200 + size: 70, 72 + orig: 70, 72 + offset: 0, 0 + index: -1 +spear + rotate: false + xy: 2, 153 + size: 22, 368 + orig: 22, 368 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/goblins.json b/examples/example 12 - Spine/data/goblins.json index f87ec19..5d83ae1 100644 --- a/examples/example 12 - Spine/data/goblins.json +++ b/examples/example 12 - Spine/data/goblins.json @@ -1,332 +1 @@ -{"frames": { - -"dagger.png": -{ - "frame": {"x":2,"y":372,"w":26,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":26,"h":108}, - "sourceSize": {"w":26,"h":108} -}, -"goblin/eyes-closed.png": -{ - "frame": {"x":64,"y":354,"w":34,"h":12}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":12}, - "sourceSize": {"w":34,"h":12} -}, -"goblin/head.png": -{ - "frame": {"x":59,"y":83,"w":103,"h":64}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":103,"h":64}, - "sourceSize": {"w":103,"h":66} -}, -"goblin/left-arm.png": -{ - "frame": {"x":30,"y":445,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblin/left-foot.png": -{ - "frame": {"x":59,"y":182,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblin/left-hand.png": -{ - "frame": {"x":107,"y":436,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/left-lower-leg.png": -{ - "frame": {"x":26,"y":74,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblin/left-shoulder.png": -{ - "frame": {"x":26,"y":146,"w":29,"h":44}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":44}, - "sourceSize": {"w":29,"h":44} -}, -"goblin/left-upper-leg.png": -{ - "frame": {"x":30,"y":370,"w":33,"h":73}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":73}, - "sourceSize": {"w":33,"h":73} -}, -"goblin/neck.png": -{ - "frame": {"x":146,"y":309,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/pelvis.png": -{ - "frame": {"x":163,"y":233,"w":62,"h":43}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":62,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblin/right-arm.png": -{ - "frame": {"x":30,"y":240,"w":23,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":23,"h":50}, - "sourceSize": {"w":23,"h":50} -}, -"goblin/right-foot.png": -{ - "frame": {"x":164,"y":198,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblin/right-hand.png": -{ - "frame": {"x":154,"y":462,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblin/right-lower-leg.png": -{ - "frame": {"x":26,"y":292,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblin/right-shoulder.png": -{ - "frame": {"x":105,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblin/right-upper-leg.png": -{ - "frame": {"x":136,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblin/torso.png": -{ - "frame": {"x":164,"y":2,"w":68,"h":96}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblin/undie-straps.png": -{ - "frame": {"x":59,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblin/undies.png": -{ - "frame": {"x":116,"y":479,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"goblingirl/eyes-closed.png": -{ - "frame": {"x":100,"y":419,"w":37,"h":15}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":6,"w":37,"h":15}, - "sourceSize": {"w":37,"h":21} -}, -"goblingirl/head.png": -{ - "frame": {"x":59,"y":2,"w":103,"h":79}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":79}, - "sourceSize": {"w":103,"h":81} -}, -"goblingirl/left-arm.png": -{ - "frame": {"x":124,"y":227,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblingirl/left-foot.png": -{ - "frame": {"x":59,"y":149,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblingirl/left-hand.png": -{ - "frame": {"x":55,"y":250,"w":35,"h":40}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":40}, - "sourceSize": {"w":35,"h":40} -}, -"goblingirl/left-lower-leg.png": -{ - "frame": {"x":26,"y":2,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/left-shoulder.png": -{ - "frame": {"x":26,"y":192,"w":28,"h":46}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":28,"h":46}, - "sourceSize": {"w":28,"h":46} -}, -"goblingirl/left-upper-leg.png": -{ - "frame": {"x":65,"y":368,"w":33,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/neck.png": -{ - "frame": {"x":145,"y":419,"w":33,"h":41}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":41}, - "sourceSize": {"w":35,"h":41} -}, -"goblingirl/pelvis.png": -{ - "frame": {"x":92,"y":264,"w":60,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":60,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblingirl/right-arm.png": -{ - "frame": {"x":232,"y":100,"w":22,"h":50}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":3,"y":0,"w":22,"h":50}, - "sourceSize": {"w":28,"h":50} -}, -"goblingirl/right-foot.png": -{ - "frame": {"x":59,"y":215,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblingirl/right-hand.png": -{ - "frame": {"x":69,"y":440,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblingirl/right-lower-leg.png": -{ - "frame": {"x":126,"y":149,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblingirl/right-shoulder.png": -{ - "frame": {"x":64,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblingirl/right-upper-leg.png": -{ - "frame": {"x":100,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblingirl/torso.png": -{ - "frame": {"x":164,"y":100,"w":66,"h":96}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":66,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblingirl/undie-straps.png": -{ - "frame": {"x":2,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblingirl/undies.png": -{ - "frame": {"x":154,"y":278,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"spear.png": -{ - "frame": {"x":2,"y":2,"w":22,"h":368}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":22,"h":368}, - "sourceSize": {"w":22,"h":368} -}}, -"meta": { - "app": "http://www.codeandweb.com/texturepacker ", - "version": "1.0", - "image": "goblins.png", - "format": "RGBA8888", - "size": {"w":256,"h":512}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:f89858b99c6b15e23d39806c4170313a:1/1$" -} -} +{"skeleton":{"hash":"BMzsp4a1APif5tjCQwomTTo3Ino","spine":"2.1.05","width":233.95,"height":354.87},"bones":[{"name":"root"},{"name":"hip","parent":"root","x":0.64,"y":114.41},{"name":"left upper leg","parent":"hip","length":50.39,"x":14.45,"y":2.81,"rotation":-89.09},{"name":"pelvis","parent":"hip","x":1.41,"y":-6.57},{"name":"right upper leg","parent":"hip","length":42.45,"x":-20.07,"y":-6.83,"rotation":-97.49},{"name":"torso","parent":"hip","length":85.82,"x":-6.42,"y":1.97,"rotation":93.92},{"name":"left lower leg","parent":"left upper leg","length":49.89,"x":56.34,"y":0.98,"rotation":-16.65},{"name":"left shoulder","parent":"torso","length":35.43,"x":74.04,"y":-20.38,"rotation":-156.96},{"name":"neck","parent":"torso","length":18.38,"x":81.67,"y":-6.34,"rotation":-1.51},{"name":"right lower leg","parent":"right upper leg","length":58.52,"x":42.99,"y":-0.61,"rotation":-14.34},{"name":"right shoulder","parent":"torso","length":37.24,"x":76.02,"y":18.14,"rotation":133.88},{"name":"head","parent":"neck","length":68.28,"x":20.93,"y":11.59,"rotation":-13.92},{"name":"left arm","parent":"left shoulder","length":35.62,"x":37.85,"y":-2.34,"rotation":28.16},{"name":"left foot","parent":"left lower leg","length":46.5,"x":58.94,"y":-7.61,"rotation":102.43},{"name":"right arm","parent":"right shoulder","length":36.74,"x":37.6,"y":0.31,"rotation":36.32},{"name":"right foot","parent":"right lower leg","length":45.45,"x":64.88,"y":0.04,"rotation":110.3},{"name":"left hand","parent":"left arm","length":11.52,"x":35.62,"y":0.07,"rotation":2.7},{"name":"right hand","parent":"right arm","length":15.32,"x":36.9,"y":0.34,"rotation":2.35}],"slots":[{"name":"left shoulder","bone":"left shoulder","attachment":"left shoulder"},{"name":"left arm","bone":"left arm","attachment":"left arm"},{"name":"left hand item","bone":"left hand","attachment":"spear"},{"name":"left hand","bone":"left hand","attachment":"left hand"},{"name":"left foot","bone":"left foot","attachment":"left foot"},{"name":"left lower leg","bone":"left lower leg","attachment":"left lower leg"},{"name":"left upper leg","bone":"left upper leg","attachment":"left upper leg"},{"name":"neck","bone":"neck","attachment":"neck"},{"name":"torso","bone":"torso","attachment":"torso"},{"name":"pelvis","bone":"pelvis","attachment":"pelvis"},{"name":"right foot","bone":"right foot","attachment":"right foot"},{"name":"right lower leg","bone":"right lower leg","attachment":"right lower leg"},{"name":"undie straps","bone":"pelvis","attachment":"undie straps"},{"name":"undies","bone":"pelvis","attachment":"undies"},{"name":"right upper leg","bone":"right upper leg","attachment":"right upper leg"},{"name":"head","bone":"head","attachment":"head"},{"name":"eyes","bone":"head"},{"name":"right shoulder","bone":"right shoulder","attachment":"right shoulder"},{"name":"right arm","bone":"right arm","attachment":"right arm"},{"name":"right hand item","bone":"right hand"},{"name":"right hand","bone":"right hand","attachment":"right hand"},{"name":"right hand item top","bone":"right hand","attachment":"shield"}],"skins":{"default":{"left hand item":{"dagger":{"x":7.88,"y":-23.45,"rotation":10.47,"width":26,"height":108},"spear":{"x":-4.55,"y":39.2,"rotation":13.04,"width":22,"height":368}},"right hand item":{"dagger":{"x":6.51,"y":-24.15,"rotation":-8.06,"width":26,"height":108}},"right hand item top":{"shield":{"rotation":93.49,"width":70,"height":72}}},"goblin":{"eyes":{"eyes closed":{"name":"goblin/eyes-closed","x":32.21,"y":-21.27,"rotation":-88.92,"width":34,"height":12}},"head":{"head":{"name":"goblin/head","x":25.73,"y":2.33,"rotation":-92.29,"width":103,"height":66}},"left arm":{"left arm":{"name":"goblin/left-arm","x":16.7,"y":-1.69,"scaleX":1.057,"scaleY":1.057,"rotation":33.84,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblin/left-foot","x":24.85,"y":8.74,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblin/left-hand","x":3.47,"y":3.41,"scaleX":0.892,"scaleY":0.892,"rotation":31.14,"width":36,"height":41}},"left lower leg":{"left lower leg":{"name":"goblin/left-lower-leg","x":23.58,"y":-2.06,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblin/left-shoulder","x":15.56,"y":-2.26,"rotation":62.01,"width":29,"height":44}},"left upper leg":{"left upper leg":{"name":"goblin/left-upper-leg","x":29.68,"y":-3.87,"rotation":89.09,"width":33,"height":73}},"neck":{"neck":{"name":"goblin/neck","x":10.1,"y":0.42,"rotation":-93.69,"width":36,"height":41}},"pelvis":{"pelvis":{"name":"goblin/pelvis","x":-5.61,"y":0.76,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblin/right-arm","x":16.44,"y":-1.04,"rotation":94.32,"width":23,"height":50}},"right foot":{"right foot":{"name":"goblin/right-foot","x":23.56,"y":9.8,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblin/right-hand","x":7.88,"y":2.78,"rotation":91.96,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblin/right-lower-leg","x":25.68,"y":-3.15,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblin/right-shoulder","x":15.68,"y":-1.03,"rotation":130.65,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblin/right-upper-leg","x":20.35,"y":1.47,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblin/torso","x":38.09,"y":-3.87,"rotation":-94.95,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblin/undie-straps","x":-3.87,"y":13.1,"scaleX":1.089,"width":55,"height":19}},"undies":{"undies":{"name":"goblin/undies","x":6.3,"y":0.12,"rotation":0.91,"width":36,"height":29}}},"goblingirl":{"eyes":{"eyes closed":{"name":"goblingirl/eyes-closed","x":28,"y":-25.54,"rotation":-87.04,"width":37,"height":21}},"head":{"head":{"name":"goblingirl/head","x":27.71,"y":-4.32,"rotation":-85.58,"width":103,"height":81}},"left arm":{"left arm":{"name":"goblingirl/left-arm","x":19.64,"y":-2.42,"rotation":33.05,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblingirl/left-foot","x":25.17,"y":7.92,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblingirl/left-hand","x":4.34,"y":2.39,"scaleX":0.896,"scaleY":0.896,"rotation":30.34,"width":35,"height":40}},"left lower leg":{"left lower leg":{"name":"goblingirl/left-lower-leg","x":25.02,"y":-0.6,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblingirl/left-shoulder","x":19.8,"y":-0.42,"rotation":61.21,"width":28,"height":46}},"left upper leg":{"left upper leg":{"name":"goblingirl/left-upper-leg","x":30.21,"y":-2.95,"rotation":89.09,"width":33,"height":70}},"neck":{"neck":{"name":"goblingirl/neck","x":6.16,"y":-3.14,"rotation":-98.86,"width":35,"height":41}},"pelvis":{"pelvis":{"name":"goblingirl/pelvis","x":-3.87,"y":3.18,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblingirl/right-arm","x":16.85,"y":-0.66,"rotation":93.52,"width":28,"height":50}},"right foot":{"right foot":{"name":"goblingirl/right-foot","x":23.46,"y":9.66,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblingirl/right-hand","x":7.21,"y":3.43,"rotation":91.16,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblingirl/right-lower-leg","x":26.15,"y":-3.27,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblingirl/right-shoulder","x":14.46,"y":0.45,"rotation":129.85,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblingirl/right-upper-leg","x":19.69,"y":2.13,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblingirl/torso","x":36.28,"y":-5.14,"rotation":-95.74,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblingirl/undie-straps","x":-1.51,"y":14.18,"width":55,"height":19}},"undies":{"undies":{"name":"goblingirl/undies","x":5.4,"y":1.7,"width":36,"height":29}}}},"animations":{"walk":{"slots":{"eyes":{"attachment":[{"time":0.7,"name":"eyes closed"},{"time":0.8,"name":null}]}},"bones":{"left upper leg":{"rotate":[{"time":0,"angle":-26.55},{"time":0.1333,"angle":-8.78},{"time":0.2333,"angle":9.51},{"time":0.3666,"angle":30.74},{"time":0.5,"angle":25.33},{"time":0.6333,"angle":26.11},{"time":0.7333,"angle":-7.7},{"time":0.8666,"angle":-21.19},{"time":1,"angle":-26.55}],"translate":[{"time":0,"x":-1.32,"y":1.7},{"time":0.3666,"x":-0.06,"y":2.42},{"time":1,"x":-1.32,"y":1.7}]},"right upper leg":{"rotate":[{"time":0,"angle":42.45},{"time":0.1333,"angle":52.1},{"time":0.2333,"angle":8.53},{"time":0.5,"angle":-16.93},{"time":0.6333,"angle":1.89},{"time":0.7333,"angle":28.06,"curve":[0.462,0.11,1,1]},{"time":0.8666,"angle":58.68,"curve":[0.5,0.02,1,1]},{"time":1,"angle":42.45}],"translate":[{"time":0,"x":6.23,"y":0},{"time":0.2333,"x":2.14,"y":2.4},{"time":0.5,"x":2.44,"y":4.8},{"time":1,"x":6.23,"y":0}]},"left lower leg":{"rotate":[{"time":0,"angle":-22.98},{"time":0.1333,"angle":-63.5},{"time":0.2333,"angle":-73.76},{"time":0.5,"angle":5.11},{"time":0.6333,"angle":-28.29},{"time":0.7333,"angle":4.08},{"time":0.8666,"angle":3.53},{"time":1,"angle":-22.98}],"translate":[{"time":0,"x":0,"y":0},{"time":0.2333,"x":2.55,"y":-0.47},{"time":0.5,"x":0,"y":0,"curve":"stepped"},{"time":1,"x":0,"y":0}]},"left foot":{"rotate":[{"time":0,"angle":-3.69},{"time":0.1333,"angle":-10.42},{"time":0.2333,"angle":-5.01},{"time":0.3666,"angle":3.87},{"time":0.5,"angle":-3.87},{"time":0.6333,"angle":2.78},{"time":0.7333,"angle":1.68},{"time":0.8666,"angle":-8.54},{"time":1,"angle":-3.69}]},"right shoulder":{"rotate":[{"time":0,"angle":5.29,"curve":[0.264,0,0.75,1]},{"time":0.6333,"angle":6.65},{"time":1,"angle":5.29}]},"right arm":{"rotate":[{"time":0,"angle":-4.02,"curve":[0.267,0,0.804,0.99]},{"time":0.6333,"angle":19.78,"curve":[0.307,0,0.787,0.99]},{"time":1,"angle":-4.02}]},"right hand":{"rotate":[{"time":0,"angle":8.98},{"time":0.6333,"angle":0.51},{"time":1,"angle":8.98}]},"left shoulder":{"rotate":[{"time":0,"angle":6.25,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":-11.78,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":6.25}],"translate":[{"time":0,"x":1.15,"y":0.23}]},"left hand":{"rotate":[{"time":0,"angle":-21.23,"curve":[0.295,0,0.755,0.98]},{"time":0.5,"angle":-27.28,"curve":[0.241,0,0.75,0.97]},{"time":1,"angle":-21.23}]},"left arm":{"rotate":[{"time":0,"angle":28.37,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":60.09,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":28.37}]},"torso":{"rotate":[{"time":0,"angle":-10.28},{"time":0.1333,"angle":-15.38,"curve":[0.545,0,0.818,1]},{"time":0.3666,"angle":-9.78,"curve":[0.58,0.17,0.669,0.99]},{"time":0.6333,"angle":-15.75,"curve":[0.235,0.01,0.795,1]},{"time":0.8666,"angle":-7.06,"curve":[0.209,0,0.816,0.98]},{"time":1,"angle":-10.28}],"translate":[{"time":0,"x":-1.29,"y":1.68}]},"right foot":{"rotate":[{"time":0,"angle":-5.25},{"time":0.2333,"angle":-1.91},{"time":0.3666,"angle":-6.45},{"time":0.5,"angle":-5.39},{"time":0.7333,"angle":-11.68},{"time":0.8666,"angle":0.46},{"time":1,"angle":-5.25}]},"right lower leg":{"rotate":[{"time":0,"angle":-3.39,"curve":[0.316,0.01,0.741,0.98]},{"time":0.1333,"angle":-45.53,"curve":[0.229,0,0.738,0.97]},{"time":0.2333,"angle":-4.83},{"time":0.5,"angle":-19.53},{"time":0.6333,"angle":-64.8},{"time":0.7333,"angle":-82.56,"curve":[0.557,0.18,1,1]},{"time":1,"angle":-3.39}],"translate":[{"time":0,"x":0,"y":0,"curve":"stepped"},{"time":0.5,"x":0,"y":0},{"time":0.6333,"x":2.18,"y":0.21},{"time":1,"x":0,"y":0}]},"hip":{"rotate":[{"time":0,"angle":0,"curve":"stepped"},{"time":1,"angle":0}],"translate":[{"time":0,"x":0,"y":-4.16},{"time":0.1333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.3666,"x":0,"y":6.78},{"time":0.5,"x":0,"y":-6.13},{"time":0.6333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.8666,"x":0,"y":6.78},{"time":1,"x":0,"y":-4.16}]},"neck":{"rotate":[{"time":0,"angle":3.6},{"time":0.1333,"angle":17.49},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17},{"time":0.6333,"angle":18.36},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]},"head":{"rotate":[{"time":0,"angle":3.6,"curve":[0,0,0.704,1.17]},{"time":0.1333,"angle":-0.2},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17,"curve":[0,0,0.704,1.61]},{"time":0.6666,"angle":1.1},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]}}}}} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/goblins.png b/examples/example 12 - Spine/data/goblins.png index 5c26ca0..f2cdf16 100644 --- a/examples/example 12 - Spine/data/goblins.png +++ b/examples/example 12 - Spine/data/goblins.png Binary files differ diff --git a/examples/example 12 - Spine/data/goblinsSpineData.json b/examples/example 12 - Spine/data/goblinsSpineData.json deleted file mode 100644 index 8d63c62..0000000 --- a/examples/example 12 - Spine/data/goblinsSpineData.json +++ /dev/null @@ -1,502 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, - { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, - { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 }, - { "name": "right upper leg", "parent": "hip", "length": 42.45, "x": -20.07, "y": -6.83, "rotation": -97.49 }, - { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 93.92 }, - { "name": "left lower leg", "parent": "left upper leg", "length": 49.89, "x": 56.34, "y": 0.98, "rotation": -16.65 }, - { "name": "left shoulder", "parent": "torso", "length": 35.43, "x": 74.04, "y": -20.38, "rotation": -156.96 }, - { "name": "neck", "parent": "torso", "length": 18.38, "x": 81.67, "y": -6.34, "rotation": -1.51 }, - { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 42.99, "y": -0.61, "rotation": -14.34 }, - { "name": "right shoulder", "parent": "torso", "length": 37.24, "x": 76.02, "y": 18.14, "rotation": 133.88 }, - { "name": "head", "parent": "neck", "length": 68.28, "x": 20.93, "y": 11.59, "rotation": -13.92 }, - { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 37.85, "y": -2.34, "rotation": 28.16 }, - { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 58.94, "y": -7.61, "rotation": 102.43 }, - { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 37.6, "y": 0.31, "rotation": 36.32 }, - { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, - { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, - { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 } -], -"slots": [ - { "name": "left shoulder", "bone": "left shoulder", "attachment": "left shoulder" }, - { "name": "left arm", "bone": "left arm", "attachment": "left arm" }, - { "name": "left hand item", "bone": "left hand", "attachment": "spear" }, - { "name": "left hand", "bone": "left hand", "attachment": "left hand" }, - { "name": "left foot", "bone": "left foot", "attachment": "left foot" }, - { "name": "left lower leg", "bone": "left lower leg", "attachment": "left lower leg" }, - { "name": "left upper leg", "bone": "left upper leg", "attachment": "left upper leg" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "torso", "bone": "torso", "attachment": "torso" }, - { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, - { "name": "right foot", "bone": "right foot", "attachment": "right foot" }, - { "name": "right lower leg", "bone": "right lower leg", "attachment": "right lower leg" }, - { "name": "undie straps", "bone": "pelvis", "attachment": "undie straps" }, - { "name": "undies", "bone": "pelvis", "attachment": "undies" }, - { "name": "right upper leg", "bone": "right upper leg", "attachment": "right upper leg" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "eyes", "bone": "head" }, - { "name": "right shoulder", "bone": "right shoulder", "attachment": "right shoulder" }, - { "name": "right arm", "bone": "right arm", "attachment": "right arm" }, - { "name": "right hand item", "bone": "right hand", "attachment": "dagger" }, - { "name": "right hand", "bone": "right hand", "attachment": "right hand" } -], -"skins": { - "default": { - "left hand item": { - "dagger": { "x": 7.88, "y": -23.45, "rotation": 10.47, "width": 26, "height": 108 }, - "spear": { "x": -4.55, "y": 39.2, "rotation": 13.04, "width": 22, "height": 368 } - }, - "right hand item": { - "dagger": { "x": 6.51, "y": -24.15, "rotation": -8.06, "width": 26, "height": 108 } - } - }, - "goblin": { - "eyes": { - "eyes closed": { "name": "goblin/eyes-closed", "x": 32.21, "y": -21.27, "rotation": -88.92, "width": 34, "height": 12 } - }, - "head": { - "head": { "name": "goblin/head", "x": 25.73, "y": 2.33, "rotation": -92.29, "width": 103, "height": 66 } - }, - "left arm": { - "left arm": { - "name": "goblin/left-arm", - "x": 16.7, - "y": -1.69, - "scaleX": 1.057, - "scaleY": 1.057, - "rotation": 33.84, - "width": 37, - "height": 35 - } - }, - "left foot": { - "left foot": { "name": "goblin/left-foot", "x": 24.85, "y": 8.74, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblin/left-hand", - "x": 3.47, - "y": 3.41, - "scaleX": 0.892, - "scaleY": 0.892, - "rotation": 31.14, - "width": 36, - "height": 41 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblin/left-lower-leg", "x": 23.58, "y": -2.06, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblin/left-shoulder", "x": 15.56, "y": -2.26, "rotation": 62.01, "width": 29, "height": 44 } - }, - "left upper leg": { - "left upper leg": { "name": "goblin/left-upper-leg", "x": 29.68, "y": -3.87, "rotation": 89.09, "width": 33, "height": 73 } - }, - "neck": { - "neck": { "name": "goblin/neck", "x": 10.1, "y": 0.42, "rotation": -93.69, "width": 36, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblin/pelvis", "x": -5.61, "y": 0.76, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblin/right-arm", "x": 16.44, "y": -1.04, "rotation": 94.32, "width": 23, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblin/right-foot", "x": 23.56, "y": 9.8, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblin/right-hand", "x": 7.88, "y": 2.78, "rotation": 91.96, "width": 36, "height": 37 } - }, - "right lower leg": { - "right lower leg": { "name": "goblin/right-lower-leg", "x": 25.68, "y": -3.15, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblin/right-shoulder", "x": 15.68, "y": -1.03, "rotation": 130.65, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblin/right-upper-leg", "x": 20.35, "y": 1.47, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblin/torso", "x": 38.09, "y": -3.87, "rotation": -94.95, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblin/undie-straps", "x": -3.87, "y": 13.1, "scaleX": 1.089, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblin/undies", "x": 6.3, "y": 0.12, "rotation": 0.91, "width": 36, "height": 29 } - } - }, - "goblingirl": { - "eyes": { - "eyes closed": { "name": "goblingirl/eyes-closed", "x": 28, "y": -25.54, "rotation": -87.04, "width": 37, "height": 21 } - }, - "head": { - "head": { "name": "goblingirl/head", "x": 27.71, "y": -4.32, "rotation": -85.58, "width": 103, "height": 81 } - }, - "left arm": { - "left arm": { "name": "goblingirl/left-arm", "x": 19.64, "y": -2.42, "rotation": 33.05, "width": 37, "height": 35 } - }, - "left foot": { - "left foot": { "name": "goblingirl/left-foot", "x": 25.17, "y": 7.92, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblingirl/left-hand", - "x": 4.34, - "y": 2.39, - "scaleX": 0.896, - "scaleY": 0.896, - "rotation": 30.34, - "width": 35, - "height": 40 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblingirl/left-lower-leg", "x": 25.02, "y": -0.6, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblingirl/left-shoulder", "x": 19.8, "y": -0.42, "rotation": 61.21, "width": 28, "height": 46 } - }, - "left upper leg": { - "left upper leg": { "name": "goblingirl/left-upper-leg", "x": 30.21, "y": -2.95, "rotation": 89.09, "width": 33, "height": 70 } - }, - "neck": { - "neck": { "name": "goblingirl/neck", "x": 6.16, "y": -3.14, "rotation": -98.86, "width": 35, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblingirl/pelvis", "x": -3.87, "y": 3.18, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblingirl/right-arm", "x": 16.85, "y": -0.66, "rotation": 93.52, "width": 28, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblingirl/right-foot", "x": 23.46, "y": 9.66, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblingirl/right-hand", "x": 7.21, "y": 3.43, "rotation": 91.16, "width": 36, "height": 37 } - }, - "right hand item": { - "right hand item": { "name": "goblingirl/dagger-tip", "x": 13.45, "y": 22.07, "rotation": -3.23, "width": 17, "height": 17 } - }, - "right lower leg": { - "right lower leg": { "name": "goblingirl/right-lower-leg", "x": 26.15, "y": -3.27, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblingirl/right-shoulder", "x": 14.46, "y": 0.45, "rotation": 129.85, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblingirl/right-upper-leg", "x": 19.69, "y": 2.13, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblingirl/torso", "x": 36.28, "y": -5.14, "rotation": -95.74, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblingirl/undie-straps", "x": -1.51, "y": 14.18, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblingirl/undies", "x": 5.4, "y": 1.7, "width": 36, "height": 29 } - } - } -}, -"animations": { - "walk": { - "bones": { - "left upper leg": { - "rotate": [ - { "time": 0, "angle": -26.55 }, - { "time": 0.1333, "angle": -8.78 }, - { "time": 0.2333, "angle": 9.51 }, - { "time": 0.3666, "angle": 30.74 }, - { "time": 0.5, "angle": 25.33 }, - { "time": 0.6333, "angle": 26.11 }, - { "time": 0.7333, "angle": -7.7 }, - { "time": 0.8666, "angle": -21.19 }, - { "time": 1, "angle": -26.55 } - ], - "translate": [ - { "time": 0, "x": -1.32, "y": 1.7 }, - { "time": 0.3666, "x": -0.06, "y": 2.42 }, - { "time": 1, "x": -1.32, "y": 1.7 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 42.45 }, - { "time": 0.1333, "angle": 52.1 }, - { "time": 0.2333, "angle": 8.53 }, - { "time": 0.5, "angle": -16.93 }, - { "time": 0.6333, "angle": 1.89 }, - { - "time": 0.7333, - "angle": 28.06, - "curve": [ 0.462, 0.11, 1, 1 ] - }, - { - "time": 0.8666, - "angle": 58.68, - "curve": [ 0.5, 0.02, 1, 1 ] - }, - { "time": 1, "angle": 42.45 } - ], - "translate": [ - { "time": 0, "x": 6.23, "y": 0 }, - { "time": 0.2333, "x": 2.14, "y": 2.4 }, - { "time": 0.5, "x": 2.44, "y": 4.8 }, - { "time": 1, "x": 6.23, "y": 0 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -22.98 }, - { "time": 0.1333, "angle": -63.5 }, - { "time": 0.2333, "angle": -73.76 }, - { "time": 0.5, "angle": 5.11 }, - { "time": 0.6333, "angle": -28.29 }, - { "time": 0.7333, "angle": 4.08 }, - { "time": 0.8666, "angle": 3.53 }, - { "time": 1, "angle": -22.98 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 2.55, "y": -0.47 }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": -3.69 }, - { "time": 0.1333, "angle": -10.42 }, - { "time": 0.2333, "angle": -5.01 }, - { "time": 0.3666, "angle": 3.87 }, - { "time": 0.5, "angle": -3.87 }, - { "time": 0.6333, "angle": 2.78 }, - { "time": 0.7333, "angle": 1.68 }, - { "time": 0.8666, "angle": -8.54 }, - { "time": 1, "angle": -3.69 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 5.29, - "curve": [ 0.264, 0, 0.75, 1 ] - }, - { "time": 0.6333, "angle": 6.65 }, - { "time": 1, "angle": 5.29 } - ] - }, - "right arm": { - "rotate": [ - { - "time": 0, - "angle": -4.02, - "curve": [ 0.267, 0, 0.804, 0.99 ] - }, - { - "time": 0.6333, - "angle": 19.78, - "curve": [ 0.307, 0, 0.787, 0.99 ] - }, - { "time": 1, "angle": -4.02 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 8.98 }, - { "time": 0.6333, "angle": 0.51 }, - { "time": 1, "angle": 8.98 } - ] - }, - "left shoulder": { - "rotate": [ - { - "time": 0, - "angle": 6.25, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": -11.78, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 6.25 } - ], - "translate": [ - { "time": 0, "x": 1.15, "y": 0.23 } - ] - }, - "left hand": { - "rotate": [ - { - "time": 0, - "angle": -21.23, - "curve": [ 0.295, 0, 0.755, 0.98 ] - }, - { - "time": 0.5, - "angle": -27.28, - "curve": [ 0.241, 0, 0.75, 0.97 ] - }, - { "time": 1, "angle": -21.23 } - ] - }, - "left arm": { - "rotate": [ - { - "time": 0, - "angle": 28.37, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": 60.09, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 28.37 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -10.28 }, - { - "time": 0.1333, - "angle": -15.38, - "curve": [ 0.545, 0, 0.818, 1 ] - }, - { - "time": 0.3666, - "angle": -9.78, - "curve": [ 0.58, 0.17, 0.669, 0.99 ] - }, - { - "time": 0.6333, - "angle": -15.75, - "curve": [ 0.235, 0.01, 0.795, 1 ] - }, - { - "time": 0.8666, - "angle": -7.06, - "curve": [ 0.209, 0, 0.816, 0.98 ] - }, - { "time": 1, "angle": -10.28 } - ], - "translate": [ - { "time": 0, "x": -1.29, "y": 1.68 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": -5.25 }, - { "time": 0.2333, "angle": -1.91 }, - { "time": 0.3666, "angle": -6.45 }, - { "time": 0.5, "angle": -5.39 }, - { "time": 0.7333, "angle": -11.68 }, - { "time": 0.8666, "angle": 0.46 }, - { "time": 1, "angle": -5.25 } - ] - }, - "right lower leg": { - "rotate": [ - { - "time": 0, - "angle": -3.39, - "curve": [ 0.316, 0.01, 0.741, 0.98 ] - }, - { - "time": 0.1333, - "angle": -45.53, - "curve": [ 0.229, 0, 0.738, 0.97 ] - }, - { "time": 0.2333, "angle": -4.83 }, - { "time": 0.5, "angle": -19.53 }, - { "time": 0.6333, "angle": -64.8 }, - { - "time": 0.7333, - "angle": -82.56, - "curve": [ 0.557, 0.18, 1, 1 ] - }, - { "time": 1, "angle": -3.39 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.6333, "x": 2.18, "y": 0.21 }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": -4.16 }, - { - "time": 0.1333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.3666, "x": 0, "y": 6.78 }, - { "time": 0.5, "x": 0, "y": -6.13 }, - { - "time": 0.6333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.8666, "x": 0, "y": 6.78 }, - { "time": 1, "x": 0, "y": -4.16 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 3.6 }, - { "time": 0.1333, "angle": 17.49 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { "time": 0.5, "angle": 5.17 }, - { "time": 0.6333, "angle": 18.36 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 3.6, - "curve": [ 0, 0, 0.704, 1.17 ] - }, - { "time": 0.1333, "angle": -0.2 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { - "time": 0.5, - "angle": 5.17, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.6666, "angle": 1.1 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - } - }, - "slots": { - "eyes": { - "attachment": [ - { "time": 0.7, "name": "eyes closed" }, - { "time": 0.8, "name": null } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/spineboy.atlas b/examples/example 12 - Spine/data/spineboy.atlas new file mode 100644 index 0000000..cf32cd0 --- /dev/null +++ b/examples/example 12 - Spine/data/spineboy.atlas @@ -0,0 +1,165 @@ +spineboy.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +eyes-closed + rotate: false + xy: 73, 509 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +eyes + rotate: false + xy: 75, 464 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 121, 132 + orig: 121, 132 + offset: 0, 0 + index: -1 +left-ankle + rotate: false + xy: 96, 351 + size: 25, 32 + orig: 25, 32 + offset: 0, 0 + index: -1 +left-arm + rotate: false + xy: 39, 423 + size: 35, 29 + orig: 35, 29 + offset: 0, 0 + index: -1 +left-foot + rotate: false + xy: 2, 262 + size: 65, 30 + orig: 65, 30 + offset: 0, 0 + index: -1 +left-hand + rotate: false + xy: 2, 423 + size: 35, 38 + orig: 35, 38 + offset: 0, 0 + index: -1 +left-lower-leg + rotate: false + xy: 72, 202 + size: 49, 64 + orig: 49, 64 + offset: 0, 0 + index: -1 +left-pant-bottom + rotate: false + xy: 2, 363 + size: 44, 22 + orig: 44, 22 + offset: 0, 0 + index: -1 +left-shoulder + rotate: false + xy: 39, 454 + size: 34, 53 + orig: 34, 53 + offset: 0, 0 + index: -1 +left-upper-leg + rotate: false + xy: 2, 464 + size: 33, 67 + orig: 33, 67 + offset: 0, 0 + index: -1 +neck + rotate: false + xy: 37, 509 + size: 34, 28 + orig: 34, 28 + offset: 0, 0 + index: -1 +pelvis + rotate: false + xy: 2, 294 + size: 63, 47 + orig: 63, 47 + offset: 0, 0 + index: -1 +right-ankle + rotate: false + xy: 96, 385 + size: 25, 30 + orig: 25, 30 + offset: 0, 0 + index: -1 +right-arm + rotate: false + xy: 96, 417 + size: 21, 45 + orig: 21, 45 + offset: 0, 0 + index: -1 +right-foot-idle + rotate: false + xy: 69, 268 + size: 53, 28 + orig: 53, 28 + offset: 0, 0 + index: -1 +right-foot + rotate: false + xy: 2, 230 + size: 67, 30 + orig: 67, 30 + offset: 0, 0 + index: -1 +right-hand + rotate: false + xy: 2, 387 + size: 32, 32 + orig: 32, 32 + offset: 0, 0 + index: -1 +right-lower-leg + rotate: false + xy: 72, 136 + size: 51, 64 + orig: 51, 64 + offset: 0, 0 + index: -1 +right-pant-bottom + rotate: false + xy: 2, 343 + size: 46, 18 + orig: 46, 18 + offset: 0, 0 + index: -1 +right-shoulder + rotate: false + xy: 67, 298 + size: 52, 51 + orig: 52, 51 + offset: 0, 0 + index: -1 +right-upper-leg + rotate: false + xy: 50, 351 + size: 44, 70 + orig: 44, 70 + offset: 0, 0 + index: -1 +torso + rotate: false + xy: 2, 136 + size: 68, 92 + orig: 68, 92 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/dragonBones.png b/examples/example 12 - Spine/data/dragonBones.png deleted file mode 100644 index 12cb92e..0000000 --- a/examples/example 12 - Spine/data/dragonBones.png +++ /dev/null Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBonesData.json b/examples/example 12 - Spine/data/dragonBonesData.json deleted file mode 100644 index c65508a..0000000 --- a/examples/example 12 - Spine/data/dragonBonesData.json +++ /dev/null @@ -1,779 +0,0 @@ -{ -"bones": [ - { "name": "root", "y": -176.12 }, - { "name": "COG", "parent": "root", "y": 176.12 }, - { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, - { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, - { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, - { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, - { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, - { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, - { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, - { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, - { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, - { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, - { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, - { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, - { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, - { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, - { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, - { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, - { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, - { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, - { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, - { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, - { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, - { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, - { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, - { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, - { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, - { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, - { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, - { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, - { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, - { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, - { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } -], -"slots": [ - { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, - { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, - { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, - { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, - { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, - { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, - { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, - { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, - { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, - { "name": "back", "bone": "back", "attachment": "back" }, - { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, - { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, - { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, - { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, - { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, - { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, - { "name": "chest", "bone": "chest", "attachment": "chest" }, - { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, - { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, - { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, - { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, - { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, - { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, - { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, - { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, - { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, - { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, - { "name": "chin", "bone": "chin", "attachment": "chin" }, - { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, - { "name": "head", "bone": "head", "attachment": "head" } -], -"skins": { - "default": { - "L_front_leg": { - "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } - }, - "L_front_thigh": { - "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } - }, - "L_front_toe1": { - "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } - }, - "L_front_toe2": { - "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } - }, - "L_front_toe3": { - "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } - }, - "L_front_toe4": { - "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } - }, - "L_rear_leg": { - "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } - }, - "L_rear_thigh": { - "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } - }, - "L_wing": { - "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, - "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, - "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, - "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, - "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, - "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, - "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, - "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, - "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } - }, - "R_front_leg": { - "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } - }, - "R_front_thigh": { - "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } - }, - "R_front_toe1": { - "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } - }, - "R_front_toe2": { - "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } - }, - "R_front_toe3": { - "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } - }, - "R_rear_leg": { - "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } - }, - "R_rear_thigh": { - "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } - }, - "R_rear_toe1": { - "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } - }, - "R_rear_toe2": { - "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } - }, - "R_rear_toe3": { - "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } - }, - "R_wing": { - "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, - "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, - "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, - "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, - "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, - "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, - "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, - "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, - "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } - }, - "back": { - "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } - }, - "chest": { - "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } - }, - "chin": { - "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } - }, - "head": { - "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } - }, - "tail1": { - "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } - }, - "tail2": { - "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } - }, - "tail3": { - "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } - }, - "tail4": { - "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } - }, - "tail5": { - "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } - }, - "tail6": { - "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } - } - } -}, -"animations": { - "flying": { - "bones": { - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.39 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.8333, "angle": 7 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -8.18 }, - { "time": 0.3333, "angle": -23.16 }, - { "time": 0.5, "angle": -18.01 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chest": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -2.42 }, - { "time": 0.3333, "angle": -26.2 }, - { "time": 0.5, "angle": -29.65 }, - { "time": 0.6666, "angle": -23.15 }, - { "time": 0.8333, "angle": -55.46 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_thigh": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -1.12 }, - { "time": 0.3333, "angle": 10.48 }, - { "time": 0.5, "angle": 7.89 }, - { "time": 0.8333, "angle": -10.38 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 8.24 }, - { "time": 0.3333, "angle": 15.21 }, - { "time": 0.5, "angle": 14.84 }, - { "time": 0.8333, "angle": -18.9 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.46 }, - { "time": 0.3333, "angle": 22.15 }, - { "time": 0.5, "angle": 22.76 }, - { "time": 0.8333, "angle": -4.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail5": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 7.4 }, - { "time": 0.3333, "angle": 28.5 }, - { "time": 0.5, "angle": 21.33 }, - { "time": 0.8333, "angle": -1.27 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail6": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 45.99 }, - { "time": 0.4, "angle": 43.53 }, - { "time": 0.5, "angle": 61.79 }, - { "time": 0.8333, "angle": 13.28 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -14.21 }, - { "time": 0.5, "angle": 47.17 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -36.06 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -20.32 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -18.71 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.408, 1.36, 0.675, 1.43 ] - }, - { "time": 0.5, "angle": 1.03 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chin": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.416, 1.15, 0.494, 1.27 ] - }, - { "time": 0.3333, "angle": -5.15 }, - { "time": 0.5, "angle": 9.79 }, - { "time": 0.6666, "angle": 18.94 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -19.18 }, - { "time": 0.3333, "angle": -32.02 }, - { "time": 0.5, "angle": -19.62 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -12.96 }, - { "time": 0.5, "angle": 16.2 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 37.77 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -16.08 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.33, "y": 1.029 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 26.51 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.239, "y": 0.993 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 16.99 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.402, "y": 1.007 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 26.07 }, - { "time": 0.5, "angle": -21.6 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 29.23 }, - { "time": 0.5, "angle": 34.83 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.412, "y": 1 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 24.89 }, - { "time": 0.5, "angle": 23.16 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.407, "y": 1.057 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 11.01 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.329, "y": 1.181 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 25.19 }, - { "time": 0.6666, "angle": -15.65 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "COG": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.456, 0.2, 0.422, 1.06 ] - }, - { "time": 0.3333, "angle": 23.93 }, - { - "time": 0.6666, - "angle": 337.8, - "curve": [ 0.41, 0, 0.887, 0.75 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.33, 1, 0.816, 1.33 ] - }, - { - "time": 0.5, - "x": 0, - "y": 113.01, - "curve": [ 0.396, 0, 0.709, 2.03 ] - }, - { "time": 1, "x": 0, "y": 0 } - ] - } - }, - "slots": { - "R_wing": { - "attachment": [ - { "time": 0, "name": "R_wing01" }, - { "time": 0.0666, "name": "R_wing02" }, - { "time": 0.1333, "name": "R_wing03" }, - { "time": 0.2, "name": "R_wing04" }, - { "time": 0.2666, "name": "R_wing05" }, - { "time": 0.3333, "name": "R_wing06" }, - { "time": 0.4, "name": "R_wing07" }, - { "time": 0.4666, "name": "R_wing08" }, - { "time": 0.5333, "name": "R_wing09" }, - { "time": 0.6, "name": "R_wing01" }, - { "time": 0.7333, "name": "R_wing02" }, - { "time": 0.7666, "name": "R_wing02" }, - { "time": 0.8, "name": "R_wing03" }, - { "time": 0.8333, "name": "R_wing04" }, - { "time": 0.8666, "name": "R_wing05" }, - { "time": 0.9, "name": "R_wing06" }, - { "time": 0.9333, "name": "R_wing07" }, - { "time": 0.9666, "name": "R_wing08" }, - { "time": 1, "name": "R_wing09" } - ] - }, - "L_wing": { - "attachment": [ - { "time": 0, "name": "L_wing01" }, - { "time": 0.0666, "name": "L_wing02" }, - { "time": 0.1333, "name": "L_wing03" }, - { "time": 0.2, "name": "L_wing04" }, - { "time": 0.2666, "name": "L_wing05" }, - { "time": 0.3333, "name": "L_wing06" }, - { "time": 0.4, "name": "L_wing07" }, - { "time": 0.4666, "name": "L_wing08" }, - { "time": 0.5333, "name": "L_wing09" }, - { "time": 0.6, "name": "L_wing01" }, - { "time": 0.7333, "name": "L_wing02" }, - { "time": 0.8, "name": "L_wing03" }, - { "time": 0.8333, "name": "L_wing04" }, - { "time": 0.8666, "name": "L_wing05" }, - { "time": 0.9, "name": "L_wing06" }, - { "time": 0.9333, "name": "L_wing07" }, - { "time": 0.9666, "name": "L_wing08" }, - { "time": 1, "name": "L_wing09" } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/goblins.atlas b/examples/example 12 - Spine/data/goblins.atlas new file mode 100644 index 0000000..c9cb702 --- /dev/null +++ b/examples/example 12 - Spine/data/goblins.atlas @@ -0,0 +1,293 @@ + +goblins.png +size: 228,523 +format: RGBA8888 +filter: Linear,Linear +repeat: none +dagger + rotate: false + xy: 2, 43 + size: 26, 108 + orig: 26, 108 + offset: 0, 0 + index: -1 +goblin/eyes-closed + rotate: false + xy: 166, 237 + size: 34, 12 + orig: 34, 12 + offset: 0, 0 + index: -1 +goblin/head + rotate: false + xy: 26, 372 + size: 103, 66 + orig: 103, 66 + offset: 0, 0 + index: -1 +goblin/left-arm + rotate: false + xy: 166, 251 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblin/left-foot + rotate: true + xy: 195, 358 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblin/left-hand + rotate: false + xy: 49, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/left-lower-leg + rotate: false + xy: 30, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblin/left-shoulder + rotate: true + xy: 169, 288 + size: 29, 44 + orig: 29, 44 + offset: 0, 0 + index: -1 +goblin/left-upper-leg + rotate: false + xy: 134, 305 + size: 33, 73 + orig: 33, 73 + offset: 0, 0 + index: -1 +goblin/neck + rotate: false + xy: 87, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/pelvis + rotate: false + xy: 131, 380 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblin/right-arm + rotate: false + xy: 135, 69 + size: 23, 50 + orig: 23, 50 + offset: 0, 0 + index: -1 +goblin/right-foot + rotate: true + xy: 104, 157 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblin/right-hand + rotate: false + xy: 190, 319 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblin/right-lower-leg + rotate: false + xy: 96, 294 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblin/right-shoulder + rotate: true + xy: 2, 2 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblin/right-upper-leg + rotate: false + xy: 139, 162 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblin/torso + rotate: false + xy: 131, 425 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblin/undie-straps + rotate: true + xy: 201, 466 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblin/undies + rotate: false + xy: 190, 51 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +goblingirl/eyes-closed + rotate: true + xy: 201, 427 + size: 37, 21 + orig: 37, 21 + offset: 0, 0 + index: -1 +goblingirl/head + rotate: false + xy: 26, 440 + size: 103, 81 + orig: 103, 81 + offset: 0, 0 + index: -1 +goblingirl/left-arm + rotate: true + xy: 175, 198 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblingirl/left-foot + rotate: true + xy: 133, 227 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblingirl/left-hand + rotate: true + xy: 168, 2 + size: 35, 40 + orig: 35, 40 + offset: 0, 0 + index: -1 +goblingirl/left-lower-leg + rotate: false + xy: 65, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/left-shoulder + rotate: true + xy: 135, 39 + size: 28, 46 + orig: 28, 46 + offset: 0, 0 + index: -1 +goblingirl/left-upper-leg + rotate: false + xy: 98, 222 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/neck + rotate: true + xy: 125, 2 + size: 35, 41 + orig: 35, 41 + offset: 0, 0 + index: -1 +goblingirl/pelvis + rotate: false + xy: 30, 117 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblingirl/right-arm + rotate: false + xy: 160, 69 + size: 28, 50 + orig: 28, 50 + offset: 0, 0 + index: -1 +goblingirl/right-foot + rotate: true + xy: 100, 56 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblingirl/right-hand + rotate: false + xy: 190, 82 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblingirl/right-lower-leg + rotate: true + xy: 26, 162 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblingirl/right-shoulder + rotate: true + xy: 159, 121 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblingirl/right-upper-leg + rotate: true + xy: 94, 121 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblingirl/torso + rotate: false + xy: 26, 274 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblingirl/undie-straps + rotate: true + xy: 169, 323 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblingirl/undies + rotate: false + xy: 175, 167 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +shield + rotate: false + xy: 26, 200 + size: 70, 72 + orig: 70, 72 + offset: 0, 0 + index: -1 +spear + rotate: false + xy: 2, 153 + size: 22, 368 + orig: 22, 368 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/goblins.json b/examples/example 12 - Spine/data/goblins.json index f87ec19..5d83ae1 100644 --- a/examples/example 12 - Spine/data/goblins.json +++ b/examples/example 12 - Spine/data/goblins.json @@ -1,332 +1 @@ -{"frames": { - -"dagger.png": -{ - "frame": {"x":2,"y":372,"w":26,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":26,"h":108}, - "sourceSize": {"w":26,"h":108} -}, -"goblin/eyes-closed.png": -{ - "frame": {"x":64,"y":354,"w":34,"h":12}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":12}, - "sourceSize": {"w":34,"h":12} -}, -"goblin/head.png": -{ - "frame": {"x":59,"y":83,"w":103,"h":64}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":103,"h":64}, - "sourceSize": {"w":103,"h":66} -}, -"goblin/left-arm.png": -{ - "frame": {"x":30,"y":445,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblin/left-foot.png": -{ - "frame": {"x":59,"y":182,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblin/left-hand.png": -{ - "frame": {"x":107,"y":436,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/left-lower-leg.png": -{ - "frame": {"x":26,"y":74,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblin/left-shoulder.png": -{ - "frame": {"x":26,"y":146,"w":29,"h":44}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":44}, - "sourceSize": {"w":29,"h":44} -}, -"goblin/left-upper-leg.png": -{ - "frame": {"x":30,"y":370,"w":33,"h":73}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":73}, - "sourceSize": {"w":33,"h":73} -}, -"goblin/neck.png": -{ - "frame": {"x":146,"y":309,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/pelvis.png": -{ - "frame": {"x":163,"y":233,"w":62,"h":43}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":62,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblin/right-arm.png": -{ - "frame": {"x":30,"y":240,"w":23,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":23,"h":50}, - "sourceSize": {"w":23,"h":50} -}, -"goblin/right-foot.png": -{ - "frame": {"x":164,"y":198,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblin/right-hand.png": -{ - "frame": {"x":154,"y":462,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblin/right-lower-leg.png": -{ - "frame": {"x":26,"y":292,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblin/right-shoulder.png": -{ - "frame": {"x":105,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblin/right-upper-leg.png": -{ - "frame": {"x":136,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblin/torso.png": -{ - "frame": {"x":164,"y":2,"w":68,"h":96}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblin/undie-straps.png": -{ - "frame": {"x":59,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblin/undies.png": -{ - "frame": {"x":116,"y":479,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"goblingirl/eyes-closed.png": -{ - "frame": {"x":100,"y":419,"w":37,"h":15}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":6,"w":37,"h":15}, - "sourceSize": {"w":37,"h":21} -}, -"goblingirl/head.png": -{ - "frame": {"x":59,"y":2,"w":103,"h":79}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":79}, - "sourceSize": {"w":103,"h":81} -}, -"goblingirl/left-arm.png": -{ - "frame": {"x":124,"y":227,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblingirl/left-foot.png": -{ - "frame": {"x":59,"y":149,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblingirl/left-hand.png": -{ - "frame": {"x":55,"y":250,"w":35,"h":40}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":40}, - "sourceSize": {"w":35,"h":40} -}, -"goblingirl/left-lower-leg.png": -{ - "frame": {"x":26,"y":2,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/left-shoulder.png": -{ - "frame": {"x":26,"y":192,"w":28,"h":46}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":28,"h":46}, - "sourceSize": {"w":28,"h":46} -}, -"goblingirl/left-upper-leg.png": -{ - "frame": {"x":65,"y":368,"w":33,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/neck.png": -{ - "frame": {"x":145,"y":419,"w":33,"h":41}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":41}, - "sourceSize": {"w":35,"h":41} -}, -"goblingirl/pelvis.png": -{ - "frame": {"x":92,"y":264,"w":60,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":60,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblingirl/right-arm.png": -{ - "frame": {"x":232,"y":100,"w":22,"h":50}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":3,"y":0,"w":22,"h":50}, - "sourceSize": {"w":28,"h":50} -}, -"goblingirl/right-foot.png": -{ - "frame": {"x":59,"y":215,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblingirl/right-hand.png": -{ - "frame": {"x":69,"y":440,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblingirl/right-lower-leg.png": -{ - "frame": {"x":126,"y":149,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblingirl/right-shoulder.png": -{ - "frame": {"x":64,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblingirl/right-upper-leg.png": -{ - "frame": {"x":100,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblingirl/torso.png": -{ - "frame": {"x":164,"y":100,"w":66,"h":96}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":66,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblingirl/undie-straps.png": -{ - "frame": {"x":2,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblingirl/undies.png": -{ - "frame": {"x":154,"y":278,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"spear.png": -{ - "frame": {"x":2,"y":2,"w":22,"h":368}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":22,"h":368}, - "sourceSize": {"w":22,"h":368} -}}, -"meta": { - "app": "http://www.codeandweb.com/texturepacker ", - "version": "1.0", - "image": "goblins.png", - "format": "RGBA8888", - "size": {"w":256,"h":512}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:f89858b99c6b15e23d39806c4170313a:1/1$" -} -} +{"skeleton":{"hash":"BMzsp4a1APif5tjCQwomTTo3Ino","spine":"2.1.05","width":233.95,"height":354.87},"bones":[{"name":"root"},{"name":"hip","parent":"root","x":0.64,"y":114.41},{"name":"left upper leg","parent":"hip","length":50.39,"x":14.45,"y":2.81,"rotation":-89.09},{"name":"pelvis","parent":"hip","x":1.41,"y":-6.57},{"name":"right upper leg","parent":"hip","length":42.45,"x":-20.07,"y":-6.83,"rotation":-97.49},{"name":"torso","parent":"hip","length":85.82,"x":-6.42,"y":1.97,"rotation":93.92},{"name":"left lower leg","parent":"left upper leg","length":49.89,"x":56.34,"y":0.98,"rotation":-16.65},{"name":"left shoulder","parent":"torso","length":35.43,"x":74.04,"y":-20.38,"rotation":-156.96},{"name":"neck","parent":"torso","length":18.38,"x":81.67,"y":-6.34,"rotation":-1.51},{"name":"right lower leg","parent":"right upper leg","length":58.52,"x":42.99,"y":-0.61,"rotation":-14.34},{"name":"right shoulder","parent":"torso","length":37.24,"x":76.02,"y":18.14,"rotation":133.88},{"name":"head","parent":"neck","length":68.28,"x":20.93,"y":11.59,"rotation":-13.92},{"name":"left arm","parent":"left shoulder","length":35.62,"x":37.85,"y":-2.34,"rotation":28.16},{"name":"left foot","parent":"left lower leg","length":46.5,"x":58.94,"y":-7.61,"rotation":102.43},{"name":"right arm","parent":"right shoulder","length":36.74,"x":37.6,"y":0.31,"rotation":36.32},{"name":"right foot","parent":"right lower leg","length":45.45,"x":64.88,"y":0.04,"rotation":110.3},{"name":"left hand","parent":"left arm","length":11.52,"x":35.62,"y":0.07,"rotation":2.7},{"name":"right hand","parent":"right arm","length":15.32,"x":36.9,"y":0.34,"rotation":2.35}],"slots":[{"name":"left shoulder","bone":"left shoulder","attachment":"left shoulder"},{"name":"left arm","bone":"left arm","attachment":"left arm"},{"name":"left hand item","bone":"left hand","attachment":"spear"},{"name":"left hand","bone":"left hand","attachment":"left hand"},{"name":"left foot","bone":"left foot","attachment":"left foot"},{"name":"left lower leg","bone":"left lower leg","attachment":"left lower leg"},{"name":"left upper leg","bone":"left upper leg","attachment":"left upper leg"},{"name":"neck","bone":"neck","attachment":"neck"},{"name":"torso","bone":"torso","attachment":"torso"},{"name":"pelvis","bone":"pelvis","attachment":"pelvis"},{"name":"right foot","bone":"right foot","attachment":"right foot"},{"name":"right lower leg","bone":"right lower leg","attachment":"right lower leg"},{"name":"undie straps","bone":"pelvis","attachment":"undie straps"},{"name":"undies","bone":"pelvis","attachment":"undies"},{"name":"right upper leg","bone":"right upper leg","attachment":"right upper leg"},{"name":"head","bone":"head","attachment":"head"},{"name":"eyes","bone":"head"},{"name":"right shoulder","bone":"right shoulder","attachment":"right shoulder"},{"name":"right arm","bone":"right arm","attachment":"right arm"},{"name":"right hand item","bone":"right hand"},{"name":"right hand","bone":"right hand","attachment":"right hand"},{"name":"right hand item top","bone":"right hand","attachment":"shield"}],"skins":{"default":{"left hand item":{"dagger":{"x":7.88,"y":-23.45,"rotation":10.47,"width":26,"height":108},"spear":{"x":-4.55,"y":39.2,"rotation":13.04,"width":22,"height":368}},"right hand item":{"dagger":{"x":6.51,"y":-24.15,"rotation":-8.06,"width":26,"height":108}},"right hand item top":{"shield":{"rotation":93.49,"width":70,"height":72}}},"goblin":{"eyes":{"eyes closed":{"name":"goblin/eyes-closed","x":32.21,"y":-21.27,"rotation":-88.92,"width":34,"height":12}},"head":{"head":{"name":"goblin/head","x":25.73,"y":2.33,"rotation":-92.29,"width":103,"height":66}},"left arm":{"left arm":{"name":"goblin/left-arm","x":16.7,"y":-1.69,"scaleX":1.057,"scaleY":1.057,"rotation":33.84,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblin/left-foot","x":24.85,"y":8.74,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblin/left-hand","x":3.47,"y":3.41,"scaleX":0.892,"scaleY":0.892,"rotation":31.14,"width":36,"height":41}},"left lower leg":{"left lower leg":{"name":"goblin/left-lower-leg","x":23.58,"y":-2.06,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblin/left-shoulder","x":15.56,"y":-2.26,"rotation":62.01,"width":29,"height":44}},"left upper leg":{"left upper leg":{"name":"goblin/left-upper-leg","x":29.68,"y":-3.87,"rotation":89.09,"width":33,"height":73}},"neck":{"neck":{"name":"goblin/neck","x":10.1,"y":0.42,"rotation":-93.69,"width":36,"height":41}},"pelvis":{"pelvis":{"name":"goblin/pelvis","x":-5.61,"y":0.76,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblin/right-arm","x":16.44,"y":-1.04,"rotation":94.32,"width":23,"height":50}},"right foot":{"right foot":{"name":"goblin/right-foot","x":23.56,"y":9.8,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblin/right-hand","x":7.88,"y":2.78,"rotation":91.96,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblin/right-lower-leg","x":25.68,"y":-3.15,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblin/right-shoulder","x":15.68,"y":-1.03,"rotation":130.65,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblin/right-upper-leg","x":20.35,"y":1.47,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblin/torso","x":38.09,"y":-3.87,"rotation":-94.95,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblin/undie-straps","x":-3.87,"y":13.1,"scaleX":1.089,"width":55,"height":19}},"undies":{"undies":{"name":"goblin/undies","x":6.3,"y":0.12,"rotation":0.91,"width":36,"height":29}}},"goblingirl":{"eyes":{"eyes closed":{"name":"goblingirl/eyes-closed","x":28,"y":-25.54,"rotation":-87.04,"width":37,"height":21}},"head":{"head":{"name":"goblingirl/head","x":27.71,"y":-4.32,"rotation":-85.58,"width":103,"height":81}},"left arm":{"left arm":{"name":"goblingirl/left-arm","x":19.64,"y":-2.42,"rotation":33.05,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblingirl/left-foot","x":25.17,"y":7.92,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblingirl/left-hand","x":4.34,"y":2.39,"scaleX":0.896,"scaleY":0.896,"rotation":30.34,"width":35,"height":40}},"left lower leg":{"left lower leg":{"name":"goblingirl/left-lower-leg","x":25.02,"y":-0.6,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblingirl/left-shoulder","x":19.8,"y":-0.42,"rotation":61.21,"width":28,"height":46}},"left upper leg":{"left upper leg":{"name":"goblingirl/left-upper-leg","x":30.21,"y":-2.95,"rotation":89.09,"width":33,"height":70}},"neck":{"neck":{"name":"goblingirl/neck","x":6.16,"y":-3.14,"rotation":-98.86,"width":35,"height":41}},"pelvis":{"pelvis":{"name":"goblingirl/pelvis","x":-3.87,"y":3.18,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblingirl/right-arm","x":16.85,"y":-0.66,"rotation":93.52,"width":28,"height":50}},"right foot":{"right foot":{"name":"goblingirl/right-foot","x":23.46,"y":9.66,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblingirl/right-hand","x":7.21,"y":3.43,"rotation":91.16,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblingirl/right-lower-leg","x":26.15,"y":-3.27,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblingirl/right-shoulder","x":14.46,"y":0.45,"rotation":129.85,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblingirl/right-upper-leg","x":19.69,"y":2.13,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblingirl/torso","x":36.28,"y":-5.14,"rotation":-95.74,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblingirl/undie-straps","x":-1.51,"y":14.18,"width":55,"height":19}},"undies":{"undies":{"name":"goblingirl/undies","x":5.4,"y":1.7,"width":36,"height":29}}}},"animations":{"walk":{"slots":{"eyes":{"attachment":[{"time":0.7,"name":"eyes closed"},{"time":0.8,"name":null}]}},"bones":{"left upper leg":{"rotate":[{"time":0,"angle":-26.55},{"time":0.1333,"angle":-8.78},{"time":0.2333,"angle":9.51},{"time":0.3666,"angle":30.74},{"time":0.5,"angle":25.33},{"time":0.6333,"angle":26.11},{"time":0.7333,"angle":-7.7},{"time":0.8666,"angle":-21.19},{"time":1,"angle":-26.55}],"translate":[{"time":0,"x":-1.32,"y":1.7},{"time":0.3666,"x":-0.06,"y":2.42},{"time":1,"x":-1.32,"y":1.7}]},"right upper leg":{"rotate":[{"time":0,"angle":42.45},{"time":0.1333,"angle":52.1},{"time":0.2333,"angle":8.53},{"time":0.5,"angle":-16.93},{"time":0.6333,"angle":1.89},{"time":0.7333,"angle":28.06,"curve":[0.462,0.11,1,1]},{"time":0.8666,"angle":58.68,"curve":[0.5,0.02,1,1]},{"time":1,"angle":42.45}],"translate":[{"time":0,"x":6.23,"y":0},{"time":0.2333,"x":2.14,"y":2.4},{"time":0.5,"x":2.44,"y":4.8},{"time":1,"x":6.23,"y":0}]},"left lower leg":{"rotate":[{"time":0,"angle":-22.98},{"time":0.1333,"angle":-63.5},{"time":0.2333,"angle":-73.76},{"time":0.5,"angle":5.11},{"time":0.6333,"angle":-28.29},{"time":0.7333,"angle":4.08},{"time":0.8666,"angle":3.53},{"time":1,"angle":-22.98}],"translate":[{"time":0,"x":0,"y":0},{"time":0.2333,"x":2.55,"y":-0.47},{"time":0.5,"x":0,"y":0,"curve":"stepped"},{"time":1,"x":0,"y":0}]},"left foot":{"rotate":[{"time":0,"angle":-3.69},{"time":0.1333,"angle":-10.42},{"time":0.2333,"angle":-5.01},{"time":0.3666,"angle":3.87},{"time":0.5,"angle":-3.87},{"time":0.6333,"angle":2.78},{"time":0.7333,"angle":1.68},{"time":0.8666,"angle":-8.54},{"time":1,"angle":-3.69}]},"right shoulder":{"rotate":[{"time":0,"angle":5.29,"curve":[0.264,0,0.75,1]},{"time":0.6333,"angle":6.65},{"time":1,"angle":5.29}]},"right arm":{"rotate":[{"time":0,"angle":-4.02,"curve":[0.267,0,0.804,0.99]},{"time":0.6333,"angle":19.78,"curve":[0.307,0,0.787,0.99]},{"time":1,"angle":-4.02}]},"right hand":{"rotate":[{"time":0,"angle":8.98},{"time":0.6333,"angle":0.51},{"time":1,"angle":8.98}]},"left shoulder":{"rotate":[{"time":0,"angle":6.25,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":-11.78,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":6.25}],"translate":[{"time":0,"x":1.15,"y":0.23}]},"left hand":{"rotate":[{"time":0,"angle":-21.23,"curve":[0.295,0,0.755,0.98]},{"time":0.5,"angle":-27.28,"curve":[0.241,0,0.75,0.97]},{"time":1,"angle":-21.23}]},"left arm":{"rotate":[{"time":0,"angle":28.37,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":60.09,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":28.37}]},"torso":{"rotate":[{"time":0,"angle":-10.28},{"time":0.1333,"angle":-15.38,"curve":[0.545,0,0.818,1]},{"time":0.3666,"angle":-9.78,"curve":[0.58,0.17,0.669,0.99]},{"time":0.6333,"angle":-15.75,"curve":[0.235,0.01,0.795,1]},{"time":0.8666,"angle":-7.06,"curve":[0.209,0,0.816,0.98]},{"time":1,"angle":-10.28}],"translate":[{"time":0,"x":-1.29,"y":1.68}]},"right foot":{"rotate":[{"time":0,"angle":-5.25},{"time":0.2333,"angle":-1.91},{"time":0.3666,"angle":-6.45},{"time":0.5,"angle":-5.39},{"time":0.7333,"angle":-11.68},{"time":0.8666,"angle":0.46},{"time":1,"angle":-5.25}]},"right lower leg":{"rotate":[{"time":0,"angle":-3.39,"curve":[0.316,0.01,0.741,0.98]},{"time":0.1333,"angle":-45.53,"curve":[0.229,0,0.738,0.97]},{"time":0.2333,"angle":-4.83},{"time":0.5,"angle":-19.53},{"time":0.6333,"angle":-64.8},{"time":0.7333,"angle":-82.56,"curve":[0.557,0.18,1,1]},{"time":1,"angle":-3.39}],"translate":[{"time":0,"x":0,"y":0,"curve":"stepped"},{"time":0.5,"x":0,"y":0},{"time":0.6333,"x":2.18,"y":0.21},{"time":1,"x":0,"y":0}]},"hip":{"rotate":[{"time":0,"angle":0,"curve":"stepped"},{"time":1,"angle":0}],"translate":[{"time":0,"x":0,"y":-4.16},{"time":0.1333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.3666,"x":0,"y":6.78},{"time":0.5,"x":0,"y":-6.13},{"time":0.6333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.8666,"x":0,"y":6.78},{"time":1,"x":0,"y":-4.16}]},"neck":{"rotate":[{"time":0,"angle":3.6},{"time":0.1333,"angle":17.49},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17},{"time":0.6333,"angle":18.36},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]},"head":{"rotate":[{"time":0,"angle":3.6,"curve":[0,0,0.704,1.17]},{"time":0.1333,"angle":-0.2},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17,"curve":[0,0,0.704,1.61]},{"time":0.6666,"angle":1.1},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]}}}}} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/goblins.png b/examples/example 12 - Spine/data/goblins.png index 5c26ca0..f2cdf16 100644 --- a/examples/example 12 - Spine/data/goblins.png +++ b/examples/example 12 - Spine/data/goblins.png Binary files differ diff --git a/examples/example 12 - Spine/data/goblinsSpineData.json b/examples/example 12 - Spine/data/goblinsSpineData.json deleted file mode 100644 index 8d63c62..0000000 --- a/examples/example 12 - Spine/data/goblinsSpineData.json +++ /dev/null @@ -1,502 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, - { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, - { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 }, - { "name": "right upper leg", "parent": "hip", "length": 42.45, "x": -20.07, "y": -6.83, "rotation": -97.49 }, - { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 93.92 }, - { "name": "left lower leg", "parent": "left upper leg", "length": 49.89, "x": 56.34, "y": 0.98, "rotation": -16.65 }, - { "name": "left shoulder", "parent": "torso", "length": 35.43, "x": 74.04, "y": -20.38, "rotation": -156.96 }, - { "name": "neck", "parent": "torso", "length": 18.38, "x": 81.67, "y": -6.34, "rotation": -1.51 }, - { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 42.99, "y": -0.61, "rotation": -14.34 }, - { "name": "right shoulder", "parent": "torso", "length": 37.24, "x": 76.02, "y": 18.14, "rotation": 133.88 }, - { "name": "head", "parent": "neck", "length": 68.28, "x": 20.93, "y": 11.59, "rotation": -13.92 }, - { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 37.85, "y": -2.34, "rotation": 28.16 }, - { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 58.94, "y": -7.61, "rotation": 102.43 }, - { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 37.6, "y": 0.31, "rotation": 36.32 }, - { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, - { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, - { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 } -], -"slots": [ - { "name": "left shoulder", "bone": "left shoulder", "attachment": "left shoulder" }, - { "name": "left arm", "bone": "left arm", "attachment": "left arm" }, - { "name": "left hand item", "bone": "left hand", "attachment": "spear" }, - { "name": "left hand", "bone": "left hand", "attachment": "left hand" }, - { "name": "left foot", "bone": "left foot", "attachment": "left foot" }, - { "name": "left lower leg", "bone": "left lower leg", "attachment": "left lower leg" }, - { "name": "left upper leg", "bone": "left upper leg", "attachment": "left upper leg" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "torso", "bone": "torso", "attachment": "torso" }, - { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, - { "name": "right foot", "bone": "right foot", "attachment": "right foot" }, - { "name": "right lower leg", "bone": "right lower leg", "attachment": "right lower leg" }, - { "name": "undie straps", "bone": "pelvis", "attachment": "undie straps" }, - { "name": "undies", "bone": "pelvis", "attachment": "undies" }, - { "name": "right upper leg", "bone": "right upper leg", "attachment": "right upper leg" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "eyes", "bone": "head" }, - { "name": "right shoulder", "bone": "right shoulder", "attachment": "right shoulder" }, - { "name": "right arm", "bone": "right arm", "attachment": "right arm" }, - { "name": "right hand item", "bone": "right hand", "attachment": "dagger" }, - { "name": "right hand", "bone": "right hand", "attachment": "right hand" } -], -"skins": { - "default": { - "left hand item": { - "dagger": { "x": 7.88, "y": -23.45, "rotation": 10.47, "width": 26, "height": 108 }, - "spear": { "x": -4.55, "y": 39.2, "rotation": 13.04, "width": 22, "height": 368 } - }, - "right hand item": { - "dagger": { "x": 6.51, "y": -24.15, "rotation": -8.06, "width": 26, "height": 108 } - } - }, - "goblin": { - "eyes": { - "eyes closed": { "name": "goblin/eyes-closed", "x": 32.21, "y": -21.27, "rotation": -88.92, "width": 34, "height": 12 } - }, - "head": { - "head": { "name": "goblin/head", "x": 25.73, "y": 2.33, "rotation": -92.29, "width": 103, "height": 66 } - }, - "left arm": { - "left arm": { - "name": "goblin/left-arm", - "x": 16.7, - "y": -1.69, - "scaleX": 1.057, - "scaleY": 1.057, - "rotation": 33.84, - "width": 37, - "height": 35 - } - }, - "left foot": { - "left foot": { "name": "goblin/left-foot", "x": 24.85, "y": 8.74, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblin/left-hand", - "x": 3.47, - "y": 3.41, - "scaleX": 0.892, - "scaleY": 0.892, - "rotation": 31.14, - "width": 36, - "height": 41 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblin/left-lower-leg", "x": 23.58, "y": -2.06, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblin/left-shoulder", "x": 15.56, "y": -2.26, "rotation": 62.01, "width": 29, "height": 44 } - }, - "left upper leg": { - "left upper leg": { "name": "goblin/left-upper-leg", "x": 29.68, "y": -3.87, "rotation": 89.09, "width": 33, "height": 73 } - }, - "neck": { - "neck": { "name": "goblin/neck", "x": 10.1, "y": 0.42, "rotation": -93.69, "width": 36, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblin/pelvis", "x": -5.61, "y": 0.76, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblin/right-arm", "x": 16.44, "y": -1.04, "rotation": 94.32, "width": 23, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblin/right-foot", "x": 23.56, "y": 9.8, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblin/right-hand", "x": 7.88, "y": 2.78, "rotation": 91.96, "width": 36, "height": 37 } - }, - "right lower leg": { - "right lower leg": { "name": "goblin/right-lower-leg", "x": 25.68, "y": -3.15, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblin/right-shoulder", "x": 15.68, "y": -1.03, "rotation": 130.65, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblin/right-upper-leg", "x": 20.35, "y": 1.47, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblin/torso", "x": 38.09, "y": -3.87, "rotation": -94.95, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblin/undie-straps", "x": -3.87, "y": 13.1, "scaleX": 1.089, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblin/undies", "x": 6.3, "y": 0.12, "rotation": 0.91, "width": 36, "height": 29 } - } - }, - "goblingirl": { - "eyes": { - "eyes closed": { "name": "goblingirl/eyes-closed", "x": 28, "y": -25.54, "rotation": -87.04, "width": 37, "height": 21 } - }, - "head": { - "head": { "name": "goblingirl/head", "x": 27.71, "y": -4.32, "rotation": -85.58, "width": 103, "height": 81 } - }, - "left arm": { - "left arm": { "name": "goblingirl/left-arm", "x": 19.64, "y": -2.42, "rotation": 33.05, "width": 37, "height": 35 } - }, - "left foot": { - "left foot": { "name": "goblingirl/left-foot", "x": 25.17, "y": 7.92, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblingirl/left-hand", - "x": 4.34, - "y": 2.39, - "scaleX": 0.896, - "scaleY": 0.896, - "rotation": 30.34, - "width": 35, - "height": 40 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblingirl/left-lower-leg", "x": 25.02, "y": -0.6, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblingirl/left-shoulder", "x": 19.8, "y": -0.42, "rotation": 61.21, "width": 28, "height": 46 } - }, - "left upper leg": { - "left upper leg": { "name": "goblingirl/left-upper-leg", "x": 30.21, "y": -2.95, "rotation": 89.09, "width": 33, "height": 70 } - }, - "neck": { - "neck": { "name": "goblingirl/neck", "x": 6.16, "y": -3.14, "rotation": -98.86, "width": 35, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblingirl/pelvis", "x": -3.87, "y": 3.18, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblingirl/right-arm", "x": 16.85, "y": -0.66, "rotation": 93.52, "width": 28, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblingirl/right-foot", "x": 23.46, "y": 9.66, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblingirl/right-hand", "x": 7.21, "y": 3.43, "rotation": 91.16, "width": 36, "height": 37 } - }, - "right hand item": { - "right hand item": { "name": "goblingirl/dagger-tip", "x": 13.45, "y": 22.07, "rotation": -3.23, "width": 17, "height": 17 } - }, - "right lower leg": { - "right lower leg": { "name": "goblingirl/right-lower-leg", "x": 26.15, "y": -3.27, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblingirl/right-shoulder", "x": 14.46, "y": 0.45, "rotation": 129.85, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblingirl/right-upper-leg", "x": 19.69, "y": 2.13, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblingirl/torso", "x": 36.28, "y": -5.14, "rotation": -95.74, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblingirl/undie-straps", "x": -1.51, "y": 14.18, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblingirl/undies", "x": 5.4, "y": 1.7, "width": 36, "height": 29 } - } - } -}, -"animations": { - "walk": { - "bones": { - "left upper leg": { - "rotate": [ - { "time": 0, "angle": -26.55 }, - { "time": 0.1333, "angle": -8.78 }, - { "time": 0.2333, "angle": 9.51 }, - { "time": 0.3666, "angle": 30.74 }, - { "time": 0.5, "angle": 25.33 }, - { "time": 0.6333, "angle": 26.11 }, - { "time": 0.7333, "angle": -7.7 }, - { "time": 0.8666, "angle": -21.19 }, - { "time": 1, "angle": -26.55 } - ], - "translate": [ - { "time": 0, "x": -1.32, "y": 1.7 }, - { "time": 0.3666, "x": -0.06, "y": 2.42 }, - { "time": 1, "x": -1.32, "y": 1.7 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 42.45 }, - { "time": 0.1333, "angle": 52.1 }, - { "time": 0.2333, "angle": 8.53 }, - { "time": 0.5, "angle": -16.93 }, - { "time": 0.6333, "angle": 1.89 }, - { - "time": 0.7333, - "angle": 28.06, - "curve": [ 0.462, 0.11, 1, 1 ] - }, - { - "time": 0.8666, - "angle": 58.68, - "curve": [ 0.5, 0.02, 1, 1 ] - }, - { "time": 1, "angle": 42.45 } - ], - "translate": [ - { "time": 0, "x": 6.23, "y": 0 }, - { "time": 0.2333, "x": 2.14, "y": 2.4 }, - { "time": 0.5, "x": 2.44, "y": 4.8 }, - { "time": 1, "x": 6.23, "y": 0 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -22.98 }, - { "time": 0.1333, "angle": -63.5 }, - { "time": 0.2333, "angle": -73.76 }, - { "time": 0.5, "angle": 5.11 }, - { "time": 0.6333, "angle": -28.29 }, - { "time": 0.7333, "angle": 4.08 }, - { "time": 0.8666, "angle": 3.53 }, - { "time": 1, "angle": -22.98 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 2.55, "y": -0.47 }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": -3.69 }, - { "time": 0.1333, "angle": -10.42 }, - { "time": 0.2333, "angle": -5.01 }, - { "time": 0.3666, "angle": 3.87 }, - { "time": 0.5, "angle": -3.87 }, - { "time": 0.6333, "angle": 2.78 }, - { "time": 0.7333, "angle": 1.68 }, - { "time": 0.8666, "angle": -8.54 }, - { "time": 1, "angle": -3.69 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 5.29, - "curve": [ 0.264, 0, 0.75, 1 ] - }, - { "time": 0.6333, "angle": 6.65 }, - { "time": 1, "angle": 5.29 } - ] - }, - "right arm": { - "rotate": [ - { - "time": 0, - "angle": -4.02, - "curve": [ 0.267, 0, 0.804, 0.99 ] - }, - { - "time": 0.6333, - "angle": 19.78, - "curve": [ 0.307, 0, 0.787, 0.99 ] - }, - { "time": 1, "angle": -4.02 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 8.98 }, - { "time": 0.6333, "angle": 0.51 }, - { "time": 1, "angle": 8.98 } - ] - }, - "left shoulder": { - "rotate": [ - { - "time": 0, - "angle": 6.25, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": -11.78, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 6.25 } - ], - "translate": [ - { "time": 0, "x": 1.15, "y": 0.23 } - ] - }, - "left hand": { - "rotate": [ - { - "time": 0, - "angle": -21.23, - "curve": [ 0.295, 0, 0.755, 0.98 ] - }, - { - "time": 0.5, - "angle": -27.28, - "curve": [ 0.241, 0, 0.75, 0.97 ] - }, - { "time": 1, "angle": -21.23 } - ] - }, - "left arm": { - "rotate": [ - { - "time": 0, - "angle": 28.37, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": 60.09, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 28.37 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -10.28 }, - { - "time": 0.1333, - "angle": -15.38, - "curve": [ 0.545, 0, 0.818, 1 ] - }, - { - "time": 0.3666, - "angle": -9.78, - "curve": [ 0.58, 0.17, 0.669, 0.99 ] - }, - { - "time": 0.6333, - "angle": -15.75, - "curve": [ 0.235, 0.01, 0.795, 1 ] - }, - { - "time": 0.8666, - "angle": -7.06, - "curve": [ 0.209, 0, 0.816, 0.98 ] - }, - { "time": 1, "angle": -10.28 } - ], - "translate": [ - { "time": 0, "x": -1.29, "y": 1.68 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": -5.25 }, - { "time": 0.2333, "angle": -1.91 }, - { "time": 0.3666, "angle": -6.45 }, - { "time": 0.5, "angle": -5.39 }, - { "time": 0.7333, "angle": -11.68 }, - { "time": 0.8666, "angle": 0.46 }, - { "time": 1, "angle": -5.25 } - ] - }, - "right lower leg": { - "rotate": [ - { - "time": 0, - "angle": -3.39, - "curve": [ 0.316, 0.01, 0.741, 0.98 ] - }, - { - "time": 0.1333, - "angle": -45.53, - "curve": [ 0.229, 0, 0.738, 0.97 ] - }, - { "time": 0.2333, "angle": -4.83 }, - { "time": 0.5, "angle": -19.53 }, - { "time": 0.6333, "angle": -64.8 }, - { - "time": 0.7333, - "angle": -82.56, - "curve": [ 0.557, 0.18, 1, 1 ] - }, - { "time": 1, "angle": -3.39 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.6333, "x": 2.18, "y": 0.21 }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": -4.16 }, - { - "time": 0.1333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.3666, "x": 0, "y": 6.78 }, - { "time": 0.5, "x": 0, "y": -6.13 }, - { - "time": 0.6333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.8666, "x": 0, "y": 6.78 }, - { "time": 1, "x": 0, "y": -4.16 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 3.6 }, - { "time": 0.1333, "angle": 17.49 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { "time": 0.5, "angle": 5.17 }, - { "time": 0.6333, "angle": 18.36 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 3.6, - "curve": [ 0, 0, 0.704, 1.17 ] - }, - { "time": 0.1333, "angle": -0.2 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { - "time": 0.5, - "angle": 5.17, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.6666, "angle": 1.1 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - } - }, - "slots": { - "eyes": { - "attachment": [ - { "time": 0.7, "name": "eyes closed" }, - { "time": 0.8, "name": null } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/spineboy.atlas b/examples/example 12 - Spine/data/spineboy.atlas new file mode 100644 index 0000000..cf32cd0 --- /dev/null +++ b/examples/example 12 - Spine/data/spineboy.atlas @@ -0,0 +1,165 @@ +spineboy.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +eyes-closed + rotate: false + xy: 73, 509 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +eyes + rotate: false + xy: 75, 464 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 121, 132 + orig: 121, 132 + offset: 0, 0 + index: -1 +left-ankle + rotate: false + xy: 96, 351 + size: 25, 32 + orig: 25, 32 + offset: 0, 0 + index: -1 +left-arm + rotate: false + xy: 39, 423 + size: 35, 29 + orig: 35, 29 + offset: 0, 0 + index: -1 +left-foot + rotate: false + xy: 2, 262 + size: 65, 30 + orig: 65, 30 + offset: 0, 0 + index: -1 +left-hand + rotate: false + xy: 2, 423 + size: 35, 38 + orig: 35, 38 + offset: 0, 0 + index: -1 +left-lower-leg + rotate: false + xy: 72, 202 + size: 49, 64 + orig: 49, 64 + offset: 0, 0 + index: -1 +left-pant-bottom + rotate: false + xy: 2, 363 + size: 44, 22 + orig: 44, 22 + offset: 0, 0 + index: -1 +left-shoulder + rotate: false + xy: 39, 454 + size: 34, 53 + orig: 34, 53 + offset: 0, 0 + index: -1 +left-upper-leg + rotate: false + xy: 2, 464 + size: 33, 67 + orig: 33, 67 + offset: 0, 0 + index: -1 +neck + rotate: false + xy: 37, 509 + size: 34, 28 + orig: 34, 28 + offset: 0, 0 + index: -1 +pelvis + rotate: false + xy: 2, 294 + size: 63, 47 + orig: 63, 47 + offset: 0, 0 + index: -1 +right-ankle + rotate: false + xy: 96, 385 + size: 25, 30 + orig: 25, 30 + offset: 0, 0 + index: -1 +right-arm + rotate: false + xy: 96, 417 + size: 21, 45 + orig: 21, 45 + offset: 0, 0 + index: -1 +right-foot-idle + rotate: false + xy: 69, 268 + size: 53, 28 + orig: 53, 28 + offset: 0, 0 + index: -1 +right-foot + rotate: false + xy: 2, 230 + size: 67, 30 + orig: 67, 30 + offset: 0, 0 + index: -1 +right-hand + rotate: false + xy: 2, 387 + size: 32, 32 + orig: 32, 32 + offset: 0, 0 + index: -1 +right-lower-leg + rotate: false + xy: 72, 136 + size: 51, 64 + orig: 51, 64 + offset: 0, 0 + index: -1 +right-pant-bottom + rotate: false + xy: 2, 343 + size: 46, 18 + orig: 46, 18 + offset: 0, 0 + index: -1 +right-shoulder + rotate: false + xy: 67, 298 + size: 52, 51 + orig: 52, 51 + offset: 0, 0 + index: -1 +right-upper-leg + rotate: false + xy: 50, 351 + size: 44, 70 + orig: 44, 70 + offset: 0, 0 + index: -1 +torso + rotate: false + xy: 2, 136 + size: 68, 92 + orig: 68, 92 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/spineboy.json b/examples/example 12 - Spine/data/spineboy.json index 54f9d82..17c5095 100755 --- a/examples/example 12 - Spine/data/spineboy.json +++ b/examples/example 12 - Spine/data/spineboy.json @@ -1,196 +1,787 @@ -{"frames": { - -"head": { - "frame": {"x":1,"y":122,"w":121,"h":132}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":121,"h":132}, - "sourceSize": {"w":121,"h":132} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, + { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, + { "name": "left lower leg", "parent": "left upper leg", "length": 56.45, "x": 51.78, "y": 3.46, "rotation": -16.65 }, + { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 64.02, "y": -8.67, "rotation": 102.43 }, + { "name": "right upper leg", "parent": "hip", "length": 45.76, "x": -18.27, "rotation": -101.13 }, + { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 50.21, "y": 0.6, "rotation": -10.7 }, + { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, + { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 94.95 }, + { "name": "neck", "parent": "torso", "length": 18.38, "x": 83.64, "y": -1.78, "rotation": 0.9 }, + { "name": "head", "parent": "neck", "length": 68.28, "x": 19.09, "y": 6.97, "rotation": -8.94 }, + { "name": "right shoulder", "parent": "torso", "length": 49.95, "x": 81.9, "y": 6.79, "rotation": 130.6 }, + { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 49.95, "y": -0.12, "rotation": 40.12 }, + { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 }, + { "name": "left shoulder", "parent": "torso", "length": 44.19, "x": 78.96, "y": -15.75, "rotation": -156.96 }, + { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 44.19, "y": -0.01, "rotation": 28.16 }, + { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, + { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 } +], +"slots": [ + { "name": "left shoulder", "bone": "left shoulder", "attachment": "left-shoulder" }, + { "name": "left arm", "bone": "left arm", "attachment": "left-arm" }, + { "name": "left hand", "bone": "left hand", "attachment": "left-hand" }, + { "name": "left foot", "bone": "left foot", "attachment": "left-foot" }, + { "name": "left lower leg", "bone": "left lower leg", "attachment": "left-lower-leg" }, + { "name": "left upper leg", "bone": "left upper leg", "attachment": "left-upper-leg" }, + { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, + { "name": "right foot", "bone": "right foot", "attachment": "right-foot" }, + { "name": "right lower leg", "bone": "right lower leg", "attachment": "right-lower-leg" }, + { "name": "right upper leg", "bone": "right upper leg", "attachment": "right-upper-leg" }, + { "name": "torso", "bone": "torso", "attachment": "torso" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "eyes", "bone": "head", "attachment": "eyes" }, + { "name": "right shoulder", "bone": "right shoulder", "attachment": "right-shoulder" }, + { "name": "right arm", "bone": "right arm", "attachment": "right-arm" }, + { "name": "right hand", "bone": "right hand", "attachment": "right-hand" } +], +"skins": { + "default": { + "left shoulder": { + "left-shoulder": { "x": 23.74, "y": 0.11, "rotation": 62.01, "width": 34, "height": 53 } + }, + "left arm": { + "left-arm": { "x": 15.11, "y": -0.44, "rotation": 33.84, "width": 35, "height": 29 } + }, + "left hand": { + "left-hand": { "x": 0.75, "y": 1.86, "rotation": 31.14, "width": 35, "height": 38 } + }, + "left foot": { + "left-foot": { "x": 24.35, "y": 8.88, "rotation": 3.32, "width": 65, "height": 30 } + }, + "left lower leg": { + "left-lower-leg": { "x": 24.55, "y": -1.92, "rotation": 105.75, "width": 49, "height": 64 } + }, + "left upper leg": { + "left-upper-leg": { "x": 26.12, "y": -1.85, "rotation": 89.09, "width": 33, "height": 67 } + }, + "pelvis": { + "pelvis": { "x": -4.83, "y": 10.62, "width": 63, "height": 47 } + }, + "right foot": { + "right-foot": { "x": 19.02, "y": 8.47, "rotation": 1.52, "width": 67, "height": 30 } + }, + "right lower leg": { + "right-lower-leg": { "x": 23.28, "y": -2.59, "rotation": 111.83, "width": 51, "height": 64 } + }, + "right upper leg": { + "right-upper-leg": { "x": 23.03, "y": 0.25, "rotation": 101.13, "width": 44, "height": 70 } + }, + "torso": { + "torso": { "x": 44.57, "y": -7.08, "rotation": -94.95, "width": 68, "height": 92 } + }, + "neck": { + "neck": { "x": 9.42, "y": -3.66, "rotation": -100.15, "width": 34, "height": 28 } + }, + "head": { + "head": { "x": 53.94, "y": -5.75, "rotation": -86.9, "width": 121, "height": 132 } + }, + "eyes": { + "eyes": { "x": 28.94, "y": -32.92, "rotation": -86.9, "width": 34, "height": 27 }, + "eyes-closed": { "x": 28.77, "y": -32.86, "rotation": -86.9, "width": 34, "height": 27 } + }, + "right shoulder": { + "right-shoulder": { "x": 25.86, "y": 0.03, "rotation": 134.44, "width": 52, "height": 51 } + }, + "right arm": { + "right-arm": { "x": 18.34, "y": -2.64, "rotation": 94.32, "width": 21, "height": 45 } + }, + "right hand": { + "right-hand": { "x": 6.82, "y": 1.25, "rotation": 91.96, "width": 32, "height": 32 } + } + } }, -"torso": -{ - "frame": {"x":1,"y":28,"w":68,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":92}, - "sourceSize": {"w":68,"h":92} -}, -"left-pant-bottom": -{ - "frame": {"x":1,"y":4,"w":44,"h":22}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":44,"h":22}, - "sourceSize": {"w":44,"h":22} -}, -"right-pant-bottom": -{ - "frame": {"x":47,"y":8,"w":46,"h":18}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":46,"h":18}, - "sourceSize": {"w":46,"h":18} -}, -"right-upper-leg": -{ - "frame": {"x":71,"y":50,"w":44,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":44,"h":70}, - "sourceSize": {"w":44,"h":70} -}, -"pelvis": -{ - "frame": {"x":95,"y":1,"w":63,"h":47}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":47}, - "sourceSize": {"w":63,"h":47} -}, -"left-upper-leg": -{ - "frame": {"x":117,"y":53,"w":33,"h":67}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":67}, - "sourceSize": {"w":33,"h":67} -}, -"right-foot": -{ - "frame": {"x":160,"y":224,"w":67,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":67,"h":30}, - "sourceSize": {"w":67,"h":30} -}, -"left-shoulder": -{ - "frame": {"x":124,"y":201,"w":34,"h":53}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":53}, - "sourceSize": {"w":34,"h":53} -}, -"left-ankle": -{ - "frame": {"x":229,"y":222,"w":25,"h":32}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":25,"h":32}, - "sourceSize": {"w":25,"h":32} -}, -"left-foot": -{ - "frame": {"x":160,"y":192,"w":65,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":30}, - "sourceSize": {"w":65,"h":30} -}, -"neck": -{ - "frame": {"x":124,"y":171,"w":34,"h":28}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":28}, - "sourceSize": {"w":34,"h":28} -}, -"right-arm": -{ - "frame": {"x":124,"y":124,"w":21,"h":45}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":21,"h":45}, - "sourceSize": {"w":21,"h":45} -}, -"right-ankle": -{ - "frame": {"x":227,"y":190,"w":25,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":25,"h":30}, - "sourceSize": {"w":25,"h":30} -}, -"left-hand": -{ - "frame": {"x":147,"y":131,"w":35,"h":38}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":38}, - "sourceSize": {"w":35,"h":38} -}, -"left-arm": -{ - "frame": {"x":184,"y":161,"w":35,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":29}, - "sourceSize": {"w":35,"h":29} -}, -"eyes-closed": -{ - "frame": {"x":221,"y":161,"w":34,"h":27}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, - "sourceSize": {"w":34,"h":27} -}, -"right-lower-leg": -{ - "frame": {"x":152,"y":65,"w":51,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":51,"h":64}, - "sourceSize": {"w":51,"h":64} -}, -"right-foot-idle": -{ - "frame": {"x":184,"y":131,"w":53,"h":28}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":53,"h":28}, - "sourceSize": {"w":53,"h":28} -}, -"left-lower-leg": -{ - "frame": {"x":205,"y":65,"w":49,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":49,"h":64}, - "sourceSize": {"w":49,"h":64} -}, -"right-shoulder": -{ - "frame": {"x":160,"y":12,"w":52,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":51}, - "sourceSize": {"w":52,"h":51} -}, -"eyes": -{ - "frame": {"x":214,"y":36,"w":34,"h":27}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, - "sourceSize": {"w":34,"h":27} -}, -"right-hand": -{ - "frame": {"x":214,"y":2,"w":32,"h":32}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":32,"h":32}, - "sourceSize": {"w":32,"h":32} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "spineboy.png", - "format": "RGBA8888", - "size": {"w":256,"h":256}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:93f9a66503bccd3c31cdba2ae4b91285$" +"animations": { + "walk": { + "bones": { + "left upper leg": { + "rotate": [ + { "time": 0, "angle": -26.55 }, + { "time": 0.1333, "angle": -8.78 }, + { "time": 0.2666, "angle": 9.51 }, + { "time": 0.4, "angle": 30.74 }, + { "time": 0.5333, "angle": 25.33 }, + { "time": 0.6666, "angle": 26.11 }, + { "time": 0.8, "angle": -7.7 }, + { "time": 0.9333, "angle": -21.19 }, + { "time": 1.0666, "angle": -26.55 } + ], + "translate": [ + { "time": 0, "x": -3, "y": -2.25 }, + { "time": 0.4, "x": -2.18, "y": -2.25 }, + { "time": 1.0666, "x": -3, "y": -2.25 } + ] + }, + "right upper leg": { + "rotate": [ + { "time": 0, "angle": 42.45 }, + { "time": 0.1333, "angle": 52.1 }, + { "time": 0.2666, "angle": 5.96 }, + { "time": 0.5333, "angle": -16.93 }, + { "time": 0.6666, "angle": 1.89 }, + { + "time": 0.8, + "angle": 28.06, + "curve": [ 0.462, 0.11, 1, 1 ] + }, + { + "time": 0.9333, + "angle": 58.68, + "curve": [ 0.5, 0.02, 1, 1 ] + }, + { "time": 1.0666, "angle": 42.45 } + ], + "translate": [ + { "time": 0, "x": 8.11, "y": -2.36 }, + { "time": 0.1333, "x": 10.03, "y": -2.56 }, + { "time": 0.4, "x": 2.76, "y": -2.97 }, + { "time": 0.5333, "x": 2.76, "y": -2.81 }, + { "time": 0.9333, "x": 8.67, "y": -2.54 }, + { "time": 1.0666, "x": 8.11, "y": -2.36 } + ] + }, + "left lower leg": { + "rotate": [ + { "time": 0, "angle": -10.21 }, + { "time": 0.1333, "angle": -55.64 }, + { "time": 0.2666, "angle": -68.12 }, + { "time": 0.5333, "angle": 5.11 }, + { "time": 0.6666, "angle": -28.29 }, + { "time": 0.8, "angle": 4.08 }, + { "time": 0.9333, "angle": 3.53 }, + { "time": 1.0666, "angle": -10.21 } + ] + }, + "left foot": { + "rotate": [ + { "time": 0, "angle": -3.69 }, + { "time": 0.1333, "angle": -10.42 }, + { "time": 0.2666, "angle": -17.14 }, + { "time": 0.4, "angle": -2.83 }, + { "time": 0.5333, "angle": -3.87 }, + { "time": 0.6666, "angle": 2.78 }, + { "time": 0.8, "angle": 1.68 }, + { "time": 0.9333, "angle": -8.54 }, + { "time": 1.0666, "angle": -3.69 } + ] + }, + "right shoulder": { + "rotate": [ + { + "time": 0, + "angle": 20.89, + "curve": [ 0.264, 0, 0.75, 1 ] + }, + { + "time": 0.1333, + "angle": 3.72, + "curve": [ 0.272, 0, 0.841, 1 ] + }, + { "time": 0.6666, "angle": -278.28 }, + { "time": 1.0666, "angle": 20.89 } + ], + "translate": [ + { "time": 0, "x": -7.84, "y": 7.19 }, + { "time": 0.1333, "x": -6.36, "y": 6.42 }, + { "time": 0.6666, "x": -11.07, "y": 5.25 }, + { "time": 1.0666, "x": -7.84, "y": 7.19 } + ] + }, + "right arm": { + "rotate": [ + { + "time": 0, + "angle": -4.02, + "curve": [ 0.267, 0, 0.804, 0.99 ] + }, + { + "time": 0.1333, + "angle": -13.99, + "curve": [ 0.341, 0, 1, 1 ] + }, + { + "time": 0.6666, + "angle": 36.54, + "curve": [ 0.307, 0, 0.787, 0.99 ] + }, + { "time": 1.0666, "angle": -4.02 } + ] + }, + "right hand": { + "rotate": [ + { "time": 0, "angle": 22.92 }, + { "time": 0.4, "angle": -8.97 }, + { "time": 0.6666, "angle": 0.51 }, + { "time": 1.0666, "angle": 22.92 } + ] + }, + "left shoulder": { + "rotate": [ + { "time": 0, "angle": -1.47 }, + { "time": 0.1333, "angle": 13.6 }, + { "time": 0.6666, "angle": 280.74 }, + { "time": 1.0666, "angle": -1.47 } + ], + "translate": [ + { "time": 0, "x": -1.76, "y": 0.56 }, + { "time": 0.6666, "x": -2.47, "y": 8.14 }, + { "time": 1.0666, "x": -1.76, "y": 0.56 } + ] + }, + "left hand": { + "rotate": [ + { + "time": 0, + "angle": 11.58, + "curve": [ 0.169, 0.37, 0.632, 1.55 ] + }, + { + "time": 0.1333, + "angle": 28.13, + "curve": [ 0.692, 0, 0.692, 0.99 ] + }, + { + "time": 0.6666, + "angle": -27.42, + "curve": [ 0.117, 0.41, 0.738, 1.76 ] + }, + { "time": 0.8, "angle": -36.32 }, + { "time": 1.0666, "angle": 11.58 } + ] + }, + "left arm": { + "rotate": [ + { "time": 0, "angle": -8.27 }, + { "time": 0.1333, "angle": 18.43 }, + { "time": 0.6666, "angle": 0.88 }, + { "time": 1.0666, "angle": -8.27 } + ] + }, + "torso": { + "rotate": [ + { "time": 0, "angle": -10.28 }, + { + "time": 0.1333, + "angle": -15.38, + "curve": [ 0.545, 0, 1, 1 ] + }, + { + "time": 0.4, + "angle": -9.78, + "curve": [ 0.58, 0.17, 1, 1 ] + }, + { "time": 0.6666, "angle": -15.75 }, + { "time": 0.9333, "angle": -7.06 }, + { "time": 1.0666, "angle": -10.28 } + ], + "translate": [ + { "time": 0, "x": -3.67, "y": 1.68 }, + { "time": 0.1333, "x": -3.67, "y": 0.68 }, + { "time": 0.4, "x": -3.67, "y": 1.97 }, + { "time": 0.6666, "x": -3.67, "y": -0.14 }, + { "time": 1.0666, "x": -3.67, "y": 1.68 } + ] + }, + "right foot": { + "rotate": [ + { "time": 0, "angle": -5.25 }, + { "time": 0.2666, "angle": -4.08 }, + { "time": 0.4, "angle": -6.45 }, + { "time": 0.5333, "angle": -5.39 }, + { "time": 0.8, "angle": -11.68 }, + { "time": 0.9333, "angle": 0.46 }, + { "time": 1.0666, "angle": -5.25 } + ] + }, + "right lower leg": { + "rotate": [ + { "time": 0, "angle": -3.39 }, + { "time": 0.1333, "angle": -45.53 }, + { "time": 0.2666, "angle": -2.59 }, + { "time": 0.5333, "angle": -19.53 }, + { "time": 0.6666, "angle": -64.8 }, + { + "time": 0.8, + "angle": -82.56, + "curve": [ 0.557, 0.18, 1, 1 ] + }, + { "time": 1.0666, "angle": -3.39 } + ] + }, + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 1.0666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { + "time": 0.1333, + "x": 0, + "y": -7.61, + "curve": [ 0.272, 0.86, 1, 1 ] + }, + { "time": 0.4, "x": 0, "y": 8.7 }, + { "time": 0.5333, "x": 0, "y": -0.41 }, + { + "time": 0.6666, + "x": 0, + "y": -7.05, + "curve": [ 0.235, 0.89, 1, 1 ] + }, + { "time": 0.8, "x": 0, "y": 2.92 }, + { "time": 0.9333, "x": 0, "y": 6.78 }, + { "time": 1.0666, "x": 0, "y": 0 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 3.6 }, + { "time": 0.1333, "angle": 17.49 }, + { "time": 0.2666, "angle": 6.1 }, + { "time": 0.4, "angle": 3.45 }, + { "time": 0.5333, "angle": 5.17 }, + { "time": 0.6666, "angle": 18.36 }, + { "time": 0.8, "angle": 6.09 }, + { "time": 0.9333, "angle": 2.28 }, + { "time": 1.0666, "angle": 3.6 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 3.6, + "curve": [ 0, 0, 0.704, 1.61 ] + }, + { "time": 0.1666, "angle": -0.2 }, + { "time": 0.2666, "angle": 6.1 }, + { "time": 0.4, "angle": 3.45 }, + { + "time": 0.5333, + "angle": 5.17, + "curve": [ 0, 0, 0.704, 1.61 ] + }, + { "time": 0.7, "angle": 1.1 }, + { "time": 0.8, "angle": 6.09 }, + { "time": 0.9333, "angle": 2.28 }, + { "time": 1.0666, "angle": 3.6 } + ] + } + } + }, + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.9333, "angle": 0, "curve": "stepped" }, + { "time": 1.3666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": -11.57, "y": -3 }, + { "time": 0.2333, "x": -16.2, "y": -19.43 }, + { + "time": 0.3333, + "x": 7.66, + "y": -8.48, + "curve": [ 0.057, 0.06, 0.712, 1 ] + }, + { "time": 0.3666, "x": 15.38, "y": 5.01 }, + { "time": 0.4666, "x": -7.84, "y": 57.22 }, + { + "time": 0.6, + "x": -10.81, + "y": 96.34, + "curve": [ 0.241, 0, 1, 1 ] + }, + { "time": 0.7333, "x": -7.01, "y": 54.7 }, + { "time": 0.8, "x": -10.58, "y": 32.2 }, + { "time": 0.9333, "x": -31.99, "y": 0.45 }, + { "time": 1.0666, "x": -12.48, "y": -29.47 }, + { "time": 1.3666, "x": -11.57, "y": -3 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left upper leg": { + "rotate": [ + { "time": 0, "angle": 17.13 }, + { "time": 0.2333, "angle": 44.35 }, + { "time": 0.3333, "angle": 16.46 }, + { "time": 0.4, "angle": -9.88 }, + { "time": 0.4666, "angle": -11.42 }, + { "time": 0.5666, "angle": 23.46 }, + { "time": 0.7666, "angle": 71.82 }, + { "time": 0.9333, "angle": 65.53 }, + { "time": 1.0666, "angle": 51.01 }, + { "time": 1.3666, "angle": 17.13 } + ], + "translate": [ + { "time": 0, "x": -3, "y": -2.25, "curve": "stepped" }, + { "time": 0.9333, "x": -3, "y": -2.25, "curve": "stepped" }, + { "time": 1.3666, "x": -3, "y": -2.25 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left lower leg": { + "rotate": [ + { "time": 0, "angle": -16.25 }, + { "time": 0.2333, "angle": -52.21 }, + { "time": 0.4, "angle": 15.04 }, + { "time": 0.4666, "angle": -8.95 }, + { "time": 0.5666, "angle": -39.53 }, + { "time": 0.7666, "angle": -27.27 }, + { "time": 0.9333, "angle": -3.52 }, + { "time": 1.0666, "angle": -61.92 }, + { "time": 1.3666, "angle": -16.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left foot": { + "rotate": [ + { "time": 0, "angle": 0.33 }, + { "time": 0.2333, "angle": 6.2 }, + { "time": 0.3333, "angle": 14.73 }, + { "time": 0.4, "angle": -15.54 }, + { "time": 0.4333, "angle": -21.2 }, + { "time": 0.5666, "angle": -7.55 }, + { "time": 0.7666, "angle": -0.67 }, + { "time": 0.9333, "angle": -0.58 }, + { "time": 1.0666, "angle": 14.64 }, + { "time": 1.3666, "angle": 0.33 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right upper leg": { + "rotate": [ + { "time": 0, "angle": 25.97 }, + { "time": 0.2333, "angle": 46.43 }, + { "time": 0.3333, "angle": 22.61 }, + { "time": 0.4, "angle": 2.13 }, + { + "time": 0.4666, + "angle": 0.04, + "curve": [ 0, 0, 0.637, 0.98 ] + }, + { "time": 0.6, "angle": 65.55 }, + { "time": 0.7666, "angle": 64.93 }, + { "time": 0.9333, "angle": 41.08 }, + { "time": 1.0666, "angle": 66.25 }, + { "time": 1.3666, "angle": 25.97 } + ], + "translate": [ + { "time": 0, "x": 5.74, "y": 0.61 }, + { "time": 0.2333, "x": 4.79, "y": 1.79 }, + { "time": 0.3333, "x": 6.05, "y": -4.55 }, + { "time": 0.9333, "x": 4.79, "y": 1.79, "curve": "stepped" }, + { "time": 1.0666, "x": 4.79, "y": 1.79 }, + { "time": 1.3666, "x": 5.74, "y": 0.61 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right lower leg": { + "rotate": [ + { "time": 0, "angle": -27.46 }, + { "time": 0.2333, "angle": -64.03 }, + { "time": 0.4, "angle": -48.36 }, + { "time": 0.5666, "angle": -76.86 }, + { "time": 0.7666, "angle": -26.89 }, + { "time": 0.9, "angle": -18.97 }, + { "time": 0.9333, "angle": -14.18 }, + { "time": 1.0666, "angle": -80.45 }, + { "time": 1.3666, "angle": -27.46 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right foot": { + "rotate": [ + { "time": 0, "angle": 1.08 }, + { "time": 0.2333, "angle": 16.02 }, + { "time": 0.3, "angle": 12.94 }, + { "time": 0.3333, "angle": 15.16 }, + { "time": 0.4, "angle": -14.7 }, + { "time": 0.4333, "angle": -12.85 }, + { "time": 0.4666, "angle": -19.18 }, + { "time": 0.5666, "angle": -15.82 }, + { "time": 0.6, "angle": -3.59 }, + { "time": 0.7666, "angle": -3.56 }, + { "time": 0.9333, "angle": 1.86 }, + { "time": 1.0666, "angle": 16.02 }, + { "time": 1.3666, "angle": 1.08 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "torso": { + "rotate": [ + { "time": 0, "angle": -13.35 }, + { "time": 0.2333, "angle": -48.95 }, + { "time": 0.4333, "angle": -35.77 }, + { "time": 0.6, "angle": -4.59 }, + { "time": 0.7666, "angle": 14.61 }, + { "time": 0.9333, "angle": 15.74 }, + { "time": 1.0666, "angle": -32.44 }, + { "time": 1.3666, "angle": -13.35 } + ], + "translate": [ + { "time": 0, "x": -3.67, "y": 1.68, "curve": "stepped" }, + { "time": 0.9333, "x": -3.67, "y": 1.68, "curve": "stepped" }, + { "time": 1.3666, "x": -3.67, "y": 1.68 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 12.78 }, + { "time": 0.2333, "angle": 16.46 }, + { "time": 0.4, "angle": 26.49 }, + { "time": 0.6, "angle": 15.51 }, + { "time": 0.7666, "angle": 1.34 }, + { "time": 0.9333, "angle": 2.35 }, + { "time": 1.0666, "angle": 6.08 }, + { "time": 1.3, "angle": 21.23 }, + { "time": 1.3666, "angle": 12.78 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 5.19 }, + { "time": 0.2333, "angle": 20.27 }, + { "time": 0.4, "angle": 15.27 }, + { "time": 0.6, "angle": -24.69 }, + { "time": 0.7666, "angle": -11.02 }, + { "time": 0.9333, "angle": -24.38 }, + { "time": 1.0666, "angle": 11.99 }, + { "time": 1.3, "angle": 4.86 }, + { "time": 1.3666, "angle": 5.19 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left shoulder": { + "rotate": [ + { + "time": 0, + "angle": 0.05, + "curve": [ 0, 0, 0.62, 1 ] + }, + { + "time": 0.2333, + "angle": 279.66, + "curve": [ 0.218, 0.67, 0.66, 0.99 ] + }, + { + "time": 0.5, + "angle": 62.27, + "curve": [ 0.462, 0, 0.764, 0.58 ] + }, + { "time": 0.9333, "angle": 28.91 }, + { "time": 1.0666, "angle": -8.62 }, + { "time": 1.1666, "angle": -18.43 }, + { "time": 1.3666, "angle": 0.05 } + ], + "translate": [ + { "time": 0, "x": -1.76, "y": 0.56, "curve": "stepped" }, + { "time": 0.9333, "x": -1.76, "y": 0.56, "curve": "stepped" }, + { "time": 1.3666, "x": -1.76, "y": 0.56 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left hand": { + "rotate": [ + { "time": 0, "angle": 11.58, "curve": "stepped" }, + { "time": 0.9333, "angle": 11.58, "curve": "stepped" }, + { "time": 1.3666, "angle": 11.58 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left arm": { + "rotate": [ + { "time": 0, "angle": 0.51 }, + { "time": 0.4333, "angle": 12.82 }, + { "time": 0.6, "angle": 47.55 }, + { "time": 0.9333, "angle": 12.82 }, + { "time": 1.1666, "angle": -6.5 }, + { "time": 1.3666, "angle": 0.51 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right shoulder": { + "rotate": [ + { + "time": 0, + "angle": 43.82, + "curve": [ 0, 0, 0.62, 1 ] + }, + { + "time": 0.2333, + "angle": -8.74, + "curve": [ 0.304, 0.58, 0.709, 0.97 ] + }, + { + "time": 0.5333, + "angle": -208.02, + "curve": [ 0.462, 0, 0.764, 0.58 ] + }, + { "time": 0.9333, "angle": -246.72 }, + { "time": 1.0666, "angle": -307.13 }, + { "time": 1.1666, "angle": 37.15 }, + { "time": 1.3666, "angle": 43.82 } + ], + "translate": [ + { "time": 0, "x": -7.84, "y": 7.19, "curve": "stepped" }, + { "time": 0.9333, "x": -7.84, "y": 7.19, "curve": "stepped" }, + { "time": 1.3666, "x": -7.84, "y": 7.19 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right arm": { + "rotate": [ + { "time": 0, "angle": -4.02 }, + { "time": 0.6, "angle": 17.5 }, + { "time": 0.9333, "angle": -4.02 }, + { "time": 1.1666, "angle": -16.72 }, + { "time": 1.3666, "angle": -4.02 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right hand": { + "rotate": [ + { "time": 0, "angle": 22.92, "curve": "stepped" }, + { "time": 0.9333, "angle": 22.92, "curve": "stepped" }, + { "time": 1.3666, "angle": 22.92 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "root": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.4333, "angle": -14.52 }, + { "time": 0.8, "angle": 9.86 }, + { "time": 1.3666, "angle": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/dragonBones.png b/examples/example 12 - Spine/data/dragonBones.png deleted file mode 100644 index 12cb92e..0000000 --- a/examples/example 12 - Spine/data/dragonBones.png +++ /dev/null Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBonesData.json b/examples/example 12 - Spine/data/dragonBonesData.json deleted file mode 100644 index c65508a..0000000 --- a/examples/example 12 - Spine/data/dragonBonesData.json +++ /dev/null @@ -1,779 +0,0 @@ -{ -"bones": [ - { "name": "root", "y": -176.12 }, - { "name": "COG", "parent": "root", "y": 176.12 }, - { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, - { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, - { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, - { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, - { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, - { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, - { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, - { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, - { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, - { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, - { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, - { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, - { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, - { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, - { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, - { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, - { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, - { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, - { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, - { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, - { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, - { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, - { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, - { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, - { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, - { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, - { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, - { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, - { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, - { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, - { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } -], -"slots": [ - { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, - { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, - { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, - { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, - { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, - { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, - { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, - { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, - { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, - { "name": "back", "bone": "back", "attachment": "back" }, - { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, - { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, - { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, - { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, - { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, - { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, - { "name": "chest", "bone": "chest", "attachment": "chest" }, - { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, - { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, - { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, - { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, - { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, - { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, - { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, - { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, - { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, - { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, - { "name": "chin", "bone": "chin", "attachment": "chin" }, - { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, - { "name": "head", "bone": "head", "attachment": "head" } -], -"skins": { - "default": { - "L_front_leg": { - "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } - }, - "L_front_thigh": { - "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } - }, - "L_front_toe1": { - "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } - }, - "L_front_toe2": { - "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } - }, - "L_front_toe3": { - "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } - }, - "L_front_toe4": { - "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } - }, - "L_rear_leg": { - "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } - }, - "L_rear_thigh": { - "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } - }, - "L_wing": { - "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, - "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, - "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, - "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, - "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, - "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, - "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, - "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, - "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } - }, - "R_front_leg": { - "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } - }, - "R_front_thigh": { - "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } - }, - "R_front_toe1": { - "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } - }, - "R_front_toe2": { - "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } - }, - "R_front_toe3": { - "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } - }, - "R_rear_leg": { - "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } - }, - "R_rear_thigh": { - "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } - }, - "R_rear_toe1": { - "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } - }, - "R_rear_toe2": { - "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } - }, - "R_rear_toe3": { - "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } - }, - "R_wing": { - "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, - "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, - "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, - "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, - "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, - "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, - "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, - "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, - "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } - }, - "back": { - "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } - }, - "chest": { - "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } - }, - "chin": { - "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } - }, - "head": { - "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } - }, - "tail1": { - "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } - }, - "tail2": { - "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } - }, - "tail3": { - "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } - }, - "tail4": { - "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } - }, - "tail5": { - "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } - }, - "tail6": { - "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } - } - } -}, -"animations": { - "flying": { - "bones": { - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.39 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.8333, "angle": 7 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -8.18 }, - { "time": 0.3333, "angle": -23.16 }, - { "time": 0.5, "angle": -18.01 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chest": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -2.42 }, - { "time": 0.3333, "angle": -26.2 }, - { "time": 0.5, "angle": -29.65 }, - { "time": 0.6666, "angle": -23.15 }, - { "time": 0.8333, "angle": -55.46 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_thigh": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -1.12 }, - { "time": 0.3333, "angle": 10.48 }, - { "time": 0.5, "angle": 7.89 }, - { "time": 0.8333, "angle": -10.38 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 8.24 }, - { "time": 0.3333, "angle": 15.21 }, - { "time": 0.5, "angle": 14.84 }, - { "time": 0.8333, "angle": -18.9 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.46 }, - { "time": 0.3333, "angle": 22.15 }, - { "time": 0.5, "angle": 22.76 }, - { "time": 0.8333, "angle": -4.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail5": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 7.4 }, - { "time": 0.3333, "angle": 28.5 }, - { "time": 0.5, "angle": 21.33 }, - { "time": 0.8333, "angle": -1.27 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail6": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 45.99 }, - { "time": 0.4, "angle": 43.53 }, - { "time": 0.5, "angle": 61.79 }, - { "time": 0.8333, "angle": 13.28 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -14.21 }, - { "time": 0.5, "angle": 47.17 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -36.06 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -20.32 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -18.71 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.408, 1.36, 0.675, 1.43 ] - }, - { "time": 0.5, "angle": 1.03 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chin": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.416, 1.15, 0.494, 1.27 ] - }, - { "time": 0.3333, "angle": -5.15 }, - { "time": 0.5, "angle": 9.79 }, - { "time": 0.6666, "angle": 18.94 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -19.18 }, - { "time": 0.3333, "angle": -32.02 }, - { "time": 0.5, "angle": -19.62 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -12.96 }, - { "time": 0.5, "angle": 16.2 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 37.77 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -16.08 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.33, "y": 1.029 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 26.51 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.239, "y": 0.993 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 16.99 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.402, "y": 1.007 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 26.07 }, - { "time": 0.5, "angle": -21.6 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 29.23 }, - { "time": 0.5, "angle": 34.83 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.412, "y": 1 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 24.89 }, - { "time": 0.5, "angle": 23.16 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.407, "y": 1.057 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 11.01 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.329, "y": 1.181 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 25.19 }, - { "time": 0.6666, "angle": -15.65 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "COG": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.456, 0.2, 0.422, 1.06 ] - }, - { "time": 0.3333, "angle": 23.93 }, - { - "time": 0.6666, - "angle": 337.8, - "curve": [ 0.41, 0, 0.887, 0.75 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.33, 1, 0.816, 1.33 ] - }, - { - "time": 0.5, - "x": 0, - "y": 113.01, - "curve": [ 0.396, 0, 0.709, 2.03 ] - }, - { "time": 1, "x": 0, "y": 0 } - ] - } - }, - "slots": { - "R_wing": { - "attachment": [ - { "time": 0, "name": "R_wing01" }, - { "time": 0.0666, "name": "R_wing02" }, - { "time": 0.1333, "name": "R_wing03" }, - { "time": 0.2, "name": "R_wing04" }, - { "time": 0.2666, "name": "R_wing05" }, - { "time": 0.3333, "name": "R_wing06" }, - { "time": 0.4, "name": "R_wing07" }, - { "time": 0.4666, "name": "R_wing08" }, - { "time": 0.5333, "name": "R_wing09" }, - { "time": 0.6, "name": "R_wing01" }, - { "time": 0.7333, "name": "R_wing02" }, - { "time": 0.7666, "name": "R_wing02" }, - { "time": 0.8, "name": "R_wing03" }, - { "time": 0.8333, "name": "R_wing04" }, - { "time": 0.8666, "name": "R_wing05" }, - { "time": 0.9, "name": "R_wing06" }, - { "time": 0.9333, "name": "R_wing07" }, - { "time": 0.9666, "name": "R_wing08" }, - { "time": 1, "name": "R_wing09" } - ] - }, - "L_wing": { - "attachment": [ - { "time": 0, "name": "L_wing01" }, - { "time": 0.0666, "name": "L_wing02" }, - { "time": 0.1333, "name": "L_wing03" }, - { "time": 0.2, "name": "L_wing04" }, - { "time": 0.2666, "name": "L_wing05" }, - { "time": 0.3333, "name": "L_wing06" }, - { "time": 0.4, "name": "L_wing07" }, - { "time": 0.4666, "name": "L_wing08" }, - { "time": 0.5333, "name": "L_wing09" }, - { "time": 0.6, "name": "L_wing01" }, - { "time": 0.7333, "name": "L_wing02" }, - { "time": 0.8, "name": "L_wing03" }, - { "time": 0.8333, "name": "L_wing04" }, - { "time": 0.8666, "name": "L_wing05" }, - { "time": 0.9, "name": "L_wing06" }, - { "time": 0.9333, "name": "L_wing07" }, - { "time": 0.9666, "name": "L_wing08" }, - { "time": 1, "name": "L_wing09" } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/goblins.atlas b/examples/example 12 - Spine/data/goblins.atlas new file mode 100644 index 0000000..c9cb702 --- /dev/null +++ b/examples/example 12 - Spine/data/goblins.atlas @@ -0,0 +1,293 @@ + +goblins.png +size: 228,523 +format: RGBA8888 +filter: Linear,Linear +repeat: none +dagger + rotate: false + xy: 2, 43 + size: 26, 108 + orig: 26, 108 + offset: 0, 0 + index: -1 +goblin/eyes-closed + rotate: false + xy: 166, 237 + size: 34, 12 + orig: 34, 12 + offset: 0, 0 + index: -1 +goblin/head + rotate: false + xy: 26, 372 + size: 103, 66 + orig: 103, 66 + offset: 0, 0 + index: -1 +goblin/left-arm + rotate: false + xy: 166, 251 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblin/left-foot + rotate: true + xy: 195, 358 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblin/left-hand + rotate: false + xy: 49, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/left-lower-leg + rotate: false + xy: 30, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblin/left-shoulder + rotate: true + xy: 169, 288 + size: 29, 44 + orig: 29, 44 + offset: 0, 0 + index: -1 +goblin/left-upper-leg + rotate: false + xy: 134, 305 + size: 33, 73 + orig: 33, 73 + offset: 0, 0 + index: -1 +goblin/neck + rotate: false + xy: 87, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/pelvis + rotate: false + xy: 131, 380 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblin/right-arm + rotate: false + xy: 135, 69 + size: 23, 50 + orig: 23, 50 + offset: 0, 0 + index: -1 +goblin/right-foot + rotate: true + xy: 104, 157 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblin/right-hand + rotate: false + xy: 190, 319 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblin/right-lower-leg + rotate: false + xy: 96, 294 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblin/right-shoulder + rotate: true + xy: 2, 2 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblin/right-upper-leg + rotate: false + xy: 139, 162 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblin/torso + rotate: false + xy: 131, 425 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblin/undie-straps + rotate: true + xy: 201, 466 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblin/undies + rotate: false + xy: 190, 51 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +goblingirl/eyes-closed + rotate: true + xy: 201, 427 + size: 37, 21 + orig: 37, 21 + offset: 0, 0 + index: -1 +goblingirl/head + rotate: false + xy: 26, 440 + size: 103, 81 + orig: 103, 81 + offset: 0, 0 + index: -1 +goblingirl/left-arm + rotate: true + xy: 175, 198 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblingirl/left-foot + rotate: true + xy: 133, 227 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblingirl/left-hand + rotate: true + xy: 168, 2 + size: 35, 40 + orig: 35, 40 + offset: 0, 0 + index: -1 +goblingirl/left-lower-leg + rotate: false + xy: 65, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/left-shoulder + rotate: true + xy: 135, 39 + size: 28, 46 + orig: 28, 46 + offset: 0, 0 + index: -1 +goblingirl/left-upper-leg + rotate: false + xy: 98, 222 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/neck + rotate: true + xy: 125, 2 + size: 35, 41 + orig: 35, 41 + offset: 0, 0 + index: -1 +goblingirl/pelvis + rotate: false + xy: 30, 117 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblingirl/right-arm + rotate: false + xy: 160, 69 + size: 28, 50 + orig: 28, 50 + offset: 0, 0 + index: -1 +goblingirl/right-foot + rotate: true + xy: 100, 56 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblingirl/right-hand + rotate: false + xy: 190, 82 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblingirl/right-lower-leg + rotate: true + xy: 26, 162 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblingirl/right-shoulder + rotate: true + xy: 159, 121 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblingirl/right-upper-leg + rotate: true + xy: 94, 121 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblingirl/torso + rotate: false + xy: 26, 274 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblingirl/undie-straps + rotate: true + xy: 169, 323 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblingirl/undies + rotate: false + xy: 175, 167 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +shield + rotate: false + xy: 26, 200 + size: 70, 72 + orig: 70, 72 + offset: 0, 0 + index: -1 +spear + rotate: false + xy: 2, 153 + size: 22, 368 + orig: 22, 368 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/goblins.json b/examples/example 12 - Spine/data/goblins.json index f87ec19..5d83ae1 100644 --- a/examples/example 12 - Spine/data/goblins.json +++ b/examples/example 12 - Spine/data/goblins.json @@ -1,332 +1 @@ -{"frames": { - -"dagger.png": -{ - "frame": {"x":2,"y":372,"w":26,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":26,"h":108}, - "sourceSize": {"w":26,"h":108} -}, -"goblin/eyes-closed.png": -{ - "frame": {"x":64,"y":354,"w":34,"h":12}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":12}, - "sourceSize": {"w":34,"h":12} -}, -"goblin/head.png": -{ - "frame": {"x":59,"y":83,"w":103,"h":64}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":103,"h":64}, - "sourceSize": {"w":103,"h":66} -}, -"goblin/left-arm.png": -{ - "frame": {"x":30,"y":445,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblin/left-foot.png": -{ - "frame": {"x":59,"y":182,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblin/left-hand.png": -{ - "frame": {"x":107,"y":436,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/left-lower-leg.png": -{ - "frame": {"x":26,"y":74,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblin/left-shoulder.png": -{ - "frame": {"x":26,"y":146,"w":29,"h":44}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":44}, - "sourceSize": {"w":29,"h":44} -}, -"goblin/left-upper-leg.png": -{ - "frame": {"x":30,"y":370,"w":33,"h":73}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":73}, - "sourceSize": {"w":33,"h":73} -}, -"goblin/neck.png": -{ - "frame": {"x":146,"y":309,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/pelvis.png": -{ - "frame": {"x":163,"y":233,"w":62,"h":43}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":62,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblin/right-arm.png": -{ - "frame": {"x":30,"y":240,"w":23,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":23,"h":50}, - "sourceSize": {"w":23,"h":50} -}, -"goblin/right-foot.png": -{ - "frame": {"x":164,"y":198,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblin/right-hand.png": -{ - "frame": {"x":154,"y":462,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblin/right-lower-leg.png": -{ - "frame": {"x":26,"y":292,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblin/right-shoulder.png": -{ - "frame": {"x":105,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblin/right-upper-leg.png": -{ - "frame": {"x":136,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblin/torso.png": -{ - "frame": {"x":164,"y":2,"w":68,"h":96}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblin/undie-straps.png": -{ - "frame": {"x":59,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblin/undies.png": -{ - "frame": {"x":116,"y":479,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"goblingirl/eyes-closed.png": -{ - "frame": {"x":100,"y":419,"w":37,"h":15}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":6,"w":37,"h":15}, - "sourceSize": {"w":37,"h":21} -}, -"goblingirl/head.png": -{ - "frame": {"x":59,"y":2,"w":103,"h":79}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":79}, - "sourceSize": {"w":103,"h":81} -}, -"goblingirl/left-arm.png": -{ - "frame": {"x":124,"y":227,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblingirl/left-foot.png": -{ - "frame": {"x":59,"y":149,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblingirl/left-hand.png": -{ - "frame": {"x":55,"y":250,"w":35,"h":40}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":40}, - "sourceSize": {"w":35,"h":40} -}, -"goblingirl/left-lower-leg.png": -{ - "frame": {"x":26,"y":2,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/left-shoulder.png": -{ - "frame": {"x":26,"y":192,"w":28,"h":46}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":28,"h":46}, - "sourceSize": {"w":28,"h":46} -}, -"goblingirl/left-upper-leg.png": -{ - "frame": {"x":65,"y":368,"w":33,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/neck.png": -{ - "frame": {"x":145,"y":419,"w":33,"h":41}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":41}, - "sourceSize": {"w":35,"h":41} -}, -"goblingirl/pelvis.png": -{ - "frame": {"x":92,"y":264,"w":60,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":60,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblingirl/right-arm.png": -{ - "frame": {"x":232,"y":100,"w":22,"h":50}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":3,"y":0,"w":22,"h":50}, - "sourceSize": {"w":28,"h":50} -}, -"goblingirl/right-foot.png": -{ - "frame": {"x":59,"y":215,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblingirl/right-hand.png": -{ - "frame": {"x":69,"y":440,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblingirl/right-lower-leg.png": -{ - "frame": {"x":126,"y":149,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblingirl/right-shoulder.png": -{ - "frame": {"x":64,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblingirl/right-upper-leg.png": -{ - "frame": {"x":100,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblingirl/torso.png": -{ - "frame": {"x":164,"y":100,"w":66,"h":96}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":66,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblingirl/undie-straps.png": -{ - "frame": {"x":2,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblingirl/undies.png": -{ - "frame": {"x":154,"y":278,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"spear.png": -{ - "frame": {"x":2,"y":2,"w":22,"h":368}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":22,"h":368}, - "sourceSize": {"w":22,"h":368} -}}, -"meta": { - "app": "http://www.codeandweb.com/texturepacker ", - "version": "1.0", - "image": "goblins.png", - "format": "RGBA8888", - "size": {"w":256,"h":512}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:f89858b99c6b15e23d39806c4170313a:1/1$" -} -} +{"skeleton":{"hash":"BMzsp4a1APif5tjCQwomTTo3Ino","spine":"2.1.05","width":233.95,"height":354.87},"bones":[{"name":"root"},{"name":"hip","parent":"root","x":0.64,"y":114.41},{"name":"left upper leg","parent":"hip","length":50.39,"x":14.45,"y":2.81,"rotation":-89.09},{"name":"pelvis","parent":"hip","x":1.41,"y":-6.57},{"name":"right upper leg","parent":"hip","length":42.45,"x":-20.07,"y":-6.83,"rotation":-97.49},{"name":"torso","parent":"hip","length":85.82,"x":-6.42,"y":1.97,"rotation":93.92},{"name":"left lower leg","parent":"left upper leg","length":49.89,"x":56.34,"y":0.98,"rotation":-16.65},{"name":"left shoulder","parent":"torso","length":35.43,"x":74.04,"y":-20.38,"rotation":-156.96},{"name":"neck","parent":"torso","length":18.38,"x":81.67,"y":-6.34,"rotation":-1.51},{"name":"right lower leg","parent":"right upper leg","length":58.52,"x":42.99,"y":-0.61,"rotation":-14.34},{"name":"right shoulder","parent":"torso","length":37.24,"x":76.02,"y":18.14,"rotation":133.88},{"name":"head","parent":"neck","length":68.28,"x":20.93,"y":11.59,"rotation":-13.92},{"name":"left arm","parent":"left shoulder","length":35.62,"x":37.85,"y":-2.34,"rotation":28.16},{"name":"left foot","parent":"left lower leg","length":46.5,"x":58.94,"y":-7.61,"rotation":102.43},{"name":"right arm","parent":"right shoulder","length":36.74,"x":37.6,"y":0.31,"rotation":36.32},{"name":"right foot","parent":"right lower leg","length":45.45,"x":64.88,"y":0.04,"rotation":110.3},{"name":"left hand","parent":"left arm","length":11.52,"x":35.62,"y":0.07,"rotation":2.7},{"name":"right hand","parent":"right arm","length":15.32,"x":36.9,"y":0.34,"rotation":2.35}],"slots":[{"name":"left shoulder","bone":"left shoulder","attachment":"left shoulder"},{"name":"left arm","bone":"left arm","attachment":"left arm"},{"name":"left hand item","bone":"left hand","attachment":"spear"},{"name":"left hand","bone":"left hand","attachment":"left hand"},{"name":"left foot","bone":"left foot","attachment":"left foot"},{"name":"left lower leg","bone":"left lower leg","attachment":"left lower leg"},{"name":"left upper leg","bone":"left upper leg","attachment":"left upper leg"},{"name":"neck","bone":"neck","attachment":"neck"},{"name":"torso","bone":"torso","attachment":"torso"},{"name":"pelvis","bone":"pelvis","attachment":"pelvis"},{"name":"right foot","bone":"right foot","attachment":"right foot"},{"name":"right lower leg","bone":"right lower leg","attachment":"right lower leg"},{"name":"undie straps","bone":"pelvis","attachment":"undie straps"},{"name":"undies","bone":"pelvis","attachment":"undies"},{"name":"right upper leg","bone":"right upper leg","attachment":"right upper leg"},{"name":"head","bone":"head","attachment":"head"},{"name":"eyes","bone":"head"},{"name":"right shoulder","bone":"right shoulder","attachment":"right shoulder"},{"name":"right arm","bone":"right arm","attachment":"right arm"},{"name":"right hand item","bone":"right hand"},{"name":"right hand","bone":"right hand","attachment":"right hand"},{"name":"right hand item top","bone":"right hand","attachment":"shield"}],"skins":{"default":{"left hand item":{"dagger":{"x":7.88,"y":-23.45,"rotation":10.47,"width":26,"height":108},"spear":{"x":-4.55,"y":39.2,"rotation":13.04,"width":22,"height":368}},"right hand item":{"dagger":{"x":6.51,"y":-24.15,"rotation":-8.06,"width":26,"height":108}},"right hand item top":{"shield":{"rotation":93.49,"width":70,"height":72}}},"goblin":{"eyes":{"eyes closed":{"name":"goblin/eyes-closed","x":32.21,"y":-21.27,"rotation":-88.92,"width":34,"height":12}},"head":{"head":{"name":"goblin/head","x":25.73,"y":2.33,"rotation":-92.29,"width":103,"height":66}},"left arm":{"left arm":{"name":"goblin/left-arm","x":16.7,"y":-1.69,"scaleX":1.057,"scaleY":1.057,"rotation":33.84,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblin/left-foot","x":24.85,"y":8.74,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblin/left-hand","x":3.47,"y":3.41,"scaleX":0.892,"scaleY":0.892,"rotation":31.14,"width":36,"height":41}},"left lower leg":{"left lower leg":{"name":"goblin/left-lower-leg","x":23.58,"y":-2.06,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblin/left-shoulder","x":15.56,"y":-2.26,"rotation":62.01,"width":29,"height":44}},"left upper leg":{"left upper leg":{"name":"goblin/left-upper-leg","x":29.68,"y":-3.87,"rotation":89.09,"width":33,"height":73}},"neck":{"neck":{"name":"goblin/neck","x":10.1,"y":0.42,"rotation":-93.69,"width":36,"height":41}},"pelvis":{"pelvis":{"name":"goblin/pelvis","x":-5.61,"y":0.76,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblin/right-arm","x":16.44,"y":-1.04,"rotation":94.32,"width":23,"height":50}},"right foot":{"right foot":{"name":"goblin/right-foot","x":23.56,"y":9.8,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblin/right-hand","x":7.88,"y":2.78,"rotation":91.96,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblin/right-lower-leg","x":25.68,"y":-3.15,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblin/right-shoulder","x":15.68,"y":-1.03,"rotation":130.65,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblin/right-upper-leg","x":20.35,"y":1.47,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblin/torso","x":38.09,"y":-3.87,"rotation":-94.95,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblin/undie-straps","x":-3.87,"y":13.1,"scaleX":1.089,"width":55,"height":19}},"undies":{"undies":{"name":"goblin/undies","x":6.3,"y":0.12,"rotation":0.91,"width":36,"height":29}}},"goblingirl":{"eyes":{"eyes closed":{"name":"goblingirl/eyes-closed","x":28,"y":-25.54,"rotation":-87.04,"width":37,"height":21}},"head":{"head":{"name":"goblingirl/head","x":27.71,"y":-4.32,"rotation":-85.58,"width":103,"height":81}},"left arm":{"left arm":{"name":"goblingirl/left-arm","x":19.64,"y":-2.42,"rotation":33.05,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblingirl/left-foot","x":25.17,"y":7.92,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblingirl/left-hand","x":4.34,"y":2.39,"scaleX":0.896,"scaleY":0.896,"rotation":30.34,"width":35,"height":40}},"left lower leg":{"left lower leg":{"name":"goblingirl/left-lower-leg","x":25.02,"y":-0.6,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblingirl/left-shoulder","x":19.8,"y":-0.42,"rotation":61.21,"width":28,"height":46}},"left upper leg":{"left upper leg":{"name":"goblingirl/left-upper-leg","x":30.21,"y":-2.95,"rotation":89.09,"width":33,"height":70}},"neck":{"neck":{"name":"goblingirl/neck","x":6.16,"y":-3.14,"rotation":-98.86,"width":35,"height":41}},"pelvis":{"pelvis":{"name":"goblingirl/pelvis","x":-3.87,"y":3.18,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblingirl/right-arm","x":16.85,"y":-0.66,"rotation":93.52,"width":28,"height":50}},"right foot":{"right foot":{"name":"goblingirl/right-foot","x":23.46,"y":9.66,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblingirl/right-hand","x":7.21,"y":3.43,"rotation":91.16,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblingirl/right-lower-leg","x":26.15,"y":-3.27,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblingirl/right-shoulder","x":14.46,"y":0.45,"rotation":129.85,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblingirl/right-upper-leg","x":19.69,"y":2.13,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblingirl/torso","x":36.28,"y":-5.14,"rotation":-95.74,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblingirl/undie-straps","x":-1.51,"y":14.18,"width":55,"height":19}},"undies":{"undies":{"name":"goblingirl/undies","x":5.4,"y":1.7,"width":36,"height":29}}}},"animations":{"walk":{"slots":{"eyes":{"attachment":[{"time":0.7,"name":"eyes closed"},{"time":0.8,"name":null}]}},"bones":{"left upper leg":{"rotate":[{"time":0,"angle":-26.55},{"time":0.1333,"angle":-8.78},{"time":0.2333,"angle":9.51},{"time":0.3666,"angle":30.74},{"time":0.5,"angle":25.33},{"time":0.6333,"angle":26.11},{"time":0.7333,"angle":-7.7},{"time":0.8666,"angle":-21.19},{"time":1,"angle":-26.55}],"translate":[{"time":0,"x":-1.32,"y":1.7},{"time":0.3666,"x":-0.06,"y":2.42},{"time":1,"x":-1.32,"y":1.7}]},"right upper leg":{"rotate":[{"time":0,"angle":42.45},{"time":0.1333,"angle":52.1},{"time":0.2333,"angle":8.53},{"time":0.5,"angle":-16.93},{"time":0.6333,"angle":1.89},{"time":0.7333,"angle":28.06,"curve":[0.462,0.11,1,1]},{"time":0.8666,"angle":58.68,"curve":[0.5,0.02,1,1]},{"time":1,"angle":42.45}],"translate":[{"time":0,"x":6.23,"y":0},{"time":0.2333,"x":2.14,"y":2.4},{"time":0.5,"x":2.44,"y":4.8},{"time":1,"x":6.23,"y":0}]},"left lower leg":{"rotate":[{"time":0,"angle":-22.98},{"time":0.1333,"angle":-63.5},{"time":0.2333,"angle":-73.76},{"time":0.5,"angle":5.11},{"time":0.6333,"angle":-28.29},{"time":0.7333,"angle":4.08},{"time":0.8666,"angle":3.53},{"time":1,"angle":-22.98}],"translate":[{"time":0,"x":0,"y":0},{"time":0.2333,"x":2.55,"y":-0.47},{"time":0.5,"x":0,"y":0,"curve":"stepped"},{"time":1,"x":0,"y":0}]},"left foot":{"rotate":[{"time":0,"angle":-3.69},{"time":0.1333,"angle":-10.42},{"time":0.2333,"angle":-5.01},{"time":0.3666,"angle":3.87},{"time":0.5,"angle":-3.87},{"time":0.6333,"angle":2.78},{"time":0.7333,"angle":1.68},{"time":0.8666,"angle":-8.54},{"time":1,"angle":-3.69}]},"right shoulder":{"rotate":[{"time":0,"angle":5.29,"curve":[0.264,0,0.75,1]},{"time":0.6333,"angle":6.65},{"time":1,"angle":5.29}]},"right arm":{"rotate":[{"time":0,"angle":-4.02,"curve":[0.267,0,0.804,0.99]},{"time":0.6333,"angle":19.78,"curve":[0.307,0,0.787,0.99]},{"time":1,"angle":-4.02}]},"right hand":{"rotate":[{"time":0,"angle":8.98},{"time":0.6333,"angle":0.51},{"time":1,"angle":8.98}]},"left shoulder":{"rotate":[{"time":0,"angle":6.25,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":-11.78,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":6.25}],"translate":[{"time":0,"x":1.15,"y":0.23}]},"left hand":{"rotate":[{"time":0,"angle":-21.23,"curve":[0.295,0,0.755,0.98]},{"time":0.5,"angle":-27.28,"curve":[0.241,0,0.75,0.97]},{"time":1,"angle":-21.23}]},"left arm":{"rotate":[{"time":0,"angle":28.37,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":60.09,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":28.37}]},"torso":{"rotate":[{"time":0,"angle":-10.28},{"time":0.1333,"angle":-15.38,"curve":[0.545,0,0.818,1]},{"time":0.3666,"angle":-9.78,"curve":[0.58,0.17,0.669,0.99]},{"time":0.6333,"angle":-15.75,"curve":[0.235,0.01,0.795,1]},{"time":0.8666,"angle":-7.06,"curve":[0.209,0,0.816,0.98]},{"time":1,"angle":-10.28}],"translate":[{"time":0,"x":-1.29,"y":1.68}]},"right foot":{"rotate":[{"time":0,"angle":-5.25},{"time":0.2333,"angle":-1.91},{"time":0.3666,"angle":-6.45},{"time":0.5,"angle":-5.39},{"time":0.7333,"angle":-11.68},{"time":0.8666,"angle":0.46},{"time":1,"angle":-5.25}]},"right lower leg":{"rotate":[{"time":0,"angle":-3.39,"curve":[0.316,0.01,0.741,0.98]},{"time":0.1333,"angle":-45.53,"curve":[0.229,0,0.738,0.97]},{"time":0.2333,"angle":-4.83},{"time":0.5,"angle":-19.53},{"time":0.6333,"angle":-64.8},{"time":0.7333,"angle":-82.56,"curve":[0.557,0.18,1,1]},{"time":1,"angle":-3.39}],"translate":[{"time":0,"x":0,"y":0,"curve":"stepped"},{"time":0.5,"x":0,"y":0},{"time":0.6333,"x":2.18,"y":0.21},{"time":1,"x":0,"y":0}]},"hip":{"rotate":[{"time":0,"angle":0,"curve":"stepped"},{"time":1,"angle":0}],"translate":[{"time":0,"x":0,"y":-4.16},{"time":0.1333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.3666,"x":0,"y":6.78},{"time":0.5,"x":0,"y":-6.13},{"time":0.6333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.8666,"x":0,"y":6.78},{"time":1,"x":0,"y":-4.16}]},"neck":{"rotate":[{"time":0,"angle":3.6},{"time":0.1333,"angle":17.49},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17},{"time":0.6333,"angle":18.36},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]},"head":{"rotate":[{"time":0,"angle":3.6,"curve":[0,0,0.704,1.17]},{"time":0.1333,"angle":-0.2},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17,"curve":[0,0,0.704,1.61]},{"time":0.6666,"angle":1.1},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]}}}}} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/goblins.png b/examples/example 12 - Spine/data/goblins.png index 5c26ca0..f2cdf16 100644 --- a/examples/example 12 - Spine/data/goblins.png +++ b/examples/example 12 - Spine/data/goblins.png Binary files differ diff --git a/examples/example 12 - Spine/data/goblinsSpineData.json b/examples/example 12 - Spine/data/goblinsSpineData.json deleted file mode 100644 index 8d63c62..0000000 --- a/examples/example 12 - Spine/data/goblinsSpineData.json +++ /dev/null @@ -1,502 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, - { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, - { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 }, - { "name": "right upper leg", "parent": "hip", "length": 42.45, "x": -20.07, "y": -6.83, "rotation": -97.49 }, - { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 93.92 }, - { "name": "left lower leg", "parent": "left upper leg", "length": 49.89, "x": 56.34, "y": 0.98, "rotation": -16.65 }, - { "name": "left shoulder", "parent": "torso", "length": 35.43, "x": 74.04, "y": -20.38, "rotation": -156.96 }, - { "name": "neck", "parent": "torso", "length": 18.38, "x": 81.67, "y": -6.34, "rotation": -1.51 }, - { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 42.99, "y": -0.61, "rotation": -14.34 }, - { "name": "right shoulder", "parent": "torso", "length": 37.24, "x": 76.02, "y": 18.14, "rotation": 133.88 }, - { "name": "head", "parent": "neck", "length": 68.28, "x": 20.93, "y": 11.59, "rotation": -13.92 }, - { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 37.85, "y": -2.34, "rotation": 28.16 }, - { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 58.94, "y": -7.61, "rotation": 102.43 }, - { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 37.6, "y": 0.31, "rotation": 36.32 }, - { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, - { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, - { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 } -], -"slots": [ - { "name": "left shoulder", "bone": "left shoulder", "attachment": "left shoulder" }, - { "name": "left arm", "bone": "left arm", "attachment": "left arm" }, - { "name": "left hand item", "bone": "left hand", "attachment": "spear" }, - { "name": "left hand", "bone": "left hand", "attachment": "left hand" }, - { "name": "left foot", "bone": "left foot", "attachment": "left foot" }, - { "name": "left lower leg", "bone": "left lower leg", "attachment": "left lower leg" }, - { "name": "left upper leg", "bone": "left upper leg", "attachment": "left upper leg" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "torso", "bone": "torso", "attachment": "torso" }, - { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, - { "name": "right foot", "bone": "right foot", "attachment": "right foot" }, - { "name": "right lower leg", "bone": "right lower leg", "attachment": "right lower leg" }, - { "name": "undie straps", "bone": "pelvis", "attachment": "undie straps" }, - { "name": "undies", "bone": "pelvis", "attachment": "undies" }, - { "name": "right upper leg", "bone": "right upper leg", "attachment": "right upper leg" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "eyes", "bone": "head" }, - { "name": "right shoulder", "bone": "right shoulder", "attachment": "right shoulder" }, - { "name": "right arm", "bone": "right arm", "attachment": "right arm" }, - { "name": "right hand item", "bone": "right hand", "attachment": "dagger" }, - { "name": "right hand", "bone": "right hand", "attachment": "right hand" } -], -"skins": { - "default": { - "left hand item": { - "dagger": { "x": 7.88, "y": -23.45, "rotation": 10.47, "width": 26, "height": 108 }, - "spear": { "x": -4.55, "y": 39.2, "rotation": 13.04, "width": 22, "height": 368 } - }, - "right hand item": { - "dagger": { "x": 6.51, "y": -24.15, "rotation": -8.06, "width": 26, "height": 108 } - } - }, - "goblin": { - "eyes": { - "eyes closed": { "name": "goblin/eyes-closed", "x": 32.21, "y": -21.27, "rotation": -88.92, "width": 34, "height": 12 } - }, - "head": { - "head": { "name": "goblin/head", "x": 25.73, "y": 2.33, "rotation": -92.29, "width": 103, "height": 66 } - }, - "left arm": { - "left arm": { - "name": "goblin/left-arm", - "x": 16.7, - "y": -1.69, - "scaleX": 1.057, - "scaleY": 1.057, - "rotation": 33.84, - "width": 37, - "height": 35 - } - }, - "left foot": { - "left foot": { "name": "goblin/left-foot", "x": 24.85, "y": 8.74, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblin/left-hand", - "x": 3.47, - "y": 3.41, - "scaleX": 0.892, - "scaleY": 0.892, - "rotation": 31.14, - "width": 36, - "height": 41 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblin/left-lower-leg", "x": 23.58, "y": -2.06, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblin/left-shoulder", "x": 15.56, "y": -2.26, "rotation": 62.01, "width": 29, "height": 44 } - }, - "left upper leg": { - "left upper leg": { "name": "goblin/left-upper-leg", "x": 29.68, "y": -3.87, "rotation": 89.09, "width": 33, "height": 73 } - }, - "neck": { - "neck": { "name": "goblin/neck", "x": 10.1, "y": 0.42, "rotation": -93.69, "width": 36, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblin/pelvis", "x": -5.61, "y": 0.76, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblin/right-arm", "x": 16.44, "y": -1.04, "rotation": 94.32, "width": 23, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblin/right-foot", "x": 23.56, "y": 9.8, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblin/right-hand", "x": 7.88, "y": 2.78, "rotation": 91.96, "width": 36, "height": 37 } - }, - "right lower leg": { - "right lower leg": { "name": "goblin/right-lower-leg", "x": 25.68, "y": -3.15, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblin/right-shoulder", "x": 15.68, "y": -1.03, "rotation": 130.65, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblin/right-upper-leg", "x": 20.35, "y": 1.47, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblin/torso", "x": 38.09, "y": -3.87, "rotation": -94.95, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblin/undie-straps", "x": -3.87, "y": 13.1, "scaleX": 1.089, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblin/undies", "x": 6.3, "y": 0.12, "rotation": 0.91, "width": 36, "height": 29 } - } - }, - "goblingirl": { - "eyes": { - "eyes closed": { "name": "goblingirl/eyes-closed", "x": 28, "y": -25.54, "rotation": -87.04, "width": 37, "height": 21 } - }, - "head": { - "head": { "name": "goblingirl/head", "x": 27.71, "y": -4.32, "rotation": -85.58, "width": 103, "height": 81 } - }, - "left arm": { - "left arm": { "name": "goblingirl/left-arm", "x": 19.64, "y": -2.42, "rotation": 33.05, "width": 37, "height": 35 } - }, - "left foot": { - "left foot": { "name": "goblingirl/left-foot", "x": 25.17, "y": 7.92, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblingirl/left-hand", - "x": 4.34, - "y": 2.39, - "scaleX": 0.896, - "scaleY": 0.896, - "rotation": 30.34, - "width": 35, - "height": 40 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblingirl/left-lower-leg", "x": 25.02, "y": -0.6, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblingirl/left-shoulder", "x": 19.8, "y": -0.42, "rotation": 61.21, "width": 28, "height": 46 } - }, - "left upper leg": { - "left upper leg": { "name": "goblingirl/left-upper-leg", "x": 30.21, "y": -2.95, "rotation": 89.09, "width": 33, "height": 70 } - }, - "neck": { - "neck": { "name": "goblingirl/neck", "x": 6.16, "y": -3.14, "rotation": -98.86, "width": 35, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblingirl/pelvis", "x": -3.87, "y": 3.18, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblingirl/right-arm", "x": 16.85, "y": -0.66, "rotation": 93.52, "width": 28, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblingirl/right-foot", "x": 23.46, "y": 9.66, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblingirl/right-hand", "x": 7.21, "y": 3.43, "rotation": 91.16, "width": 36, "height": 37 } - }, - "right hand item": { - "right hand item": { "name": "goblingirl/dagger-tip", "x": 13.45, "y": 22.07, "rotation": -3.23, "width": 17, "height": 17 } - }, - "right lower leg": { - "right lower leg": { "name": "goblingirl/right-lower-leg", "x": 26.15, "y": -3.27, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblingirl/right-shoulder", "x": 14.46, "y": 0.45, "rotation": 129.85, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblingirl/right-upper-leg", "x": 19.69, "y": 2.13, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblingirl/torso", "x": 36.28, "y": -5.14, "rotation": -95.74, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblingirl/undie-straps", "x": -1.51, "y": 14.18, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblingirl/undies", "x": 5.4, "y": 1.7, "width": 36, "height": 29 } - } - } -}, -"animations": { - "walk": { - "bones": { - "left upper leg": { - "rotate": [ - { "time": 0, "angle": -26.55 }, - { "time": 0.1333, "angle": -8.78 }, - { "time": 0.2333, "angle": 9.51 }, - { "time": 0.3666, "angle": 30.74 }, - { "time": 0.5, "angle": 25.33 }, - { "time": 0.6333, "angle": 26.11 }, - { "time": 0.7333, "angle": -7.7 }, - { "time": 0.8666, "angle": -21.19 }, - { "time": 1, "angle": -26.55 } - ], - "translate": [ - { "time": 0, "x": -1.32, "y": 1.7 }, - { "time": 0.3666, "x": -0.06, "y": 2.42 }, - { "time": 1, "x": -1.32, "y": 1.7 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 42.45 }, - { "time": 0.1333, "angle": 52.1 }, - { "time": 0.2333, "angle": 8.53 }, - { "time": 0.5, "angle": -16.93 }, - { "time": 0.6333, "angle": 1.89 }, - { - "time": 0.7333, - "angle": 28.06, - "curve": [ 0.462, 0.11, 1, 1 ] - }, - { - "time": 0.8666, - "angle": 58.68, - "curve": [ 0.5, 0.02, 1, 1 ] - }, - { "time": 1, "angle": 42.45 } - ], - "translate": [ - { "time": 0, "x": 6.23, "y": 0 }, - { "time": 0.2333, "x": 2.14, "y": 2.4 }, - { "time": 0.5, "x": 2.44, "y": 4.8 }, - { "time": 1, "x": 6.23, "y": 0 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -22.98 }, - { "time": 0.1333, "angle": -63.5 }, - { "time": 0.2333, "angle": -73.76 }, - { "time": 0.5, "angle": 5.11 }, - { "time": 0.6333, "angle": -28.29 }, - { "time": 0.7333, "angle": 4.08 }, - { "time": 0.8666, "angle": 3.53 }, - { "time": 1, "angle": -22.98 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 2.55, "y": -0.47 }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": -3.69 }, - { "time": 0.1333, "angle": -10.42 }, - { "time": 0.2333, "angle": -5.01 }, - { "time": 0.3666, "angle": 3.87 }, - { "time": 0.5, "angle": -3.87 }, - { "time": 0.6333, "angle": 2.78 }, - { "time": 0.7333, "angle": 1.68 }, - { "time": 0.8666, "angle": -8.54 }, - { "time": 1, "angle": -3.69 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 5.29, - "curve": [ 0.264, 0, 0.75, 1 ] - }, - { "time": 0.6333, "angle": 6.65 }, - { "time": 1, "angle": 5.29 } - ] - }, - "right arm": { - "rotate": [ - { - "time": 0, - "angle": -4.02, - "curve": [ 0.267, 0, 0.804, 0.99 ] - }, - { - "time": 0.6333, - "angle": 19.78, - "curve": [ 0.307, 0, 0.787, 0.99 ] - }, - { "time": 1, "angle": -4.02 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 8.98 }, - { "time": 0.6333, "angle": 0.51 }, - { "time": 1, "angle": 8.98 } - ] - }, - "left shoulder": { - "rotate": [ - { - "time": 0, - "angle": 6.25, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": -11.78, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 6.25 } - ], - "translate": [ - { "time": 0, "x": 1.15, "y": 0.23 } - ] - }, - "left hand": { - "rotate": [ - { - "time": 0, - "angle": -21.23, - "curve": [ 0.295, 0, 0.755, 0.98 ] - }, - { - "time": 0.5, - "angle": -27.28, - "curve": [ 0.241, 0, 0.75, 0.97 ] - }, - { "time": 1, "angle": -21.23 } - ] - }, - "left arm": { - "rotate": [ - { - "time": 0, - "angle": 28.37, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": 60.09, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 28.37 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -10.28 }, - { - "time": 0.1333, - "angle": -15.38, - "curve": [ 0.545, 0, 0.818, 1 ] - }, - { - "time": 0.3666, - "angle": -9.78, - "curve": [ 0.58, 0.17, 0.669, 0.99 ] - }, - { - "time": 0.6333, - "angle": -15.75, - "curve": [ 0.235, 0.01, 0.795, 1 ] - }, - { - "time": 0.8666, - "angle": -7.06, - "curve": [ 0.209, 0, 0.816, 0.98 ] - }, - { "time": 1, "angle": -10.28 } - ], - "translate": [ - { "time": 0, "x": -1.29, "y": 1.68 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": -5.25 }, - { "time": 0.2333, "angle": -1.91 }, - { "time": 0.3666, "angle": -6.45 }, - { "time": 0.5, "angle": -5.39 }, - { "time": 0.7333, "angle": -11.68 }, - { "time": 0.8666, "angle": 0.46 }, - { "time": 1, "angle": -5.25 } - ] - }, - "right lower leg": { - "rotate": [ - { - "time": 0, - "angle": -3.39, - "curve": [ 0.316, 0.01, 0.741, 0.98 ] - }, - { - "time": 0.1333, - "angle": -45.53, - "curve": [ 0.229, 0, 0.738, 0.97 ] - }, - { "time": 0.2333, "angle": -4.83 }, - { "time": 0.5, "angle": -19.53 }, - { "time": 0.6333, "angle": -64.8 }, - { - "time": 0.7333, - "angle": -82.56, - "curve": [ 0.557, 0.18, 1, 1 ] - }, - { "time": 1, "angle": -3.39 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.6333, "x": 2.18, "y": 0.21 }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": -4.16 }, - { - "time": 0.1333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.3666, "x": 0, "y": 6.78 }, - { "time": 0.5, "x": 0, "y": -6.13 }, - { - "time": 0.6333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.8666, "x": 0, "y": 6.78 }, - { "time": 1, "x": 0, "y": -4.16 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 3.6 }, - { "time": 0.1333, "angle": 17.49 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { "time": 0.5, "angle": 5.17 }, - { "time": 0.6333, "angle": 18.36 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 3.6, - "curve": [ 0, 0, 0.704, 1.17 ] - }, - { "time": 0.1333, "angle": -0.2 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { - "time": 0.5, - "angle": 5.17, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.6666, "angle": 1.1 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - } - }, - "slots": { - "eyes": { - "attachment": [ - { "time": 0.7, "name": "eyes closed" }, - { "time": 0.8, "name": null } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/spineboy.atlas b/examples/example 12 - Spine/data/spineboy.atlas new file mode 100644 index 0000000..cf32cd0 --- /dev/null +++ b/examples/example 12 - Spine/data/spineboy.atlas @@ -0,0 +1,165 @@ +spineboy.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +eyes-closed + rotate: false + xy: 73, 509 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +eyes + rotate: false + xy: 75, 464 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 121, 132 + orig: 121, 132 + offset: 0, 0 + index: -1 +left-ankle + rotate: false + xy: 96, 351 + size: 25, 32 + orig: 25, 32 + offset: 0, 0 + index: -1 +left-arm + rotate: false + xy: 39, 423 + size: 35, 29 + orig: 35, 29 + offset: 0, 0 + index: -1 +left-foot + rotate: false + xy: 2, 262 + size: 65, 30 + orig: 65, 30 + offset: 0, 0 + index: -1 +left-hand + rotate: false + xy: 2, 423 + size: 35, 38 + orig: 35, 38 + offset: 0, 0 + index: -1 +left-lower-leg + rotate: false + xy: 72, 202 + size: 49, 64 + orig: 49, 64 + offset: 0, 0 + index: -1 +left-pant-bottom + rotate: false + xy: 2, 363 + size: 44, 22 + orig: 44, 22 + offset: 0, 0 + index: -1 +left-shoulder + rotate: false + xy: 39, 454 + size: 34, 53 + orig: 34, 53 + offset: 0, 0 + index: -1 +left-upper-leg + rotate: false + xy: 2, 464 + size: 33, 67 + orig: 33, 67 + offset: 0, 0 + index: -1 +neck + rotate: false + xy: 37, 509 + size: 34, 28 + orig: 34, 28 + offset: 0, 0 + index: -1 +pelvis + rotate: false + xy: 2, 294 + size: 63, 47 + orig: 63, 47 + offset: 0, 0 + index: -1 +right-ankle + rotate: false + xy: 96, 385 + size: 25, 30 + orig: 25, 30 + offset: 0, 0 + index: -1 +right-arm + rotate: false + xy: 96, 417 + size: 21, 45 + orig: 21, 45 + offset: 0, 0 + index: -1 +right-foot-idle + rotate: false + xy: 69, 268 + size: 53, 28 + orig: 53, 28 + offset: 0, 0 + index: -1 +right-foot + rotate: false + xy: 2, 230 + size: 67, 30 + orig: 67, 30 + offset: 0, 0 + index: -1 +right-hand + rotate: false + xy: 2, 387 + size: 32, 32 + orig: 32, 32 + offset: 0, 0 + index: -1 +right-lower-leg + rotate: false + xy: 72, 136 + size: 51, 64 + orig: 51, 64 + offset: 0, 0 + index: -1 +right-pant-bottom + rotate: false + xy: 2, 343 + size: 46, 18 + orig: 46, 18 + offset: 0, 0 + index: -1 +right-shoulder + rotate: false + xy: 67, 298 + size: 52, 51 + orig: 52, 51 + offset: 0, 0 + index: -1 +right-upper-leg + rotate: false + xy: 50, 351 + size: 44, 70 + orig: 44, 70 + offset: 0, 0 + index: -1 +torso + rotate: false + xy: 2, 136 + size: 68, 92 + orig: 68, 92 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/spineboy.json b/examples/example 12 - Spine/data/spineboy.json index 54f9d82..17c5095 100755 --- a/examples/example 12 - Spine/data/spineboy.json +++ b/examples/example 12 - Spine/data/spineboy.json @@ -1,196 +1,787 @@ -{"frames": { - -"head": { - "frame": {"x":1,"y":122,"w":121,"h":132}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":121,"h":132}, - "sourceSize": {"w":121,"h":132} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, + { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, + { "name": "left lower leg", "parent": "left upper leg", "length": 56.45, "x": 51.78, "y": 3.46, "rotation": -16.65 }, + { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 64.02, "y": -8.67, "rotation": 102.43 }, + { "name": "right upper leg", "parent": "hip", "length": 45.76, "x": -18.27, "rotation": -101.13 }, + { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 50.21, "y": 0.6, "rotation": -10.7 }, + { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, + { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 94.95 }, + { "name": "neck", "parent": "torso", "length": 18.38, "x": 83.64, "y": -1.78, "rotation": 0.9 }, + { "name": "head", "parent": "neck", "length": 68.28, "x": 19.09, "y": 6.97, "rotation": -8.94 }, + { "name": "right shoulder", "parent": "torso", "length": 49.95, "x": 81.9, "y": 6.79, "rotation": 130.6 }, + { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 49.95, "y": -0.12, "rotation": 40.12 }, + { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 }, + { "name": "left shoulder", "parent": "torso", "length": 44.19, "x": 78.96, "y": -15.75, "rotation": -156.96 }, + { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 44.19, "y": -0.01, "rotation": 28.16 }, + { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, + { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 } +], +"slots": [ + { "name": "left shoulder", "bone": "left shoulder", "attachment": "left-shoulder" }, + { "name": "left arm", "bone": "left arm", "attachment": "left-arm" }, + { "name": "left hand", "bone": "left hand", "attachment": "left-hand" }, + { "name": "left foot", "bone": "left foot", "attachment": "left-foot" }, + { "name": "left lower leg", "bone": "left lower leg", "attachment": "left-lower-leg" }, + { "name": "left upper leg", "bone": "left upper leg", "attachment": "left-upper-leg" }, + { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, + { "name": "right foot", "bone": "right foot", "attachment": "right-foot" }, + { "name": "right lower leg", "bone": "right lower leg", "attachment": "right-lower-leg" }, + { "name": "right upper leg", "bone": "right upper leg", "attachment": "right-upper-leg" }, + { "name": "torso", "bone": "torso", "attachment": "torso" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "eyes", "bone": "head", "attachment": "eyes" }, + { "name": "right shoulder", "bone": "right shoulder", "attachment": "right-shoulder" }, + { "name": "right arm", "bone": "right arm", "attachment": "right-arm" }, + { "name": "right hand", "bone": "right hand", "attachment": "right-hand" } +], +"skins": { + "default": { + "left shoulder": { + "left-shoulder": { "x": 23.74, "y": 0.11, "rotation": 62.01, "width": 34, "height": 53 } + }, + "left arm": { + "left-arm": { "x": 15.11, "y": -0.44, "rotation": 33.84, "width": 35, "height": 29 } + }, + "left hand": { + "left-hand": { "x": 0.75, "y": 1.86, "rotation": 31.14, "width": 35, "height": 38 } + }, + "left foot": { + "left-foot": { "x": 24.35, "y": 8.88, "rotation": 3.32, "width": 65, "height": 30 } + }, + "left lower leg": { + "left-lower-leg": { "x": 24.55, "y": -1.92, "rotation": 105.75, "width": 49, "height": 64 } + }, + "left upper leg": { + "left-upper-leg": { "x": 26.12, "y": -1.85, "rotation": 89.09, "width": 33, "height": 67 } + }, + "pelvis": { + "pelvis": { "x": -4.83, "y": 10.62, "width": 63, "height": 47 } + }, + "right foot": { + "right-foot": { "x": 19.02, "y": 8.47, "rotation": 1.52, "width": 67, "height": 30 } + }, + "right lower leg": { + "right-lower-leg": { "x": 23.28, "y": -2.59, "rotation": 111.83, "width": 51, "height": 64 } + }, + "right upper leg": { + "right-upper-leg": { "x": 23.03, "y": 0.25, "rotation": 101.13, "width": 44, "height": 70 } + }, + "torso": { + "torso": { "x": 44.57, "y": -7.08, "rotation": -94.95, "width": 68, "height": 92 } + }, + "neck": { + "neck": { "x": 9.42, "y": -3.66, "rotation": -100.15, "width": 34, "height": 28 } + }, + "head": { + "head": { "x": 53.94, "y": -5.75, "rotation": -86.9, "width": 121, "height": 132 } + }, + "eyes": { + "eyes": { "x": 28.94, "y": -32.92, "rotation": -86.9, "width": 34, "height": 27 }, + "eyes-closed": { "x": 28.77, "y": -32.86, "rotation": -86.9, "width": 34, "height": 27 } + }, + "right shoulder": { + "right-shoulder": { "x": 25.86, "y": 0.03, "rotation": 134.44, "width": 52, "height": 51 } + }, + "right arm": { + "right-arm": { "x": 18.34, "y": -2.64, "rotation": 94.32, "width": 21, "height": 45 } + }, + "right hand": { + "right-hand": { "x": 6.82, "y": 1.25, "rotation": 91.96, "width": 32, "height": 32 } + } + } }, -"torso": -{ - "frame": {"x":1,"y":28,"w":68,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":92}, - "sourceSize": {"w":68,"h":92} -}, -"left-pant-bottom": -{ - "frame": {"x":1,"y":4,"w":44,"h":22}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":44,"h":22}, - "sourceSize": {"w":44,"h":22} -}, -"right-pant-bottom": -{ - "frame": {"x":47,"y":8,"w":46,"h":18}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":46,"h":18}, - "sourceSize": {"w":46,"h":18} -}, -"right-upper-leg": -{ - "frame": {"x":71,"y":50,"w":44,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":44,"h":70}, - "sourceSize": {"w":44,"h":70} -}, -"pelvis": -{ - "frame": {"x":95,"y":1,"w":63,"h":47}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":47}, - "sourceSize": {"w":63,"h":47} -}, -"left-upper-leg": -{ - "frame": {"x":117,"y":53,"w":33,"h":67}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":67}, - "sourceSize": {"w":33,"h":67} -}, -"right-foot": -{ - "frame": {"x":160,"y":224,"w":67,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":67,"h":30}, - "sourceSize": {"w":67,"h":30} -}, -"left-shoulder": -{ - "frame": {"x":124,"y":201,"w":34,"h":53}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":53}, - "sourceSize": {"w":34,"h":53} -}, -"left-ankle": -{ - "frame": {"x":229,"y":222,"w":25,"h":32}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":25,"h":32}, - "sourceSize": {"w":25,"h":32} -}, -"left-foot": -{ - "frame": {"x":160,"y":192,"w":65,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":30}, - "sourceSize": {"w":65,"h":30} -}, -"neck": -{ - "frame": {"x":124,"y":171,"w":34,"h":28}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":28}, - "sourceSize": {"w":34,"h":28} -}, -"right-arm": -{ - "frame": {"x":124,"y":124,"w":21,"h":45}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":21,"h":45}, - "sourceSize": {"w":21,"h":45} -}, -"right-ankle": -{ - "frame": {"x":227,"y":190,"w":25,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":25,"h":30}, - "sourceSize": {"w":25,"h":30} -}, -"left-hand": -{ - "frame": {"x":147,"y":131,"w":35,"h":38}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":38}, - "sourceSize": {"w":35,"h":38} -}, -"left-arm": -{ - "frame": {"x":184,"y":161,"w":35,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":29}, - "sourceSize": {"w":35,"h":29} -}, -"eyes-closed": -{ - "frame": {"x":221,"y":161,"w":34,"h":27}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, - "sourceSize": {"w":34,"h":27} -}, -"right-lower-leg": -{ - "frame": {"x":152,"y":65,"w":51,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":51,"h":64}, - "sourceSize": {"w":51,"h":64} -}, -"right-foot-idle": -{ - "frame": {"x":184,"y":131,"w":53,"h":28}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":53,"h":28}, - "sourceSize": {"w":53,"h":28} -}, -"left-lower-leg": -{ - "frame": {"x":205,"y":65,"w":49,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":49,"h":64}, - "sourceSize": {"w":49,"h":64} -}, -"right-shoulder": -{ - "frame": {"x":160,"y":12,"w":52,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":51}, - "sourceSize": {"w":52,"h":51} -}, -"eyes": -{ - "frame": {"x":214,"y":36,"w":34,"h":27}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, - "sourceSize": {"w":34,"h":27} -}, -"right-hand": -{ - "frame": {"x":214,"y":2,"w":32,"h":32}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":32,"h":32}, - "sourceSize": {"w":32,"h":32} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "spineboy.png", - "format": "RGBA8888", - "size": {"w":256,"h":256}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:93f9a66503bccd3c31cdba2ae4b91285$" +"animations": { + "walk": { + "bones": { + "left upper leg": { + "rotate": [ + { "time": 0, "angle": -26.55 }, + { "time": 0.1333, "angle": -8.78 }, + { "time": 0.2666, "angle": 9.51 }, + { "time": 0.4, "angle": 30.74 }, + { "time": 0.5333, "angle": 25.33 }, + { "time": 0.6666, "angle": 26.11 }, + { "time": 0.8, "angle": -7.7 }, + { "time": 0.9333, "angle": -21.19 }, + { "time": 1.0666, "angle": -26.55 } + ], + "translate": [ + { "time": 0, "x": -3, "y": -2.25 }, + { "time": 0.4, "x": -2.18, "y": -2.25 }, + { "time": 1.0666, "x": -3, "y": -2.25 } + ] + }, + "right upper leg": { + "rotate": [ + { "time": 0, "angle": 42.45 }, + { "time": 0.1333, "angle": 52.1 }, + { "time": 0.2666, "angle": 5.96 }, + { "time": 0.5333, "angle": -16.93 }, + { "time": 0.6666, "angle": 1.89 }, + { + "time": 0.8, + "angle": 28.06, + "curve": [ 0.462, 0.11, 1, 1 ] + }, + { + "time": 0.9333, + "angle": 58.68, + "curve": [ 0.5, 0.02, 1, 1 ] + }, + { "time": 1.0666, "angle": 42.45 } + ], + "translate": [ + { "time": 0, "x": 8.11, "y": -2.36 }, + { "time": 0.1333, "x": 10.03, "y": -2.56 }, + { "time": 0.4, "x": 2.76, "y": -2.97 }, + { "time": 0.5333, "x": 2.76, "y": -2.81 }, + { "time": 0.9333, "x": 8.67, "y": -2.54 }, + { "time": 1.0666, "x": 8.11, "y": -2.36 } + ] + }, + "left lower leg": { + "rotate": [ + { "time": 0, "angle": -10.21 }, + { "time": 0.1333, "angle": -55.64 }, + { "time": 0.2666, "angle": -68.12 }, + { "time": 0.5333, "angle": 5.11 }, + { "time": 0.6666, "angle": -28.29 }, + { "time": 0.8, "angle": 4.08 }, + { "time": 0.9333, "angle": 3.53 }, + { "time": 1.0666, "angle": -10.21 } + ] + }, + "left foot": { + "rotate": [ + { "time": 0, "angle": -3.69 }, + { "time": 0.1333, "angle": -10.42 }, + { "time": 0.2666, "angle": -17.14 }, + { "time": 0.4, "angle": -2.83 }, + { "time": 0.5333, "angle": -3.87 }, + { "time": 0.6666, "angle": 2.78 }, + { "time": 0.8, "angle": 1.68 }, + { "time": 0.9333, "angle": -8.54 }, + { "time": 1.0666, "angle": -3.69 } + ] + }, + "right shoulder": { + "rotate": [ + { + "time": 0, + "angle": 20.89, + "curve": [ 0.264, 0, 0.75, 1 ] + }, + { + "time": 0.1333, + "angle": 3.72, + "curve": [ 0.272, 0, 0.841, 1 ] + }, + { "time": 0.6666, "angle": -278.28 }, + { "time": 1.0666, "angle": 20.89 } + ], + "translate": [ + { "time": 0, "x": -7.84, "y": 7.19 }, + { "time": 0.1333, "x": -6.36, "y": 6.42 }, + { "time": 0.6666, "x": -11.07, "y": 5.25 }, + { "time": 1.0666, "x": -7.84, "y": 7.19 } + ] + }, + "right arm": { + "rotate": [ + { + "time": 0, + "angle": -4.02, + "curve": [ 0.267, 0, 0.804, 0.99 ] + }, + { + "time": 0.1333, + "angle": -13.99, + "curve": [ 0.341, 0, 1, 1 ] + }, + { + "time": 0.6666, + "angle": 36.54, + "curve": [ 0.307, 0, 0.787, 0.99 ] + }, + { "time": 1.0666, "angle": -4.02 } + ] + }, + "right hand": { + "rotate": [ + { "time": 0, "angle": 22.92 }, + { "time": 0.4, "angle": -8.97 }, + { "time": 0.6666, "angle": 0.51 }, + { "time": 1.0666, "angle": 22.92 } + ] + }, + "left shoulder": { + "rotate": [ + { "time": 0, "angle": -1.47 }, + { "time": 0.1333, "angle": 13.6 }, + { "time": 0.6666, "angle": 280.74 }, + { "time": 1.0666, "angle": -1.47 } + ], + "translate": [ + { "time": 0, "x": -1.76, "y": 0.56 }, + { "time": 0.6666, "x": -2.47, "y": 8.14 }, + { "time": 1.0666, "x": -1.76, "y": 0.56 } + ] + }, + "left hand": { + "rotate": [ + { + "time": 0, + "angle": 11.58, + "curve": [ 0.169, 0.37, 0.632, 1.55 ] + }, + { + "time": 0.1333, + "angle": 28.13, + "curve": [ 0.692, 0, 0.692, 0.99 ] + }, + { + "time": 0.6666, + "angle": -27.42, + "curve": [ 0.117, 0.41, 0.738, 1.76 ] + }, + { "time": 0.8, "angle": -36.32 }, + { "time": 1.0666, "angle": 11.58 } + ] + }, + "left arm": { + "rotate": [ + { "time": 0, "angle": -8.27 }, + { "time": 0.1333, "angle": 18.43 }, + { "time": 0.6666, "angle": 0.88 }, + { "time": 1.0666, "angle": -8.27 } + ] + }, + "torso": { + "rotate": [ + { "time": 0, "angle": -10.28 }, + { + "time": 0.1333, + "angle": -15.38, + "curve": [ 0.545, 0, 1, 1 ] + }, + { + "time": 0.4, + "angle": -9.78, + "curve": [ 0.58, 0.17, 1, 1 ] + }, + { "time": 0.6666, "angle": -15.75 }, + { "time": 0.9333, "angle": -7.06 }, + { "time": 1.0666, "angle": -10.28 } + ], + "translate": [ + { "time": 0, "x": -3.67, "y": 1.68 }, + { "time": 0.1333, "x": -3.67, "y": 0.68 }, + { "time": 0.4, "x": -3.67, "y": 1.97 }, + { "time": 0.6666, "x": -3.67, "y": -0.14 }, + { "time": 1.0666, "x": -3.67, "y": 1.68 } + ] + }, + "right foot": { + "rotate": [ + { "time": 0, "angle": -5.25 }, + { "time": 0.2666, "angle": -4.08 }, + { "time": 0.4, "angle": -6.45 }, + { "time": 0.5333, "angle": -5.39 }, + { "time": 0.8, "angle": -11.68 }, + { "time": 0.9333, "angle": 0.46 }, + { "time": 1.0666, "angle": -5.25 } + ] + }, + "right lower leg": { + "rotate": [ + { "time": 0, "angle": -3.39 }, + { "time": 0.1333, "angle": -45.53 }, + { "time": 0.2666, "angle": -2.59 }, + { "time": 0.5333, "angle": -19.53 }, + { "time": 0.6666, "angle": -64.8 }, + { + "time": 0.8, + "angle": -82.56, + "curve": [ 0.557, 0.18, 1, 1 ] + }, + { "time": 1.0666, "angle": -3.39 } + ] + }, + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 1.0666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { + "time": 0.1333, + "x": 0, + "y": -7.61, + "curve": [ 0.272, 0.86, 1, 1 ] + }, + { "time": 0.4, "x": 0, "y": 8.7 }, + { "time": 0.5333, "x": 0, "y": -0.41 }, + { + "time": 0.6666, + "x": 0, + "y": -7.05, + "curve": [ 0.235, 0.89, 1, 1 ] + }, + { "time": 0.8, "x": 0, "y": 2.92 }, + { "time": 0.9333, "x": 0, "y": 6.78 }, + { "time": 1.0666, "x": 0, "y": 0 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 3.6 }, + { "time": 0.1333, "angle": 17.49 }, + { "time": 0.2666, "angle": 6.1 }, + { "time": 0.4, "angle": 3.45 }, + { "time": 0.5333, "angle": 5.17 }, + { "time": 0.6666, "angle": 18.36 }, + { "time": 0.8, "angle": 6.09 }, + { "time": 0.9333, "angle": 2.28 }, + { "time": 1.0666, "angle": 3.6 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 3.6, + "curve": [ 0, 0, 0.704, 1.61 ] + }, + { "time": 0.1666, "angle": -0.2 }, + { "time": 0.2666, "angle": 6.1 }, + { "time": 0.4, "angle": 3.45 }, + { + "time": 0.5333, + "angle": 5.17, + "curve": [ 0, 0, 0.704, 1.61 ] + }, + { "time": 0.7, "angle": 1.1 }, + { "time": 0.8, "angle": 6.09 }, + { "time": 0.9333, "angle": 2.28 }, + { "time": 1.0666, "angle": 3.6 } + ] + } + } + }, + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.9333, "angle": 0, "curve": "stepped" }, + { "time": 1.3666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": -11.57, "y": -3 }, + { "time": 0.2333, "x": -16.2, "y": -19.43 }, + { + "time": 0.3333, + "x": 7.66, + "y": -8.48, + "curve": [ 0.057, 0.06, 0.712, 1 ] + }, + { "time": 0.3666, "x": 15.38, "y": 5.01 }, + { "time": 0.4666, "x": -7.84, "y": 57.22 }, + { + "time": 0.6, + "x": -10.81, + "y": 96.34, + "curve": [ 0.241, 0, 1, 1 ] + }, + { "time": 0.7333, "x": -7.01, "y": 54.7 }, + { "time": 0.8, "x": -10.58, "y": 32.2 }, + { "time": 0.9333, "x": -31.99, "y": 0.45 }, + { "time": 1.0666, "x": -12.48, "y": -29.47 }, + { "time": 1.3666, "x": -11.57, "y": -3 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left upper leg": { + "rotate": [ + { "time": 0, "angle": 17.13 }, + { "time": 0.2333, "angle": 44.35 }, + { "time": 0.3333, "angle": 16.46 }, + { "time": 0.4, "angle": -9.88 }, + { "time": 0.4666, "angle": -11.42 }, + { "time": 0.5666, "angle": 23.46 }, + { "time": 0.7666, "angle": 71.82 }, + { "time": 0.9333, "angle": 65.53 }, + { "time": 1.0666, "angle": 51.01 }, + { "time": 1.3666, "angle": 17.13 } + ], + "translate": [ + { "time": 0, "x": -3, "y": -2.25, "curve": "stepped" }, + { "time": 0.9333, "x": -3, "y": -2.25, "curve": "stepped" }, + { "time": 1.3666, "x": -3, "y": -2.25 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left lower leg": { + "rotate": [ + { "time": 0, "angle": -16.25 }, + { "time": 0.2333, "angle": -52.21 }, + { "time": 0.4, "angle": 15.04 }, + { "time": 0.4666, "angle": -8.95 }, + { "time": 0.5666, "angle": -39.53 }, + { "time": 0.7666, "angle": -27.27 }, + { "time": 0.9333, "angle": -3.52 }, + { "time": 1.0666, "angle": -61.92 }, + { "time": 1.3666, "angle": -16.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left foot": { + "rotate": [ + { "time": 0, "angle": 0.33 }, + { "time": 0.2333, "angle": 6.2 }, + { "time": 0.3333, "angle": 14.73 }, + { "time": 0.4, "angle": -15.54 }, + { "time": 0.4333, "angle": -21.2 }, + { "time": 0.5666, "angle": -7.55 }, + { "time": 0.7666, "angle": -0.67 }, + { "time": 0.9333, "angle": -0.58 }, + { "time": 1.0666, "angle": 14.64 }, + { "time": 1.3666, "angle": 0.33 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right upper leg": { + "rotate": [ + { "time": 0, "angle": 25.97 }, + { "time": 0.2333, "angle": 46.43 }, + { "time": 0.3333, "angle": 22.61 }, + { "time": 0.4, "angle": 2.13 }, + { + "time": 0.4666, + "angle": 0.04, + "curve": [ 0, 0, 0.637, 0.98 ] + }, + { "time": 0.6, "angle": 65.55 }, + { "time": 0.7666, "angle": 64.93 }, + { "time": 0.9333, "angle": 41.08 }, + { "time": 1.0666, "angle": 66.25 }, + { "time": 1.3666, "angle": 25.97 } + ], + "translate": [ + { "time": 0, "x": 5.74, "y": 0.61 }, + { "time": 0.2333, "x": 4.79, "y": 1.79 }, + { "time": 0.3333, "x": 6.05, "y": -4.55 }, + { "time": 0.9333, "x": 4.79, "y": 1.79, "curve": "stepped" }, + { "time": 1.0666, "x": 4.79, "y": 1.79 }, + { "time": 1.3666, "x": 5.74, "y": 0.61 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right lower leg": { + "rotate": [ + { "time": 0, "angle": -27.46 }, + { "time": 0.2333, "angle": -64.03 }, + { "time": 0.4, "angle": -48.36 }, + { "time": 0.5666, "angle": -76.86 }, + { "time": 0.7666, "angle": -26.89 }, + { "time": 0.9, "angle": -18.97 }, + { "time": 0.9333, "angle": -14.18 }, + { "time": 1.0666, "angle": -80.45 }, + { "time": 1.3666, "angle": -27.46 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right foot": { + "rotate": [ + { "time": 0, "angle": 1.08 }, + { "time": 0.2333, "angle": 16.02 }, + { "time": 0.3, "angle": 12.94 }, + { "time": 0.3333, "angle": 15.16 }, + { "time": 0.4, "angle": -14.7 }, + { "time": 0.4333, "angle": -12.85 }, + { "time": 0.4666, "angle": -19.18 }, + { "time": 0.5666, "angle": -15.82 }, + { "time": 0.6, "angle": -3.59 }, + { "time": 0.7666, "angle": -3.56 }, + { "time": 0.9333, "angle": 1.86 }, + { "time": 1.0666, "angle": 16.02 }, + { "time": 1.3666, "angle": 1.08 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "torso": { + "rotate": [ + { "time": 0, "angle": -13.35 }, + { "time": 0.2333, "angle": -48.95 }, + { "time": 0.4333, "angle": -35.77 }, + { "time": 0.6, "angle": -4.59 }, + { "time": 0.7666, "angle": 14.61 }, + { "time": 0.9333, "angle": 15.74 }, + { "time": 1.0666, "angle": -32.44 }, + { "time": 1.3666, "angle": -13.35 } + ], + "translate": [ + { "time": 0, "x": -3.67, "y": 1.68, "curve": "stepped" }, + { "time": 0.9333, "x": -3.67, "y": 1.68, "curve": "stepped" }, + { "time": 1.3666, "x": -3.67, "y": 1.68 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 12.78 }, + { "time": 0.2333, "angle": 16.46 }, + { "time": 0.4, "angle": 26.49 }, + { "time": 0.6, "angle": 15.51 }, + { "time": 0.7666, "angle": 1.34 }, + { "time": 0.9333, "angle": 2.35 }, + { "time": 1.0666, "angle": 6.08 }, + { "time": 1.3, "angle": 21.23 }, + { "time": 1.3666, "angle": 12.78 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 5.19 }, + { "time": 0.2333, "angle": 20.27 }, + { "time": 0.4, "angle": 15.27 }, + { "time": 0.6, "angle": -24.69 }, + { "time": 0.7666, "angle": -11.02 }, + { "time": 0.9333, "angle": -24.38 }, + { "time": 1.0666, "angle": 11.99 }, + { "time": 1.3, "angle": 4.86 }, + { "time": 1.3666, "angle": 5.19 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left shoulder": { + "rotate": [ + { + "time": 0, + "angle": 0.05, + "curve": [ 0, 0, 0.62, 1 ] + }, + { + "time": 0.2333, + "angle": 279.66, + "curve": [ 0.218, 0.67, 0.66, 0.99 ] + }, + { + "time": 0.5, + "angle": 62.27, + "curve": [ 0.462, 0, 0.764, 0.58 ] + }, + { "time": 0.9333, "angle": 28.91 }, + { "time": 1.0666, "angle": -8.62 }, + { "time": 1.1666, "angle": -18.43 }, + { "time": 1.3666, "angle": 0.05 } + ], + "translate": [ + { "time": 0, "x": -1.76, "y": 0.56, "curve": "stepped" }, + { "time": 0.9333, "x": -1.76, "y": 0.56, "curve": "stepped" }, + { "time": 1.3666, "x": -1.76, "y": 0.56 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left hand": { + "rotate": [ + { "time": 0, "angle": 11.58, "curve": "stepped" }, + { "time": 0.9333, "angle": 11.58, "curve": "stepped" }, + { "time": 1.3666, "angle": 11.58 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left arm": { + "rotate": [ + { "time": 0, "angle": 0.51 }, + { "time": 0.4333, "angle": 12.82 }, + { "time": 0.6, "angle": 47.55 }, + { "time": 0.9333, "angle": 12.82 }, + { "time": 1.1666, "angle": -6.5 }, + { "time": 1.3666, "angle": 0.51 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right shoulder": { + "rotate": [ + { + "time": 0, + "angle": 43.82, + "curve": [ 0, 0, 0.62, 1 ] + }, + { + "time": 0.2333, + "angle": -8.74, + "curve": [ 0.304, 0.58, 0.709, 0.97 ] + }, + { + "time": 0.5333, + "angle": -208.02, + "curve": [ 0.462, 0, 0.764, 0.58 ] + }, + { "time": 0.9333, "angle": -246.72 }, + { "time": 1.0666, "angle": -307.13 }, + { "time": 1.1666, "angle": 37.15 }, + { "time": 1.3666, "angle": 43.82 } + ], + "translate": [ + { "time": 0, "x": -7.84, "y": 7.19, "curve": "stepped" }, + { "time": 0.9333, "x": -7.84, "y": 7.19, "curve": "stepped" }, + { "time": 1.3666, "x": -7.84, "y": 7.19 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right arm": { + "rotate": [ + { "time": 0, "angle": -4.02 }, + { "time": 0.6, "angle": 17.5 }, + { "time": 0.9333, "angle": -4.02 }, + { "time": 1.1666, "angle": -16.72 }, + { "time": 1.3666, "angle": -4.02 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right hand": { + "rotate": [ + { "time": 0, "angle": 22.92, "curve": "stepped" }, + { "time": 0.9333, "angle": 22.92, "curve": "stepped" }, + { "time": 1.3666, "angle": 22.92 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "root": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.4333, "angle": -14.52 }, + { "time": 0.8, "angle": 9.86 }, + { "time": 1.3666, "angle": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/spineboy.png b/examples/example 12 - Spine/data/spineboy.png index b8b493d..ab85747 100755 --- a/examples/example 12 - Spine/data/spineboy.png +++ b/examples/example 12 - Spine/data/spineboy.png Binary files differ diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/dragonBones.png b/examples/example 12 - Spine/data/dragonBones.png deleted file mode 100644 index 12cb92e..0000000 --- a/examples/example 12 - Spine/data/dragonBones.png +++ /dev/null Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBonesData.json b/examples/example 12 - Spine/data/dragonBonesData.json deleted file mode 100644 index c65508a..0000000 --- a/examples/example 12 - Spine/data/dragonBonesData.json +++ /dev/null @@ -1,779 +0,0 @@ -{ -"bones": [ - { "name": "root", "y": -176.12 }, - { "name": "COG", "parent": "root", "y": 176.12 }, - { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, - { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, - { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, - { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, - { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, - { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, - { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, - { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, - { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, - { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, - { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, - { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, - { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, - { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, - { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, - { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, - { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, - { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, - { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, - { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, - { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, - { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, - { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, - { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, - { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, - { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, - { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, - { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, - { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, - { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, - { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } -], -"slots": [ - { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, - { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, - { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, - { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, - { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, - { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, - { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, - { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, - { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, - { "name": "back", "bone": "back", "attachment": "back" }, - { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, - { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, - { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, - { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, - { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, - { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, - { "name": "chest", "bone": "chest", "attachment": "chest" }, - { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, - { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, - { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, - { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, - { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, - { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, - { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, - { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, - { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, - { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, - { "name": "chin", "bone": "chin", "attachment": "chin" }, - { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, - { "name": "head", "bone": "head", "attachment": "head" } -], -"skins": { - "default": { - "L_front_leg": { - "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } - }, - "L_front_thigh": { - "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } - }, - "L_front_toe1": { - "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } - }, - "L_front_toe2": { - "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } - }, - "L_front_toe3": { - "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } - }, - "L_front_toe4": { - "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } - }, - "L_rear_leg": { - "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } - }, - "L_rear_thigh": { - "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } - }, - "L_wing": { - "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, - "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, - "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, - "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, - "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, - "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, - "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, - "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, - "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } - }, - "R_front_leg": { - "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } - }, - "R_front_thigh": { - "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } - }, - "R_front_toe1": { - "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } - }, - "R_front_toe2": { - "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } - }, - "R_front_toe3": { - "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } - }, - "R_rear_leg": { - "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } - }, - "R_rear_thigh": { - "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } - }, - "R_rear_toe1": { - "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } - }, - "R_rear_toe2": { - "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } - }, - "R_rear_toe3": { - "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } - }, - "R_wing": { - "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, - "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, - "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, - "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, - "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, - "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, - "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, - "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, - "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } - }, - "back": { - "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } - }, - "chest": { - "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } - }, - "chin": { - "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } - }, - "head": { - "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } - }, - "tail1": { - "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } - }, - "tail2": { - "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } - }, - "tail3": { - "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } - }, - "tail4": { - "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } - }, - "tail5": { - "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } - }, - "tail6": { - "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } - } - } -}, -"animations": { - "flying": { - "bones": { - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.39 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.8333, "angle": 7 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -8.18 }, - { "time": 0.3333, "angle": -23.16 }, - { "time": 0.5, "angle": -18.01 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chest": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -2.42 }, - { "time": 0.3333, "angle": -26.2 }, - { "time": 0.5, "angle": -29.65 }, - { "time": 0.6666, "angle": -23.15 }, - { "time": 0.8333, "angle": -55.46 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_thigh": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -1.12 }, - { "time": 0.3333, "angle": 10.48 }, - { "time": 0.5, "angle": 7.89 }, - { "time": 0.8333, "angle": -10.38 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 8.24 }, - { "time": 0.3333, "angle": 15.21 }, - { "time": 0.5, "angle": 14.84 }, - { "time": 0.8333, "angle": -18.9 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.46 }, - { "time": 0.3333, "angle": 22.15 }, - { "time": 0.5, "angle": 22.76 }, - { "time": 0.8333, "angle": -4.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail5": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 7.4 }, - { "time": 0.3333, "angle": 28.5 }, - { "time": 0.5, "angle": 21.33 }, - { "time": 0.8333, "angle": -1.27 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail6": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 45.99 }, - { "time": 0.4, "angle": 43.53 }, - { "time": 0.5, "angle": 61.79 }, - { "time": 0.8333, "angle": 13.28 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -14.21 }, - { "time": 0.5, "angle": 47.17 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -36.06 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -20.32 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -18.71 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.408, 1.36, 0.675, 1.43 ] - }, - { "time": 0.5, "angle": 1.03 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chin": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.416, 1.15, 0.494, 1.27 ] - }, - { "time": 0.3333, "angle": -5.15 }, - { "time": 0.5, "angle": 9.79 }, - { "time": 0.6666, "angle": 18.94 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -19.18 }, - { "time": 0.3333, "angle": -32.02 }, - { "time": 0.5, "angle": -19.62 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -12.96 }, - { "time": 0.5, "angle": 16.2 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 37.77 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -16.08 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.33, "y": 1.029 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 26.51 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.239, "y": 0.993 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 16.99 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.402, "y": 1.007 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 26.07 }, - { "time": 0.5, "angle": -21.6 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 29.23 }, - { "time": 0.5, "angle": 34.83 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.412, "y": 1 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 24.89 }, - { "time": 0.5, "angle": 23.16 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.407, "y": 1.057 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 11.01 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.329, "y": 1.181 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 25.19 }, - { "time": 0.6666, "angle": -15.65 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "COG": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.456, 0.2, 0.422, 1.06 ] - }, - { "time": 0.3333, "angle": 23.93 }, - { - "time": 0.6666, - "angle": 337.8, - "curve": [ 0.41, 0, 0.887, 0.75 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.33, 1, 0.816, 1.33 ] - }, - { - "time": 0.5, - "x": 0, - "y": 113.01, - "curve": [ 0.396, 0, 0.709, 2.03 ] - }, - { "time": 1, "x": 0, "y": 0 } - ] - } - }, - "slots": { - "R_wing": { - "attachment": [ - { "time": 0, "name": "R_wing01" }, - { "time": 0.0666, "name": "R_wing02" }, - { "time": 0.1333, "name": "R_wing03" }, - { "time": 0.2, "name": "R_wing04" }, - { "time": 0.2666, "name": "R_wing05" }, - { "time": 0.3333, "name": "R_wing06" }, - { "time": 0.4, "name": "R_wing07" }, - { "time": 0.4666, "name": "R_wing08" }, - { "time": 0.5333, "name": "R_wing09" }, - { "time": 0.6, "name": "R_wing01" }, - { "time": 0.7333, "name": "R_wing02" }, - { "time": 0.7666, "name": "R_wing02" }, - { "time": 0.8, "name": "R_wing03" }, - { "time": 0.8333, "name": "R_wing04" }, - { "time": 0.8666, "name": "R_wing05" }, - { "time": 0.9, "name": "R_wing06" }, - { "time": 0.9333, "name": "R_wing07" }, - { "time": 0.9666, "name": "R_wing08" }, - { "time": 1, "name": "R_wing09" } - ] - }, - "L_wing": { - "attachment": [ - { "time": 0, "name": "L_wing01" }, - { "time": 0.0666, "name": "L_wing02" }, - { "time": 0.1333, "name": "L_wing03" }, - { "time": 0.2, "name": "L_wing04" }, - { "time": 0.2666, "name": "L_wing05" }, - { "time": 0.3333, "name": "L_wing06" }, - { "time": 0.4, "name": "L_wing07" }, - { "time": 0.4666, "name": "L_wing08" }, - { "time": 0.5333, "name": "L_wing09" }, - { "time": 0.6, "name": "L_wing01" }, - { "time": 0.7333, "name": "L_wing02" }, - { "time": 0.8, "name": "L_wing03" }, - { "time": 0.8333, "name": "L_wing04" }, - { "time": 0.8666, "name": "L_wing05" }, - { "time": 0.9, "name": "L_wing06" }, - { "time": 0.9333, "name": "L_wing07" }, - { "time": 0.9666, "name": "L_wing08" }, - { "time": 1, "name": "L_wing09" } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/goblins.atlas b/examples/example 12 - Spine/data/goblins.atlas new file mode 100644 index 0000000..c9cb702 --- /dev/null +++ b/examples/example 12 - Spine/data/goblins.atlas @@ -0,0 +1,293 @@ + +goblins.png +size: 228,523 +format: RGBA8888 +filter: Linear,Linear +repeat: none +dagger + rotate: false + xy: 2, 43 + size: 26, 108 + orig: 26, 108 + offset: 0, 0 + index: -1 +goblin/eyes-closed + rotate: false + xy: 166, 237 + size: 34, 12 + orig: 34, 12 + offset: 0, 0 + index: -1 +goblin/head + rotate: false + xy: 26, 372 + size: 103, 66 + orig: 103, 66 + offset: 0, 0 + index: -1 +goblin/left-arm + rotate: false + xy: 166, 251 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblin/left-foot + rotate: true + xy: 195, 358 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblin/left-hand + rotate: false + xy: 49, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/left-lower-leg + rotate: false + xy: 30, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblin/left-shoulder + rotate: true + xy: 169, 288 + size: 29, 44 + orig: 29, 44 + offset: 0, 0 + index: -1 +goblin/left-upper-leg + rotate: false + xy: 134, 305 + size: 33, 73 + orig: 33, 73 + offset: 0, 0 + index: -1 +goblin/neck + rotate: false + xy: 87, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/pelvis + rotate: false + xy: 131, 380 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblin/right-arm + rotate: false + xy: 135, 69 + size: 23, 50 + orig: 23, 50 + offset: 0, 0 + index: -1 +goblin/right-foot + rotate: true + xy: 104, 157 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblin/right-hand + rotate: false + xy: 190, 319 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblin/right-lower-leg + rotate: false + xy: 96, 294 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblin/right-shoulder + rotate: true + xy: 2, 2 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblin/right-upper-leg + rotate: false + xy: 139, 162 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblin/torso + rotate: false + xy: 131, 425 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblin/undie-straps + rotate: true + xy: 201, 466 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblin/undies + rotate: false + xy: 190, 51 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +goblingirl/eyes-closed + rotate: true + xy: 201, 427 + size: 37, 21 + orig: 37, 21 + offset: 0, 0 + index: -1 +goblingirl/head + rotate: false + xy: 26, 440 + size: 103, 81 + orig: 103, 81 + offset: 0, 0 + index: -1 +goblingirl/left-arm + rotate: true + xy: 175, 198 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblingirl/left-foot + rotate: true + xy: 133, 227 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblingirl/left-hand + rotate: true + xy: 168, 2 + size: 35, 40 + orig: 35, 40 + offset: 0, 0 + index: -1 +goblingirl/left-lower-leg + rotate: false + xy: 65, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/left-shoulder + rotate: true + xy: 135, 39 + size: 28, 46 + orig: 28, 46 + offset: 0, 0 + index: -1 +goblingirl/left-upper-leg + rotate: false + xy: 98, 222 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/neck + rotate: true + xy: 125, 2 + size: 35, 41 + orig: 35, 41 + offset: 0, 0 + index: -1 +goblingirl/pelvis + rotate: false + xy: 30, 117 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblingirl/right-arm + rotate: false + xy: 160, 69 + size: 28, 50 + orig: 28, 50 + offset: 0, 0 + index: -1 +goblingirl/right-foot + rotate: true + xy: 100, 56 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblingirl/right-hand + rotate: false + xy: 190, 82 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblingirl/right-lower-leg + rotate: true + xy: 26, 162 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblingirl/right-shoulder + rotate: true + xy: 159, 121 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblingirl/right-upper-leg + rotate: true + xy: 94, 121 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblingirl/torso + rotate: false + xy: 26, 274 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblingirl/undie-straps + rotate: true + xy: 169, 323 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblingirl/undies + rotate: false + xy: 175, 167 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +shield + rotate: false + xy: 26, 200 + size: 70, 72 + orig: 70, 72 + offset: 0, 0 + index: -1 +spear + rotate: false + xy: 2, 153 + size: 22, 368 + orig: 22, 368 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/goblins.json b/examples/example 12 - Spine/data/goblins.json index f87ec19..5d83ae1 100644 --- a/examples/example 12 - Spine/data/goblins.json +++ b/examples/example 12 - Spine/data/goblins.json @@ -1,332 +1 @@ -{"frames": { - -"dagger.png": -{ - "frame": {"x":2,"y":372,"w":26,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":26,"h":108}, - "sourceSize": {"w":26,"h":108} -}, -"goblin/eyes-closed.png": -{ - "frame": {"x":64,"y":354,"w":34,"h":12}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":12}, - "sourceSize": {"w":34,"h":12} -}, -"goblin/head.png": -{ - "frame": {"x":59,"y":83,"w":103,"h":64}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":103,"h":64}, - "sourceSize": {"w":103,"h":66} -}, -"goblin/left-arm.png": -{ - "frame": {"x":30,"y":445,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblin/left-foot.png": -{ - "frame": {"x":59,"y":182,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblin/left-hand.png": -{ - "frame": {"x":107,"y":436,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/left-lower-leg.png": -{ - "frame": {"x":26,"y":74,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblin/left-shoulder.png": -{ - "frame": {"x":26,"y":146,"w":29,"h":44}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":44}, - "sourceSize": {"w":29,"h":44} -}, -"goblin/left-upper-leg.png": -{ - "frame": {"x":30,"y":370,"w":33,"h":73}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":73}, - "sourceSize": {"w":33,"h":73} -}, -"goblin/neck.png": -{ - "frame": {"x":146,"y":309,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/pelvis.png": -{ - "frame": {"x":163,"y":233,"w":62,"h":43}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":62,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblin/right-arm.png": -{ - "frame": {"x":30,"y":240,"w":23,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":23,"h":50}, - "sourceSize": {"w":23,"h":50} -}, -"goblin/right-foot.png": -{ - "frame": {"x":164,"y":198,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblin/right-hand.png": -{ - "frame": {"x":154,"y":462,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblin/right-lower-leg.png": -{ - "frame": {"x":26,"y":292,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblin/right-shoulder.png": -{ - "frame": {"x":105,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblin/right-upper-leg.png": -{ - "frame": {"x":136,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblin/torso.png": -{ - "frame": {"x":164,"y":2,"w":68,"h":96}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblin/undie-straps.png": -{ - "frame": {"x":59,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblin/undies.png": -{ - "frame": {"x":116,"y":479,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"goblingirl/eyes-closed.png": -{ - "frame": {"x":100,"y":419,"w":37,"h":15}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":6,"w":37,"h":15}, - "sourceSize": {"w":37,"h":21} -}, -"goblingirl/head.png": -{ - "frame": {"x":59,"y":2,"w":103,"h":79}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":79}, - "sourceSize": {"w":103,"h":81} -}, -"goblingirl/left-arm.png": -{ - "frame": {"x":124,"y":227,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblingirl/left-foot.png": -{ - "frame": {"x":59,"y":149,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblingirl/left-hand.png": -{ - "frame": {"x":55,"y":250,"w":35,"h":40}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":40}, - "sourceSize": {"w":35,"h":40} -}, -"goblingirl/left-lower-leg.png": -{ - "frame": {"x":26,"y":2,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/left-shoulder.png": -{ - "frame": {"x":26,"y":192,"w":28,"h":46}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":28,"h":46}, - "sourceSize": {"w":28,"h":46} -}, -"goblingirl/left-upper-leg.png": -{ - "frame": {"x":65,"y":368,"w":33,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/neck.png": -{ - "frame": {"x":145,"y":419,"w":33,"h":41}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":41}, - "sourceSize": {"w":35,"h":41} -}, -"goblingirl/pelvis.png": -{ - "frame": {"x":92,"y":264,"w":60,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":60,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblingirl/right-arm.png": -{ - "frame": {"x":232,"y":100,"w":22,"h":50}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":3,"y":0,"w":22,"h":50}, - "sourceSize": {"w":28,"h":50} -}, -"goblingirl/right-foot.png": -{ - "frame": {"x":59,"y":215,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblingirl/right-hand.png": -{ - "frame": {"x":69,"y":440,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblingirl/right-lower-leg.png": -{ - "frame": {"x":126,"y":149,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblingirl/right-shoulder.png": -{ - "frame": {"x":64,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblingirl/right-upper-leg.png": -{ - "frame": {"x":100,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblingirl/torso.png": -{ - "frame": {"x":164,"y":100,"w":66,"h":96}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":66,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblingirl/undie-straps.png": -{ - "frame": {"x":2,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblingirl/undies.png": -{ - "frame": {"x":154,"y":278,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"spear.png": -{ - "frame": {"x":2,"y":2,"w":22,"h":368}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":22,"h":368}, - "sourceSize": {"w":22,"h":368} -}}, -"meta": { - "app": "http://www.codeandweb.com/texturepacker ", - "version": "1.0", - "image": "goblins.png", - "format": "RGBA8888", - "size": {"w":256,"h":512}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:f89858b99c6b15e23d39806c4170313a:1/1$" -} -} +{"skeleton":{"hash":"BMzsp4a1APif5tjCQwomTTo3Ino","spine":"2.1.05","width":233.95,"height":354.87},"bones":[{"name":"root"},{"name":"hip","parent":"root","x":0.64,"y":114.41},{"name":"left upper leg","parent":"hip","length":50.39,"x":14.45,"y":2.81,"rotation":-89.09},{"name":"pelvis","parent":"hip","x":1.41,"y":-6.57},{"name":"right upper leg","parent":"hip","length":42.45,"x":-20.07,"y":-6.83,"rotation":-97.49},{"name":"torso","parent":"hip","length":85.82,"x":-6.42,"y":1.97,"rotation":93.92},{"name":"left lower leg","parent":"left upper leg","length":49.89,"x":56.34,"y":0.98,"rotation":-16.65},{"name":"left shoulder","parent":"torso","length":35.43,"x":74.04,"y":-20.38,"rotation":-156.96},{"name":"neck","parent":"torso","length":18.38,"x":81.67,"y":-6.34,"rotation":-1.51},{"name":"right lower leg","parent":"right upper leg","length":58.52,"x":42.99,"y":-0.61,"rotation":-14.34},{"name":"right shoulder","parent":"torso","length":37.24,"x":76.02,"y":18.14,"rotation":133.88},{"name":"head","parent":"neck","length":68.28,"x":20.93,"y":11.59,"rotation":-13.92},{"name":"left arm","parent":"left shoulder","length":35.62,"x":37.85,"y":-2.34,"rotation":28.16},{"name":"left foot","parent":"left lower leg","length":46.5,"x":58.94,"y":-7.61,"rotation":102.43},{"name":"right arm","parent":"right shoulder","length":36.74,"x":37.6,"y":0.31,"rotation":36.32},{"name":"right foot","parent":"right lower leg","length":45.45,"x":64.88,"y":0.04,"rotation":110.3},{"name":"left hand","parent":"left arm","length":11.52,"x":35.62,"y":0.07,"rotation":2.7},{"name":"right hand","parent":"right arm","length":15.32,"x":36.9,"y":0.34,"rotation":2.35}],"slots":[{"name":"left shoulder","bone":"left shoulder","attachment":"left shoulder"},{"name":"left arm","bone":"left arm","attachment":"left arm"},{"name":"left hand item","bone":"left hand","attachment":"spear"},{"name":"left hand","bone":"left hand","attachment":"left hand"},{"name":"left foot","bone":"left foot","attachment":"left foot"},{"name":"left lower leg","bone":"left lower leg","attachment":"left lower leg"},{"name":"left upper leg","bone":"left upper leg","attachment":"left upper leg"},{"name":"neck","bone":"neck","attachment":"neck"},{"name":"torso","bone":"torso","attachment":"torso"},{"name":"pelvis","bone":"pelvis","attachment":"pelvis"},{"name":"right foot","bone":"right foot","attachment":"right foot"},{"name":"right lower leg","bone":"right lower leg","attachment":"right lower leg"},{"name":"undie straps","bone":"pelvis","attachment":"undie straps"},{"name":"undies","bone":"pelvis","attachment":"undies"},{"name":"right upper leg","bone":"right upper leg","attachment":"right upper leg"},{"name":"head","bone":"head","attachment":"head"},{"name":"eyes","bone":"head"},{"name":"right shoulder","bone":"right shoulder","attachment":"right shoulder"},{"name":"right arm","bone":"right arm","attachment":"right arm"},{"name":"right hand item","bone":"right hand"},{"name":"right hand","bone":"right hand","attachment":"right hand"},{"name":"right hand item top","bone":"right hand","attachment":"shield"}],"skins":{"default":{"left hand item":{"dagger":{"x":7.88,"y":-23.45,"rotation":10.47,"width":26,"height":108},"spear":{"x":-4.55,"y":39.2,"rotation":13.04,"width":22,"height":368}},"right hand item":{"dagger":{"x":6.51,"y":-24.15,"rotation":-8.06,"width":26,"height":108}},"right hand item top":{"shield":{"rotation":93.49,"width":70,"height":72}}},"goblin":{"eyes":{"eyes closed":{"name":"goblin/eyes-closed","x":32.21,"y":-21.27,"rotation":-88.92,"width":34,"height":12}},"head":{"head":{"name":"goblin/head","x":25.73,"y":2.33,"rotation":-92.29,"width":103,"height":66}},"left arm":{"left arm":{"name":"goblin/left-arm","x":16.7,"y":-1.69,"scaleX":1.057,"scaleY":1.057,"rotation":33.84,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblin/left-foot","x":24.85,"y":8.74,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblin/left-hand","x":3.47,"y":3.41,"scaleX":0.892,"scaleY":0.892,"rotation":31.14,"width":36,"height":41}},"left lower leg":{"left lower leg":{"name":"goblin/left-lower-leg","x":23.58,"y":-2.06,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblin/left-shoulder","x":15.56,"y":-2.26,"rotation":62.01,"width":29,"height":44}},"left upper leg":{"left upper leg":{"name":"goblin/left-upper-leg","x":29.68,"y":-3.87,"rotation":89.09,"width":33,"height":73}},"neck":{"neck":{"name":"goblin/neck","x":10.1,"y":0.42,"rotation":-93.69,"width":36,"height":41}},"pelvis":{"pelvis":{"name":"goblin/pelvis","x":-5.61,"y":0.76,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblin/right-arm","x":16.44,"y":-1.04,"rotation":94.32,"width":23,"height":50}},"right foot":{"right foot":{"name":"goblin/right-foot","x":23.56,"y":9.8,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblin/right-hand","x":7.88,"y":2.78,"rotation":91.96,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblin/right-lower-leg","x":25.68,"y":-3.15,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblin/right-shoulder","x":15.68,"y":-1.03,"rotation":130.65,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblin/right-upper-leg","x":20.35,"y":1.47,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblin/torso","x":38.09,"y":-3.87,"rotation":-94.95,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblin/undie-straps","x":-3.87,"y":13.1,"scaleX":1.089,"width":55,"height":19}},"undies":{"undies":{"name":"goblin/undies","x":6.3,"y":0.12,"rotation":0.91,"width":36,"height":29}}},"goblingirl":{"eyes":{"eyes closed":{"name":"goblingirl/eyes-closed","x":28,"y":-25.54,"rotation":-87.04,"width":37,"height":21}},"head":{"head":{"name":"goblingirl/head","x":27.71,"y":-4.32,"rotation":-85.58,"width":103,"height":81}},"left arm":{"left arm":{"name":"goblingirl/left-arm","x":19.64,"y":-2.42,"rotation":33.05,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblingirl/left-foot","x":25.17,"y":7.92,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblingirl/left-hand","x":4.34,"y":2.39,"scaleX":0.896,"scaleY":0.896,"rotation":30.34,"width":35,"height":40}},"left lower leg":{"left lower leg":{"name":"goblingirl/left-lower-leg","x":25.02,"y":-0.6,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblingirl/left-shoulder","x":19.8,"y":-0.42,"rotation":61.21,"width":28,"height":46}},"left upper leg":{"left upper leg":{"name":"goblingirl/left-upper-leg","x":30.21,"y":-2.95,"rotation":89.09,"width":33,"height":70}},"neck":{"neck":{"name":"goblingirl/neck","x":6.16,"y":-3.14,"rotation":-98.86,"width":35,"height":41}},"pelvis":{"pelvis":{"name":"goblingirl/pelvis","x":-3.87,"y":3.18,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblingirl/right-arm","x":16.85,"y":-0.66,"rotation":93.52,"width":28,"height":50}},"right foot":{"right foot":{"name":"goblingirl/right-foot","x":23.46,"y":9.66,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblingirl/right-hand","x":7.21,"y":3.43,"rotation":91.16,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblingirl/right-lower-leg","x":26.15,"y":-3.27,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblingirl/right-shoulder","x":14.46,"y":0.45,"rotation":129.85,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblingirl/right-upper-leg","x":19.69,"y":2.13,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblingirl/torso","x":36.28,"y":-5.14,"rotation":-95.74,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblingirl/undie-straps","x":-1.51,"y":14.18,"width":55,"height":19}},"undies":{"undies":{"name":"goblingirl/undies","x":5.4,"y":1.7,"width":36,"height":29}}}},"animations":{"walk":{"slots":{"eyes":{"attachment":[{"time":0.7,"name":"eyes closed"},{"time":0.8,"name":null}]}},"bones":{"left upper leg":{"rotate":[{"time":0,"angle":-26.55},{"time":0.1333,"angle":-8.78},{"time":0.2333,"angle":9.51},{"time":0.3666,"angle":30.74},{"time":0.5,"angle":25.33},{"time":0.6333,"angle":26.11},{"time":0.7333,"angle":-7.7},{"time":0.8666,"angle":-21.19},{"time":1,"angle":-26.55}],"translate":[{"time":0,"x":-1.32,"y":1.7},{"time":0.3666,"x":-0.06,"y":2.42},{"time":1,"x":-1.32,"y":1.7}]},"right upper leg":{"rotate":[{"time":0,"angle":42.45},{"time":0.1333,"angle":52.1},{"time":0.2333,"angle":8.53},{"time":0.5,"angle":-16.93},{"time":0.6333,"angle":1.89},{"time":0.7333,"angle":28.06,"curve":[0.462,0.11,1,1]},{"time":0.8666,"angle":58.68,"curve":[0.5,0.02,1,1]},{"time":1,"angle":42.45}],"translate":[{"time":0,"x":6.23,"y":0},{"time":0.2333,"x":2.14,"y":2.4},{"time":0.5,"x":2.44,"y":4.8},{"time":1,"x":6.23,"y":0}]},"left lower leg":{"rotate":[{"time":0,"angle":-22.98},{"time":0.1333,"angle":-63.5},{"time":0.2333,"angle":-73.76},{"time":0.5,"angle":5.11},{"time":0.6333,"angle":-28.29},{"time":0.7333,"angle":4.08},{"time":0.8666,"angle":3.53},{"time":1,"angle":-22.98}],"translate":[{"time":0,"x":0,"y":0},{"time":0.2333,"x":2.55,"y":-0.47},{"time":0.5,"x":0,"y":0,"curve":"stepped"},{"time":1,"x":0,"y":0}]},"left foot":{"rotate":[{"time":0,"angle":-3.69},{"time":0.1333,"angle":-10.42},{"time":0.2333,"angle":-5.01},{"time":0.3666,"angle":3.87},{"time":0.5,"angle":-3.87},{"time":0.6333,"angle":2.78},{"time":0.7333,"angle":1.68},{"time":0.8666,"angle":-8.54},{"time":1,"angle":-3.69}]},"right shoulder":{"rotate":[{"time":0,"angle":5.29,"curve":[0.264,0,0.75,1]},{"time":0.6333,"angle":6.65},{"time":1,"angle":5.29}]},"right arm":{"rotate":[{"time":0,"angle":-4.02,"curve":[0.267,0,0.804,0.99]},{"time":0.6333,"angle":19.78,"curve":[0.307,0,0.787,0.99]},{"time":1,"angle":-4.02}]},"right hand":{"rotate":[{"time":0,"angle":8.98},{"time":0.6333,"angle":0.51},{"time":1,"angle":8.98}]},"left shoulder":{"rotate":[{"time":0,"angle":6.25,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":-11.78,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":6.25}],"translate":[{"time":0,"x":1.15,"y":0.23}]},"left hand":{"rotate":[{"time":0,"angle":-21.23,"curve":[0.295,0,0.755,0.98]},{"time":0.5,"angle":-27.28,"curve":[0.241,0,0.75,0.97]},{"time":1,"angle":-21.23}]},"left arm":{"rotate":[{"time":0,"angle":28.37,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":60.09,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":28.37}]},"torso":{"rotate":[{"time":0,"angle":-10.28},{"time":0.1333,"angle":-15.38,"curve":[0.545,0,0.818,1]},{"time":0.3666,"angle":-9.78,"curve":[0.58,0.17,0.669,0.99]},{"time":0.6333,"angle":-15.75,"curve":[0.235,0.01,0.795,1]},{"time":0.8666,"angle":-7.06,"curve":[0.209,0,0.816,0.98]},{"time":1,"angle":-10.28}],"translate":[{"time":0,"x":-1.29,"y":1.68}]},"right foot":{"rotate":[{"time":0,"angle":-5.25},{"time":0.2333,"angle":-1.91},{"time":0.3666,"angle":-6.45},{"time":0.5,"angle":-5.39},{"time":0.7333,"angle":-11.68},{"time":0.8666,"angle":0.46},{"time":1,"angle":-5.25}]},"right lower leg":{"rotate":[{"time":0,"angle":-3.39,"curve":[0.316,0.01,0.741,0.98]},{"time":0.1333,"angle":-45.53,"curve":[0.229,0,0.738,0.97]},{"time":0.2333,"angle":-4.83},{"time":0.5,"angle":-19.53},{"time":0.6333,"angle":-64.8},{"time":0.7333,"angle":-82.56,"curve":[0.557,0.18,1,1]},{"time":1,"angle":-3.39}],"translate":[{"time":0,"x":0,"y":0,"curve":"stepped"},{"time":0.5,"x":0,"y":0},{"time":0.6333,"x":2.18,"y":0.21},{"time":1,"x":0,"y":0}]},"hip":{"rotate":[{"time":0,"angle":0,"curve":"stepped"},{"time":1,"angle":0}],"translate":[{"time":0,"x":0,"y":-4.16},{"time":0.1333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.3666,"x":0,"y":6.78},{"time":0.5,"x":0,"y":-6.13},{"time":0.6333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.8666,"x":0,"y":6.78},{"time":1,"x":0,"y":-4.16}]},"neck":{"rotate":[{"time":0,"angle":3.6},{"time":0.1333,"angle":17.49},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17},{"time":0.6333,"angle":18.36},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]},"head":{"rotate":[{"time":0,"angle":3.6,"curve":[0,0,0.704,1.17]},{"time":0.1333,"angle":-0.2},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17,"curve":[0,0,0.704,1.61]},{"time":0.6666,"angle":1.1},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]}}}}} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/goblins.png b/examples/example 12 - Spine/data/goblins.png index 5c26ca0..f2cdf16 100644 --- a/examples/example 12 - Spine/data/goblins.png +++ b/examples/example 12 - Spine/data/goblins.png Binary files differ diff --git a/examples/example 12 - Spine/data/goblinsSpineData.json b/examples/example 12 - Spine/data/goblinsSpineData.json deleted file mode 100644 index 8d63c62..0000000 --- a/examples/example 12 - Spine/data/goblinsSpineData.json +++ /dev/null @@ -1,502 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, - { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, - { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 }, - { "name": "right upper leg", "parent": "hip", "length": 42.45, "x": -20.07, "y": -6.83, "rotation": -97.49 }, - { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 93.92 }, - { "name": "left lower leg", "parent": "left upper leg", "length": 49.89, "x": 56.34, "y": 0.98, "rotation": -16.65 }, - { "name": "left shoulder", "parent": "torso", "length": 35.43, "x": 74.04, "y": -20.38, "rotation": -156.96 }, - { "name": "neck", "parent": "torso", "length": 18.38, "x": 81.67, "y": -6.34, "rotation": -1.51 }, - { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 42.99, "y": -0.61, "rotation": -14.34 }, - { "name": "right shoulder", "parent": "torso", "length": 37.24, "x": 76.02, "y": 18.14, "rotation": 133.88 }, - { "name": "head", "parent": "neck", "length": 68.28, "x": 20.93, "y": 11.59, "rotation": -13.92 }, - { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 37.85, "y": -2.34, "rotation": 28.16 }, - { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 58.94, "y": -7.61, "rotation": 102.43 }, - { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 37.6, "y": 0.31, "rotation": 36.32 }, - { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, - { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, - { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 } -], -"slots": [ - { "name": "left shoulder", "bone": "left shoulder", "attachment": "left shoulder" }, - { "name": "left arm", "bone": "left arm", "attachment": "left arm" }, - { "name": "left hand item", "bone": "left hand", "attachment": "spear" }, - { "name": "left hand", "bone": "left hand", "attachment": "left hand" }, - { "name": "left foot", "bone": "left foot", "attachment": "left foot" }, - { "name": "left lower leg", "bone": "left lower leg", "attachment": "left lower leg" }, - { "name": "left upper leg", "bone": "left upper leg", "attachment": "left upper leg" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "torso", "bone": "torso", "attachment": "torso" }, - { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, - { "name": "right foot", "bone": "right foot", "attachment": "right foot" }, - { "name": "right lower leg", "bone": "right lower leg", "attachment": "right lower leg" }, - { "name": "undie straps", "bone": "pelvis", "attachment": "undie straps" }, - { "name": "undies", "bone": "pelvis", "attachment": "undies" }, - { "name": "right upper leg", "bone": "right upper leg", "attachment": "right upper leg" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "eyes", "bone": "head" }, - { "name": "right shoulder", "bone": "right shoulder", "attachment": "right shoulder" }, - { "name": "right arm", "bone": "right arm", "attachment": "right arm" }, - { "name": "right hand item", "bone": "right hand", "attachment": "dagger" }, - { "name": "right hand", "bone": "right hand", "attachment": "right hand" } -], -"skins": { - "default": { - "left hand item": { - "dagger": { "x": 7.88, "y": -23.45, "rotation": 10.47, "width": 26, "height": 108 }, - "spear": { "x": -4.55, "y": 39.2, "rotation": 13.04, "width": 22, "height": 368 } - }, - "right hand item": { - "dagger": { "x": 6.51, "y": -24.15, "rotation": -8.06, "width": 26, "height": 108 } - } - }, - "goblin": { - "eyes": { - "eyes closed": { "name": "goblin/eyes-closed", "x": 32.21, "y": -21.27, "rotation": -88.92, "width": 34, "height": 12 } - }, - "head": { - "head": { "name": "goblin/head", "x": 25.73, "y": 2.33, "rotation": -92.29, "width": 103, "height": 66 } - }, - "left arm": { - "left arm": { - "name": "goblin/left-arm", - "x": 16.7, - "y": -1.69, - "scaleX": 1.057, - "scaleY": 1.057, - "rotation": 33.84, - "width": 37, - "height": 35 - } - }, - "left foot": { - "left foot": { "name": "goblin/left-foot", "x": 24.85, "y": 8.74, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblin/left-hand", - "x": 3.47, - "y": 3.41, - "scaleX": 0.892, - "scaleY": 0.892, - "rotation": 31.14, - "width": 36, - "height": 41 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblin/left-lower-leg", "x": 23.58, "y": -2.06, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblin/left-shoulder", "x": 15.56, "y": -2.26, "rotation": 62.01, "width": 29, "height": 44 } - }, - "left upper leg": { - "left upper leg": { "name": "goblin/left-upper-leg", "x": 29.68, "y": -3.87, "rotation": 89.09, "width": 33, "height": 73 } - }, - "neck": { - "neck": { "name": "goblin/neck", "x": 10.1, "y": 0.42, "rotation": -93.69, "width": 36, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblin/pelvis", "x": -5.61, "y": 0.76, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblin/right-arm", "x": 16.44, "y": -1.04, "rotation": 94.32, "width": 23, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblin/right-foot", "x": 23.56, "y": 9.8, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblin/right-hand", "x": 7.88, "y": 2.78, "rotation": 91.96, "width": 36, "height": 37 } - }, - "right lower leg": { - "right lower leg": { "name": "goblin/right-lower-leg", "x": 25.68, "y": -3.15, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblin/right-shoulder", "x": 15.68, "y": -1.03, "rotation": 130.65, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblin/right-upper-leg", "x": 20.35, "y": 1.47, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblin/torso", "x": 38.09, "y": -3.87, "rotation": -94.95, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblin/undie-straps", "x": -3.87, "y": 13.1, "scaleX": 1.089, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblin/undies", "x": 6.3, "y": 0.12, "rotation": 0.91, "width": 36, "height": 29 } - } - }, - "goblingirl": { - "eyes": { - "eyes closed": { "name": "goblingirl/eyes-closed", "x": 28, "y": -25.54, "rotation": -87.04, "width": 37, "height": 21 } - }, - "head": { - "head": { "name": "goblingirl/head", "x": 27.71, "y": -4.32, "rotation": -85.58, "width": 103, "height": 81 } - }, - "left arm": { - "left arm": { "name": "goblingirl/left-arm", "x": 19.64, "y": -2.42, "rotation": 33.05, "width": 37, "height": 35 } - }, - "left foot": { - "left foot": { "name": "goblingirl/left-foot", "x": 25.17, "y": 7.92, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblingirl/left-hand", - "x": 4.34, - "y": 2.39, - "scaleX": 0.896, - "scaleY": 0.896, - "rotation": 30.34, - "width": 35, - "height": 40 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblingirl/left-lower-leg", "x": 25.02, "y": -0.6, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblingirl/left-shoulder", "x": 19.8, "y": -0.42, "rotation": 61.21, "width": 28, "height": 46 } - }, - "left upper leg": { - "left upper leg": { "name": "goblingirl/left-upper-leg", "x": 30.21, "y": -2.95, "rotation": 89.09, "width": 33, "height": 70 } - }, - "neck": { - "neck": { "name": "goblingirl/neck", "x": 6.16, "y": -3.14, "rotation": -98.86, "width": 35, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblingirl/pelvis", "x": -3.87, "y": 3.18, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblingirl/right-arm", "x": 16.85, "y": -0.66, "rotation": 93.52, "width": 28, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblingirl/right-foot", "x": 23.46, "y": 9.66, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblingirl/right-hand", "x": 7.21, "y": 3.43, "rotation": 91.16, "width": 36, "height": 37 } - }, - "right hand item": { - "right hand item": { "name": "goblingirl/dagger-tip", "x": 13.45, "y": 22.07, "rotation": -3.23, "width": 17, "height": 17 } - }, - "right lower leg": { - "right lower leg": { "name": "goblingirl/right-lower-leg", "x": 26.15, "y": -3.27, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblingirl/right-shoulder", "x": 14.46, "y": 0.45, "rotation": 129.85, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblingirl/right-upper-leg", "x": 19.69, "y": 2.13, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblingirl/torso", "x": 36.28, "y": -5.14, "rotation": -95.74, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblingirl/undie-straps", "x": -1.51, "y": 14.18, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblingirl/undies", "x": 5.4, "y": 1.7, "width": 36, "height": 29 } - } - } -}, -"animations": { - "walk": { - "bones": { - "left upper leg": { - "rotate": [ - { "time": 0, "angle": -26.55 }, - { "time": 0.1333, "angle": -8.78 }, - { "time": 0.2333, "angle": 9.51 }, - { "time": 0.3666, "angle": 30.74 }, - { "time": 0.5, "angle": 25.33 }, - { "time": 0.6333, "angle": 26.11 }, - { "time": 0.7333, "angle": -7.7 }, - { "time": 0.8666, "angle": -21.19 }, - { "time": 1, "angle": -26.55 } - ], - "translate": [ - { "time": 0, "x": -1.32, "y": 1.7 }, - { "time": 0.3666, "x": -0.06, "y": 2.42 }, - { "time": 1, "x": -1.32, "y": 1.7 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 42.45 }, - { "time": 0.1333, "angle": 52.1 }, - { "time": 0.2333, "angle": 8.53 }, - { "time": 0.5, "angle": -16.93 }, - { "time": 0.6333, "angle": 1.89 }, - { - "time": 0.7333, - "angle": 28.06, - "curve": [ 0.462, 0.11, 1, 1 ] - }, - { - "time": 0.8666, - "angle": 58.68, - "curve": [ 0.5, 0.02, 1, 1 ] - }, - { "time": 1, "angle": 42.45 } - ], - "translate": [ - { "time": 0, "x": 6.23, "y": 0 }, - { "time": 0.2333, "x": 2.14, "y": 2.4 }, - { "time": 0.5, "x": 2.44, "y": 4.8 }, - { "time": 1, "x": 6.23, "y": 0 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -22.98 }, - { "time": 0.1333, "angle": -63.5 }, - { "time": 0.2333, "angle": -73.76 }, - { "time": 0.5, "angle": 5.11 }, - { "time": 0.6333, "angle": -28.29 }, - { "time": 0.7333, "angle": 4.08 }, - { "time": 0.8666, "angle": 3.53 }, - { "time": 1, "angle": -22.98 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 2.55, "y": -0.47 }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": -3.69 }, - { "time": 0.1333, "angle": -10.42 }, - { "time": 0.2333, "angle": -5.01 }, - { "time": 0.3666, "angle": 3.87 }, - { "time": 0.5, "angle": -3.87 }, - { "time": 0.6333, "angle": 2.78 }, - { "time": 0.7333, "angle": 1.68 }, - { "time": 0.8666, "angle": -8.54 }, - { "time": 1, "angle": -3.69 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 5.29, - "curve": [ 0.264, 0, 0.75, 1 ] - }, - { "time": 0.6333, "angle": 6.65 }, - { "time": 1, "angle": 5.29 } - ] - }, - "right arm": { - "rotate": [ - { - "time": 0, - "angle": -4.02, - "curve": [ 0.267, 0, 0.804, 0.99 ] - }, - { - "time": 0.6333, - "angle": 19.78, - "curve": [ 0.307, 0, 0.787, 0.99 ] - }, - { "time": 1, "angle": -4.02 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 8.98 }, - { "time": 0.6333, "angle": 0.51 }, - { "time": 1, "angle": 8.98 } - ] - }, - "left shoulder": { - "rotate": [ - { - "time": 0, - "angle": 6.25, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": -11.78, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 6.25 } - ], - "translate": [ - { "time": 0, "x": 1.15, "y": 0.23 } - ] - }, - "left hand": { - "rotate": [ - { - "time": 0, - "angle": -21.23, - "curve": [ 0.295, 0, 0.755, 0.98 ] - }, - { - "time": 0.5, - "angle": -27.28, - "curve": [ 0.241, 0, 0.75, 0.97 ] - }, - { "time": 1, "angle": -21.23 } - ] - }, - "left arm": { - "rotate": [ - { - "time": 0, - "angle": 28.37, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": 60.09, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 28.37 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -10.28 }, - { - "time": 0.1333, - "angle": -15.38, - "curve": [ 0.545, 0, 0.818, 1 ] - }, - { - "time": 0.3666, - "angle": -9.78, - "curve": [ 0.58, 0.17, 0.669, 0.99 ] - }, - { - "time": 0.6333, - "angle": -15.75, - "curve": [ 0.235, 0.01, 0.795, 1 ] - }, - { - "time": 0.8666, - "angle": -7.06, - "curve": [ 0.209, 0, 0.816, 0.98 ] - }, - { "time": 1, "angle": -10.28 } - ], - "translate": [ - { "time": 0, "x": -1.29, "y": 1.68 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": -5.25 }, - { "time": 0.2333, "angle": -1.91 }, - { "time": 0.3666, "angle": -6.45 }, - { "time": 0.5, "angle": -5.39 }, - { "time": 0.7333, "angle": -11.68 }, - { "time": 0.8666, "angle": 0.46 }, - { "time": 1, "angle": -5.25 } - ] - }, - "right lower leg": { - "rotate": [ - { - "time": 0, - "angle": -3.39, - "curve": [ 0.316, 0.01, 0.741, 0.98 ] - }, - { - "time": 0.1333, - "angle": -45.53, - "curve": [ 0.229, 0, 0.738, 0.97 ] - }, - { "time": 0.2333, "angle": -4.83 }, - { "time": 0.5, "angle": -19.53 }, - { "time": 0.6333, "angle": -64.8 }, - { - "time": 0.7333, - "angle": -82.56, - "curve": [ 0.557, 0.18, 1, 1 ] - }, - { "time": 1, "angle": -3.39 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.6333, "x": 2.18, "y": 0.21 }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": -4.16 }, - { - "time": 0.1333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.3666, "x": 0, "y": 6.78 }, - { "time": 0.5, "x": 0, "y": -6.13 }, - { - "time": 0.6333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.8666, "x": 0, "y": 6.78 }, - { "time": 1, "x": 0, "y": -4.16 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 3.6 }, - { "time": 0.1333, "angle": 17.49 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { "time": 0.5, "angle": 5.17 }, - { "time": 0.6333, "angle": 18.36 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 3.6, - "curve": [ 0, 0, 0.704, 1.17 ] - }, - { "time": 0.1333, "angle": -0.2 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { - "time": 0.5, - "angle": 5.17, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.6666, "angle": 1.1 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - } - }, - "slots": { - "eyes": { - "attachment": [ - { "time": 0.7, "name": "eyes closed" }, - { "time": 0.8, "name": null } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/spineboy.atlas b/examples/example 12 - Spine/data/spineboy.atlas new file mode 100644 index 0000000..cf32cd0 --- /dev/null +++ b/examples/example 12 - Spine/data/spineboy.atlas @@ -0,0 +1,165 @@ +spineboy.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +eyes-closed + rotate: false + xy: 73, 509 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +eyes + rotate: false + xy: 75, 464 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 121, 132 + orig: 121, 132 + offset: 0, 0 + index: -1 +left-ankle + rotate: false + xy: 96, 351 + size: 25, 32 + orig: 25, 32 + offset: 0, 0 + index: -1 +left-arm + rotate: false + xy: 39, 423 + size: 35, 29 + orig: 35, 29 + offset: 0, 0 + index: -1 +left-foot + rotate: false + xy: 2, 262 + size: 65, 30 + orig: 65, 30 + offset: 0, 0 + index: -1 +left-hand + rotate: false + xy: 2, 423 + size: 35, 38 + orig: 35, 38 + offset: 0, 0 + index: -1 +left-lower-leg + rotate: false + xy: 72, 202 + size: 49, 64 + orig: 49, 64 + offset: 0, 0 + index: -1 +left-pant-bottom + rotate: false + xy: 2, 363 + size: 44, 22 + orig: 44, 22 + offset: 0, 0 + index: -1 +left-shoulder + rotate: false + xy: 39, 454 + size: 34, 53 + orig: 34, 53 + offset: 0, 0 + index: -1 +left-upper-leg + rotate: false + xy: 2, 464 + size: 33, 67 + orig: 33, 67 + offset: 0, 0 + index: -1 +neck + rotate: false + xy: 37, 509 + size: 34, 28 + orig: 34, 28 + offset: 0, 0 + index: -1 +pelvis + rotate: false + xy: 2, 294 + size: 63, 47 + orig: 63, 47 + offset: 0, 0 + index: -1 +right-ankle + rotate: false + xy: 96, 385 + size: 25, 30 + orig: 25, 30 + offset: 0, 0 + index: -1 +right-arm + rotate: false + xy: 96, 417 + size: 21, 45 + orig: 21, 45 + offset: 0, 0 + index: -1 +right-foot-idle + rotate: false + xy: 69, 268 + size: 53, 28 + orig: 53, 28 + offset: 0, 0 + index: -1 +right-foot + rotate: false + xy: 2, 230 + size: 67, 30 + orig: 67, 30 + offset: 0, 0 + index: -1 +right-hand + rotate: false + xy: 2, 387 + size: 32, 32 + orig: 32, 32 + offset: 0, 0 + index: -1 +right-lower-leg + rotate: false + xy: 72, 136 + size: 51, 64 + orig: 51, 64 + offset: 0, 0 + index: -1 +right-pant-bottom + rotate: false + xy: 2, 343 + size: 46, 18 + orig: 46, 18 + offset: 0, 0 + index: -1 +right-shoulder + rotate: false + xy: 67, 298 + size: 52, 51 + orig: 52, 51 + offset: 0, 0 + index: -1 +right-upper-leg + rotate: false + xy: 50, 351 + size: 44, 70 + orig: 44, 70 + offset: 0, 0 + index: -1 +torso + rotate: false + xy: 2, 136 + size: 68, 92 + orig: 68, 92 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/spineboy.json b/examples/example 12 - Spine/data/spineboy.json index 54f9d82..17c5095 100755 --- a/examples/example 12 - Spine/data/spineboy.json +++ b/examples/example 12 - Spine/data/spineboy.json @@ -1,196 +1,787 @@ -{"frames": { - -"head": { - "frame": {"x":1,"y":122,"w":121,"h":132}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":121,"h":132}, - "sourceSize": {"w":121,"h":132} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, + { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, + { "name": "left lower leg", "parent": "left upper leg", "length": 56.45, "x": 51.78, "y": 3.46, "rotation": -16.65 }, + { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 64.02, "y": -8.67, "rotation": 102.43 }, + { "name": "right upper leg", "parent": "hip", "length": 45.76, "x": -18.27, "rotation": -101.13 }, + { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 50.21, "y": 0.6, "rotation": -10.7 }, + { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, + { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 94.95 }, + { "name": "neck", "parent": "torso", "length": 18.38, "x": 83.64, "y": -1.78, "rotation": 0.9 }, + { "name": "head", "parent": "neck", "length": 68.28, "x": 19.09, "y": 6.97, "rotation": -8.94 }, + { "name": "right shoulder", "parent": "torso", "length": 49.95, "x": 81.9, "y": 6.79, "rotation": 130.6 }, + { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 49.95, "y": -0.12, "rotation": 40.12 }, + { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 }, + { "name": "left shoulder", "parent": "torso", "length": 44.19, "x": 78.96, "y": -15.75, "rotation": -156.96 }, + { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 44.19, "y": -0.01, "rotation": 28.16 }, + { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, + { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 } +], +"slots": [ + { "name": "left shoulder", "bone": "left shoulder", "attachment": "left-shoulder" }, + { "name": "left arm", "bone": "left arm", "attachment": "left-arm" }, + { "name": "left hand", "bone": "left hand", "attachment": "left-hand" }, + { "name": "left foot", "bone": "left foot", "attachment": "left-foot" }, + { "name": "left lower leg", "bone": "left lower leg", "attachment": "left-lower-leg" }, + { "name": "left upper leg", "bone": "left upper leg", "attachment": "left-upper-leg" }, + { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, + { "name": "right foot", "bone": "right foot", "attachment": "right-foot" }, + { "name": "right lower leg", "bone": "right lower leg", "attachment": "right-lower-leg" }, + { "name": "right upper leg", "bone": "right upper leg", "attachment": "right-upper-leg" }, + { "name": "torso", "bone": "torso", "attachment": "torso" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "eyes", "bone": "head", "attachment": "eyes" }, + { "name": "right shoulder", "bone": "right shoulder", "attachment": "right-shoulder" }, + { "name": "right arm", "bone": "right arm", "attachment": "right-arm" }, + { "name": "right hand", "bone": "right hand", "attachment": "right-hand" } +], +"skins": { + "default": { + "left shoulder": { + "left-shoulder": { "x": 23.74, "y": 0.11, "rotation": 62.01, "width": 34, "height": 53 } + }, + "left arm": { + "left-arm": { "x": 15.11, "y": -0.44, "rotation": 33.84, "width": 35, "height": 29 } + }, + "left hand": { + "left-hand": { "x": 0.75, "y": 1.86, "rotation": 31.14, "width": 35, "height": 38 } + }, + "left foot": { + "left-foot": { "x": 24.35, "y": 8.88, "rotation": 3.32, "width": 65, "height": 30 } + }, + "left lower leg": { + "left-lower-leg": { "x": 24.55, "y": -1.92, "rotation": 105.75, "width": 49, "height": 64 } + }, + "left upper leg": { + "left-upper-leg": { "x": 26.12, "y": -1.85, "rotation": 89.09, "width": 33, "height": 67 } + }, + "pelvis": { + "pelvis": { "x": -4.83, "y": 10.62, "width": 63, "height": 47 } + }, + "right foot": { + "right-foot": { "x": 19.02, "y": 8.47, "rotation": 1.52, "width": 67, "height": 30 } + }, + "right lower leg": { + "right-lower-leg": { "x": 23.28, "y": -2.59, "rotation": 111.83, "width": 51, "height": 64 } + }, + "right upper leg": { + "right-upper-leg": { "x": 23.03, "y": 0.25, "rotation": 101.13, "width": 44, "height": 70 } + }, + "torso": { + "torso": { "x": 44.57, "y": -7.08, "rotation": -94.95, "width": 68, "height": 92 } + }, + "neck": { + "neck": { "x": 9.42, "y": -3.66, "rotation": -100.15, "width": 34, "height": 28 } + }, + "head": { + "head": { "x": 53.94, "y": -5.75, "rotation": -86.9, "width": 121, "height": 132 } + }, + "eyes": { + "eyes": { "x": 28.94, "y": -32.92, "rotation": -86.9, "width": 34, "height": 27 }, + "eyes-closed": { "x": 28.77, "y": -32.86, "rotation": -86.9, "width": 34, "height": 27 } + }, + "right shoulder": { + "right-shoulder": { "x": 25.86, "y": 0.03, "rotation": 134.44, "width": 52, "height": 51 } + }, + "right arm": { + "right-arm": { "x": 18.34, "y": -2.64, "rotation": 94.32, "width": 21, "height": 45 } + }, + "right hand": { + "right-hand": { "x": 6.82, "y": 1.25, "rotation": 91.96, "width": 32, "height": 32 } + } + } }, -"torso": -{ - "frame": {"x":1,"y":28,"w":68,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":92}, - "sourceSize": {"w":68,"h":92} -}, -"left-pant-bottom": -{ - "frame": {"x":1,"y":4,"w":44,"h":22}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":44,"h":22}, - "sourceSize": {"w":44,"h":22} -}, -"right-pant-bottom": -{ - "frame": {"x":47,"y":8,"w":46,"h":18}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":46,"h":18}, - "sourceSize": {"w":46,"h":18} -}, -"right-upper-leg": -{ - "frame": {"x":71,"y":50,"w":44,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":44,"h":70}, - "sourceSize": {"w":44,"h":70} -}, -"pelvis": -{ - "frame": {"x":95,"y":1,"w":63,"h":47}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":47}, - "sourceSize": {"w":63,"h":47} -}, -"left-upper-leg": -{ - "frame": {"x":117,"y":53,"w":33,"h":67}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":67}, - "sourceSize": {"w":33,"h":67} -}, -"right-foot": -{ - "frame": {"x":160,"y":224,"w":67,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":67,"h":30}, - "sourceSize": {"w":67,"h":30} -}, -"left-shoulder": -{ - "frame": {"x":124,"y":201,"w":34,"h":53}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":53}, - "sourceSize": {"w":34,"h":53} -}, -"left-ankle": -{ - "frame": {"x":229,"y":222,"w":25,"h":32}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":25,"h":32}, - "sourceSize": {"w":25,"h":32} -}, -"left-foot": -{ - "frame": {"x":160,"y":192,"w":65,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":30}, - "sourceSize": {"w":65,"h":30} -}, -"neck": -{ - "frame": {"x":124,"y":171,"w":34,"h":28}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":28}, - "sourceSize": {"w":34,"h":28} -}, -"right-arm": -{ - "frame": {"x":124,"y":124,"w":21,"h":45}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":21,"h":45}, - "sourceSize": {"w":21,"h":45} -}, -"right-ankle": -{ - "frame": {"x":227,"y":190,"w":25,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":25,"h":30}, - "sourceSize": {"w":25,"h":30} -}, -"left-hand": -{ - "frame": {"x":147,"y":131,"w":35,"h":38}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":38}, - "sourceSize": {"w":35,"h":38} -}, -"left-arm": -{ - "frame": {"x":184,"y":161,"w":35,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":29}, - "sourceSize": {"w":35,"h":29} -}, -"eyes-closed": -{ - "frame": {"x":221,"y":161,"w":34,"h":27}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, - "sourceSize": {"w":34,"h":27} -}, -"right-lower-leg": -{ - "frame": {"x":152,"y":65,"w":51,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":51,"h":64}, - "sourceSize": {"w":51,"h":64} -}, -"right-foot-idle": -{ - "frame": {"x":184,"y":131,"w":53,"h":28}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":53,"h":28}, - "sourceSize": {"w":53,"h":28} -}, -"left-lower-leg": -{ - "frame": {"x":205,"y":65,"w":49,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":49,"h":64}, - "sourceSize": {"w":49,"h":64} -}, -"right-shoulder": -{ - "frame": {"x":160,"y":12,"w":52,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":51}, - "sourceSize": {"w":52,"h":51} -}, -"eyes": -{ - "frame": {"x":214,"y":36,"w":34,"h":27}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, - "sourceSize": {"w":34,"h":27} -}, -"right-hand": -{ - "frame": {"x":214,"y":2,"w":32,"h":32}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":32,"h":32}, - "sourceSize": {"w":32,"h":32} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "spineboy.png", - "format": "RGBA8888", - "size": {"w":256,"h":256}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:93f9a66503bccd3c31cdba2ae4b91285$" +"animations": { + "walk": { + "bones": { + "left upper leg": { + "rotate": [ + { "time": 0, "angle": -26.55 }, + { "time": 0.1333, "angle": -8.78 }, + { "time": 0.2666, "angle": 9.51 }, + { "time": 0.4, "angle": 30.74 }, + { "time": 0.5333, "angle": 25.33 }, + { "time": 0.6666, "angle": 26.11 }, + { "time": 0.8, "angle": -7.7 }, + { "time": 0.9333, "angle": -21.19 }, + { "time": 1.0666, "angle": -26.55 } + ], + "translate": [ + { "time": 0, "x": -3, "y": -2.25 }, + { "time": 0.4, "x": -2.18, "y": -2.25 }, + { "time": 1.0666, "x": -3, "y": -2.25 } + ] + }, + "right upper leg": { + "rotate": [ + { "time": 0, "angle": 42.45 }, + { "time": 0.1333, "angle": 52.1 }, + { "time": 0.2666, "angle": 5.96 }, + { "time": 0.5333, "angle": -16.93 }, + { "time": 0.6666, "angle": 1.89 }, + { + "time": 0.8, + "angle": 28.06, + "curve": [ 0.462, 0.11, 1, 1 ] + }, + { + "time": 0.9333, + "angle": 58.68, + "curve": [ 0.5, 0.02, 1, 1 ] + }, + { "time": 1.0666, "angle": 42.45 } + ], + "translate": [ + { "time": 0, "x": 8.11, "y": -2.36 }, + { "time": 0.1333, "x": 10.03, "y": -2.56 }, + { "time": 0.4, "x": 2.76, "y": -2.97 }, + { "time": 0.5333, "x": 2.76, "y": -2.81 }, + { "time": 0.9333, "x": 8.67, "y": -2.54 }, + { "time": 1.0666, "x": 8.11, "y": -2.36 } + ] + }, + "left lower leg": { + "rotate": [ + { "time": 0, "angle": -10.21 }, + { "time": 0.1333, "angle": -55.64 }, + { "time": 0.2666, "angle": -68.12 }, + { "time": 0.5333, "angle": 5.11 }, + { "time": 0.6666, "angle": -28.29 }, + { "time": 0.8, "angle": 4.08 }, + { "time": 0.9333, "angle": 3.53 }, + { "time": 1.0666, "angle": -10.21 } + ] + }, + "left foot": { + "rotate": [ + { "time": 0, "angle": -3.69 }, + { "time": 0.1333, "angle": -10.42 }, + { "time": 0.2666, "angle": -17.14 }, + { "time": 0.4, "angle": -2.83 }, + { "time": 0.5333, "angle": -3.87 }, + { "time": 0.6666, "angle": 2.78 }, + { "time": 0.8, "angle": 1.68 }, + { "time": 0.9333, "angle": -8.54 }, + { "time": 1.0666, "angle": -3.69 } + ] + }, + "right shoulder": { + "rotate": [ + { + "time": 0, + "angle": 20.89, + "curve": [ 0.264, 0, 0.75, 1 ] + }, + { + "time": 0.1333, + "angle": 3.72, + "curve": [ 0.272, 0, 0.841, 1 ] + }, + { "time": 0.6666, "angle": -278.28 }, + { "time": 1.0666, "angle": 20.89 } + ], + "translate": [ + { "time": 0, "x": -7.84, "y": 7.19 }, + { "time": 0.1333, "x": -6.36, "y": 6.42 }, + { "time": 0.6666, "x": -11.07, "y": 5.25 }, + { "time": 1.0666, "x": -7.84, "y": 7.19 } + ] + }, + "right arm": { + "rotate": [ + { + "time": 0, + "angle": -4.02, + "curve": [ 0.267, 0, 0.804, 0.99 ] + }, + { + "time": 0.1333, + "angle": -13.99, + "curve": [ 0.341, 0, 1, 1 ] + }, + { + "time": 0.6666, + "angle": 36.54, + "curve": [ 0.307, 0, 0.787, 0.99 ] + }, + { "time": 1.0666, "angle": -4.02 } + ] + }, + "right hand": { + "rotate": [ + { "time": 0, "angle": 22.92 }, + { "time": 0.4, "angle": -8.97 }, + { "time": 0.6666, "angle": 0.51 }, + { "time": 1.0666, "angle": 22.92 } + ] + }, + "left shoulder": { + "rotate": [ + { "time": 0, "angle": -1.47 }, + { "time": 0.1333, "angle": 13.6 }, + { "time": 0.6666, "angle": 280.74 }, + { "time": 1.0666, "angle": -1.47 } + ], + "translate": [ + { "time": 0, "x": -1.76, "y": 0.56 }, + { "time": 0.6666, "x": -2.47, "y": 8.14 }, + { "time": 1.0666, "x": -1.76, "y": 0.56 } + ] + }, + "left hand": { + "rotate": [ + { + "time": 0, + "angle": 11.58, + "curve": [ 0.169, 0.37, 0.632, 1.55 ] + }, + { + "time": 0.1333, + "angle": 28.13, + "curve": [ 0.692, 0, 0.692, 0.99 ] + }, + { + "time": 0.6666, + "angle": -27.42, + "curve": [ 0.117, 0.41, 0.738, 1.76 ] + }, + { "time": 0.8, "angle": -36.32 }, + { "time": 1.0666, "angle": 11.58 } + ] + }, + "left arm": { + "rotate": [ + { "time": 0, "angle": -8.27 }, + { "time": 0.1333, "angle": 18.43 }, + { "time": 0.6666, "angle": 0.88 }, + { "time": 1.0666, "angle": -8.27 } + ] + }, + "torso": { + "rotate": [ + { "time": 0, "angle": -10.28 }, + { + "time": 0.1333, + "angle": -15.38, + "curve": [ 0.545, 0, 1, 1 ] + }, + { + "time": 0.4, + "angle": -9.78, + "curve": [ 0.58, 0.17, 1, 1 ] + }, + { "time": 0.6666, "angle": -15.75 }, + { "time": 0.9333, "angle": -7.06 }, + { "time": 1.0666, "angle": -10.28 } + ], + "translate": [ + { "time": 0, "x": -3.67, "y": 1.68 }, + { "time": 0.1333, "x": -3.67, "y": 0.68 }, + { "time": 0.4, "x": -3.67, "y": 1.97 }, + { "time": 0.6666, "x": -3.67, "y": -0.14 }, + { "time": 1.0666, "x": -3.67, "y": 1.68 } + ] + }, + "right foot": { + "rotate": [ + { "time": 0, "angle": -5.25 }, + { "time": 0.2666, "angle": -4.08 }, + { "time": 0.4, "angle": -6.45 }, + { "time": 0.5333, "angle": -5.39 }, + { "time": 0.8, "angle": -11.68 }, + { "time": 0.9333, "angle": 0.46 }, + { "time": 1.0666, "angle": -5.25 } + ] + }, + "right lower leg": { + "rotate": [ + { "time": 0, "angle": -3.39 }, + { "time": 0.1333, "angle": -45.53 }, + { "time": 0.2666, "angle": -2.59 }, + { "time": 0.5333, "angle": -19.53 }, + { "time": 0.6666, "angle": -64.8 }, + { + "time": 0.8, + "angle": -82.56, + "curve": [ 0.557, 0.18, 1, 1 ] + }, + { "time": 1.0666, "angle": -3.39 } + ] + }, + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 1.0666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { + "time": 0.1333, + "x": 0, + "y": -7.61, + "curve": [ 0.272, 0.86, 1, 1 ] + }, + { "time": 0.4, "x": 0, "y": 8.7 }, + { "time": 0.5333, "x": 0, "y": -0.41 }, + { + "time": 0.6666, + "x": 0, + "y": -7.05, + "curve": [ 0.235, 0.89, 1, 1 ] + }, + { "time": 0.8, "x": 0, "y": 2.92 }, + { "time": 0.9333, "x": 0, "y": 6.78 }, + { "time": 1.0666, "x": 0, "y": 0 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 3.6 }, + { "time": 0.1333, "angle": 17.49 }, + { "time": 0.2666, "angle": 6.1 }, + { "time": 0.4, "angle": 3.45 }, + { "time": 0.5333, "angle": 5.17 }, + { "time": 0.6666, "angle": 18.36 }, + { "time": 0.8, "angle": 6.09 }, + { "time": 0.9333, "angle": 2.28 }, + { "time": 1.0666, "angle": 3.6 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 3.6, + "curve": [ 0, 0, 0.704, 1.61 ] + }, + { "time": 0.1666, "angle": -0.2 }, + { "time": 0.2666, "angle": 6.1 }, + { "time": 0.4, "angle": 3.45 }, + { + "time": 0.5333, + "angle": 5.17, + "curve": [ 0, 0, 0.704, 1.61 ] + }, + { "time": 0.7, "angle": 1.1 }, + { "time": 0.8, "angle": 6.09 }, + { "time": 0.9333, "angle": 2.28 }, + { "time": 1.0666, "angle": 3.6 } + ] + } + } + }, + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.9333, "angle": 0, "curve": "stepped" }, + { "time": 1.3666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": -11.57, "y": -3 }, + { "time": 0.2333, "x": -16.2, "y": -19.43 }, + { + "time": 0.3333, + "x": 7.66, + "y": -8.48, + "curve": [ 0.057, 0.06, 0.712, 1 ] + }, + { "time": 0.3666, "x": 15.38, "y": 5.01 }, + { "time": 0.4666, "x": -7.84, "y": 57.22 }, + { + "time": 0.6, + "x": -10.81, + "y": 96.34, + "curve": [ 0.241, 0, 1, 1 ] + }, + { "time": 0.7333, "x": -7.01, "y": 54.7 }, + { "time": 0.8, "x": -10.58, "y": 32.2 }, + { "time": 0.9333, "x": -31.99, "y": 0.45 }, + { "time": 1.0666, "x": -12.48, "y": -29.47 }, + { "time": 1.3666, "x": -11.57, "y": -3 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left upper leg": { + "rotate": [ + { "time": 0, "angle": 17.13 }, + { "time": 0.2333, "angle": 44.35 }, + { "time": 0.3333, "angle": 16.46 }, + { "time": 0.4, "angle": -9.88 }, + { "time": 0.4666, "angle": -11.42 }, + { "time": 0.5666, "angle": 23.46 }, + { "time": 0.7666, "angle": 71.82 }, + { "time": 0.9333, "angle": 65.53 }, + { "time": 1.0666, "angle": 51.01 }, + { "time": 1.3666, "angle": 17.13 } + ], + "translate": [ + { "time": 0, "x": -3, "y": -2.25, "curve": "stepped" }, + { "time": 0.9333, "x": -3, "y": -2.25, "curve": "stepped" }, + { "time": 1.3666, "x": -3, "y": -2.25 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left lower leg": { + "rotate": [ + { "time": 0, "angle": -16.25 }, + { "time": 0.2333, "angle": -52.21 }, + { "time": 0.4, "angle": 15.04 }, + { "time": 0.4666, "angle": -8.95 }, + { "time": 0.5666, "angle": -39.53 }, + { "time": 0.7666, "angle": -27.27 }, + { "time": 0.9333, "angle": -3.52 }, + { "time": 1.0666, "angle": -61.92 }, + { "time": 1.3666, "angle": -16.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left foot": { + "rotate": [ + { "time": 0, "angle": 0.33 }, + { "time": 0.2333, "angle": 6.2 }, + { "time": 0.3333, "angle": 14.73 }, + { "time": 0.4, "angle": -15.54 }, + { "time": 0.4333, "angle": -21.2 }, + { "time": 0.5666, "angle": -7.55 }, + { "time": 0.7666, "angle": -0.67 }, + { "time": 0.9333, "angle": -0.58 }, + { "time": 1.0666, "angle": 14.64 }, + { "time": 1.3666, "angle": 0.33 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right upper leg": { + "rotate": [ + { "time": 0, "angle": 25.97 }, + { "time": 0.2333, "angle": 46.43 }, + { "time": 0.3333, "angle": 22.61 }, + { "time": 0.4, "angle": 2.13 }, + { + "time": 0.4666, + "angle": 0.04, + "curve": [ 0, 0, 0.637, 0.98 ] + }, + { "time": 0.6, "angle": 65.55 }, + { "time": 0.7666, "angle": 64.93 }, + { "time": 0.9333, "angle": 41.08 }, + { "time": 1.0666, "angle": 66.25 }, + { "time": 1.3666, "angle": 25.97 } + ], + "translate": [ + { "time": 0, "x": 5.74, "y": 0.61 }, + { "time": 0.2333, "x": 4.79, "y": 1.79 }, + { "time": 0.3333, "x": 6.05, "y": -4.55 }, + { "time": 0.9333, "x": 4.79, "y": 1.79, "curve": "stepped" }, + { "time": 1.0666, "x": 4.79, "y": 1.79 }, + { "time": 1.3666, "x": 5.74, "y": 0.61 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right lower leg": { + "rotate": [ + { "time": 0, "angle": -27.46 }, + { "time": 0.2333, "angle": -64.03 }, + { "time": 0.4, "angle": -48.36 }, + { "time": 0.5666, "angle": -76.86 }, + { "time": 0.7666, "angle": -26.89 }, + { "time": 0.9, "angle": -18.97 }, + { "time": 0.9333, "angle": -14.18 }, + { "time": 1.0666, "angle": -80.45 }, + { "time": 1.3666, "angle": -27.46 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right foot": { + "rotate": [ + { "time": 0, "angle": 1.08 }, + { "time": 0.2333, "angle": 16.02 }, + { "time": 0.3, "angle": 12.94 }, + { "time": 0.3333, "angle": 15.16 }, + { "time": 0.4, "angle": -14.7 }, + { "time": 0.4333, "angle": -12.85 }, + { "time": 0.4666, "angle": -19.18 }, + { "time": 0.5666, "angle": -15.82 }, + { "time": 0.6, "angle": -3.59 }, + { "time": 0.7666, "angle": -3.56 }, + { "time": 0.9333, "angle": 1.86 }, + { "time": 1.0666, "angle": 16.02 }, + { "time": 1.3666, "angle": 1.08 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "torso": { + "rotate": [ + { "time": 0, "angle": -13.35 }, + { "time": 0.2333, "angle": -48.95 }, + { "time": 0.4333, "angle": -35.77 }, + { "time": 0.6, "angle": -4.59 }, + { "time": 0.7666, "angle": 14.61 }, + { "time": 0.9333, "angle": 15.74 }, + { "time": 1.0666, "angle": -32.44 }, + { "time": 1.3666, "angle": -13.35 } + ], + "translate": [ + { "time": 0, "x": -3.67, "y": 1.68, "curve": "stepped" }, + { "time": 0.9333, "x": -3.67, "y": 1.68, "curve": "stepped" }, + { "time": 1.3666, "x": -3.67, "y": 1.68 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 12.78 }, + { "time": 0.2333, "angle": 16.46 }, + { "time": 0.4, "angle": 26.49 }, + { "time": 0.6, "angle": 15.51 }, + { "time": 0.7666, "angle": 1.34 }, + { "time": 0.9333, "angle": 2.35 }, + { "time": 1.0666, "angle": 6.08 }, + { "time": 1.3, "angle": 21.23 }, + { "time": 1.3666, "angle": 12.78 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 5.19 }, + { "time": 0.2333, "angle": 20.27 }, + { "time": 0.4, "angle": 15.27 }, + { "time": 0.6, "angle": -24.69 }, + { "time": 0.7666, "angle": -11.02 }, + { "time": 0.9333, "angle": -24.38 }, + { "time": 1.0666, "angle": 11.99 }, + { "time": 1.3, "angle": 4.86 }, + { "time": 1.3666, "angle": 5.19 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left shoulder": { + "rotate": [ + { + "time": 0, + "angle": 0.05, + "curve": [ 0, 0, 0.62, 1 ] + }, + { + "time": 0.2333, + "angle": 279.66, + "curve": [ 0.218, 0.67, 0.66, 0.99 ] + }, + { + "time": 0.5, + "angle": 62.27, + "curve": [ 0.462, 0, 0.764, 0.58 ] + }, + { "time": 0.9333, "angle": 28.91 }, + { "time": 1.0666, "angle": -8.62 }, + { "time": 1.1666, "angle": -18.43 }, + { "time": 1.3666, "angle": 0.05 } + ], + "translate": [ + { "time": 0, "x": -1.76, "y": 0.56, "curve": "stepped" }, + { "time": 0.9333, "x": -1.76, "y": 0.56, "curve": "stepped" }, + { "time": 1.3666, "x": -1.76, "y": 0.56 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left hand": { + "rotate": [ + { "time": 0, "angle": 11.58, "curve": "stepped" }, + { "time": 0.9333, "angle": 11.58, "curve": "stepped" }, + { "time": 1.3666, "angle": 11.58 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left arm": { + "rotate": [ + { "time": 0, "angle": 0.51 }, + { "time": 0.4333, "angle": 12.82 }, + { "time": 0.6, "angle": 47.55 }, + { "time": 0.9333, "angle": 12.82 }, + { "time": 1.1666, "angle": -6.5 }, + { "time": 1.3666, "angle": 0.51 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right shoulder": { + "rotate": [ + { + "time": 0, + "angle": 43.82, + "curve": [ 0, 0, 0.62, 1 ] + }, + { + "time": 0.2333, + "angle": -8.74, + "curve": [ 0.304, 0.58, 0.709, 0.97 ] + }, + { + "time": 0.5333, + "angle": -208.02, + "curve": [ 0.462, 0, 0.764, 0.58 ] + }, + { "time": 0.9333, "angle": -246.72 }, + { "time": 1.0666, "angle": -307.13 }, + { "time": 1.1666, "angle": 37.15 }, + { "time": 1.3666, "angle": 43.82 } + ], + "translate": [ + { "time": 0, "x": -7.84, "y": 7.19, "curve": "stepped" }, + { "time": 0.9333, "x": -7.84, "y": 7.19, "curve": "stepped" }, + { "time": 1.3666, "x": -7.84, "y": 7.19 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right arm": { + "rotate": [ + { "time": 0, "angle": -4.02 }, + { "time": 0.6, "angle": 17.5 }, + { "time": 0.9333, "angle": -4.02 }, + { "time": 1.1666, "angle": -16.72 }, + { "time": 1.3666, "angle": -4.02 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right hand": { + "rotate": [ + { "time": 0, "angle": 22.92, "curve": "stepped" }, + { "time": 0.9333, "angle": 22.92, "curve": "stepped" }, + { "time": 1.3666, "angle": 22.92 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "root": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.4333, "angle": -14.52 }, + { "time": 0.8, "angle": 9.86 }, + { "time": 1.3666, "angle": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/spineboy.png b/examples/example 12 - Spine/data/spineboy.png index b8b493d..ab85747 100755 --- a/examples/example 12 - Spine/data/spineboy.png +++ b/examples/example 12 - Spine/data/spineboy.png Binary files differ diff --git a/examples/example 12 - Spine/data/spineboySpineData.json b/examples/example 12 - Spine/data/spineboySpineData.json deleted file mode 100755 index 17c5095..0000000 --- a/examples/example 12 - Spine/data/spineboySpineData.json +++ /dev/null @@ -1,787 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, - { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, - { "name": "left lower leg", "parent": "left upper leg", "length": 56.45, "x": 51.78, "y": 3.46, "rotation": -16.65 }, - { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 64.02, "y": -8.67, "rotation": 102.43 }, - { "name": "right upper leg", "parent": "hip", "length": 45.76, "x": -18.27, "rotation": -101.13 }, - { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 50.21, "y": 0.6, "rotation": -10.7 }, - { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, - { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 94.95 }, - { "name": "neck", "parent": "torso", "length": 18.38, "x": 83.64, "y": -1.78, "rotation": 0.9 }, - { "name": "head", "parent": "neck", "length": 68.28, "x": 19.09, "y": 6.97, "rotation": -8.94 }, - { "name": "right shoulder", "parent": "torso", "length": 49.95, "x": 81.9, "y": 6.79, "rotation": 130.6 }, - { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 49.95, "y": -0.12, "rotation": 40.12 }, - { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 }, - { "name": "left shoulder", "parent": "torso", "length": 44.19, "x": 78.96, "y": -15.75, "rotation": -156.96 }, - { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 44.19, "y": -0.01, "rotation": 28.16 }, - { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, - { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 } -], -"slots": [ - { "name": "left shoulder", "bone": "left shoulder", "attachment": "left-shoulder" }, - { "name": "left arm", "bone": "left arm", "attachment": "left-arm" }, - { "name": "left hand", "bone": "left hand", "attachment": "left-hand" }, - { "name": "left foot", "bone": "left foot", "attachment": "left-foot" }, - { "name": "left lower leg", "bone": "left lower leg", "attachment": "left-lower-leg" }, - { "name": "left upper leg", "bone": "left upper leg", "attachment": "left-upper-leg" }, - { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, - { "name": "right foot", "bone": "right foot", "attachment": "right-foot" }, - { "name": "right lower leg", "bone": "right lower leg", "attachment": "right-lower-leg" }, - { "name": "right upper leg", "bone": "right upper leg", "attachment": "right-upper-leg" }, - { "name": "torso", "bone": "torso", "attachment": "torso" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "eyes", "bone": "head", "attachment": "eyes" }, - { "name": "right shoulder", "bone": "right shoulder", "attachment": "right-shoulder" }, - { "name": "right arm", "bone": "right arm", "attachment": "right-arm" }, - { "name": "right hand", "bone": "right hand", "attachment": "right-hand" } -], -"skins": { - "default": { - "left shoulder": { - "left-shoulder": { "x": 23.74, "y": 0.11, "rotation": 62.01, "width": 34, "height": 53 } - }, - "left arm": { - "left-arm": { "x": 15.11, "y": -0.44, "rotation": 33.84, "width": 35, "height": 29 } - }, - "left hand": { - "left-hand": { "x": 0.75, "y": 1.86, "rotation": 31.14, "width": 35, "height": 38 } - }, - "left foot": { - "left-foot": { "x": 24.35, "y": 8.88, "rotation": 3.32, "width": 65, "height": 30 } - }, - "left lower leg": { - "left-lower-leg": { "x": 24.55, "y": -1.92, "rotation": 105.75, "width": 49, "height": 64 } - }, - "left upper leg": { - "left-upper-leg": { "x": 26.12, "y": -1.85, "rotation": 89.09, "width": 33, "height": 67 } - }, - "pelvis": { - "pelvis": { "x": -4.83, "y": 10.62, "width": 63, "height": 47 } - }, - "right foot": { - "right-foot": { "x": 19.02, "y": 8.47, "rotation": 1.52, "width": 67, "height": 30 } - }, - "right lower leg": { - "right-lower-leg": { "x": 23.28, "y": -2.59, "rotation": 111.83, "width": 51, "height": 64 } - }, - "right upper leg": { - "right-upper-leg": { "x": 23.03, "y": 0.25, "rotation": 101.13, "width": 44, "height": 70 } - }, - "torso": { - "torso": { "x": 44.57, "y": -7.08, "rotation": -94.95, "width": 68, "height": 92 } - }, - "neck": { - "neck": { "x": 9.42, "y": -3.66, "rotation": -100.15, "width": 34, "height": 28 } - }, - "head": { - "head": { "x": 53.94, "y": -5.75, "rotation": -86.9, "width": 121, "height": 132 } - }, - "eyes": { - "eyes": { "x": 28.94, "y": -32.92, "rotation": -86.9, "width": 34, "height": 27 }, - "eyes-closed": { "x": 28.77, "y": -32.86, "rotation": -86.9, "width": 34, "height": 27 } - }, - "right shoulder": { - "right-shoulder": { "x": 25.86, "y": 0.03, "rotation": 134.44, "width": 52, "height": 51 } - }, - "right arm": { - "right-arm": { "x": 18.34, "y": -2.64, "rotation": 94.32, "width": 21, "height": 45 } - }, - "right hand": { - "right-hand": { "x": 6.82, "y": 1.25, "rotation": 91.96, "width": 32, "height": 32 } - } - } -}, -"animations": { - "walk": { - "bones": { - "left upper leg": { - "rotate": [ - { "time": 0, "angle": -26.55 }, - { "time": 0.1333, "angle": -8.78 }, - { "time": 0.2666, "angle": 9.51 }, - { "time": 0.4, "angle": 30.74 }, - { "time": 0.5333, "angle": 25.33 }, - { "time": 0.6666, "angle": 26.11 }, - { "time": 0.8, "angle": -7.7 }, - { "time": 0.9333, "angle": -21.19 }, - { "time": 1.0666, "angle": -26.55 } - ], - "translate": [ - { "time": 0, "x": -3, "y": -2.25 }, - { "time": 0.4, "x": -2.18, "y": -2.25 }, - { "time": 1.0666, "x": -3, "y": -2.25 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 42.45 }, - { "time": 0.1333, "angle": 52.1 }, - { "time": 0.2666, "angle": 5.96 }, - { "time": 0.5333, "angle": -16.93 }, - { "time": 0.6666, "angle": 1.89 }, - { - "time": 0.8, - "angle": 28.06, - "curve": [ 0.462, 0.11, 1, 1 ] - }, - { - "time": 0.9333, - "angle": 58.68, - "curve": [ 0.5, 0.02, 1, 1 ] - }, - { "time": 1.0666, "angle": 42.45 } - ], - "translate": [ - { "time": 0, "x": 8.11, "y": -2.36 }, - { "time": 0.1333, "x": 10.03, "y": -2.56 }, - { "time": 0.4, "x": 2.76, "y": -2.97 }, - { "time": 0.5333, "x": 2.76, "y": -2.81 }, - { "time": 0.9333, "x": 8.67, "y": -2.54 }, - { "time": 1.0666, "x": 8.11, "y": -2.36 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -10.21 }, - { "time": 0.1333, "angle": -55.64 }, - { "time": 0.2666, "angle": -68.12 }, - { "time": 0.5333, "angle": 5.11 }, - { "time": 0.6666, "angle": -28.29 }, - { "time": 0.8, "angle": 4.08 }, - { "time": 0.9333, "angle": 3.53 }, - { "time": 1.0666, "angle": -10.21 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": -3.69 }, - { "time": 0.1333, "angle": -10.42 }, - { "time": 0.2666, "angle": -17.14 }, - { "time": 0.4, "angle": -2.83 }, - { "time": 0.5333, "angle": -3.87 }, - { "time": 0.6666, "angle": 2.78 }, - { "time": 0.8, "angle": 1.68 }, - { "time": 0.9333, "angle": -8.54 }, - { "time": 1.0666, "angle": -3.69 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 20.89, - "curve": [ 0.264, 0, 0.75, 1 ] - }, - { - "time": 0.1333, - "angle": 3.72, - "curve": [ 0.272, 0, 0.841, 1 ] - }, - { "time": 0.6666, "angle": -278.28 }, - { "time": 1.0666, "angle": 20.89 } - ], - "translate": [ - { "time": 0, "x": -7.84, "y": 7.19 }, - { "time": 0.1333, "x": -6.36, "y": 6.42 }, - { "time": 0.6666, "x": -11.07, "y": 5.25 }, - { "time": 1.0666, "x": -7.84, "y": 7.19 } - ] - }, - "right arm": { - "rotate": [ - { - "time": 0, - "angle": -4.02, - "curve": [ 0.267, 0, 0.804, 0.99 ] - }, - { - "time": 0.1333, - "angle": -13.99, - "curve": [ 0.341, 0, 1, 1 ] - }, - { - "time": 0.6666, - "angle": 36.54, - "curve": [ 0.307, 0, 0.787, 0.99 ] - }, - { "time": 1.0666, "angle": -4.02 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 22.92 }, - { "time": 0.4, "angle": -8.97 }, - { "time": 0.6666, "angle": 0.51 }, - { "time": 1.0666, "angle": 22.92 } - ] - }, - "left shoulder": { - "rotate": [ - { "time": 0, "angle": -1.47 }, - { "time": 0.1333, "angle": 13.6 }, - { "time": 0.6666, "angle": 280.74 }, - { "time": 1.0666, "angle": -1.47 } - ], - "translate": [ - { "time": 0, "x": -1.76, "y": 0.56 }, - { "time": 0.6666, "x": -2.47, "y": 8.14 }, - { "time": 1.0666, "x": -1.76, "y": 0.56 } - ] - }, - "left hand": { - "rotate": [ - { - "time": 0, - "angle": 11.58, - "curve": [ 0.169, 0.37, 0.632, 1.55 ] - }, - { - "time": 0.1333, - "angle": 28.13, - "curve": [ 0.692, 0, 0.692, 0.99 ] - }, - { - "time": 0.6666, - "angle": -27.42, - "curve": [ 0.117, 0.41, 0.738, 1.76 ] - }, - { "time": 0.8, "angle": -36.32 }, - { "time": 1.0666, "angle": 11.58 } - ] - }, - "left arm": { - "rotate": [ - { "time": 0, "angle": -8.27 }, - { "time": 0.1333, "angle": 18.43 }, - { "time": 0.6666, "angle": 0.88 }, - { "time": 1.0666, "angle": -8.27 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -10.28 }, - { - "time": 0.1333, - "angle": -15.38, - "curve": [ 0.545, 0, 1, 1 ] - }, - { - "time": 0.4, - "angle": -9.78, - "curve": [ 0.58, 0.17, 1, 1 ] - }, - { "time": 0.6666, "angle": -15.75 }, - { "time": 0.9333, "angle": -7.06 }, - { "time": 1.0666, "angle": -10.28 } - ], - "translate": [ - { "time": 0, "x": -3.67, "y": 1.68 }, - { "time": 0.1333, "x": -3.67, "y": 0.68 }, - { "time": 0.4, "x": -3.67, "y": 1.97 }, - { "time": 0.6666, "x": -3.67, "y": -0.14 }, - { "time": 1.0666, "x": -3.67, "y": 1.68 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": -5.25 }, - { "time": 0.2666, "angle": -4.08 }, - { "time": 0.4, "angle": -6.45 }, - { "time": 0.5333, "angle": -5.39 }, - { "time": 0.8, "angle": -11.68 }, - { "time": 0.9333, "angle": 0.46 }, - { "time": 1.0666, "angle": -5.25 } - ] - }, - "right lower leg": { - "rotate": [ - { "time": 0, "angle": -3.39 }, - { "time": 0.1333, "angle": -45.53 }, - { "time": 0.2666, "angle": -2.59 }, - { "time": 0.5333, "angle": -19.53 }, - { "time": 0.6666, "angle": -64.8 }, - { - "time": 0.8, - "angle": -82.56, - "curve": [ 0.557, 0.18, 1, 1 ] - }, - { "time": 1.0666, "angle": -3.39 } - ] - }, - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 1.0666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { - "time": 0.1333, - "x": 0, - "y": -7.61, - "curve": [ 0.272, 0.86, 1, 1 ] - }, - { "time": 0.4, "x": 0, "y": 8.7 }, - { "time": 0.5333, "x": 0, "y": -0.41 }, - { - "time": 0.6666, - "x": 0, - "y": -7.05, - "curve": [ 0.235, 0.89, 1, 1 ] - }, - { "time": 0.8, "x": 0, "y": 2.92 }, - { "time": 0.9333, "x": 0, "y": 6.78 }, - { "time": 1.0666, "x": 0, "y": 0 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 3.6 }, - { "time": 0.1333, "angle": 17.49 }, - { "time": 0.2666, "angle": 6.1 }, - { "time": 0.4, "angle": 3.45 }, - { "time": 0.5333, "angle": 5.17 }, - { "time": 0.6666, "angle": 18.36 }, - { "time": 0.8, "angle": 6.09 }, - { "time": 0.9333, "angle": 2.28 }, - { "time": 1.0666, "angle": 3.6 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 3.6, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.1666, "angle": -0.2 }, - { "time": 0.2666, "angle": 6.1 }, - { "time": 0.4, "angle": 3.45 }, - { - "time": 0.5333, - "angle": 5.17, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.7, "angle": 1.1 }, - { "time": 0.8, "angle": 6.09 }, - { "time": 0.9333, "angle": 2.28 }, - { "time": 1.0666, "angle": 3.6 } - ] - } - } - }, - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.9333, "angle": 0, "curve": "stepped" }, - { "time": 1.3666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": -11.57, "y": -3 }, - { "time": 0.2333, "x": -16.2, "y": -19.43 }, - { - "time": 0.3333, - "x": 7.66, - "y": -8.48, - "curve": [ 0.057, 0.06, 0.712, 1 ] - }, - { "time": 0.3666, "x": 15.38, "y": 5.01 }, - { "time": 0.4666, "x": -7.84, "y": 57.22 }, - { - "time": 0.6, - "x": -10.81, - "y": 96.34, - "curve": [ 0.241, 0, 1, 1 ] - }, - { "time": 0.7333, "x": -7.01, "y": 54.7 }, - { "time": 0.8, "x": -10.58, "y": 32.2 }, - { "time": 0.9333, "x": -31.99, "y": 0.45 }, - { "time": 1.0666, "x": -12.48, "y": -29.47 }, - { "time": 1.3666, "x": -11.57, "y": -3 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left upper leg": { - "rotate": [ - { "time": 0, "angle": 17.13 }, - { "time": 0.2333, "angle": 44.35 }, - { "time": 0.3333, "angle": 16.46 }, - { "time": 0.4, "angle": -9.88 }, - { "time": 0.4666, "angle": -11.42 }, - { "time": 0.5666, "angle": 23.46 }, - { "time": 0.7666, "angle": 71.82 }, - { "time": 0.9333, "angle": 65.53 }, - { "time": 1.0666, "angle": 51.01 }, - { "time": 1.3666, "angle": 17.13 } - ], - "translate": [ - { "time": 0, "x": -3, "y": -2.25, "curve": "stepped" }, - { "time": 0.9333, "x": -3, "y": -2.25, "curve": "stepped" }, - { "time": 1.3666, "x": -3, "y": -2.25 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -16.25 }, - { "time": 0.2333, "angle": -52.21 }, - { "time": 0.4, "angle": 15.04 }, - { "time": 0.4666, "angle": -8.95 }, - { "time": 0.5666, "angle": -39.53 }, - { "time": 0.7666, "angle": -27.27 }, - { "time": 0.9333, "angle": -3.52 }, - { "time": 1.0666, "angle": -61.92 }, - { "time": 1.3666, "angle": -16.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": 0.33 }, - { "time": 0.2333, "angle": 6.2 }, - { "time": 0.3333, "angle": 14.73 }, - { "time": 0.4, "angle": -15.54 }, - { "time": 0.4333, "angle": -21.2 }, - { "time": 0.5666, "angle": -7.55 }, - { "time": 0.7666, "angle": -0.67 }, - { "time": 0.9333, "angle": -0.58 }, - { "time": 1.0666, "angle": 14.64 }, - { "time": 1.3666, "angle": 0.33 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 25.97 }, - { "time": 0.2333, "angle": 46.43 }, - { "time": 0.3333, "angle": 22.61 }, - { "time": 0.4, "angle": 2.13 }, - { - "time": 0.4666, - "angle": 0.04, - "curve": [ 0, 0, 0.637, 0.98 ] - }, - { "time": 0.6, "angle": 65.55 }, - { "time": 0.7666, "angle": 64.93 }, - { "time": 0.9333, "angle": 41.08 }, - { "time": 1.0666, "angle": 66.25 }, - { "time": 1.3666, "angle": 25.97 } - ], - "translate": [ - { "time": 0, "x": 5.74, "y": 0.61 }, - { "time": 0.2333, "x": 4.79, "y": 1.79 }, - { "time": 0.3333, "x": 6.05, "y": -4.55 }, - { "time": 0.9333, "x": 4.79, "y": 1.79, "curve": "stepped" }, - { "time": 1.0666, "x": 4.79, "y": 1.79 }, - { "time": 1.3666, "x": 5.74, "y": 0.61 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right lower leg": { - "rotate": [ - { "time": 0, "angle": -27.46 }, - { "time": 0.2333, "angle": -64.03 }, - { "time": 0.4, "angle": -48.36 }, - { "time": 0.5666, "angle": -76.86 }, - { "time": 0.7666, "angle": -26.89 }, - { "time": 0.9, "angle": -18.97 }, - { "time": 0.9333, "angle": -14.18 }, - { "time": 1.0666, "angle": -80.45 }, - { "time": 1.3666, "angle": -27.46 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": 1.08 }, - { "time": 0.2333, "angle": 16.02 }, - { "time": 0.3, "angle": 12.94 }, - { "time": 0.3333, "angle": 15.16 }, - { "time": 0.4, "angle": -14.7 }, - { "time": 0.4333, "angle": -12.85 }, - { "time": 0.4666, "angle": -19.18 }, - { "time": 0.5666, "angle": -15.82 }, - { "time": 0.6, "angle": -3.59 }, - { "time": 0.7666, "angle": -3.56 }, - { "time": 0.9333, "angle": 1.86 }, - { "time": 1.0666, "angle": 16.02 }, - { "time": 1.3666, "angle": 1.08 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -13.35 }, - { "time": 0.2333, "angle": -48.95 }, - { "time": 0.4333, "angle": -35.77 }, - { "time": 0.6, "angle": -4.59 }, - { "time": 0.7666, "angle": 14.61 }, - { "time": 0.9333, "angle": 15.74 }, - { "time": 1.0666, "angle": -32.44 }, - { "time": 1.3666, "angle": -13.35 } - ], - "translate": [ - { "time": 0, "x": -3.67, "y": 1.68, "curve": "stepped" }, - { "time": 0.9333, "x": -3.67, "y": 1.68, "curve": "stepped" }, - { "time": 1.3666, "x": -3.67, "y": 1.68 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 12.78 }, - { "time": 0.2333, "angle": 16.46 }, - { "time": 0.4, "angle": 26.49 }, - { "time": 0.6, "angle": 15.51 }, - { "time": 0.7666, "angle": 1.34 }, - { "time": 0.9333, "angle": 2.35 }, - { "time": 1.0666, "angle": 6.08 }, - { "time": 1.3, "angle": 21.23 }, - { "time": 1.3666, "angle": 12.78 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 5.19 }, - { "time": 0.2333, "angle": 20.27 }, - { "time": 0.4, "angle": 15.27 }, - { "time": 0.6, "angle": -24.69 }, - { "time": 0.7666, "angle": -11.02 }, - { "time": 0.9333, "angle": -24.38 }, - { "time": 1.0666, "angle": 11.99 }, - { "time": 1.3, "angle": 4.86 }, - { "time": 1.3666, "angle": 5.19 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left shoulder": { - "rotate": [ - { - "time": 0, - "angle": 0.05, - "curve": [ 0, 0, 0.62, 1 ] - }, - { - "time": 0.2333, - "angle": 279.66, - "curve": [ 0.218, 0.67, 0.66, 0.99 ] - }, - { - "time": 0.5, - "angle": 62.27, - "curve": [ 0.462, 0, 0.764, 0.58 ] - }, - { "time": 0.9333, "angle": 28.91 }, - { "time": 1.0666, "angle": -8.62 }, - { "time": 1.1666, "angle": -18.43 }, - { "time": 1.3666, "angle": 0.05 } - ], - "translate": [ - { "time": 0, "x": -1.76, "y": 0.56, "curve": "stepped" }, - { "time": 0.9333, "x": -1.76, "y": 0.56, "curve": "stepped" }, - { "time": 1.3666, "x": -1.76, "y": 0.56 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left hand": { - "rotate": [ - { "time": 0, "angle": 11.58, "curve": "stepped" }, - { "time": 0.9333, "angle": 11.58, "curve": "stepped" }, - { "time": 1.3666, "angle": 11.58 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left arm": { - "rotate": [ - { "time": 0, "angle": 0.51 }, - { "time": 0.4333, "angle": 12.82 }, - { "time": 0.6, "angle": 47.55 }, - { "time": 0.9333, "angle": 12.82 }, - { "time": 1.1666, "angle": -6.5 }, - { "time": 1.3666, "angle": 0.51 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 43.82, - "curve": [ 0, 0, 0.62, 1 ] - }, - { - "time": 0.2333, - "angle": -8.74, - "curve": [ 0.304, 0.58, 0.709, 0.97 ] - }, - { - "time": 0.5333, - "angle": -208.02, - "curve": [ 0.462, 0, 0.764, 0.58 ] - }, - { "time": 0.9333, "angle": -246.72 }, - { "time": 1.0666, "angle": -307.13 }, - { "time": 1.1666, "angle": 37.15 }, - { "time": 1.3666, "angle": 43.82 } - ], - "translate": [ - { "time": 0, "x": -7.84, "y": 7.19, "curve": "stepped" }, - { "time": 0.9333, "x": -7.84, "y": 7.19, "curve": "stepped" }, - { "time": 1.3666, "x": -7.84, "y": 7.19 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right arm": { - "rotate": [ - { "time": 0, "angle": -4.02 }, - { "time": 0.6, "angle": 17.5 }, - { "time": 0.9333, "angle": -4.02 }, - { "time": 1.1666, "angle": -16.72 }, - { "time": 1.3666, "angle": -4.02 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 22.92, "curve": "stepped" }, - { "time": 0.9333, "angle": 22.92, "curve": "stepped" }, - { "time": 1.3666, "angle": 22.92 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "root": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.4333, "angle": -14.52 }, - { "time": 0.8, "angle": 9.86 }, - { "time": 1.3666, "angle": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/dragonBones.png b/examples/example 12 - Spine/data/dragonBones.png deleted file mode 100644 index 12cb92e..0000000 --- a/examples/example 12 - Spine/data/dragonBones.png +++ /dev/null Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBonesData.json b/examples/example 12 - Spine/data/dragonBonesData.json deleted file mode 100644 index c65508a..0000000 --- a/examples/example 12 - Spine/data/dragonBonesData.json +++ /dev/null @@ -1,779 +0,0 @@ -{ -"bones": [ - { "name": "root", "y": -176.12 }, - { "name": "COG", "parent": "root", "y": 176.12 }, - { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, - { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, - { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, - { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, - { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, - { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, - { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, - { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, - { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, - { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, - { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, - { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, - { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, - { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, - { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, - { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, - { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, - { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, - { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, - { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, - { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, - { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, - { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, - { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, - { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, - { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, - { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, - { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, - { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, - { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, - { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } -], -"slots": [ - { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, - { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, - { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, - { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, - { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, - { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, - { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, - { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, - { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, - { "name": "back", "bone": "back", "attachment": "back" }, - { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, - { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, - { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, - { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, - { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, - { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, - { "name": "chest", "bone": "chest", "attachment": "chest" }, - { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, - { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, - { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, - { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, - { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, - { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, - { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, - { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, - { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, - { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, - { "name": "chin", "bone": "chin", "attachment": "chin" }, - { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, - { "name": "head", "bone": "head", "attachment": "head" } -], -"skins": { - "default": { - "L_front_leg": { - "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } - }, - "L_front_thigh": { - "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } - }, - "L_front_toe1": { - "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } - }, - "L_front_toe2": { - "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } - }, - "L_front_toe3": { - "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } - }, - "L_front_toe4": { - "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } - }, - "L_rear_leg": { - "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } - }, - "L_rear_thigh": { - "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } - }, - "L_wing": { - "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, - "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, - "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, - "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, - "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, - "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, - "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, - "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, - "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } - }, - "R_front_leg": { - "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } - }, - "R_front_thigh": { - "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } - }, - "R_front_toe1": { - "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } - }, - "R_front_toe2": { - "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } - }, - "R_front_toe3": { - "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } - }, - "R_rear_leg": { - "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } - }, - "R_rear_thigh": { - "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } - }, - "R_rear_toe1": { - "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } - }, - "R_rear_toe2": { - "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } - }, - "R_rear_toe3": { - "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } - }, - "R_wing": { - "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, - "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, - "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, - "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, - "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, - "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, - "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, - "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, - "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } - }, - "back": { - "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } - }, - "chest": { - "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } - }, - "chin": { - "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } - }, - "head": { - "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } - }, - "tail1": { - "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } - }, - "tail2": { - "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } - }, - "tail3": { - "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } - }, - "tail4": { - "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } - }, - "tail5": { - "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } - }, - "tail6": { - "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } - } - } -}, -"animations": { - "flying": { - "bones": { - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.39 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.8333, "angle": 7 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -8.18 }, - { "time": 0.3333, "angle": -23.16 }, - { "time": 0.5, "angle": -18.01 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chest": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -2.42 }, - { "time": 0.3333, "angle": -26.2 }, - { "time": 0.5, "angle": -29.65 }, - { "time": 0.6666, "angle": -23.15 }, - { "time": 0.8333, "angle": -55.46 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_thigh": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -1.12 }, - { "time": 0.3333, "angle": 10.48 }, - { "time": 0.5, "angle": 7.89 }, - { "time": 0.8333, "angle": -10.38 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 8.24 }, - { "time": 0.3333, "angle": 15.21 }, - { "time": 0.5, "angle": 14.84 }, - { "time": 0.8333, "angle": -18.9 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.46 }, - { "time": 0.3333, "angle": 22.15 }, - { "time": 0.5, "angle": 22.76 }, - { "time": 0.8333, "angle": -4.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail5": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 7.4 }, - { "time": 0.3333, "angle": 28.5 }, - { "time": 0.5, "angle": 21.33 }, - { "time": 0.8333, "angle": -1.27 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail6": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 45.99 }, - { "time": 0.4, "angle": 43.53 }, - { "time": 0.5, "angle": 61.79 }, - { "time": 0.8333, "angle": 13.28 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -14.21 }, - { "time": 0.5, "angle": 47.17 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -36.06 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -20.32 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -18.71 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.408, 1.36, 0.675, 1.43 ] - }, - { "time": 0.5, "angle": 1.03 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chin": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.416, 1.15, 0.494, 1.27 ] - }, - { "time": 0.3333, "angle": -5.15 }, - { "time": 0.5, "angle": 9.79 }, - { "time": 0.6666, "angle": 18.94 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -19.18 }, - { "time": 0.3333, "angle": -32.02 }, - { "time": 0.5, "angle": -19.62 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -12.96 }, - { "time": 0.5, "angle": 16.2 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 37.77 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -16.08 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.33, "y": 1.029 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 26.51 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.239, "y": 0.993 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 16.99 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.402, "y": 1.007 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 26.07 }, - { "time": 0.5, "angle": -21.6 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 29.23 }, - { "time": 0.5, "angle": 34.83 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.412, "y": 1 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 24.89 }, - { "time": 0.5, "angle": 23.16 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.407, "y": 1.057 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 11.01 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.329, "y": 1.181 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 25.19 }, - { "time": 0.6666, "angle": -15.65 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "COG": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.456, 0.2, 0.422, 1.06 ] - }, - { "time": 0.3333, "angle": 23.93 }, - { - "time": 0.6666, - "angle": 337.8, - "curve": [ 0.41, 0, 0.887, 0.75 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.33, 1, 0.816, 1.33 ] - }, - { - "time": 0.5, - "x": 0, - "y": 113.01, - "curve": [ 0.396, 0, 0.709, 2.03 ] - }, - { "time": 1, "x": 0, "y": 0 } - ] - } - }, - "slots": { - "R_wing": { - "attachment": [ - { "time": 0, "name": "R_wing01" }, - { "time": 0.0666, "name": "R_wing02" }, - { "time": 0.1333, "name": "R_wing03" }, - { "time": 0.2, "name": "R_wing04" }, - { "time": 0.2666, "name": "R_wing05" }, - { "time": 0.3333, "name": "R_wing06" }, - { "time": 0.4, "name": "R_wing07" }, - { "time": 0.4666, "name": "R_wing08" }, - { "time": 0.5333, "name": "R_wing09" }, - { "time": 0.6, "name": "R_wing01" }, - { "time": 0.7333, "name": "R_wing02" }, - { "time": 0.7666, "name": "R_wing02" }, - { "time": 0.8, "name": "R_wing03" }, - { "time": 0.8333, "name": "R_wing04" }, - { "time": 0.8666, "name": "R_wing05" }, - { "time": 0.9, "name": "R_wing06" }, - { "time": 0.9333, "name": "R_wing07" }, - { "time": 0.9666, "name": "R_wing08" }, - { "time": 1, "name": "R_wing09" } - ] - }, - "L_wing": { - "attachment": [ - { "time": 0, "name": "L_wing01" }, - { "time": 0.0666, "name": "L_wing02" }, - { "time": 0.1333, "name": "L_wing03" }, - { "time": 0.2, "name": "L_wing04" }, - { "time": 0.2666, "name": "L_wing05" }, - { "time": 0.3333, "name": "L_wing06" }, - { "time": 0.4, "name": "L_wing07" }, - { "time": 0.4666, "name": "L_wing08" }, - { "time": 0.5333, "name": "L_wing09" }, - { "time": 0.6, "name": "L_wing01" }, - { "time": 0.7333, "name": "L_wing02" }, - { "time": 0.8, "name": "L_wing03" }, - { "time": 0.8333, "name": "L_wing04" }, - { "time": 0.8666, "name": "L_wing05" }, - { "time": 0.9, "name": "L_wing06" }, - { "time": 0.9333, "name": "L_wing07" }, - { "time": 0.9666, "name": "L_wing08" }, - { "time": 1, "name": "L_wing09" } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/goblins.atlas b/examples/example 12 - Spine/data/goblins.atlas new file mode 100644 index 0000000..c9cb702 --- /dev/null +++ b/examples/example 12 - Spine/data/goblins.atlas @@ -0,0 +1,293 @@ + +goblins.png +size: 228,523 +format: RGBA8888 +filter: Linear,Linear +repeat: none +dagger + rotate: false + xy: 2, 43 + size: 26, 108 + orig: 26, 108 + offset: 0, 0 + index: -1 +goblin/eyes-closed + rotate: false + xy: 166, 237 + size: 34, 12 + orig: 34, 12 + offset: 0, 0 + index: -1 +goblin/head + rotate: false + xy: 26, 372 + size: 103, 66 + orig: 103, 66 + offset: 0, 0 + index: -1 +goblin/left-arm + rotate: false + xy: 166, 251 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblin/left-foot + rotate: true + xy: 195, 358 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblin/left-hand + rotate: false + xy: 49, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/left-lower-leg + rotate: false + xy: 30, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblin/left-shoulder + rotate: true + xy: 169, 288 + size: 29, 44 + orig: 29, 44 + offset: 0, 0 + index: -1 +goblin/left-upper-leg + rotate: false + xy: 134, 305 + size: 33, 73 + orig: 33, 73 + offset: 0, 0 + index: -1 +goblin/neck + rotate: false + xy: 87, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/pelvis + rotate: false + xy: 131, 380 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblin/right-arm + rotate: false + xy: 135, 69 + size: 23, 50 + orig: 23, 50 + offset: 0, 0 + index: -1 +goblin/right-foot + rotate: true + xy: 104, 157 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblin/right-hand + rotate: false + xy: 190, 319 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblin/right-lower-leg + rotate: false + xy: 96, 294 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblin/right-shoulder + rotate: true + xy: 2, 2 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblin/right-upper-leg + rotate: false + xy: 139, 162 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblin/torso + rotate: false + xy: 131, 425 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblin/undie-straps + rotate: true + xy: 201, 466 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblin/undies + rotate: false + xy: 190, 51 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +goblingirl/eyes-closed + rotate: true + xy: 201, 427 + size: 37, 21 + orig: 37, 21 + offset: 0, 0 + index: -1 +goblingirl/head + rotate: false + xy: 26, 440 + size: 103, 81 + orig: 103, 81 + offset: 0, 0 + index: -1 +goblingirl/left-arm + rotate: true + xy: 175, 198 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblingirl/left-foot + rotate: true + xy: 133, 227 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblingirl/left-hand + rotate: true + xy: 168, 2 + size: 35, 40 + orig: 35, 40 + offset: 0, 0 + index: -1 +goblingirl/left-lower-leg + rotate: false + xy: 65, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/left-shoulder + rotate: true + xy: 135, 39 + size: 28, 46 + orig: 28, 46 + offset: 0, 0 + index: -1 +goblingirl/left-upper-leg + rotate: false + xy: 98, 222 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/neck + rotate: true + xy: 125, 2 + size: 35, 41 + orig: 35, 41 + offset: 0, 0 + index: -1 +goblingirl/pelvis + rotate: false + xy: 30, 117 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblingirl/right-arm + rotate: false + xy: 160, 69 + size: 28, 50 + orig: 28, 50 + offset: 0, 0 + index: -1 +goblingirl/right-foot + rotate: true + xy: 100, 56 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblingirl/right-hand + rotate: false + xy: 190, 82 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblingirl/right-lower-leg + rotate: true + xy: 26, 162 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblingirl/right-shoulder + rotate: true + xy: 159, 121 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblingirl/right-upper-leg + rotate: true + xy: 94, 121 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblingirl/torso + rotate: false + xy: 26, 274 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblingirl/undie-straps + rotate: true + xy: 169, 323 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblingirl/undies + rotate: false + xy: 175, 167 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +shield + rotate: false + xy: 26, 200 + size: 70, 72 + orig: 70, 72 + offset: 0, 0 + index: -1 +spear + rotate: false + xy: 2, 153 + size: 22, 368 + orig: 22, 368 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/goblins.json b/examples/example 12 - Spine/data/goblins.json index f87ec19..5d83ae1 100644 --- a/examples/example 12 - Spine/data/goblins.json +++ b/examples/example 12 - Spine/data/goblins.json @@ -1,332 +1 @@ -{"frames": { - -"dagger.png": -{ - "frame": {"x":2,"y":372,"w":26,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":26,"h":108}, - "sourceSize": {"w":26,"h":108} -}, -"goblin/eyes-closed.png": -{ - "frame": {"x":64,"y":354,"w":34,"h":12}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":12}, - "sourceSize": {"w":34,"h":12} -}, -"goblin/head.png": -{ - "frame": {"x":59,"y":83,"w":103,"h":64}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":103,"h":64}, - "sourceSize": {"w":103,"h":66} -}, -"goblin/left-arm.png": -{ - "frame": {"x":30,"y":445,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblin/left-foot.png": -{ - "frame": {"x":59,"y":182,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblin/left-hand.png": -{ - "frame": {"x":107,"y":436,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/left-lower-leg.png": -{ - "frame": {"x":26,"y":74,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblin/left-shoulder.png": -{ - "frame": {"x":26,"y":146,"w":29,"h":44}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":44}, - "sourceSize": {"w":29,"h":44} -}, -"goblin/left-upper-leg.png": -{ - "frame": {"x":30,"y":370,"w":33,"h":73}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":73}, - "sourceSize": {"w":33,"h":73} -}, -"goblin/neck.png": -{ - "frame": {"x":146,"y":309,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/pelvis.png": -{ - "frame": {"x":163,"y":233,"w":62,"h":43}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":62,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblin/right-arm.png": -{ - "frame": {"x":30,"y":240,"w":23,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":23,"h":50}, - "sourceSize": {"w":23,"h":50} -}, -"goblin/right-foot.png": -{ - "frame": {"x":164,"y":198,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblin/right-hand.png": -{ - "frame": {"x":154,"y":462,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblin/right-lower-leg.png": -{ - "frame": {"x":26,"y":292,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblin/right-shoulder.png": -{ - "frame": {"x":105,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblin/right-upper-leg.png": -{ - "frame": {"x":136,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblin/torso.png": -{ - "frame": {"x":164,"y":2,"w":68,"h":96}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblin/undie-straps.png": -{ - "frame": {"x":59,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblin/undies.png": -{ - "frame": {"x":116,"y":479,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"goblingirl/eyes-closed.png": -{ - "frame": {"x":100,"y":419,"w":37,"h":15}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":6,"w":37,"h":15}, - "sourceSize": {"w":37,"h":21} -}, -"goblingirl/head.png": -{ - "frame": {"x":59,"y":2,"w":103,"h":79}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":79}, - "sourceSize": {"w":103,"h":81} -}, -"goblingirl/left-arm.png": -{ - "frame": {"x":124,"y":227,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblingirl/left-foot.png": -{ - "frame": {"x":59,"y":149,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblingirl/left-hand.png": -{ - "frame": {"x":55,"y":250,"w":35,"h":40}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":40}, - "sourceSize": {"w":35,"h":40} -}, -"goblingirl/left-lower-leg.png": -{ - "frame": {"x":26,"y":2,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/left-shoulder.png": -{ - "frame": {"x":26,"y":192,"w":28,"h":46}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":28,"h":46}, - "sourceSize": {"w":28,"h":46} -}, -"goblingirl/left-upper-leg.png": -{ - "frame": {"x":65,"y":368,"w":33,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/neck.png": -{ - "frame": {"x":145,"y":419,"w":33,"h":41}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":41}, - "sourceSize": {"w":35,"h":41} -}, -"goblingirl/pelvis.png": -{ - "frame": {"x":92,"y":264,"w":60,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":60,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblingirl/right-arm.png": -{ - "frame": {"x":232,"y":100,"w":22,"h":50}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":3,"y":0,"w":22,"h":50}, - "sourceSize": {"w":28,"h":50} -}, -"goblingirl/right-foot.png": -{ - "frame": {"x":59,"y":215,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblingirl/right-hand.png": -{ - "frame": {"x":69,"y":440,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblingirl/right-lower-leg.png": -{ - "frame": {"x":126,"y":149,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblingirl/right-shoulder.png": -{ - "frame": {"x":64,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblingirl/right-upper-leg.png": -{ - "frame": {"x":100,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblingirl/torso.png": -{ - "frame": {"x":164,"y":100,"w":66,"h":96}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":66,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblingirl/undie-straps.png": -{ - "frame": {"x":2,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblingirl/undies.png": -{ - "frame": {"x":154,"y":278,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"spear.png": -{ - "frame": {"x":2,"y":2,"w":22,"h":368}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":22,"h":368}, - "sourceSize": {"w":22,"h":368} -}}, -"meta": { - "app": "http://www.codeandweb.com/texturepacker ", - "version": "1.0", - "image": "goblins.png", - "format": "RGBA8888", - "size": {"w":256,"h":512}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:f89858b99c6b15e23d39806c4170313a:1/1$" -} -} +{"skeleton":{"hash":"BMzsp4a1APif5tjCQwomTTo3Ino","spine":"2.1.05","width":233.95,"height":354.87},"bones":[{"name":"root"},{"name":"hip","parent":"root","x":0.64,"y":114.41},{"name":"left upper leg","parent":"hip","length":50.39,"x":14.45,"y":2.81,"rotation":-89.09},{"name":"pelvis","parent":"hip","x":1.41,"y":-6.57},{"name":"right upper leg","parent":"hip","length":42.45,"x":-20.07,"y":-6.83,"rotation":-97.49},{"name":"torso","parent":"hip","length":85.82,"x":-6.42,"y":1.97,"rotation":93.92},{"name":"left lower leg","parent":"left upper leg","length":49.89,"x":56.34,"y":0.98,"rotation":-16.65},{"name":"left shoulder","parent":"torso","length":35.43,"x":74.04,"y":-20.38,"rotation":-156.96},{"name":"neck","parent":"torso","length":18.38,"x":81.67,"y":-6.34,"rotation":-1.51},{"name":"right lower leg","parent":"right upper leg","length":58.52,"x":42.99,"y":-0.61,"rotation":-14.34},{"name":"right shoulder","parent":"torso","length":37.24,"x":76.02,"y":18.14,"rotation":133.88},{"name":"head","parent":"neck","length":68.28,"x":20.93,"y":11.59,"rotation":-13.92},{"name":"left arm","parent":"left shoulder","length":35.62,"x":37.85,"y":-2.34,"rotation":28.16},{"name":"left foot","parent":"left lower leg","length":46.5,"x":58.94,"y":-7.61,"rotation":102.43},{"name":"right arm","parent":"right shoulder","length":36.74,"x":37.6,"y":0.31,"rotation":36.32},{"name":"right foot","parent":"right lower leg","length":45.45,"x":64.88,"y":0.04,"rotation":110.3},{"name":"left hand","parent":"left arm","length":11.52,"x":35.62,"y":0.07,"rotation":2.7},{"name":"right hand","parent":"right arm","length":15.32,"x":36.9,"y":0.34,"rotation":2.35}],"slots":[{"name":"left shoulder","bone":"left shoulder","attachment":"left shoulder"},{"name":"left arm","bone":"left arm","attachment":"left arm"},{"name":"left hand item","bone":"left hand","attachment":"spear"},{"name":"left hand","bone":"left hand","attachment":"left hand"},{"name":"left foot","bone":"left foot","attachment":"left foot"},{"name":"left lower leg","bone":"left lower leg","attachment":"left lower leg"},{"name":"left upper leg","bone":"left upper leg","attachment":"left upper leg"},{"name":"neck","bone":"neck","attachment":"neck"},{"name":"torso","bone":"torso","attachment":"torso"},{"name":"pelvis","bone":"pelvis","attachment":"pelvis"},{"name":"right foot","bone":"right foot","attachment":"right foot"},{"name":"right lower leg","bone":"right lower leg","attachment":"right lower leg"},{"name":"undie straps","bone":"pelvis","attachment":"undie straps"},{"name":"undies","bone":"pelvis","attachment":"undies"},{"name":"right upper leg","bone":"right upper leg","attachment":"right upper leg"},{"name":"head","bone":"head","attachment":"head"},{"name":"eyes","bone":"head"},{"name":"right shoulder","bone":"right shoulder","attachment":"right shoulder"},{"name":"right arm","bone":"right arm","attachment":"right arm"},{"name":"right hand item","bone":"right hand"},{"name":"right hand","bone":"right hand","attachment":"right hand"},{"name":"right hand item top","bone":"right hand","attachment":"shield"}],"skins":{"default":{"left hand item":{"dagger":{"x":7.88,"y":-23.45,"rotation":10.47,"width":26,"height":108},"spear":{"x":-4.55,"y":39.2,"rotation":13.04,"width":22,"height":368}},"right hand item":{"dagger":{"x":6.51,"y":-24.15,"rotation":-8.06,"width":26,"height":108}},"right hand item top":{"shield":{"rotation":93.49,"width":70,"height":72}}},"goblin":{"eyes":{"eyes closed":{"name":"goblin/eyes-closed","x":32.21,"y":-21.27,"rotation":-88.92,"width":34,"height":12}},"head":{"head":{"name":"goblin/head","x":25.73,"y":2.33,"rotation":-92.29,"width":103,"height":66}},"left arm":{"left arm":{"name":"goblin/left-arm","x":16.7,"y":-1.69,"scaleX":1.057,"scaleY":1.057,"rotation":33.84,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblin/left-foot","x":24.85,"y":8.74,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblin/left-hand","x":3.47,"y":3.41,"scaleX":0.892,"scaleY":0.892,"rotation":31.14,"width":36,"height":41}},"left lower leg":{"left lower leg":{"name":"goblin/left-lower-leg","x":23.58,"y":-2.06,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblin/left-shoulder","x":15.56,"y":-2.26,"rotation":62.01,"width":29,"height":44}},"left upper leg":{"left upper leg":{"name":"goblin/left-upper-leg","x":29.68,"y":-3.87,"rotation":89.09,"width":33,"height":73}},"neck":{"neck":{"name":"goblin/neck","x":10.1,"y":0.42,"rotation":-93.69,"width":36,"height":41}},"pelvis":{"pelvis":{"name":"goblin/pelvis","x":-5.61,"y":0.76,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblin/right-arm","x":16.44,"y":-1.04,"rotation":94.32,"width":23,"height":50}},"right foot":{"right foot":{"name":"goblin/right-foot","x":23.56,"y":9.8,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblin/right-hand","x":7.88,"y":2.78,"rotation":91.96,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblin/right-lower-leg","x":25.68,"y":-3.15,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblin/right-shoulder","x":15.68,"y":-1.03,"rotation":130.65,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblin/right-upper-leg","x":20.35,"y":1.47,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblin/torso","x":38.09,"y":-3.87,"rotation":-94.95,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblin/undie-straps","x":-3.87,"y":13.1,"scaleX":1.089,"width":55,"height":19}},"undies":{"undies":{"name":"goblin/undies","x":6.3,"y":0.12,"rotation":0.91,"width":36,"height":29}}},"goblingirl":{"eyes":{"eyes closed":{"name":"goblingirl/eyes-closed","x":28,"y":-25.54,"rotation":-87.04,"width":37,"height":21}},"head":{"head":{"name":"goblingirl/head","x":27.71,"y":-4.32,"rotation":-85.58,"width":103,"height":81}},"left arm":{"left arm":{"name":"goblingirl/left-arm","x":19.64,"y":-2.42,"rotation":33.05,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblingirl/left-foot","x":25.17,"y":7.92,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblingirl/left-hand","x":4.34,"y":2.39,"scaleX":0.896,"scaleY":0.896,"rotation":30.34,"width":35,"height":40}},"left lower leg":{"left lower leg":{"name":"goblingirl/left-lower-leg","x":25.02,"y":-0.6,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblingirl/left-shoulder","x":19.8,"y":-0.42,"rotation":61.21,"width":28,"height":46}},"left upper leg":{"left upper leg":{"name":"goblingirl/left-upper-leg","x":30.21,"y":-2.95,"rotation":89.09,"width":33,"height":70}},"neck":{"neck":{"name":"goblingirl/neck","x":6.16,"y":-3.14,"rotation":-98.86,"width":35,"height":41}},"pelvis":{"pelvis":{"name":"goblingirl/pelvis","x":-3.87,"y":3.18,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblingirl/right-arm","x":16.85,"y":-0.66,"rotation":93.52,"width":28,"height":50}},"right foot":{"right foot":{"name":"goblingirl/right-foot","x":23.46,"y":9.66,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblingirl/right-hand","x":7.21,"y":3.43,"rotation":91.16,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblingirl/right-lower-leg","x":26.15,"y":-3.27,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblingirl/right-shoulder","x":14.46,"y":0.45,"rotation":129.85,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblingirl/right-upper-leg","x":19.69,"y":2.13,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblingirl/torso","x":36.28,"y":-5.14,"rotation":-95.74,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblingirl/undie-straps","x":-1.51,"y":14.18,"width":55,"height":19}},"undies":{"undies":{"name":"goblingirl/undies","x":5.4,"y":1.7,"width":36,"height":29}}}},"animations":{"walk":{"slots":{"eyes":{"attachment":[{"time":0.7,"name":"eyes closed"},{"time":0.8,"name":null}]}},"bones":{"left upper leg":{"rotate":[{"time":0,"angle":-26.55},{"time":0.1333,"angle":-8.78},{"time":0.2333,"angle":9.51},{"time":0.3666,"angle":30.74},{"time":0.5,"angle":25.33},{"time":0.6333,"angle":26.11},{"time":0.7333,"angle":-7.7},{"time":0.8666,"angle":-21.19},{"time":1,"angle":-26.55}],"translate":[{"time":0,"x":-1.32,"y":1.7},{"time":0.3666,"x":-0.06,"y":2.42},{"time":1,"x":-1.32,"y":1.7}]},"right upper leg":{"rotate":[{"time":0,"angle":42.45},{"time":0.1333,"angle":52.1},{"time":0.2333,"angle":8.53},{"time":0.5,"angle":-16.93},{"time":0.6333,"angle":1.89},{"time":0.7333,"angle":28.06,"curve":[0.462,0.11,1,1]},{"time":0.8666,"angle":58.68,"curve":[0.5,0.02,1,1]},{"time":1,"angle":42.45}],"translate":[{"time":0,"x":6.23,"y":0},{"time":0.2333,"x":2.14,"y":2.4},{"time":0.5,"x":2.44,"y":4.8},{"time":1,"x":6.23,"y":0}]},"left lower leg":{"rotate":[{"time":0,"angle":-22.98},{"time":0.1333,"angle":-63.5},{"time":0.2333,"angle":-73.76},{"time":0.5,"angle":5.11},{"time":0.6333,"angle":-28.29},{"time":0.7333,"angle":4.08},{"time":0.8666,"angle":3.53},{"time":1,"angle":-22.98}],"translate":[{"time":0,"x":0,"y":0},{"time":0.2333,"x":2.55,"y":-0.47},{"time":0.5,"x":0,"y":0,"curve":"stepped"},{"time":1,"x":0,"y":0}]},"left foot":{"rotate":[{"time":0,"angle":-3.69},{"time":0.1333,"angle":-10.42},{"time":0.2333,"angle":-5.01},{"time":0.3666,"angle":3.87},{"time":0.5,"angle":-3.87},{"time":0.6333,"angle":2.78},{"time":0.7333,"angle":1.68},{"time":0.8666,"angle":-8.54},{"time":1,"angle":-3.69}]},"right shoulder":{"rotate":[{"time":0,"angle":5.29,"curve":[0.264,0,0.75,1]},{"time":0.6333,"angle":6.65},{"time":1,"angle":5.29}]},"right arm":{"rotate":[{"time":0,"angle":-4.02,"curve":[0.267,0,0.804,0.99]},{"time":0.6333,"angle":19.78,"curve":[0.307,0,0.787,0.99]},{"time":1,"angle":-4.02}]},"right hand":{"rotate":[{"time":0,"angle":8.98},{"time":0.6333,"angle":0.51},{"time":1,"angle":8.98}]},"left shoulder":{"rotate":[{"time":0,"angle":6.25,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":-11.78,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":6.25}],"translate":[{"time":0,"x":1.15,"y":0.23}]},"left hand":{"rotate":[{"time":0,"angle":-21.23,"curve":[0.295,0,0.755,0.98]},{"time":0.5,"angle":-27.28,"curve":[0.241,0,0.75,0.97]},{"time":1,"angle":-21.23}]},"left arm":{"rotate":[{"time":0,"angle":28.37,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":60.09,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":28.37}]},"torso":{"rotate":[{"time":0,"angle":-10.28},{"time":0.1333,"angle":-15.38,"curve":[0.545,0,0.818,1]},{"time":0.3666,"angle":-9.78,"curve":[0.58,0.17,0.669,0.99]},{"time":0.6333,"angle":-15.75,"curve":[0.235,0.01,0.795,1]},{"time":0.8666,"angle":-7.06,"curve":[0.209,0,0.816,0.98]},{"time":1,"angle":-10.28}],"translate":[{"time":0,"x":-1.29,"y":1.68}]},"right foot":{"rotate":[{"time":0,"angle":-5.25},{"time":0.2333,"angle":-1.91},{"time":0.3666,"angle":-6.45},{"time":0.5,"angle":-5.39},{"time":0.7333,"angle":-11.68},{"time":0.8666,"angle":0.46},{"time":1,"angle":-5.25}]},"right lower leg":{"rotate":[{"time":0,"angle":-3.39,"curve":[0.316,0.01,0.741,0.98]},{"time":0.1333,"angle":-45.53,"curve":[0.229,0,0.738,0.97]},{"time":0.2333,"angle":-4.83},{"time":0.5,"angle":-19.53},{"time":0.6333,"angle":-64.8},{"time":0.7333,"angle":-82.56,"curve":[0.557,0.18,1,1]},{"time":1,"angle":-3.39}],"translate":[{"time":0,"x":0,"y":0,"curve":"stepped"},{"time":0.5,"x":0,"y":0},{"time":0.6333,"x":2.18,"y":0.21},{"time":1,"x":0,"y":0}]},"hip":{"rotate":[{"time":0,"angle":0,"curve":"stepped"},{"time":1,"angle":0}],"translate":[{"time":0,"x":0,"y":-4.16},{"time":0.1333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.3666,"x":0,"y":6.78},{"time":0.5,"x":0,"y":-6.13},{"time":0.6333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.8666,"x":0,"y":6.78},{"time":1,"x":0,"y":-4.16}]},"neck":{"rotate":[{"time":0,"angle":3.6},{"time":0.1333,"angle":17.49},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17},{"time":0.6333,"angle":18.36},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]},"head":{"rotate":[{"time":0,"angle":3.6,"curve":[0,0,0.704,1.17]},{"time":0.1333,"angle":-0.2},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17,"curve":[0,0,0.704,1.61]},{"time":0.6666,"angle":1.1},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]}}}}} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/goblins.png b/examples/example 12 - Spine/data/goblins.png index 5c26ca0..f2cdf16 100644 --- a/examples/example 12 - Spine/data/goblins.png +++ b/examples/example 12 - Spine/data/goblins.png Binary files differ diff --git a/examples/example 12 - Spine/data/goblinsSpineData.json b/examples/example 12 - Spine/data/goblinsSpineData.json deleted file mode 100644 index 8d63c62..0000000 --- a/examples/example 12 - Spine/data/goblinsSpineData.json +++ /dev/null @@ -1,502 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, - { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, - { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 }, - { "name": "right upper leg", "parent": "hip", "length": 42.45, "x": -20.07, "y": -6.83, "rotation": -97.49 }, - { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 93.92 }, - { "name": "left lower leg", "parent": "left upper leg", "length": 49.89, "x": 56.34, "y": 0.98, "rotation": -16.65 }, - { "name": "left shoulder", "parent": "torso", "length": 35.43, "x": 74.04, "y": -20.38, "rotation": -156.96 }, - { "name": "neck", "parent": "torso", "length": 18.38, "x": 81.67, "y": -6.34, "rotation": -1.51 }, - { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 42.99, "y": -0.61, "rotation": -14.34 }, - { "name": "right shoulder", "parent": "torso", "length": 37.24, "x": 76.02, "y": 18.14, "rotation": 133.88 }, - { "name": "head", "parent": "neck", "length": 68.28, "x": 20.93, "y": 11.59, "rotation": -13.92 }, - { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 37.85, "y": -2.34, "rotation": 28.16 }, - { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 58.94, "y": -7.61, "rotation": 102.43 }, - { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 37.6, "y": 0.31, "rotation": 36.32 }, - { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, - { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, - { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 } -], -"slots": [ - { "name": "left shoulder", "bone": "left shoulder", "attachment": "left shoulder" }, - { "name": "left arm", "bone": "left arm", "attachment": "left arm" }, - { "name": "left hand item", "bone": "left hand", "attachment": "spear" }, - { "name": "left hand", "bone": "left hand", "attachment": "left hand" }, - { "name": "left foot", "bone": "left foot", "attachment": "left foot" }, - { "name": "left lower leg", "bone": "left lower leg", "attachment": "left lower leg" }, - { "name": "left upper leg", "bone": "left upper leg", "attachment": "left upper leg" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "torso", "bone": "torso", "attachment": "torso" }, - { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, - { "name": "right foot", "bone": "right foot", "attachment": "right foot" }, - { "name": "right lower leg", "bone": "right lower leg", "attachment": "right lower leg" }, - { "name": "undie straps", "bone": "pelvis", "attachment": "undie straps" }, - { "name": "undies", "bone": "pelvis", "attachment": "undies" }, - { "name": "right upper leg", "bone": "right upper leg", "attachment": "right upper leg" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "eyes", "bone": "head" }, - { "name": "right shoulder", "bone": "right shoulder", "attachment": "right shoulder" }, - { "name": "right arm", "bone": "right arm", "attachment": "right arm" }, - { "name": "right hand item", "bone": "right hand", "attachment": "dagger" }, - { "name": "right hand", "bone": "right hand", "attachment": "right hand" } -], -"skins": { - "default": { - "left hand item": { - "dagger": { "x": 7.88, "y": -23.45, "rotation": 10.47, "width": 26, "height": 108 }, - "spear": { "x": -4.55, "y": 39.2, "rotation": 13.04, "width": 22, "height": 368 } - }, - "right hand item": { - "dagger": { "x": 6.51, "y": -24.15, "rotation": -8.06, "width": 26, "height": 108 } - } - }, - "goblin": { - "eyes": { - "eyes closed": { "name": "goblin/eyes-closed", "x": 32.21, "y": -21.27, "rotation": -88.92, "width": 34, "height": 12 } - }, - "head": { - "head": { "name": "goblin/head", "x": 25.73, "y": 2.33, "rotation": -92.29, "width": 103, "height": 66 } - }, - "left arm": { - "left arm": { - "name": "goblin/left-arm", - "x": 16.7, - "y": -1.69, - "scaleX": 1.057, - "scaleY": 1.057, - "rotation": 33.84, - "width": 37, - "height": 35 - } - }, - "left foot": { - "left foot": { "name": "goblin/left-foot", "x": 24.85, "y": 8.74, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblin/left-hand", - "x": 3.47, - "y": 3.41, - "scaleX": 0.892, - "scaleY": 0.892, - "rotation": 31.14, - "width": 36, - "height": 41 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblin/left-lower-leg", "x": 23.58, "y": -2.06, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblin/left-shoulder", "x": 15.56, "y": -2.26, "rotation": 62.01, "width": 29, "height": 44 } - }, - "left upper leg": { - "left upper leg": { "name": "goblin/left-upper-leg", "x": 29.68, "y": -3.87, "rotation": 89.09, "width": 33, "height": 73 } - }, - "neck": { - "neck": { "name": "goblin/neck", "x": 10.1, "y": 0.42, "rotation": -93.69, "width": 36, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblin/pelvis", "x": -5.61, "y": 0.76, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblin/right-arm", "x": 16.44, "y": -1.04, "rotation": 94.32, "width": 23, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblin/right-foot", "x": 23.56, "y": 9.8, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblin/right-hand", "x": 7.88, "y": 2.78, "rotation": 91.96, "width": 36, "height": 37 } - }, - "right lower leg": { - "right lower leg": { "name": "goblin/right-lower-leg", "x": 25.68, "y": -3.15, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblin/right-shoulder", "x": 15.68, "y": -1.03, "rotation": 130.65, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblin/right-upper-leg", "x": 20.35, "y": 1.47, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblin/torso", "x": 38.09, "y": -3.87, "rotation": -94.95, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblin/undie-straps", "x": -3.87, "y": 13.1, "scaleX": 1.089, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblin/undies", "x": 6.3, "y": 0.12, "rotation": 0.91, "width": 36, "height": 29 } - } - }, - "goblingirl": { - "eyes": { - "eyes closed": { "name": "goblingirl/eyes-closed", "x": 28, "y": -25.54, "rotation": -87.04, "width": 37, "height": 21 } - }, - "head": { - "head": { "name": "goblingirl/head", "x": 27.71, "y": -4.32, "rotation": -85.58, "width": 103, "height": 81 } - }, - "left arm": { - "left arm": { "name": "goblingirl/left-arm", "x": 19.64, "y": -2.42, "rotation": 33.05, "width": 37, "height": 35 } - }, - "left foot": { - "left foot": { "name": "goblingirl/left-foot", "x": 25.17, "y": 7.92, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblingirl/left-hand", - "x": 4.34, - "y": 2.39, - "scaleX": 0.896, - "scaleY": 0.896, - "rotation": 30.34, - "width": 35, - "height": 40 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblingirl/left-lower-leg", "x": 25.02, "y": -0.6, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblingirl/left-shoulder", "x": 19.8, "y": -0.42, "rotation": 61.21, "width": 28, "height": 46 } - }, - "left upper leg": { - "left upper leg": { "name": "goblingirl/left-upper-leg", "x": 30.21, "y": -2.95, "rotation": 89.09, "width": 33, "height": 70 } - }, - "neck": { - "neck": { "name": "goblingirl/neck", "x": 6.16, "y": -3.14, "rotation": -98.86, "width": 35, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblingirl/pelvis", "x": -3.87, "y": 3.18, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblingirl/right-arm", "x": 16.85, "y": -0.66, "rotation": 93.52, "width": 28, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblingirl/right-foot", "x": 23.46, "y": 9.66, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblingirl/right-hand", "x": 7.21, "y": 3.43, "rotation": 91.16, "width": 36, "height": 37 } - }, - "right hand item": { - "right hand item": { "name": "goblingirl/dagger-tip", "x": 13.45, "y": 22.07, "rotation": -3.23, "width": 17, "height": 17 } - }, - "right lower leg": { - "right lower leg": { "name": "goblingirl/right-lower-leg", "x": 26.15, "y": -3.27, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblingirl/right-shoulder", "x": 14.46, "y": 0.45, "rotation": 129.85, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblingirl/right-upper-leg", "x": 19.69, "y": 2.13, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblingirl/torso", "x": 36.28, "y": -5.14, "rotation": -95.74, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblingirl/undie-straps", "x": -1.51, "y": 14.18, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblingirl/undies", "x": 5.4, "y": 1.7, "width": 36, "height": 29 } - } - } -}, -"animations": { - "walk": { - "bones": { - "left upper leg": { - "rotate": [ - { "time": 0, "angle": -26.55 }, - { "time": 0.1333, "angle": -8.78 }, - { "time": 0.2333, "angle": 9.51 }, - { "time": 0.3666, "angle": 30.74 }, - { "time": 0.5, "angle": 25.33 }, - { "time": 0.6333, "angle": 26.11 }, - { "time": 0.7333, "angle": -7.7 }, - { "time": 0.8666, "angle": -21.19 }, - { "time": 1, "angle": -26.55 } - ], - "translate": [ - { "time": 0, "x": -1.32, "y": 1.7 }, - { "time": 0.3666, "x": -0.06, "y": 2.42 }, - { "time": 1, "x": -1.32, "y": 1.7 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 42.45 }, - { "time": 0.1333, "angle": 52.1 }, - { "time": 0.2333, "angle": 8.53 }, - { "time": 0.5, "angle": -16.93 }, - { "time": 0.6333, "angle": 1.89 }, - { - "time": 0.7333, - "angle": 28.06, - "curve": [ 0.462, 0.11, 1, 1 ] - }, - { - "time": 0.8666, - "angle": 58.68, - "curve": [ 0.5, 0.02, 1, 1 ] - }, - { "time": 1, "angle": 42.45 } - ], - "translate": [ - { "time": 0, "x": 6.23, "y": 0 }, - { "time": 0.2333, "x": 2.14, "y": 2.4 }, - { "time": 0.5, "x": 2.44, "y": 4.8 }, - { "time": 1, "x": 6.23, "y": 0 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -22.98 }, - { "time": 0.1333, "angle": -63.5 }, - { "time": 0.2333, "angle": -73.76 }, - { "time": 0.5, "angle": 5.11 }, - { "time": 0.6333, "angle": -28.29 }, - { "time": 0.7333, "angle": 4.08 }, - { "time": 0.8666, "angle": 3.53 }, - { "time": 1, "angle": -22.98 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 2.55, "y": -0.47 }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": -3.69 }, - { "time": 0.1333, "angle": -10.42 }, - { "time": 0.2333, "angle": -5.01 }, - { "time": 0.3666, "angle": 3.87 }, - { "time": 0.5, "angle": -3.87 }, - { "time": 0.6333, "angle": 2.78 }, - { "time": 0.7333, "angle": 1.68 }, - { "time": 0.8666, "angle": -8.54 }, - { "time": 1, "angle": -3.69 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 5.29, - "curve": [ 0.264, 0, 0.75, 1 ] - }, - { "time": 0.6333, "angle": 6.65 }, - { "time": 1, "angle": 5.29 } - ] - }, - "right arm": { - "rotate": [ - { - "time": 0, - "angle": -4.02, - "curve": [ 0.267, 0, 0.804, 0.99 ] - }, - { - "time": 0.6333, - "angle": 19.78, - "curve": [ 0.307, 0, 0.787, 0.99 ] - }, - { "time": 1, "angle": -4.02 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 8.98 }, - { "time": 0.6333, "angle": 0.51 }, - { "time": 1, "angle": 8.98 } - ] - }, - "left shoulder": { - "rotate": [ - { - "time": 0, - "angle": 6.25, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": -11.78, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 6.25 } - ], - "translate": [ - { "time": 0, "x": 1.15, "y": 0.23 } - ] - }, - "left hand": { - "rotate": [ - { - "time": 0, - "angle": -21.23, - "curve": [ 0.295, 0, 0.755, 0.98 ] - }, - { - "time": 0.5, - "angle": -27.28, - "curve": [ 0.241, 0, 0.75, 0.97 ] - }, - { "time": 1, "angle": -21.23 } - ] - }, - "left arm": { - "rotate": [ - { - "time": 0, - "angle": 28.37, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": 60.09, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 28.37 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -10.28 }, - { - "time": 0.1333, - "angle": -15.38, - "curve": [ 0.545, 0, 0.818, 1 ] - }, - { - "time": 0.3666, - "angle": -9.78, - "curve": [ 0.58, 0.17, 0.669, 0.99 ] - }, - { - "time": 0.6333, - "angle": -15.75, - "curve": [ 0.235, 0.01, 0.795, 1 ] - }, - { - "time": 0.8666, - "angle": -7.06, - "curve": [ 0.209, 0, 0.816, 0.98 ] - }, - { "time": 1, "angle": -10.28 } - ], - "translate": [ - { "time": 0, "x": -1.29, "y": 1.68 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": -5.25 }, - { "time": 0.2333, "angle": -1.91 }, - { "time": 0.3666, "angle": -6.45 }, - { "time": 0.5, "angle": -5.39 }, - { "time": 0.7333, "angle": -11.68 }, - { "time": 0.8666, "angle": 0.46 }, - { "time": 1, "angle": -5.25 } - ] - }, - "right lower leg": { - "rotate": [ - { - "time": 0, - "angle": -3.39, - "curve": [ 0.316, 0.01, 0.741, 0.98 ] - }, - { - "time": 0.1333, - "angle": -45.53, - "curve": [ 0.229, 0, 0.738, 0.97 ] - }, - { "time": 0.2333, "angle": -4.83 }, - { "time": 0.5, "angle": -19.53 }, - { "time": 0.6333, "angle": -64.8 }, - { - "time": 0.7333, - "angle": -82.56, - "curve": [ 0.557, 0.18, 1, 1 ] - }, - { "time": 1, "angle": -3.39 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.6333, "x": 2.18, "y": 0.21 }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": -4.16 }, - { - "time": 0.1333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.3666, "x": 0, "y": 6.78 }, - { "time": 0.5, "x": 0, "y": -6.13 }, - { - "time": 0.6333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.8666, "x": 0, "y": 6.78 }, - { "time": 1, "x": 0, "y": -4.16 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 3.6 }, - { "time": 0.1333, "angle": 17.49 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { "time": 0.5, "angle": 5.17 }, - { "time": 0.6333, "angle": 18.36 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 3.6, - "curve": [ 0, 0, 0.704, 1.17 ] - }, - { "time": 0.1333, "angle": -0.2 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { - "time": 0.5, - "angle": 5.17, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.6666, "angle": 1.1 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - } - }, - "slots": { - "eyes": { - "attachment": [ - { "time": 0.7, "name": "eyes closed" }, - { "time": 0.8, "name": null } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/spineboy.atlas b/examples/example 12 - Spine/data/spineboy.atlas new file mode 100644 index 0000000..cf32cd0 --- /dev/null +++ b/examples/example 12 - Spine/data/spineboy.atlas @@ -0,0 +1,165 @@ +spineboy.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +eyes-closed + rotate: false + xy: 73, 509 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +eyes + rotate: false + xy: 75, 464 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 121, 132 + orig: 121, 132 + offset: 0, 0 + index: -1 +left-ankle + rotate: false + xy: 96, 351 + size: 25, 32 + orig: 25, 32 + offset: 0, 0 + index: -1 +left-arm + rotate: false + xy: 39, 423 + size: 35, 29 + orig: 35, 29 + offset: 0, 0 + index: -1 +left-foot + rotate: false + xy: 2, 262 + size: 65, 30 + orig: 65, 30 + offset: 0, 0 + index: -1 +left-hand + rotate: false + xy: 2, 423 + size: 35, 38 + orig: 35, 38 + offset: 0, 0 + index: -1 +left-lower-leg + rotate: false + xy: 72, 202 + size: 49, 64 + orig: 49, 64 + offset: 0, 0 + index: -1 +left-pant-bottom + rotate: false + xy: 2, 363 + size: 44, 22 + orig: 44, 22 + offset: 0, 0 + index: -1 +left-shoulder + rotate: false + xy: 39, 454 + size: 34, 53 + orig: 34, 53 + offset: 0, 0 + index: -1 +left-upper-leg + rotate: false + xy: 2, 464 + size: 33, 67 + orig: 33, 67 + offset: 0, 0 + index: -1 +neck + rotate: false + xy: 37, 509 + size: 34, 28 + orig: 34, 28 + offset: 0, 0 + index: -1 +pelvis + rotate: false + xy: 2, 294 + size: 63, 47 + orig: 63, 47 + offset: 0, 0 + index: -1 +right-ankle + rotate: false + xy: 96, 385 + size: 25, 30 + orig: 25, 30 + offset: 0, 0 + index: -1 +right-arm + rotate: false + xy: 96, 417 + size: 21, 45 + orig: 21, 45 + offset: 0, 0 + index: -1 +right-foot-idle + rotate: false + xy: 69, 268 + size: 53, 28 + orig: 53, 28 + offset: 0, 0 + index: -1 +right-foot + rotate: false + xy: 2, 230 + size: 67, 30 + orig: 67, 30 + offset: 0, 0 + index: -1 +right-hand + rotate: false + xy: 2, 387 + size: 32, 32 + orig: 32, 32 + offset: 0, 0 + index: -1 +right-lower-leg + rotate: false + xy: 72, 136 + size: 51, 64 + orig: 51, 64 + offset: 0, 0 + index: -1 +right-pant-bottom + rotate: false + xy: 2, 343 + size: 46, 18 + orig: 46, 18 + offset: 0, 0 + index: -1 +right-shoulder + rotate: false + xy: 67, 298 + size: 52, 51 + orig: 52, 51 + offset: 0, 0 + index: -1 +right-upper-leg + rotate: false + xy: 50, 351 + size: 44, 70 + orig: 44, 70 + offset: 0, 0 + index: -1 +torso + rotate: false + xy: 2, 136 + size: 68, 92 + orig: 68, 92 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/spineboy.json b/examples/example 12 - Spine/data/spineboy.json index 54f9d82..17c5095 100755 --- a/examples/example 12 - Spine/data/spineboy.json +++ b/examples/example 12 - Spine/data/spineboy.json @@ -1,196 +1,787 @@ -{"frames": { - -"head": { - "frame": {"x":1,"y":122,"w":121,"h":132}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":121,"h":132}, - "sourceSize": {"w":121,"h":132} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, + { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, + { "name": "left lower leg", "parent": "left upper leg", "length": 56.45, "x": 51.78, "y": 3.46, "rotation": -16.65 }, + { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 64.02, "y": -8.67, "rotation": 102.43 }, + { "name": "right upper leg", "parent": "hip", "length": 45.76, "x": -18.27, "rotation": -101.13 }, + { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 50.21, "y": 0.6, "rotation": -10.7 }, + { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, + { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 94.95 }, + { "name": "neck", "parent": "torso", "length": 18.38, "x": 83.64, "y": -1.78, "rotation": 0.9 }, + { "name": "head", "parent": "neck", "length": 68.28, "x": 19.09, "y": 6.97, "rotation": -8.94 }, + { "name": "right shoulder", "parent": "torso", "length": 49.95, "x": 81.9, "y": 6.79, "rotation": 130.6 }, + { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 49.95, "y": -0.12, "rotation": 40.12 }, + { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 }, + { "name": "left shoulder", "parent": "torso", "length": 44.19, "x": 78.96, "y": -15.75, "rotation": -156.96 }, + { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 44.19, "y": -0.01, "rotation": 28.16 }, + { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, + { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 } +], +"slots": [ + { "name": "left shoulder", "bone": "left shoulder", "attachment": "left-shoulder" }, + { "name": "left arm", "bone": "left arm", "attachment": "left-arm" }, + { "name": "left hand", "bone": "left hand", "attachment": "left-hand" }, + { "name": "left foot", "bone": "left foot", "attachment": "left-foot" }, + { "name": "left lower leg", "bone": "left lower leg", "attachment": "left-lower-leg" }, + { "name": "left upper leg", "bone": "left upper leg", "attachment": "left-upper-leg" }, + { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, + { "name": "right foot", "bone": "right foot", "attachment": "right-foot" }, + { "name": "right lower leg", "bone": "right lower leg", "attachment": "right-lower-leg" }, + { "name": "right upper leg", "bone": "right upper leg", "attachment": "right-upper-leg" }, + { "name": "torso", "bone": "torso", "attachment": "torso" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "eyes", "bone": "head", "attachment": "eyes" }, + { "name": "right shoulder", "bone": "right shoulder", "attachment": "right-shoulder" }, + { "name": "right arm", "bone": "right arm", "attachment": "right-arm" }, + { "name": "right hand", "bone": "right hand", "attachment": "right-hand" } +], +"skins": { + "default": { + "left shoulder": { + "left-shoulder": { "x": 23.74, "y": 0.11, "rotation": 62.01, "width": 34, "height": 53 } + }, + "left arm": { + "left-arm": { "x": 15.11, "y": -0.44, "rotation": 33.84, "width": 35, "height": 29 } + }, + "left hand": { + "left-hand": { "x": 0.75, "y": 1.86, "rotation": 31.14, "width": 35, "height": 38 } + }, + "left foot": { + "left-foot": { "x": 24.35, "y": 8.88, "rotation": 3.32, "width": 65, "height": 30 } + }, + "left lower leg": { + "left-lower-leg": { "x": 24.55, "y": -1.92, "rotation": 105.75, "width": 49, "height": 64 } + }, + "left upper leg": { + "left-upper-leg": { "x": 26.12, "y": -1.85, "rotation": 89.09, "width": 33, "height": 67 } + }, + "pelvis": { + "pelvis": { "x": -4.83, "y": 10.62, "width": 63, "height": 47 } + }, + "right foot": { + "right-foot": { "x": 19.02, "y": 8.47, "rotation": 1.52, "width": 67, "height": 30 } + }, + "right lower leg": { + "right-lower-leg": { "x": 23.28, "y": -2.59, "rotation": 111.83, "width": 51, "height": 64 } + }, + "right upper leg": { + "right-upper-leg": { "x": 23.03, "y": 0.25, "rotation": 101.13, "width": 44, "height": 70 } + }, + "torso": { + "torso": { "x": 44.57, "y": -7.08, "rotation": -94.95, "width": 68, "height": 92 } + }, + "neck": { + "neck": { "x": 9.42, "y": -3.66, "rotation": -100.15, "width": 34, "height": 28 } + }, + "head": { + "head": { "x": 53.94, "y": -5.75, "rotation": -86.9, "width": 121, "height": 132 } + }, + "eyes": { + "eyes": { "x": 28.94, "y": -32.92, "rotation": -86.9, "width": 34, "height": 27 }, + "eyes-closed": { "x": 28.77, "y": -32.86, "rotation": -86.9, "width": 34, "height": 27 } + }, + "right shoulder": { + "right-shoulder": { "x": 25.86, "y": 0.03, "rotation": 134.44, "width": 52, "height": 51 } + }, + "right arm": { + "right-arm": { "x": 18.34, "y": -2.64, "rotation": 94.32, "width": 21, "height": 45 } + }, + "right hand": { + "right-hand": { "x": 6.82, "y": 1.25, "rotation": 91.96, "width": 32, "height": 32 } + } + } }, -"torso": -{ - "frame": {"x":1,"y":28,"w":68,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":92}, - "sourceSize": {"w":68,"h":92} -}, -"left-pant-bottom": -{ - "frame": {"x":1,"y":4,"w":44,"h":22}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":44,"h":22}, - "sourceSize": {"w":44,"h":22} -}, -"right-pant-bottom": -{ - "frame": {"x":47,"y":8,"w":46,"h":18}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":46,"h":18}, - "sourceSize": {"w":46,"h":18} -}, -"right-upper-leg": -{ - "frame": {"x":71,"y":50,"w":44,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":44,"h":70}, - "sourceSize": {"w":44,"h":70} -}, -"pelvis": -{ - "frame": {"x":95,"y":1,"w":63,"h":47}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":47}, - "sourceSize": {"w":63,"h":47} -}, -"left-upper-leg": -{ - "frame": {"x":117,"y":53,"w":33,"h":67}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":67}, - "sourceSize": {"w":33,"h":67} -}, -"right-foot": -{ - "frame": {"x":160,"y":224,"w":67,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":67,"h":30}, - "sourceSize": {"w":67,"h":30} -}, -"left-shoulder": -{ - "frame": {"x":124,"y":201,"w":34,"h":53}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":53}, - "sourceSize": {"w":34,"h":53} -}, -"left-ankle": -{ - "frame": {"x":229,"y":222,"w":25,"h":32}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":25,"h":32}, - "sourceSize": {"w":25,"h":32} -}, -"left-foot": -{ - "frame": {"x":160,"y":192,"w":65,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":30}, - "sourceSize": {"w":65,"h":30} -}, -"neck": -{ - "frame": {"x":124,"y":171,"w":34,"h":28}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":28}, - "sourceSize": {"w":34,"h":28} -}, -"right-arm": -{ - "frame": {"x":124,"y":124,"w":21,"h":45}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":21,"h":45}, - "sourceSize": {"w":21,"h":45} -}, -"right-ankle": -{ - "frame": {"x":227,"y":190,"w":25,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":25,"h":30}, - "sourceSize": {"w":25,"h":30} -}, -"left-hand": -{ - "frame": {"x":147,"y":131,"w":35,"h":38}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":38}, - "sourceSize": {"w":35,"h":38} -}, -"left-arm": -{ - "frame": {"x":184,"y":161,"w":35,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":29}, - "sourceSize": {"w":35,"h":29} -}, -"eyes-closed": -{ - "frame": {"x":221,"y":161,"w":34,"h":27}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, - "sourceSize": {"w":34,"h":27} -}, -"right-lower-leg": -{ - "frame": {"x":152,"y":65,"w":51,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":51,"h":64}, - "sourceSize": {"w":51,"h":64} -}, -"right-foot-idle": -{ - "frame": {"x":184,"y":131,"w":53,"h":28}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":53,"h":28}, - "sourceSize": {"w":53,"h":28} -}, -"left-lower-leg": -{ - "frame": {"x":205,"y":65,"w":49,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":49,"h":64}, - "sourceSize": {"w":49,"h":64} -}, -"right-shoulder": -{ - "frame": {"x":160,"y":12,"w":52,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":51}, - "sourceSize": {"w":52,"h":51} -}, -"eyes": -{ - "frame": {"x":214,"y":36,"w":34,"h":27}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, - "sourceSize": {"w":34,"h":27} -}, -"right-hand": -{ - "frame": {"x":214,"y":2,"w":32,"h":32}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":32,"h":32}, - "sourceSize": {"w":32,"h":32} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "spineboy.png", - "format": "RGBA8888", - "size": {"w":256,"h":256}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:93f9a66503bccd3c31cdba2ae4b91285$" +"animations": { + "walk": { + "bones": { + "left upper leg": { + "rotate": [ + { "time": 0, "angle": -26.55 }, + { "time": 0.1333, "angle": -8.78 }, + { "time": 0.2666, "angle": 9.51 }, + { "time": 0.4, "angle": 30.74 }, + { "time": 0.5333, "angle": 25.33 }, + { "time": 0.6666, "angle": 26.11 }, + { "time": 0.8, "angle": -7.7 }, + { "time": 0.9333, "angle": -21.19 }, + { "time": 1.0666, "angle": -26.55 } + ], + "translate": [ + { "time": 0, "x": -3, "y": -2.25 }, + { "time": 0.4, "x": -2.18, "y": -2.25 }, + { "time": 1.0666, "x": -3, "y": -2.25 } + ] + }, + "right upper leg": { + "rotate": [ + { "time": 0, "angle": 42.45 }, + { "time": 0.1333, "angle": 52.1 }, + { "time": 0.2666, "angle": 5.96 }, + { "time": 0.5333, "angle": -16.93 }, + { "time": 0.6666, "angle": 1.89 }, + { + "time": 0.8, + "angle": 28.06, + "curve": [ 0.462, 0.11, 1, 1 ] + }, + { + "time": 0.9333, + "angle": 58.68, + "curve": [ 0.5, 0.02, 1, 1 ] + }, + { "time": 1.0666, "angle": 42.45 } + ], + "translate": [ + { "time": 0, "x": 8.11, "y": -2.36 }, + { "time": 0.1333, "x": 10.03, "y": -2.56 }, + { "time": 0.4, "x": 2.76, "y": -2.97 }, + { "time": 0.5333, "x": 2.76, "y": -2.81 }, + { "time": 0.9333, "x": 8.67, "y": -2.54 }, + { "time": 1.0666, "x": 8.11, "y": -2.36 } + ] + }, + "left lower leg": { + "rotate": [ + { "time": 0, "angle": -10.21 }, + { "time": 0.1333, "angle": -55.64 }, + { "time": 0.2666, "angle": -68.12 }, + { "time": 0.5333, "angle": 5.11 }, + { "time": 0.6666, "angle": -28.29 }, + { "time": 0.8, "angle": 4.08 }, + { "time": 0.9333, "angle": 3.53 }, + { "time": 1.0666, "angle": -10.21 } + ] + }, + "left foot": { + "rotate": [ + { "time": 0, "angle": -3.69 }, + { "time": 0.1333, "angle": -10.42 }, + { "time": 0.2666, "angle": -17.14 }, + { "time": 0.4, "angle": -2.83 }, + { "time": 0.5333, "angle": -3.87 }, + { "time": 0.6666, "angle": 2.78 }, + { "time": 0.8, "angle": 1.68 }, + { "time": 0.9333, "angle": -8.54 }, + { "time": 1.0666, "angle": -3.69 } + ] + }, + "right shoulder": { + "rotate": [ + { + "time": 0, + "angle": 20.89, + "curve": [ 0.264, 0, 0.75, 1 ] + }, + { + "time": 0.1333, + "angle": 3.72, + "curve": [ 0.272, 0, 0.841, 1 ] + }, + { "time": 0.6666, "angle": -278.28 }, + { "time": 1.0666, "angle": 20.89 } + ], + "translate": [ + { "time": 0, "x": -7.84, "y": 7.19 }, + { "time": 0.1333, "x": -6.36, "y": 6.42 }, + { "time": 0.6666, "x": -11.07, "y": 5.25 }, + { "time": 1.0666, "x": -7.84, "y": 7.19 } + ] + }, + "right arm": { + "rotate": [ + { + "time": 0, + "angle": -4.02, + "curve": [ 0.267, 0, 0.804, 0.99 ] + }, + { + "time": 0.1333, + "angle": -13.99, + "curve": [ 0.341, 0, 1, 1 ] + }, + { + "time": 0.6666, + "angle": 36.54, + "curve": [ 0.307, 0, 0.787, 0.99 ] + }, + { "time": 1.0666, "angle": -4.02 } + ] + }, + "right hand": { + "rotate": [ + { "time": 0, "angle": 22.92 }, + { "time": 0.4, "angle": -8.97 }, + { "time": 0.6666, "angle": 0.51 }, + { "time": 1.0666, "angle": 22.92 } + ] + }, + "left shoulder": { + "rotate": [ + { "time": 0, "angle": -1.47 }, + { "time": 0.1333, "angle": 13.6 }, + { "time": 0.6666, "angle": 280.74 }, + { "time": 1.0666, "angle": -1.47 } + ], + "translate": [ + { "time": 0, "x": -1.76, "y": 0.56 }, + { "time": 0.6666, "x": -2.47, "y": 8.14 }, + { "time": 1.0666, "x": -1.76, "y": 0.56 } + ] + }, + "left hand": { + "rotate": [ + { + "time": 0, + "angle": 11.58, + "curve": [ 0.169, 0.37, 0.632, 1.55 ] + }, + { + "time": 0.1333, + "angle": 28.13, + "curve": [ 0.692, 0, 0.692, 0.99 ] + }, + { + "time": 0.6666, + "angle": -27.42, + "curve": [ 0.117, 0.41, 0.738, 1.76 ] + }, + { "time": 0.8, "angle": -36.32 }, + { "time": 1.0666, "angle": 11.58 } + ] + }, + "left arm": { + "rotate": [ + { "time": 0, "angle": -8.27 }, + { "time": 0.1333, "angle": 18.43 }, + { "time": 0.6666, "angle": 0.88 }, + { "time": 1.0666, "angle": -8.27 } + ] + }, + "torso": { + "rotate": [ + { "time": 0, "angle": -10.28 }, + { + "time": 0.1333, + "angle": -15.38, + "curve": [ 0.545, 0, 1, 1 ] + }, + { + "time": 0.4, + "angle": -9.78, + "curve": [ 0.58, 0.17, 1, 1 ] + }, + { "time": 0.6666, "angle": -15.75 }, + { "time": 0.9333, "angle": -7.06 }, + { "time": 1.0666, "angle": -10.28 } + ], + "translate": [ + { "time": 0, "x": -3.67, "y": 1.68 }, + { "time": 0.1333, "x": -3.67, "y": 0.68 }, + { "time": 0.4, "x": -3.67, "y": 1.97 }, + { "time": 0.6666, "x": -3.67, "y": -0.14 }, + { "time": 1.0666, "x": -3.67, "y": 1.68 } + ] + }, + "right foot": { + "rotate": [ + { "time": 0, "angle": -5.25 }, + { "time": 0.2666, "angle": -4.08 }, + { "time": 0.4, "angle": -6.45 }, + { "time": 0.5333, "angle": -5.39 }, + { "time": 0.8, "angle": -11.68 }, + { "time": 0.9333, "angle": 0.46 }, + { "time": 1.0666, "angle": -5.25 } + ] + }, + "right lower leg": { + "rotate": [ + { "time": 0, "angle": -3.39 }, + { "time": 0.1333, "angle": -45.53 }, + { "time": 0.2666, "angle": -2.59 }, + { "time": 0.5333, "angle": -19.53 }, + { "time": 0.6666, "angle": -64.8 }, + { + "time": 0.8, + "angle": -82.56, + "curve": [ 0.557, 0.18, 1, 1 ] + }, + { "time": 1.0666, "angle": -3.39 } + ] + }, + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 1.0666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { + "time": 0.1333, + "x": 0, + "y": -7.61, + "curve": [ 0.272, 0.86, 1, 1 ] + }, + { "time": 0.4, "x": 0, "y": 8.7 }, + { "time": 0.5333, "x": 0, "y": -0.41 }, + { + "time": 0.6666, + "x": 0, + "y": -7.05, + "curve": [ 0.235, 0.89, 1, 1 ] + }, + { "time": 0.8, "x": 0, "y": 2.92 }, + { "time": 0.9333, "x": 0, "y": 6.78 }, + { "time": 1.0666, "x": 0, "y": 0 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 3.6 }, + { "time": 0.1333, "angle": 17.49 }, + { "time": 0.2666, "angle": 6.1 }, + { "time": 0.4, "angle": 3.45 }, + { "time": 0.5333, "angle": 5.17 }, + { "time": 0.6666, "angle": 18.36 }, + { "time": 0.8, "angle": 6.09 }, + { "time": 0.9333, "angle": 2.28 }, + { "time": 1.0666, "angle": 3.6 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 3.6, + "curve": [ 0, 0, 0.704, 1.61 ] + }, + { "time": 0.1666, "angle": -0.2 }, + { "time": 0.2666, "angle": 6.1 }, + { "time": 0.4, "angle": 3.45 }, + { + "time": 0.5333, + "angle": 5.17, + "curve": [ 0, 0, 0.704, 1.61 ] + }, + { "time": 0.7, "angle": 1.1 }, + { "time": 0.8, "angle": 6.09 }, + { "time": 0.9333, "angle": 2.28 }, + { "time": 1.0666, "angle": 3.6 } + ] + } + } + }, + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.9333, "angle": 0, "curve": "stepped" }, + { "time": 1.3666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": -11.57, "y": -3 }, + { "time": 0.2333, "x": -16.2, "y": -19.43 }, + { + "time": 0.3333, + "x": 7.66, + "y": -8.48, + "curve": [ 0.057, 0.06, 0.712, 1 ] + }, + { "time": 0.3666, "x": 15.38, "y": 5.01 }, + { "time": 0.4666, "x": -7.84, "y": 57.22 }, + { + "time": 0.6, + "x": -10.81, + "y": 96.34, + "curve": [ 0.241, 0, 1, 1 ] + }, + { "time": 0.7333, "x": -7.01, "y": 54.7 }, + { "time": 0.8, "x": -10.58, "y": 32.2 }, + { "time": 0.9333, "x": -31.99, "y": 0.45 }, + { "time": 1.0666, "x": -12.48, "y": -29.47 }, + { "time": 1.3666, "x": -11.57, "y": -3 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left upper leg": { + "rotate": [ + { "time": 0, "angle": 17.13 }, + { "time": 0.2333, "angle": 44.35 }, + { "time": 0.3333, "angle": 16.46 }, + { "time": 0.4, "angle": -9.88 }, + { "time": 0.4666, "angle": -11.42 }, + { "time": 0.5666, "angle": 23.46 }, + { "time": 0.7666, "angle": 71.82 }, + { "time": 0.9333, "angle": 65.53 }, + { "time": 1.0666, "angle": 51.01 }, + { "time": 1.3666, "angle": 17.13 } + ], + "translate": [ + { "time": 0, "x": -3, "y": -2.25, "curve": "stepped" }, + { "time": 0.9333, "x": -3, "y": -2.25, "curve": "stepped" }, + { "time": 1.3666, "x": -3, "y": -2.25 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left lower leg": { + "rotate": [ + { "time": 0, "angle": -16.25 }, + { "time": 0.2333, "angle": -52.21 }, + { "time": 0.4, "angle": 15.04 }, + { "time": 0.4666, "angle": -8.95 }, + { "time": 0.5666, "angle": -39.53 }, + { "time": 0.7666, "angle": -27.27 }, + { "time": 0.9333, "angle": -3.52 }, + { "time": 1.0666, "angle": -61.92 }, + { "time": 1.3666, "angle": -16.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left foot": { + "rotate": [ + { "time": 0, "angle": 0.33 }, + { "time": 0.2333, "angle": 6.2 }, + { "time": 0.3333, "angle": 14.73 }, + { "time": 0.4, "angle": -15.54 }, + { "time": 0.4333, "angle": -21.2 }, + { "time": 0.5666, "angle": -7.55 }, + { "time": 0.7666, "angle": -0.67 }, + { "time": 0.9333, "angle": -0.58 }, + { "time": 1.0666, "angle": 14.64 }, + { "time": 1.3666, "angle": 0.33 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right upper leg": { + "rotate": [ + { "time": 0, "angle": 25.97 }, + { "time": 0.2333, "angle": 46.43 }, + { "time": 0.3333, "angle": 22.61 }, + { "time": 0.4, "angle": 2.13 }, + { + "time": 0.4666, + "angle": 0.04, + "curve": [ 0, 0, 0.637, 0.98 ] + }, + { "time": 0.6, "angle": 65.55 }, + { "time": 0.7666, "angle": 64.93 }, + { "time": 0.9333, "angle": 41.08 }, + { "time": 1.0666, "angle": 66.25 }, + { "time": 1.3666, "angle": 25.97 } + ], + "translate": [ + { "time": 0, "x": 5.74, "y": 0.61 }, + { "time": 0.2333, "x": 4.79, "y": 1.79 }, + { "time": 0.3333, "x": 6.05, "y": -4.55 }, + { "time": 0.9333, "x": 4.79, "y": 1.79, "curve": "stepped" }, + { "time": 1.0666, "x": 4.79, "y": 1.79 }, + { "time": 1.3666, "x": 5.74, "y": 0.61 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right lower leg": { + "rotate": [ + { "time": 0, "angle": -27.46 }, + { "time": 0.2333, "angle": -64.03 }, + { "time": 0.4, "angle": -48.36 }, + { "time": 0.5666, "angle": -76.86 }, + { "time": 0.7666, "angle": -26.89 }, + { "time": 0.9, "angle": -18.97 }, + { "time": 0.9333, "angle": -14.18 }, + { "time": 1.0666, "angle": -80.45 }, + { "time": 1.3666, "angle": -27.46 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right foot": { + "rotate": [ + { "time": 0, "angle": 1.08 }, + { "time": 0.2333, "angle": 16.02 }, + { "time": 0.3, "angle": 12.94 }, + { "time": 0.3333, "angle": 15.16 }, + { "time": 0.4, "angle": -14.7 }, + { "time": 0.4333, "angle": -12.85 }, + { "time": 0.4666, "angle": -19.18 }, + { "time": 0.5666, "angle": -15.82 }, + { "time": 0.6, "angle": -3.59 }, + { "time": 0.7666, "angle": -3.56 }, + { "time": 0.9333, "angle": 1.86 }, + { "time": 1.0666, "angle": 16.02 }, + { "time": 1.3666, "angle": 1.08 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "torso": { + "rotate": [ + { "time": 0, "angle": -13.35 }, + { "time": 0.2333, "angle": -48.95 }, + { "time": 0.4333, "angle": -35.77 }, + { "time": 0.6, "angle": -4.59 }, + { "time": 0.7666, "angle": 14.61 }, + { "time": 0.9333, "angle": 15.74 }, + { "time": 1.0666, "angle": -32.44 }, + { "time": 1.3666, "angle": -13.35 } + ], + "translate": [ + { "time": 0, "x": -3.67, "y": 1.68, "curve": "stepped" }, + { "time": 0.9333, "x": -3.67, "y": 1.68, "curve": "stepped" }, + { "time": 1.3666, "x": -3.67, "y": 1.68 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 12.78 }, + { "time": 0.2333, "angle": 16.46 }, + { "time": 0.4, "angle": 26.49 }, + { "time": 0.6, "angle": 15.51 }, + { "time": 0.7666, "angle": 1.34 }, + { "time": 0.9333, "angle": 2.35 }, + { "time": 1.0666, "angle": 6.08 }, + { "time": 1.3, "angle": 21.23 }, + { "time": 1.3666, "angle": 12.78 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 5.19 }, + { "time": 0.2333, "angle": 20.27 }, + { "time": 0.4, "angle": 15.27 }, + { "time": 0.6, "angle": -24.69 }, + { "time": 0.7666, "angle": -11.02 }, + { "time": 0.9333, "angle": -24.38 }, + { "time": 1.0666, "angle": 11.99 }, + { "time": 1.3, "angle": 4.86 }, + { "time": 1.3666, "angle": 5.19 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left shoulder": { + "rotate": [ + { + "time": 0, + "angle": 0.05, + "curve": [ 0, 0, 0.62, 1 ] + }, + { + "time": 0.2333, + "angle": 279.66, + "curve": [ 0.218, 0.67, 0.66, 0.99 ] + }, + { + "time": 0.5, + "angle": 62.27, + "curve": [ 0.462, 0, 0.764, 0.58 ] + }, + { "time": 0.9333, "angle": 28.91 }, + { "time": 1.0666, "angle": -8.62 }, + { "time": 1.1666, "angle": -18.43 }, + { "time": 1.3666, "angle": 0.05 } + ], + "translate": [ + { "time": 0, "x": -1.76, "y": 0.56, "curve": "stepped" }, + { "time": 0.9333, "x": -1.76, "y": 0.56, "curve": "stepped" }, + { "time": 1.3666, "x": -1.76, "y": 0.56 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left hand": { + "rotate": [ + { "time": 0, "angle": 11.58, "curve": "stepped" }, + { "time": 0.9333, "angle": 11.58, "curve": "stepped" }, + { "time": 1.3666, "angle": 11.58 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left arm": { + "rotate": [ + { "time": 0, "angle": 0.51 }, + { "time": 0.4333, "angle": 12.82 }, + { "time": 0.6, "angle": 47.55 }, + { "time": 0.9333, "angle": 12.82 }, + { "time": 1.1666, "angle": -6.5 }, + { "time": 1.3666, "angle": 0.51 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right shoulder": { + "rotate": [ + { + "time": 0, + "angle": 43.82, + "curve": [ 0, 0, 0.62, 1 ] + }, + { + "time": 0.2333, + "angle": -8.74, + "curve": [ 0.304, 0.58, 0.709, 0.97 ] + }, + { + "time": 0.5333, + "angle": -208.02, + "curve": [ 0.462, 0, 0.764, 0.58 ] + }, + { "time": 0.9333, "angle": -246.72 }, + { "time": 1.0666, "angle": -307.13 }, + { "time": 1.1666, "angle": 37.15 }, + { "time": 1.3666, "angle": 43.82 } + ], + "translate": [ + { "time": 0, "x": -7.84, "y": 7.19, "curve": "stepped" }, + { "time": 0.9333, "x": -7.84, "y": 7.19, "curve": "stepped" }, + { "time": 1.3666, "x": -7.84, "y": 7.19 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right arm": { + "rotate": [ + { "time": 0, "angle": -4.02 }, + { "time": 0.6, "angle": 17.5 }, + { "time": 0.9333, "angle": -4.02 }, + { "time": 1.1666, "angle": -16.72 }, + { "time": 1.3666, "angle": -4.02 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right hand": { + "rotate": [ + { "time": 0, "angle": 22.92, "curve": "stepped" }, + { "time": 0.9333, "angle": 22.92, "curve": "stepped" }, + { "time": 1.3666, "angle": 22.92 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "root": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.4333, "angle": -14.52 }, + { "time": 0.8, "angle": 9.86 }, + { "time": 1.3666, "angle": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/spineboy.png b/examples/example 12 - Spine/data/spineboy.png index b8b493d..ab85747 100755 --- a/examples/example 12 - Spine/data/spineboy.png +++ b/examples/example 12 - Spine/data/spineboy.png Binary files differ diff --git a/examples/example 12 - Spine/data/spineboySpineData.json b/examples/example 12 - Spine/data/spineboySpineData.json deleted file mode 100755 index 17c5095..0000000 --- a/examples/example 12 - Spine/data/spineboySpineData.json +++ /dev/null @@ -1,787 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, - { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, - { "name": "left lower leg", "parent": "left upper leg", "length": 56.45, "x": 51.78, "y": 3.46, "rotation": -16.65 }, - { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 64.02, "y": -8.67, "rotation": 102.43 }, - { "name": "right upper leg", "parent": "hip", "length": 45.76, "x": -18.27, "rotation": -101.13 }, - { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 50.21, "y": 0.6, "rotation": -10.7 }, - { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, - { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 94.95 }, - { "name": "neck", "parent": "torso", "length": 18.38, "x": 83.64, "y": -1.78, "rotation": 0.9 }, - { "name": "head", "parent": "neck", "length": 68.28, "x": 19.09, "y": 6.97, "rotation": -8.94 }, - { "name": "right shoulder", "parent": "torso", "length": 49.95, "x": 81.9, "y": 6.79, "rotation": 130.6 }, - { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 49.95, "y": -0.12, "rotation": 40.12 }, - { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 }, - { "name": "left shoulder", "parent": "torso", "length": 44.19, "x": 78.96, "y": -15.75, "rotation": -156.96 }, - { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 44.19, "y": -0.01, "rotation": 28.16 }, - { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, - { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 } -], -"slots": [ - { "name": "left shoulder", "bone": "left shoulder", "attachment": "left-shoulder" }, - { "name": "left arm", "bone": "left arm", "attachment": "left-arm" }, - { "name": "left hand", "bone": "left hand", "attachment": "left-hand" }, - { "name": "left foot", "bone": "left foot", "attachment": "left-foot" }, - { "name": "left lower leg", "bone": "left lower leg", "attachment": "left-lower-leg" }, - { "name": "left upper leg", "bone": "left upper leg", "attachment": "left-upper-leg" }, - { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, - { "name": "right foot", "bone": "right foot", "attachment": "right-foot" }, - { "name": "right lower leg", "bone": "right lower leg", "attachment": "right-lower-leg" }, - { "name": "right upper leg", "bone": "right upper leg", "attachment": "right-upper-leg" }, - { "name": "torso", "bone": "torso", "attachment": "torso" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "eyes", "bone": "head", "attachment": "eyes" }, - { "name": "right shoulder", "bone": "right shoulder", "attachment": "right-shoulder" }, - { "name": "right arm", "bone": "right arm", "attachment": "right-arm" }, - { "name": "right hand", "bone": "right hand", "attachment": "right-hand" } -], -"skins": { - "default": { - "left shoulder": { - "left-shoulder": { "x": 23.74, "y": 0.11, "rotation": 62.01, "width": 34, "height": 53 } - }, - "left arm": { - "left-arm": { "x": 15.11, "y": -0.44, "rotation": 33.84, "width": 35, "height": 29 } - }, - "left hand": { - "left-hand": { "x": 0.75, "y": 1.86, "rotation": 31.14, "width": 35, "height": 38 } - }, - "left foot": { - "left-foot": { "x": 24.35, "y": 8.88, "rotation": 3.32, "width": 65, "height": 30 } - }, - "left lower leg": { - "left-lower-leg": { "x": 24.55, "y": -1.92, "rotation": 105.75, "width": 49, "height": 64 } - }, - "left upper leg": { - "left-upper-leg": { "x": 26.12, "y": -1.85, "rotation": 89.09, "width": 33, "height": 67 } - }, - "pelvis": { - "pelvis": { "x": -4.83, "y": 10.62, "width": 63, "height": 47 } - }, - "right foot": { - "right-foot": { "x": 19.02, "y": 8.47, "rotation": 1.52, "width": 67, "height": 30 } - }, - "right lower leg": { - "right-lower-leg": { "x": 23.28, "y": -2.59, "rotation": 111.83, "width": 51, "height": 64 } - }, - "right upper leg": { - "right-upper-leg": { "x": 23.03, "y": 0.25, "rotation": 101.13, "width": 44, "height": 70 } - }, - "torso": { - "torso": { "x": 44.57, "y": -7.08, "rotation": -94.95, "width": 68, "height": 92 } - }, - "neck": { - "neck": { "x": 9.42, "y": -3.66, "rotation": -100.15, "width": 34, "height": 28 } - }, - "head": { - "head": { "x": 53.94, "y": -5.75, "rotation": -86.9, "width": 121, "height": 132 } - }, - "eyes": { - "eyes": { "x": 28.94, "y": -32.92, "rotation": -86.9, "width": 34, "height": 27 }, - "eyes-closed": { "x": 28.77, "y": -32.86, "rotation": -86.9, "width": 34, "height": 27 } - }, - "right shoulder": { - "right-shoulder": { "x": 25.86, "y": 0.03, "rotation": 134.44, "width": 52, "height": 51 } - }, - "right arm": { - "right-arm": { "x": 18.34, "y": -2.64, "rotation": 94.32, "width": 21, "height": 45 } - }, - "right hand": { - "right-hand": { "x": 6.82, "y": 1.25, "rotation": 91.96, "width": 32, "height": 32 } - } - } -}, -"animations": { - "walk": { - "bones": { - "left upper leg": { - "rotate": [ - { "time": 0, "angle": -26.55 }, - { "time": 0.1333, "angle": -8.78 }, - { "time": 0.2666, "angle": 9.51 }, - { "time": 0.4, "angle": 30.74 }, - { "time": 0.5333, "angle": 25.33 }, - { "time": 0.6666, "angle": 26.11 }, - { "time": 0.8, "angle": -7.7 }, - { "time": 0.9333, "angle": -21.19 }, - { "time": 1.0666, "angle": -26.55 } - ], - "translate": [ - { "time": 0, "x": -3, "y": -2.25 }, - { "time": 0.4, "x": -2.18, "y": -2.25 }, - { "time": 1.0666, "x": -3, "y": -2.25 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 42.45 }, - { "time": 0.1333, "angle": 52.1 }, - { "time": 0.2666, "angle": 5.96 }, - { "time": 0.5333, "angle": -16.93 }, - { "time": 0.6666, "angle": 1.89 }, - { - "time": 0.8, - "angle": 28.06, - "curve": [ 0.462, 0.11, 1, 1 ] - }, - { - "time": 0.9333, - "angle": 58.68, - "curve": [ 0.5, 0.02, 1, 1 ] - }, - { "time": 1.0666, "angle": 42.45 } - ], - "translate": [ - { "time": 0, "x": 8.11, "y": -2.36 }, - { "time": 0.1333, "x": 10.03, "y": -2.56 }, - { "time": 0.4, "x": 2.76, "y": -2.97 }, - { "time": 0.5333, "x": 2.76, "y": -2.81 }, - { "time": 0.9333, "x": 8.67, "y": -2.54 }, - { "time": 1.0666, "x": 8.11, "y": -2.36 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -10.21 }, - { "time": 0.1333, "angle": -55.64 }, - { "time": 0.2666, "angle": -68.12 }, - { "time": 0.5333, "angle": 5.11 }, - { "time": 0.6666, "angle": -28.29 }, - { "time": 0.8, "angle": 4.08 }, - { "time": 0.9333, "angle": 3.53 }, - { "time": 1.0666, "angle": -10.21 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": -3.69 }, - { "time": 0.1333, "angle": -10.42 }, - { "time": 0.2666, "angle": -17.14 }, - { "time": 0.4, "angle": -2.83 }, - { "time": 0.5333, "angle": -3.87 }, - { "time": 0.6666, "angle": 2.78 }, - { "time": 0.8, "angle": 1.68 }, - { "time": 0.9333, "angle": -8.54 }, - { "time": 1.0666, "angle": -3.69 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 20.89, - "curve": [ 0.264, 0, 0.75, 1 ] - }, - { - "time": 0.1333, - "angle": 3.72, - "curve": [ 0.272, 0, 0.841, 1 ] - }, - { "time": 0.6666, "angle": -278.28 }, - { "time": 1.0666, "angle": 20.89 } - ], - "translate": [ - { "time": 0, "x": -7.84, "y": 7.19 }, - { "time": 0.1333, "x": -6.36, "y": 6.42 }, - { "time": 0.6666, "x": -11.07, "y": 5.25 }, - { "time": 1.0666, "x": -7.84, "y": 7.19 } - ] - }, - "right arm": { - "rotate": [ - { - "time": 0, - "angle": -4.02, - "curve": [ 0.267, 0, 0.804, 0.99 ] - }, - { - "time": 0.1333, - "angle": -13.99, - "curve": [ 0.341, 0, 1, 1 ] - }, - { - "time": 0.6666, - "angle": 36.54, - "curve": [ 0.307, 0, 0.787, 0.99 ] - }, - { "time": 1.0666, "angle": -4.02 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 22.92 }, - { "time": 0.4, "angle": -8.97 }, - { "time": 0.6666, "angle": 0.51 }, - { "time": 1.0666, "angle": 22.92 } - ] - }, - "left shoulder": { - "rotate": [ - { "time": 0, "angle": -1.47 }, - { "time": 0.1333, "angle": 13.6 }, - { "time": 0.6666, "angle": 280.74 }, - { "time": 1.0666, "angle": -1.47 } - ], - "translate": [ - { "time": 0, "x": -1.76, "y": 0.56 }, - { "time": 0.6666, "x": -2.47, "y": 8.14 }, - { "time": 1.0666, "x": -1.76, "y": 0.56 } - ] - }, - "left hand": { - "rotate": [ - { - "time": 0, - "angle": 11.58, - "curve": [ 0.169, 0.37, 0.632, 1.55 ] - }, - { - "time": 0.1333, - "angle": 28.13, - "curve": [ 0.692, 0, 0.692, 0.99 ] - }, - { - "time": 0.6666, - "angle": -27.42, - "curve": [ 0.117, 0.41, 0.738, 1.76 ] - }, - { "time": 0.8, "angle": -36.32 }, - { "time": 1.0666, "angle": 11.58 } - ] - }, - "left arm": { - "rotate": [ - { "time": 0, "angle": -8.27 }, - { "time": 0.1333, "angle": 18.43 }, - { "time": 0.6666, "angle": 0.88 }, - { "time": 1.0666, "angle": -8.27 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -10.28 }, - { - "time": 0.1333, - "angle": -15.38, - "curve": [ 0.545, 0, 1, 1 ] - }, - { - "time": 0.4, - "angle": -9.78, - "curve": [ 0.58, 0.17, 1, 1 ] - }, - { "time": 0.6666, "angle": -15.75 }, - { "time": 0.9333, "angle": -7.06 }, - { "time": 1.0666, "angle": -10.28 } - ], - "translate": [ - { "time": 0, "x": -3.67, "y": 1.68 }, - { "time": 0.1333, "x": -3.67, "y": 0.68 }, - { "time": 0.4, "x": -3.67, "y": 1.97 }, - { "time": 0.6666, "x": -3.67, "y": -0.14 }, - { "time": 1.0666, "x": -3.67, "y": 1.68 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": -5.25 }, - { "time": 0.2666, "angle": -4.08 }, - { "time": 0.4, "angle": -6.45 }, - { "time": 0.5333, "angle": -5.39 }, - { "time": 0.8, "angle": -11.68 }, - { "time": 0.9333, "angle": 0.46 }, - { "time": 1.0666, "angle": -5.25 } - ] - }, - "right lower leg": { - "rotate": [ - { "time": 0, "angle": -3.39 }, - { "time": 0.1333, "angle": -45.53 }, - { "time": 0.2666, "angle": -2.59 }, - { "time": 0.5333, "angle": -19.53 }, - { "time": 0.6666, "angle": -64.8 }, - { - "time": 0.8, - "angle": -82.56, - "curve": [ 0.557, 0.18, 1, 1 ] - }, - { "time": 1.0666, "angle": -3.39 } - ] - }, - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 1.0666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { - "time": 0.1333, - "x": 0, - "y": -7.61, - "curve": [ 0.272, 0.86, 1, 1 ] - }, - { "time": 0.4, "x": 0, "y": 8.7 }, - { "time": 0.5333, "x": 0, "y": -0.41 }, - { - "time": 0.6666, - "x": 0, - "y": -7.05, - "curve": [ 0.235, 0.89, 1, 1 ] - }, - { "time": 0.8, "x": 0, "y": 2.92 }, - { "time": 0.9333, "x": 0, "y": 6.78 }, - { "time": 1.0666, "x": 0, "y": 0 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 3.6 }, - { "time": 0.1333, "angle": 17.49 }, - { "time": 0.2666, "angle": 6.1 }, - { "time": 0.4, "angle": 3.45 }, - { "time": 0.5333, "angle": 5.17 }, - { "time": 0.6666, "angle": 18.36 }, - { "time": 0.8, "angle": 6.09 }, - { "time": 0.9333, "angle": 2.28 }, - { "time": 1.0666, "angle": 3.6 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 3.6, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.1666, "angle": -0.2 }, - { "time": 0.2666, "angle": 6.1 }, - { "time": 0.4, "angle": 3.45 }, - { - "time": 0.5333, - "angle": 5.17, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.7, "angle": 1.1 }, - { "time": 0.8, "angle": 6.09 }, - { "time": 0.9333, "angle": 2.28 }, - { "time": 1.0666, "angle": 3.6 } - ] - } - } - }, - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.9333, "angle": 0, "curve": "stepped" }, - { "time": 1.3666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": -11.57, "y": -3 }, - { "time": 0.2333, "x": -16.2, "y": -19.43 }, - { - "time": 0.3333, - "x": 7.66, - "y": -8.48, - "curve": [ 0.057, 0.06, 0.712, 1 ] - }, - { "time": 0.3666, "x": 15.38, "y": 5.01 }, - { "time": 0.4666, "x": -7.84, "y": 57.22 }, - { - "time": 0.6, - "x": -10.81, - "y": 96.34, - "curve": [ 0.241, 0, 1, 1 ] - }, - { "time": 0.7333, "x": -7.01, "y": 54.7 }, - { "time": 0.8, "x": -10.58, "y": 32.2 }, - { "time": 0.9333, "x": -31.99, "y": 0.45 }, - { "time": 1.0666, "x": -12.48, "y": -29.47 }, - { "time": 1.3666, "x": -11.57, "y": -3 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left upper leg": { - "rotate": [ - { "time": 0, "angle": 17.13 }, - { "time": 0.2333, "angle": 44.35 }, - { "time": 0.3333, "angle": 16.46 }, - { "time": 0.4, "angle": -9.88 }, - { "time": 0.4666, "angle": -11.42 }, - { "time": 0.5666, "angle": 23.46 }, - { "time": 0.7666, "angle": 71.82 }, - { "time": 0.9333, "angle": 65.53 }, - { "time": 1.0666, "angle": 51.01 }, - { "time": 1.3666, "angle": 17.13 } - ], - "translate": [ - { "time": 0, "x": -3, "y": -2.25, "curve": "stepped" }, - { "time": 0.9333, "x": -3, "y": -2.25, "curve": "stepped" }, - { "time": 1.3666, "x": -3, "y": -2.25 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -16.25 }, - { "time": 0.2333, "angle": -52.21 }, - { "time": 0.4, "angle": 15.04 }, - { "time": 0.4666, "angle": -8.95 }, - { "time": 0.5666, "angle": -39.53 }, - { "time": 0.7666, "angle": -27.27 }, - { "time": 0.9333, "angle": -3.52 }, - { "time": 1.0666, "angle": -61.92 }, - { "time": 1.3666, "angle": -16.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": 0.33 }, - { "time": 0.2333, "angle": 6.2 }, - { "time": 0.3333, "angle": 14.73 }, - { "time": 0.4, "angle": -15.54 }, - { "time": 0.4333, "angle": -21.2 }, - { "time": 0.5666, "angle": -7.55 }, - { "time": 0.7666, "angle": -0.67 }, - { "time": 0.9333, "angle": -0.58 }, - { "time": 1.0666, "angle": 14.64 }, - { "time": 1.3666, "angle": 0.33 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 25.97 }, - { "time": 0.2333, "angle": 46.43 }, - { "time": 0.3333, "angle": 22.61 }, - { "time": 0.4, "angle": 2.13 }, - { - "time": 0.4666, - "angle": 0.04, - "curve": [ 0, 0, 0.637, 0.98 ] - }, - { "time": 0.6, "angle": 65.55 }, - { "time": 0.7666, "angle": 64.93 }, - { "time": 0.9333, "angle": 41.08 }, - { "time": 1.0666, "angle": 66.25 }, - { "time": 1.3666, "angle": 25.97 } - ], - "translate": [ - { "time": 0, "x": 5.74, "y": 0.61 }, - { "time": 0.2333, "x": 4.79, "y": 1.79 }, - { "time": 0.3333, "x": 6.05, "y": -4.55 }, - { "time": 0.9333, "x": 4.79, "y": 1.79, "curve": "stepped" }, - { "time": 1.0666, "x": 4.79, "y": 1.79 }, - { "time": 1.3666, "x": 5.74, "y": 0.61 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right lower leg": { - "rotate": [ - { "time": 0, "angle": -27.46 }, - { "time": 0.2333, "angle": -64.03 }, - { "time": 0.4, "angle": -48.36 }, - { "time": 0.5666, "angle": -76.86 }, - { "time": 0.7666, "angle": -26.89 }, - { "time": 0.9, "angle": -18.97 }, - { "time": 0.9333, "angle": -14.18 }, - { "time": 1.0666, "angle": -80.45 }, - { "time": 1.3666, "angle": -27.46 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": 1.08 }, - { "time": 0.2333, "angle": 16.02 }, - { "time": 0.3, "angle": 12.94 }, - { "time": 0.3333, "angle": 15.16 }, - { "time": 0.4, "angle": -14.7 }, - { "time": 0.4333, "angle": -12.85 }, - { "time": 0.4666, "angle": -19.18 }, - { "time": 0.5666, "angle": -15.82 }, - { "time": 0.6, "angle": -3.59 }, - { "time": 0.7666, "angle": -3.56 }, - { "time": 0.9333, "angle": 1.86 }, - { "time": 1.0666, "angle": 16.02 }, - { "time": 1.3666, "angle": 1.08 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -13.35 }, - { "time": 0.2333, "angle": -48.95 }, - { "time": 0.4333, "angle": -35.77 }, - { "time": 0.6, "angle": -4.59 }, - { "time": 0.7666, "angle": 14.61 }, - { "time": 0.9333, "angle": 15.74 }, - { "time": 1.0666, "angle": -32.44 }, - { "time": 1.3666, "angle": -13.35 } - ], - "translate": [ - { "time": 0, "x": -3.67, "y": 1.68, "curve": "stepped" }, - { "time": 0.9333, "x": -3.67, "y": 1.68, "curve": "stepped" }, - { "time": 1.3666, "x": -3.67, "y": 1.68 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 12.78 }, - { "time": 0.2333, "angle": 16.46 }, - { "time": 0.4, "angle": 26.49 }, - { "time": 0.6, "angle": 15.51 }, - { "time": 0.7666, "angle": 1.34 }, - { "time": 0.9333, "angle": 2.35 }, - { "time": 1.0666, "angle": 6.08 }, - { "time": 1.3, "angle": 21.23 }, - { "time": 1.3666, "angle": 12.78 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 5.19 }, - { "time": 0.2333, "angle": 20.27 }, - { "time": 0.4, "angle": 15.27 }, - { "time": 0.6, "angle": -24.69 }, - { "time": 0.7666, "angle": -11.02 }, - { "time": 0.9333, "angle": -24.38 }, - { "time": 1.0666, "angle": 11.99 }, - { "time": 1.3, "angle": 4.86 }, - { "time": 1.3666, "angle": 5.19 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left shoulder": { - "rotate": [ - { - "time": 0, - "angle": 0.05, - "curve": [ 0, 0, 0.62, 1 ] - }, - { - "time": 0.2333, - "angle": 279.66, - "curve": [ 0.218, 0.67, 0.66, 0.99 ] - }, - { - "time": 0.5, - "angle": 62.27, - "curve": [ 0.462, 0, 0.764, 0.58 ] - }, - { "time": 0.9333, "angle": 28.91 }, - { "time": 1.0666, "angle": -8.62 }, - { "time": 1.1666, "angle": -18.43 }, - { "time": 1.3666, "angle": 0.05 } - ], - "translate": [ - { "time": 0, "x": -1.76, "y": 0.56, "curve": "stepped" }, - { "time": 0.9333, "x": -1.76, "y": 0.56, "curve": "stepped" }, - { "time": 1.3666, "x": -1.76, "y": 0.56 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left hand": { - "rotate": [ - { "time": 0, "angle": 11.58, "curve": "stepped" }, - { "time": 0.9333, "angle": 11.58, "curve": "stepped" }, - { "time": 1.3666, "angle": 11.58 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left arm": { - "rotate": [ - { "time": 0, "angle": 0.51 }, - { "time": 0.4333, "angle": 12.82 }, - { "time": 0.6, "angle": 47.55 }, - { "time": 0.9333, "angle": 12.82 }, - { "time": 1.1666, "angle": -6.5 }, - { "time": 1.3666, "angle": 0.51 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 43.82, - "curve": [ 0, 0, 0.62, 1 ] - }, - { - "time": 0.2333, - "angle": -8.74, - "curve": [ 0.304, 0.58, 0.709, 0.97 ] - }, - { - "time": 0.5333, - "angle": -208.02, - "curve": [ 0.462, 0, 0.764, 0.58 ] - }, - { "time": 0.9333, "angle": -246.72 }, - { "time": 1.0666, "angle": -307.13 }, - { "time": 1.1666, "angle": 37.15 }, - { "time": 1.3666, "angle": 43.82 } - ], - "translate": [ - { "time": 0, "x": -7.84, "y": 7.19, "curve": "stepped" }, - { "time": 0.9333, "x": -7.84, "y": 7.19, "curve": "stepped" }, - { "time": 1.3666, "x": -7.84, "y": 7.19 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right arm": { - "rotate": [ - { "time": 0, "angle": -4.02 }, - { "time": 0.6, "angle": 17.5 }, - { "time": 0.9333, "angle": -4.02 }, - { "time": 1.1666, "angle": -16.72 }, - { "time": 1.3666, "angle": -4.02 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 22.92, "curve": "stepped" }, - { "time": 0.9333, "angle": 22.92, "curve": "stepped" }, - { "time": 1.3666, "angle": 22.92 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "root": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.4333, "angle": -14.52 }, - { "time": 0.8, "angle": 9.86 }, - { "time": 1.3666, "angle": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/index.html b/examples/example 12 - Spine/index.html index 5abc5ef..7c9fc47 100644 --- a/examples/example 12 - Spine/index.html +++ b/examples/example 12 - Spine/index.html @@ -18,7 +18,7 @@ // create an array of assets to load - var assetsToLoader = ["data/spineboy.json", "data/spineboySpineData.json"]; + var assetsToLoader = ["data/spineboy.json"]; // create a new loader loader = new PIXI.AssetLoader(assetsToLoader); @@ -45,7 +45,7 @@ function onAssetsLoaded() { // create a spine boy - var spineBoy = new PIXI.Spine("data/spineboySpineData.json"); + var spineBoy = new PIXI.Spine("data/spineboy.json"); // set the position spineBoy.position.x = window.innerWidth/2; @@ -58,15 +58,15 @@ spineBoy.stateData.setMixByName("jump", "walk", 0.4); // play animation - spineBoy.state.setAnimationByName("walk", true); + spineBoy.state.setAnimationByName(0, "walk", true); stage.addChild(spineBoy); stage.click = function() { - spineBoy.state.setAnimationByName("jump", false); - spineBoy.state.addAnimationByName("walk", true); + spineBoy.state.setAnimationByName(0, "jump", false); + spineBoy.state.addAnimationByName(0, "walk", true, 0); } diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/dragonBones.png b/examples/example 12 - Spine/data/dragonBones.png deleted file mode 100644 index 12cb92e..0000000 --- a/examples/example 12 - Spine/data/dragonBones.png +++ /dev/null Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBonesData.json b/examples/example 12 - Spine/data/dragonBonesData.json deleted file mode 100644 index c65508a..0000000 --- a/examples/example 12 - Spine/data/dragonBonesData.json +++ /dev/null @@ -1,779 +0,0 @@ -{ -"bones": [ - { "name": "root", "y": -176.12 }, - { "name": "COG", "parent": "root", "y": 176.12 }, - { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, - { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, - { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, - { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, - { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, - { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, - { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, - { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, - { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, - { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, - { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, - { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, - { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, - { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, - { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, - { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, - { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, - { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, - { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, - { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, - { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, - { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, - { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, - { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, - { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, - { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, - { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, - { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, - { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, - { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, - { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } -], -"slots": [ - { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, - { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, - { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, - { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, - { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, - { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, - { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, - { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, - { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, - { "name": "back", "bone": "back", "attachment": "back" }, - { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, - { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, - { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, - { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, - { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, - { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, - { "name": "chest", "bone": "chest", "attachment": "chest" }, - { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, - { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, - { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, - { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, - { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, - { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, - { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, - { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, - { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, - { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, - { "name": "chin", "bone": "chin", "attachment": "chin" }, - { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, - { "name": "head", "bone": "head", "attachment": "head" } -], -"skins": { - "default": { - "L_front_leg": { - "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } - }, - "L_front_thigh": { - "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } - }, - "L_front_toe1": { - "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } - }, - "L_front_toe2": { - "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } - }, - "L_front_toe3": { - "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } - }, - "L_front_toe4": { - "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } - }, - "L_rear_leg": { - "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } - }, - "L_rear_thigh": { - "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } - }, - "L_wing": { - "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, - "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, - "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, - "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, - "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, - "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, - "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, - "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, - "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } - }, - "R_front_leg": { - "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } - }, - "R_front_thigh": { - "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } - }, - "R_front_toe1": { - "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } - }, - "R_front_toe2": { - "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } - }, - "R_front_toe3": { - "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } - }, - "R_rear_leg": { - "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } - }, - "R_rear_thigh": { - "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } - }, - "R_rear_toe1": { - "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } - }, - "R_rear_toe2": { - "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } - }, - "R_rear_toe3": { - "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } - }, - "R_wing": { - "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, - "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, - "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, - "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, - "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, - "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, - "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, - "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, - "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } - }, - "back": { - "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } - }, - "chest": { - "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } - }, - "chin": { - "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } - }, - "head": { - "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } - }, - "tail1": { - "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } - }, - "tail2": { - "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } - }, - "tail3": { - "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } - }, - "tail4": { - "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } - }, - "tail5": { - "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } - }, - "tail6": { - "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } - } - } -}, -"animations": { - "flying": { - "bones": { - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.39 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.8333, "angle": 7 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -8.18 }, - { "time": 0.3333, "angle": -23.16 }, - { "time": 0.5, "angle": -18.01 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chest": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -2.42 }, - { "time": 0.3333, "angle": -26.2 }, - { "time": 0.5, "angle": -29.65 }, - { "time": 0.6666, "angle": -23.15 }, - { "time": 0.8333, "angle": -55.46 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_thigh": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -1.12 }, - { "time": 0.3333, "angle": 10.48 }, - { "time": 0.5, "angle": 7.89 }, - { "time": 0.8333, "angle": -10.38 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 8.24 }, - { "time": 0.3333, "angle": 15.21 }, - { "time": 0.5, "angle": 14.84 }, - { "time": 0.8333, "angle": -18.9 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.46 }, - { "time": 0.3333, "angle": 22.15 }, - { "time": 0.5, "angle": 22.76 }, - { "time": 0.8333, "angle": -4.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail5": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 7.4 }, - { "time": 0.3333, "angle": 28.5 }, - { "time": 0.5, "angle": 21.33 }, - { "time": 0.8333, "angle": -1.27 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail6": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 45.99 }, - { "time": 0.4, "angle": 43.53 }, - { "time": 0.5, "angle": 61.79 }, - { "time": 0.8333, "angle": 13.28 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -14.21 }, - { "time": 0.5, "angle": 47.17 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -36.06 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -20.32 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -18.71 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.408, 1.36, 0.675, 1.43 ] - }, - { "time": 0.5, "angle": 1.03 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chin": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.416, 1.15, 0.494, 1.27 ] - }, - { "time": 0.3333, "angle": -5.15 }, - { "time": 0.5, "angle": 9.79 }, - { "time": 0.6666, "angle": 18.94 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -19.18 }, - { "time": 0.3333, "angle": -32.02 }, - { "time": 0.5, "angle": -19.62 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -12.96 }, - { "time": 0.5, "angle": 16.2 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 37.77 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -16.08 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.33, "y": 1.029 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 26.51 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.239, "y": 0.993 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 16.99 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.402, "y": 1.007 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 26.07 }, - { "time": 0.5, "angle": -21.6 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 29.23 }, - { "time": 0.5, "angle": 34.83 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.412, "y": 1 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 24.89 }, - { "time": 0.5, "angle": 23.16 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.407, "y": 1.057 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 11.01 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.329, "y": 1.181 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 25.19 }, - { "time": 0.6666, "angle": -15.65 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "COG": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.456, 0.2, 0.422, 1.06 ] - }, - { "time": 0.3333, "angle": 23.93 }, - { - "time": 0.6666, - "angle": 337.8, - "curve": [ 0.41, 0, 0.887, 0.75 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.33, 1, 0.816, 1.33 ] - }, - { - "time": 0.5, - "x": 0, - "y": 113.01, - "curve": [ 0.396, 0, 0.709, 2.03 ] - }, - { "time": 1, "x": 0, "y": 0 } - ] - } - }, - "slots": { - "R_wing": { - "attachment": [ - { "time": 0, "name": "R_wing01" }, - { "time": 0.0666, "name": "R_wing02" }, - { "time": 0.1333, "name": "R_wing03" }, - { "time": 0.2, "name": "R_wing04" }, - { "time": 0.2666, "name": "R_wing05" }, - { "time": 0.3333, "name": "R_wing06" }, - { "time": 0.4, "name": "R_wing07" }, - { "time": 0.4666, "name": "R_wing08" }, - { "time": 0.5333, "name": "R_wing09" }, - { "time": 0.6, "name": "R_wing01" }, - { "time": 0.7333, "name": "R_wing02" }, - { "time": 0.7666, "name": "R_wing02" }, - { "time": 0.8, "name": "R_wing03" }, - { "time": 0.8333, "name": "R_wing04" }, - { "time": 0.8666, "name": "R_wing05" }, - { "time": 0.9, "name": "R_wing06" }, - { "time": 0.9333, "name": "R_wing07" }, - { "time": 0.9666, "name": "R_wing08" }, - { "time": 1, "name": "R_wing09" } - ] - }, - "L_wing": { - "attachment": [ - { "time": 0, "name": "L_wing01" }, - { "time": 0.0666, "name": "L_wing02" }, - { "time": 0.1333, "name": "L_wing03" }, - { "time": 0.2, "name": "L_wing04" }, - { "time": 0.2666, "name": "L_wing05" }, - { "time": 0.3333, "name": "L_wing06" }, - { "time": 0.4, "name": "L_wing07" }, - { "time": 0.4666, "name": "L_wing08" }, - { "time": 0.5333, "name": "L_wing09" }, - { "time": 0.6, "name": "L_wing01" }, - { "time": 0.7333, "name": "L_wing02" }, - { "time": 0.8, "name": "L_wing03" }, - { "time": 0.8333, "name": "L_wing04" }, - { "time": 0.8666, "name": "L_wing05" }, - { "time": 0.9, "name": "L_wing06" }, - { "time": 0.9333, "name": "L_wing07" }, - { "time": 0.9666, "name": "L_wing08" }, - { "time": 1, "name": "L_wing09" } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/goblins.atlas b/examples/example 12 - Spine/data/goblins.atlas new file mode 100644 index 0000000..c9cb702 --- /dev/null +++ b/examples/example 12 - Spine/data/goblins.atlas @@ -0,0 +1,293 @@ + +goblins.png +size: 228,523 +format: RGBA8888 +filter: Linear,Linear +repeat: none +dagger + rotate: false + xy: 2, 43 + size: 26, 108 + orig: 26, 108 + offset: 0, 0 + index: -1 +goblin/eyes-closed + rotate: false + xy: 166, 237 + size: 34, 12 + orig: 34, 12 + offset: 0, 0 + index: -1 +goblin/head + rotate: false + xy: 26, 372 + size: 103, 66 + orig: 103, 66 + offset: 0, 0 + index: -1 +goblin/left-arm + rotate: false + xy: 166, 251 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblin/left-foot + rotate: true + xy: 195, 358 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblin/left-hand + rotate: false + xy: 49, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/left-lower-leg + rotate: false + xy: 30, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblin/left-shoulder + rotate: true + xy: 169, 288 + size: 29, 44 + orig: 29, 44 + offset: 0, 0 + index: -1 +goblin/left-upper-leg + rotate: false + xy: 134, 305 + size: 33, 73 + orig: 33, 73 + offset: 0, 0 + index: -1 +goblin/neck + rotate: false + xy: 87, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/pelvis + rotate: false + xy: 131, 380 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblin/right-arm + rotate: false + xy: 135, 69 + size: 23, 50 + orig: 23, 50 + offset: 0, 0 + index: -1 +goblin/right-foot + rotate: true + xy: 104, 157 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblin/right-hand + rotate: false + xy: 190, 319 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblin/right-lower-leg + rotate: false + xy: 96, 294 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblin/right-shoulder + rotate: true + xy: 2, 2 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblin/right-upper-leg + rotate: false + xy: 139, 162 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblin/torso + rotate: false + xy: 131, 425 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblin/undie-straps + rotate: true + xy: 201, 466 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblin/undies + rotate: false + xy: 190, 51 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +goblingirl/eyes-closed + rotate: true + xy: 201, 427 + size: 37, 21 + orig: 37, 21 + offset: 0, 0 + index: -1 +goblingirl/head + rotate: false + xy: 26, 440 + size: 103, 81 + orig: 103, 81 + offset: 0, 0 + index: -1 +goblingirl/left-arm + rotate: true + xy: 175, 198 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblingirl/left-foot + rotate: true + xy: 133, 227 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblingirl/left-hand + rotate: true + xy: 168, 2 + size: 35, 40 + orig: 35, 40 + offset: 0, 0 + index: -1 +goblingirl/left-lower-leg + rotate: false + xy: 65, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/left-shoulder + rotate: true + xy: 135, 39 + size: 28, 46 + orig: 28, 46 + offset: 0, 0 + index: -1 +goblingirl/left-upper-leg + rotate: false + xy: 98, 222 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/neck + rotate: true + xy: 125, 2 + size: 35, 41 + orig: 35, 41 + offset: 0, 0 + index: -1 +goblingirl/pelvis + rotate: false + xy: 30, 117 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblingirl/right-arm + rotate: false + xy: 160, 69 + size: 28, 50 + orig: 28, 50 + offset: 0, 0 + index: -1 +goblingirl/right-foot + rotate: true + xy: 100, 56 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblingirl/right-hand + rotate: false + xy: 190, 82 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblingirl/right-lower-leg + rotate: true + xy: 26, 162 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblingirl/right-shoulder + rotate: true + xy: 159, 121 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblingirl/right-upper-leg + rotate: true + xy: 94, 121 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblingirl/torso + rotate: false + xy: 26, 274 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblingirl/undie-straps + rotate: true + xy: 169, 323 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblingirl/undies + rotate: false + xy: 175, 167 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +shield + rotate: false + xy: 26, 200 + size: 70, 72 + orig: 70, 72 + offset: 0, 0 + index: -1 +spear + rotate: false + xy: 2, 153 + size: 22, 368 + orig: 22, 368 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/goblins.json b/examples/example 12 - Spine/data/goblins.json index f87ec19..5d83ae1 100644 --- a/examples/example 12 - Spine/data/goblins.json +++ b/examples/example 12 - Spine/data/goblins.json @@ -1,332 +1 @@ -{"frames": { - -"dagger.png": -{ - "frame": {"x":2,"y":372,"w":26,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":26,"h":108}, - "sourceSize": {"w":26,"h":108} -}, -"goblin/eyes-closed.png": -{ - "frame": {"x":64,"y":354,"w":34,"h":12}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":12}, - "sourceSize": {"w":34,"h":12} -}, -"goblin/head.png": -{ - "frame": {"x":59,"y":83,"w":103,"h":64}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":103,"h":64}, - "sourceSize": {"w":103,"h":66} -}, -"goblin/left-arm.png": -{ - "frame": {"x":30,"y":445,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblin/left-foot.png": -{ - "frame": {"x":59,"y":182,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblin/left-hand.png": -{ - "frame": {"x":107,"y":436,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/left-lower-leg.png": -{ - "frame": {"x":26,"y":74,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblin/left-shoulder.png": -{ - "frame": {"x":26,"y":146,"w":29,"h":44}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":44}, - "sourceSize": {"w":29,"h":44} -}, -"goblin/left-upper-leg.png": -{ - "frame": {"x":30,"y":370,"w":33,"h":73}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":73}, - "sourceSize": {"w":33,"h":73} -}, -"goblin/neck.png": -{ - "frame": {"x":146,"y":309,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/pelvis.png": -{ - "frame": {"x":163,"y":233,"w":62,"h":43}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":62,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblin/right-arm.png": -{ - "frame": {"x":30,"y":240,"w":23,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":23,"h":50}, - "sourceSize": {"w":23,"h":50} -}, -"goblin/right-foot.png": -{ - "frame": {"x":164,"y":198,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblin/right-hand.png": -{ - "frame": {"x":154,"y":462,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblin/right-lower-leg.png": -{ - "frame": {"x":26,"y":292,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblin/right-shoulder.png": -{ - "frame": {"x":105,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblin/right-upper-leg.png": -{ - "frame": {"x":136,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblin/torso.png": -{ - "frame": {"x":164,"y":2,"w":68,"h":96}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblin/undie-straps.png": -{ - "frame": {"x":59,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblin/undies.png": -{ - "frame": {"x":116,"y":479,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"goblingirl/eyes-closed.png": -{ - "frame": {"x":100,"y":419,"w":37,"h":15}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":6,"w":37,"h":15}, - "sourceSize": {"w":37,"h":21} -}, -"goblingirl/head.png": -{ - "frame": {"x":59,"y":2,"w":103,"h":79}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":79}, - "sourceSize": {"w":103,"h":81} -}, -"goblingirl/left-arm.png": -{ - "frame": {"x":124,"y":227,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblingirl/left-foot.png": -{ - "frame": {"x":59,"y":149,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblingirl/left-hand.png": -{ - "frame": {"x":55,"y":250,"w":35,"h":40}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":40}, - "sourceSize": {"w":35,"h":40} -}, -"goblingirl/left-lower-leg.png": -{ - "frame": {"x":26,"y":2,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/left-shoulder.png": -{ - "frame": {"x":26,"y":192,"w":28,"h":46}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":28,"h":46}, - "sourceSize": {"w":28,"h":46} -}, -"goblingirl/left-upper-leg.png": -{ - "frame": {"x":65,"y":368,"w":33,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/neck.png": -{ - "frame": {"x":145,"y":419,"w":33,"h":41}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":41}, - "sourceSize": {"w":35,"h":41} -}, -"goblingirl/pelvis.png": -{ - "frame": {"x":92,"y":264,"w":60,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":60,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblingirl/right-arm.png": -{ - "frame": {"x":232,"y":100,"w":22,"h":50}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":3,"y":0,"w":22,"h":50}, - "sourceSize": {"w":28,"h":50} -}, -"goblingirl/right-foot.png": -{ - "frame": {"x":59,"y":215,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblingirl/right-hand.png": -{ - "frame": {"x":69,"y":440,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblingirl/right-lower-leg.png": -{ - "frame": {"x":126,"y":149,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblingirl/right-shoulder.png": -{ - "frame": {"x":64,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblingirl/right-upper-leg.png": -{ - "frame": {"x":100,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblingirl/torso.png": -{ - "frame": {"x":164,"y":100,"w":66,"h":96}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":66,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblingirl/undie-straps.png": -{ - "frame": {"x":2,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblingirl/undies.png": -{ - "frame": {"x":154,"y":278,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"spear.png": -{ - "frame": {"x":2,"y":2,"w":22,"h":368}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":22,"h":368}, - "sourceSize": {"w":22,"h":368} -}}, -"meta": { - "app": "http://www.codeandweb.com/texturepacker ", - "version": "1.0", - "image": "goblins.png", - "format": "RGBA8888", - "size": {"w":256,"h":512}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:f89858b99c6b15e23d39806c4170313a:1/1$" -} -} +{"skeleton":{"hash":"BMzsp4a1APif5tjCQwomTTo3Ino","spine":"2.1.05","width":233.95,"height":354.87},"bones":[{"name":"root"},{"name":"hip","parent":"root","x":0.64,"y":114.41},{"name":"left upper leg","parent":"hip","length":50.39,"x":14.45,"y":2.81,"rotation":-89.09},{"name":"pelvis","parent":"hip","x":1.41,"y":-6.57},{"name":"right upper leg","parent":"hip","length":42.45,"x":-20.07,"y":-6.83,"rotation":-97.49},{"name":"torso","parent":"hip","length":85.82,"x":-6.42,"y":1.97,"rotation":93.92},{"name":"left lower leg","parent":"left upper leg","length":49.89,"x":56.34,"y":0.98,"rotation":-16.65},{"name":"left shoulder","parent":"torso","length":35.43,"x":74.04,"y":-20.38,"rotation":-156.96},{"name":"neck","parent":"torso","length":18.38,"x":81.67,"y":-6.34,"rotation":-1.51},{"name":"right lower leg","parent":"right upper leg","length":58.52,"x":42.99,"y":-0.61,"rotation":-14.34},{"name":"right shoulder","parent":"torso","length":37.24,"x":76.02,"y":18.14,"rotation":133.88},{"name":"head","parent":"neck","length":68.28,"x":20.93,"y":11.59,"rotation":-13.92},{"name":"left arm","parent":"left shoulder","length":35.62,"x":37.85,"y":-2.34,"rotation":28.16},{"name":"left foot","parent":"left lower leg","length":46.5,"x":58.94,"y":-7.61,"rotation":102.43},{"name":"right arm","parent":"right shoulder","length":36.74,"x":37.6,"y":0.31,"rotation":36.32},{"name":"right foot","parent":"right lower leg","length":45.45,"x":64.88,"y":0.04,"rotation":110.3},{"name":"left hand","parent":"left arm","length":11.52,"x":35.62,"y":0.07,"rotation":2.7},{"name":"right hand","parent":"right arm","length":15.32,"x":36.9,"y":0.34,"rotation":2.35}],"slots":[{"name":"left shoulder","bone":"left shoulder","attachment":"left shoulder"},{"name":"left arm","bone":"left arm","attachment":"left arm"},{"name":"left hand item","bone":"left hand","attachment":"spear"},{"name":"left hand","bone":"left hand","attachment":"left hand"},{"name":"left foot","bone":"left foot","attachment":"left foot"},{"name":"left lower leg","bone":"left lower leg","attachment":"left lower leg"},{"name":"left upper leg","bone":"left upper leg","attachment":"left upper leg"},{"name":"neck","bone":"neck","attachment":"neck"},{"name":"torso","bone":"torso","attachment":"torso"},{"name":"pelvis","bone":"pelvis","attachment":"pelvis"},{"name":"right foot","bone":"right foot","attachment":"right foot"},{"name":"right lower leg","bone":"right lower leg","attachment":"right lower leg"},{"name":"undie straps","bone":"pelvis","attachment":"undie straps"},{"name":"undies","bone":"pelvis","attachment":"undies"},{"name":"right upper leg","bone":"right upper leg","attachment":"right upper leg"},{"name":"head","bone":"head","attachment":"head"},{"name":"eyes","bone":"head"},{"name":"right shoulder","bone":"right shoulder","attachment":"right shoulder"},{"name":"right arm","bone":"right arm","attachment":"right arm"},{"name":"right hand item","bone":"right hand"},{"name":"right hand","bone":"right hand","attachment":"right hand"},{"name":"right hand item top","bone":"right hand","attachment":"shield"}],"skins":{"default":{"left hand item":{"dagger":{"x":7.88,"y":-23.45,"rotation":10.47,"width":26,"height":108},"spear":{"x":-4.55,"y":39.2,"rotation":13.04,"width":22,"height":368}},"right hand item":{"dagger":{"x":6.51,"y":-24.15,"rotation":-8.06,"width":26,"height":108}},"right hand item top":{"shield":{"rotation":93.49,"width":70,"height":72}}},"goblin":{"eyes":{"eyes closed":{"name":"goblin/eyes-closed","x":32.21,"y":-21.27,"rotation":-88.92,"width":34,"height":12}},"head":{"head":{"name":"goblin/head","x":25.73,"y":2.33,"rotation":-92.29,"width":103,"height":66}},"left arm":{"left arm":{"name":"goblin/left-arm","x":16.7,"y":-1.69,"scaleX":1.057,"scaleY":1.057,"rotation":33.84,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblin/left-foot","x":24.85,"y":8.74,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblin/left-hand","x":3.47,"y":3.41,"scaleX":0.892,"scaleY":0.892,"rotation":31.14,"width":36,"height":41}},"left lower leg":{"left lower leg":{"name":"goblin/left-lower-leg","x":23.58,"y":-2.06,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblin/left-shoulder","x":15.56,"y":-2.26,"rotation":62.01,"width":29,"height":44}},"left upper leg":{"left upper leg":{"name":"goblin/left-upper-leg","x":29.68,"y":-3.87,"rotation":89.09,"width":33,"height":73}},"neck":{"neck":{"name":"goblin/neck","x":10.1,"y":0.42,"rotation":-93.69,"width":36,"height":41}},"pelvis":{"pelvis":{"name":"goblin/pelvis","x":-5.61,"y":0.76,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblin/right-arm","x":16.44,"y":-1.04,"rotation":94.32,"width":23,"height":50}},"right foot":{"right foot":{"name":"goblin/right-foot","x":23.56,"y":9.8,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblin/right-hand","x":7.88,"y":2.78,"rotation":91.96,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblin/right-lower-leg","x":25.68,"y":-3.15,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblin/right-shoulder","x":15.68,"y":-1.03,"rotation":130.65,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblin/right-upper-leg","x":20.35,"y":1.47,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblin/torso","x":38.09,"y":-3.87,"rotation":-94.95,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblin/undie-straps","x":-3.87,"y":13.1,"scaleX":1.089,"width":55,"height":19}},"undies":{"undies":{"name":"goblin/undies","x":6.3,"y":0.12,"rotation":0.91,"width":36,"height":29}}},"goblingirl":{"eyes":{"eyes closed":{"name":"goblingirl/eyes-closed","x":28,"y":-25.54,"rotation":-87.04,"width":37,"height":21}},"head":{"head":{"name":"goblingirl/head","x":27.71,"y":-4.32,"rotation":-85.58,"width":103,"height":81}},"left arm":{"left arm":{"name":"goblingirl/left-arm","x":19.64,"y":-2.42,"rotation":33.05,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblingirl/left-foot","x":25.17,"y":7.92,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblingirl/left-hand","x":4.34,"y":2.39,"scaleX":0.896,"scaleY":0.896,"rotation":30.34,"width":35,"height":40}},"left lower leg":{"left lower leg":{"name":"goblingirl/left-lower-leg","x":25.02,"y":-0.6,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblingirl/left-shoulder","x":19.8,"y":-0.42,"rotation":61.21,"width":28,"height":46}},"left upper leg":{"left upper leg":{"name":"goblingirl/left-upper-leg","x":30.21,"y":-2.95,"rotation":89.09,"width":33,"height":70}},"neck":{"neck":{"name":"goblingirl/neck","x":6.16,"y":-3.14,"rotation":-98.86,"width":35,"height":41}},"pelvis":{"pelvis":{"name":"goblingirl/pelvis","x":-3.87,"y":3.18,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblingirl/right-arm","x":16.85,"y":-0.66,"rotation":93.52,"width":28,"height":50}},"right foot":{"right foot":{"name":"goblingirl/right-foot","x":23.46,"y":9.66,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblingirl/right-hand","x":7.21,"y":3.43,"rotation":91.16,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblingirl/right-lower-leg","x":26.15,"y":-3.27,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblingirl/right-shoulder","x":14.46,"y":0.45,"rotation":129.85,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblingirl/right-upper-leg","x":19.69,"y":2.13,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblingirl/torso","x":36.28,"y":-5.14,"rotation":-95.74,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblingirl/undie-straps","x":-1.51,"y":14.18,"width":55,"height":19}},"undies":{"undies":{"name":"goblingirl/undies","x":5.4,"y":1.7,"width":36,"height":29}}}},"animations":{"walk":{"slots":{"eyes":{"attachment":[{"time":0.7,"name":"eyes closed"},{"time":0.8,"name":null}]}},"bones":{"left upper leg":{"rotate":[{"time":0,"angle":-26.55},{"time":0.1333,"angle":-8.78},{"time":0.2333,"angle":9.51},{"time":0.3666,"angle":30.74},{"time":0.5,"angle":25.33},{"time":0.6333,"angle":26.11},{"time":0.7333,"angle":-7.7},{"time":0.8666,"angle":-21.19},{"time":1,"angle":-26.55}],"translate":[{"time":0,"x":-1.32,"y":1.7},{"time":0.3666,"x":-0.06,"y":2.42},{"time":1,"x":-1.32,"y":1.7}]},"right upper leg":{"rotate":[{"time":0,"angle":42.45},{"time":0.1333,"angle":52.1},{"time":0.2333,"angle":8.53},{"time":0.5,"angle":-16.93},{"time":0.6333,"angle":1.89},{"time":0.7333,"angle":28.06,"curve":[0.462,0.11,1,1]},{"time":0.8666,"angle":58.68,"curve":[0.5,0.02,1,1]},{"time":1,"angle":42.45}],"translate":[{"time":0,"x":6.23,"y":0},{"time":0.2333,"x":2.14,"y":2.4},{"time":0.5,"x":2.44,"y":4.8},{"time":1,"x":6.23,"y":0}]},"left lower leg":{"rotate":[{"time":0,"angle":-22.98},{"time":0.1333,"angle":-63.5},{"time":0.2333,"angle":-73.76},{"time":0.5,"angle":5.11},{"time":0.6333,"angle":-28.29},{"time":0.7333,"angle":4.08},{"time":0.8666,"angle":3.53},{"time":1,"angle":-22.98}],"translate":[{"time":0,"x":0,"y":0},{"time":0.2333,"x":2.55,"y":-0.47},{"time":0.5,"x":0,"y":0,"curve":"stepped"},{"time":1,"x":0,"y":0}]},"left foot":{"rotate":[{"time":0,"angle":-3.69},{"time":0.1333,"angle":-10.42},{"time":0.2333,"angle":-5.01},{"time":0.3666,"angle":3.87},{"time":0.5,"angle":-3.87},{"time":0.6333,"angle":2.78},{"time":0.7333,"angle":1.68},{"time":0.8666,"angle":-8.54},{"time":1,"angle":-3.69}]},"right shoulder":{"rotate":[{"time":0,"angle":5.29,"curve":[0.264,0,0.75,1]},{"time":0.6333,"angle":6.65},{"time":1,"angle":5.29}]},"right arm":{"rotate":[{"time":0,"angle":-4.02,"curve":[0.267,0,0.804,0.99]},{"time":0.6333,"angle":19.78,"curve":[0.307,0,0.787,0.99]},{"time":1,"angle":-4.02}]},"right hand":{"rotate":[{"time":0,"angle":8.98},{"time":0.6333,"angle":0.51},{"time":1,"angle":8.98}]},"left shoulder":{"rotate":[{"time":0,"angle":6.25,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":-11.78,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":6.25}],"translate":[{"time":0,"x":1.15,"y":0.23}]},"left hand":{"rotate":[{"time":0,"angle":-21.23,"curve":[0.295,0,0.755,0.98]},{"time":0.5,"angle":-27.28,"curve":[0.241,0,0.75,0.97]},{"time":1,"angle":-21.23}]},"left arm":{"rotate":[{"time":0,"angle":28.37,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":60.09,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":28.37}]},"torso":{"rotate":[{"time":0,"angle":-10.28},{"time":0.1333,"angle":-15.38,"curve":[0.545,0,0.818,1]},{"time":0.3666,"angle":-9.78,"curve":[0.58,0.17,0.669,0.99]},{"time":0.6333,"angle":-15.75,"curve":[0.235,0.01,0.795,1]},{"time":0.8666,"angle":-7.06,"curve":[0.209,0,0.816,0.98]},{"time":1,"angle":-10.28}],"translate":[{"time":0,"x":-1.29,"y":1.68}]},"right foot":{"rotate":[{"time":0,"angle":-5.25},{"time":0.2333,"angle":-1.91},{"time":0.3666,"angle":-6.45},{"time":0.5,"angle":-5.39},{"time":0.7333,"angle":-11.68},{"time":0.8666,"angle":0.46},{"time":1,"angle":-5.25}]},"right lower leg":{"rotate":[{"time":0,"angle":-3.39,"curve":[0.316,0.01,0.741,0.98]},{"time":0.1333,"angle":-45.53,"curve":[0.229,0,0.738,0.97]},{"time":0.2333,"angle":-4.83},{"time":0.5,"angle":-19.53},{"time":0.6333,"angle":-64.8},{"time":0.7333,"angle":-82.56,"curve":[0.557,0.18,1,1]},{"time":1,"angle":-3.39}],"translate":[{"time":0,"x":0,"y":0,"curve":"stepped"},{"time":0.5,"x":0,"y":0},{"time":0.6333,"x":2.18,"y":0.21},{"time":1,"x":0,"y":0}]},"hip":{"rotate":[{"time":0,"angle":0,"curve":"stepped"},{"time":1,"angle":0}],"translate":[{"time":0,"x":0,"y":-4.16},{"time":0.1333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.3666,"x":0,"y":6.78},{"time":0.5,"x":0,"y":-6.13},{"time":0.6333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.8666,"x":0,"y":6.78},{"time":1,"x":0,"y":-4.16}]},"neck":{"rotate":[{"time":0,"angle":3.6},{"time":0.1333,"angle":17.49},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17},{"time":0.6333,"angle":18.36},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]},"head":{"rotate":[{"time":0,"angle":3.6,"curve":[0,0,0.704,1.17]},{"time":0.1333,"angle":-0.2},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17,"curve":[0,0,0.704,1.61]},{"time":0.6666,"angle":1.1},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]}}}}} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/goblins.png b/examples/example 12 - Spine/data/goblins.png index 5c26ca0..f2cdf16 100644 --- a/examples/example 12 - Spine/data/goblins.png +++ b/examples/example 12 - Spine/data/goblins.png Binary files differ diff --git a/examples/example 12 - Spine/data/goblinsSpineData.json b/examples/example 12 - Spine/data/goblinsSpineData.json deleted file mode 100644 index 8d63c62..0000000 --- a/examples/example 12 - Spine/data/goblinsSpineData.json +++ /dev/null @@ -1,502 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, - { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, - { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 }, - { "name": "right upper leg", "parent": "hip", "length": 42.45, "x": -20.07, "y": -6.83, "rotation": -97.49 }, - { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 93.92 }, - { "name": "left lower leg", "parent": "left upper leg", "length": 49.89, "x": 56.34, "y": 0.98, "rotation": -16.65 }, - { "name": "left shoulder", "parent": "torso", "length": 35.43, "x": 74.04, "y": -20.38, "rotation": -156.96 }, - { "name": "neck", "parent": "torso", "length": 18.38, "x": 81.67, "y": -6.34, "rotation": -1.51 }, - { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 42.99, "y": -0.61, "rotation": -14.34 }, - { "name": "right shoulder", "parent": "torso", "length": 37.24, "x": 76.02, "y": 18.14, "rotation": 133.88 }, - { "name": "head", "parent": "neck", "length": 68.28, "x": 20.93, "y": 11.59, "rotation": -13.92 }, - { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 37.85, "y": -2.34, "rotation": 28.16 }, - { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 58.94, "y": -7.61, "rotation": 102.43 }, - { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 37.6, "y": 0.31, "rotation": 36.32 }, - { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, - { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, - { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 } -], -"slots": [ - { "name": "left shoulder", "bone": "left shoulder", "attachment": "left shoulder" }, - { "name": "left arm", "bone": "left arm", "attachment": "left arm" }, - { "name": "left hand item", "bone": "left hand", "attachment": "spear" }, - { "name": "left hand", "bone": "left hand", "attachment": "left hand" }, - { "name": "left foot", "bone": "left foot", "attachment": "left foot" }, - { "name": "left lower leg", "bone": "left lower leg", "attachment": "left lower leg" }, - { "name": "left upper leg", "bone": "left upper leg", "attachment": "left upper leg" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "torso", "bone": "torso", "attachment": "torso" }, - { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, - { "name": "right foot", "bone": "right foot", "attachment": "right foot" }, - { "name": "right lower leg", "bone": "right lower leg", "attachment": "right lower leg" }, - { "name": "undie straps", "bone": "pelvis", "attachment": "undie straps" }, - { "name": "undies", "bone": "pelvis", "attachment": "undies" }, - { "name": "right upper leg", "bone": "right upper leg", "attachment": "right upper leg" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "eyes", "bone": "head" }, - { "name": "right shoulder", "bone": "right shoulder", "attachment": "right shoulder" }, - { "name": "right arm", "bone": "right arm", "attachment": "right arm" }, - { "name": "right hand item", "bone": "right hand", "attachment": "dagger" }, - { "name": "right hand", "bone": "right hand", "attachment": "right hand" } -], -"skins": { - "default": { - "left hand item": { - "dagger": { "x": 7.88, "y": -23.45, "rotation": 10.47, "width": 26, "height": 108 }, - "spear": { "x": -4.55, "y": 39.2, "rotation": 13.04, "width": 22, "height": 368 } - }, - "right hand item": { - "dagger": { "x": 6.51, "y": -24.15, "rotation": -8.06, "width": 26, "height": 108 } - } - }, - "goblin": { - "eyes": { - "eyes closed": { "name": "goblin/eyes-closed", "x": 32.21, "y": -21.27, "rotation": -88.92, "width": 34, "height": 12 } - }, - "head": { - "head": { "name": "goblin/head", "x": 25.73, "y": 2.33, "rotation": -92.29, "width": 103, "height": 66 } - }, - "left arm": { - "left arm": { - "name": "goblin/left-arm", - "x": 16.7, - "y": -1.69, - "scaleX": 1.057, - "scaleY": 1.057, - "rotation": 33.84, - "width": 37, - "height": 35 - } - }, - "left foot": { - "left foot": { "name": "goblin/left-foot", "x": 24.85, "y": 8.74, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblin/left-hand", - "x": 3.47, - "y": 3.41, - "scaleX": 0.892, - "scaleY": 0.892, - "rotation": 31.14, - "width": 36, - "height": 41 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblin/left-lower-leg", "x": 23.58, "y": -2.06, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblin/left-shoulder", "x": 15.56, "y": -2.26, "rotation": 62.01, "width": 29, "height": 44 } - }, - "left upper leg": { - "left upper leg": { "name": "goblin/left-upper-leg", "x": 29.68, "y": -3.87, "rotation": 89.09, "width": 33, "height": 73 } - }, - "neck": { - "neck": { "name": "goblin/neck", "x": 10.1, "y": 0.42, "rotation": -93.69, "width": 36, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblin/pelvis", "x": -5.61, "y": 0.76, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblin/right-arm", "x": 16.44, "y": -1.04, "rotation": 94.32, "width": 23, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblin/right-foot", "x": 23.56, "y": 9.8, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblin/right-hand", "x": 7.88, "y": 2.78, "rotation": 91.96, "width": 36, "height": 37 } - }, - "right lower leg": { - "right lower leg": { "name": "goblin/right-lower-leg", "x": 25.68, "y": -3.15, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblin/right-shoulder", "x": 15.68, "y": -1.03, "rotation": 130.65, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblin/right-upper-leg", "x": 20.35, "y": 1.47, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblin/torso", "x": 38.09, "y": -3.87, "rotation": -94.95, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblin/undie-straps", "x": -3.87, "y": 13.1, "scaleX": 1.089, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblin/undies", "x": 6.3, "y": 0.12, "rotation": 0.91, "width": 36, "height": 29 } - } - }, - "goblingirl": { - "eyes": { - "eyes closed": { "name": "goblingirl/eyes-closed", "x": 28, "y": -25.54, "rotation": -87.04, "width": 37, "height": 21 } - }, - "head": { - "head": { "name": "goblingirl/head", "x": 27.71, "y": -4.32, "rotation": -85.58, "width": 103, "height": 81 } - }, - "left arm": { - "left arm": { "name": "goblingirl/left-arm", "x": 19.64, "y": -2.42, "rotation": 33.05, "width": 37, "height": 35 } - }, - "left foot": { - "left foot": { "name": "goblingirl/left-foot", "x": 25.17, "y": 7.92, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblingirl/left-hand", - "x": 4.34, - "y": 2.39, - "scaleX": 0.896, - "scaleY": 0.896, - "rotation": 30.34, - "width": 35, - "height": 40 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblingirl/left-lower-leg", "x": 25.02, "y": -0.6, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblingirl/left-shoulder", "x": 19.8, "y": -0.42, "rotation": 61.21, "width": 28, "height": 46 } - }, - "left upper leg": { - "left upper leg": { "name": "goblingirl/left-upper-leg", "x": 30.21, "y": -2.95, "rotation": 89.09, "width": 33, "height": 70 } - }, - "neck": { - "neck": { "name": "goblingirl/neck", "x": 6.16, "y": -3.14, "rotation": -98.86, "width": 35, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblingirl/pelvis", "x": -3.87, "y": 3.18, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblingirl/right-arm", "x": 16.85, "y": -0.66, "rotation": 93.52, "width": 28, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblingirl/right-foot", "x": 23.46, "y": 9.66, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblingirl/right-hand", "x": 7.21, "y": 3.43, "rotation": 91.16, "width": 36, "height": 37 } - }, - "right hand item": { - "right hand item": { "name": "goblingirl/dagger-tip", "x": 13.45, "y": 22.07, "rotation": -3.23, "width": 17, "height": 17 } - }, - "right lower leg": { - "right lower leg": { "name": "goblingirl/right-lower-leg", "x": 26.15, "y": -3.27, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblingirl/right-shoulder", "x": 14.46, "y": 0.45, "rotation": 129.85, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblingirl/right-upper-leg", "x": 19.69, "y": 2.13, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblingirl/torso", "x": 36.28, "y": -5.14, "rotation": -95.74, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblingirl/undie-straps", "x": -1.51, "y": 14.18, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblingirl/undies", "x": 5.4, "y": 1.7, "width": 36, "height": 29 } - } - } -}, -"animations": { - "walk": { - "bones": { - "left upper leg": { - "rotate": [ - { "time": 0, "angle": -26.55 }, - { "time": 0.1333, "angle": -8.78 }, - { "time": 0.2333, "angle": 9.51 }, - { "time": 0.3666, "angle": 30.74 }, - { "time": 0.5, "angle": 25.33 }, - { "time": 0.6333, "angle": 26.11 }, - { "time": 0.7333, "angle": -7.7 }, - { "time": 0.8666, "angle": -21.19 }, - { "time": 1, "angle": -26.55 } - ], - "translate": [ - { "time": 0, "x": -1.32, "y": 1.7 }, - { "time": 0.3666, "x": -0.06, "y": 2.42 }, - { "time": 1, "x": -1.32, "y": 1.7 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 42.45 }, - { "time": 0.1333, "angle": 52.1 }, - { "time": 0.2333, "angle": 8.53 }, - { "time": 0.5, "angle": -16.93 }, - { "time": 0.6333, "angle": 1.89 }, - { - "time": 0.7333, - "angle": 28.06, - "curve": [ 0.462, 0.11, 1, 1 ] - }, - { - "time": 0.8666, - "angle": 58.68, - "curve": [ 0.5, 0.02, 1, 1 ] - }, - { "time": 1, "angle": 42.45 } - ], - "translate": [ - { "time": 0, "x": 6.23, "y": 0 }, - { "time": 0.2333, "x": 2.14, "y": 2.4 }, - { "time": 0.5, "x": 2.44, "y": 4.8 }, - { "time": 1, "x": 6.23, "y": 0 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -22.98 }, - { "time": 0.1333, "angle": -63.5 }, - { "time": 0.2333, "angle": -73.76 }, - { "time": 0.5, "angle": 5.11 }, - { "time": 0.6333, "angle": -28.29 }, - { "time": 0.7333, "angle": 4.08 }, - { "time": 0.8666, "angle": 3.53 }, - { "time": 1, "angle": -22.98 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 2.55, "y": -0.47 }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": -3.69 }, - { "time": 0.1333, "angle": -10.42 }, - { "time": 0.2333, "angle": -5.01 }, - { "time": 0.3666, "angle": 3.87 }, - { "time": 0.5, "angle": -3.87 }, - { "time": 0.6333, "angle": 2.78 }, - { "time": 0.7333, "angle": 1.68 }, - { "time": 0.8666, "angle": -8.54 }, - { "time": 1, "angle": -3.69 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 5.29, - "curve": [ 0.264, 0, 0.75, 1 ] - }, - { "time": 0.6333, "angle": 6.65 }, - { "time": 1, "angle": 5.29 } - ] - }, - "right arm": { - "rotate": [ - { - "time": 0, - "angle": -4.02, - "curve": [ 0.267, 0, 0.804, 0.99 ] - }, - { - "time": 0.6333, - "angle": 19.78, - "curve": [ 0.307, 0, 0.787, 0.99 ] - }, - { "time": 1, "angle": -4.02 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 8.98 }, - { "time": 0.6333, "angle": 0.51 }, - { "time": 1, "angle": 8.98 } - ] - }, - "left shoulder": { - "rotate": [ - { - "time": 0, - "angle": 6.25, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": -11.78, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 6.25 } - ], - "translate": [ - { "time": 0, "x": 1.15, "y": 0.23 } - ] - }, - "left hand": { - "rotate": [ - { - "time": 0, - "angle": -21.23, - "curve": [ 0.295, 0, 0.755, 0.98 ] - }, - { - "time": 0.5, - "angle": -27.28, - "curve": [ 0.241, 0, 0.75, 0.97 ] - }, - { "time": 1, "angle": -21.23 } - ] - }, - "left arm": { - "rotate": [ - { - "time": 0, - "angle": 28.37, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": 60.09, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 28.37 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -10.28 }, - { - "time": 0.1333, - "angle": -15.38, - "curve": [ 0.545, 0, 0.818, 1 ] - }, - { - "time": 0.3666, - "angle": -9.78, - "curve": [ 0.58, 0.17, 0.669, 0.99 ] - }, - { - "time": 0.6333, - "angle": -15.75, - "curve": [ 0.235, 0.01, 0.795, 1 ] - }, - { - "time": 0.8666, - "angle": -7.06, - "curve": [ 0.209, 0, 0.816, 0.98 ] - }, - { "time": 1, "angle": -10.28 } - ], - "translate": [ - { "time": 0, "x": -1.29, "y": 1.68 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": -5.25 }, - { "time": 0.2333, "angle": -1.91 }, - { "time": 0.3666, "angle": -6.45 }, - { "time": 0.5, "angle": -5.39 }, - { "time": 0.7333, "angle": -11.68 }, - { "time": 0.8666, "angle": 0.46 }, - { "time": 1, "angle": -5.25 } - ] - }, - "right lower leg": { - "rotate": [ - { - "time": 0, - "angle": -3.39, - "curve": [ 0.316, 0.01, 0.741, 0.98 ] - }, - { - "time": 0.1333, - "angle": -45.53, - "curve": [ 0.229, 0, 0.738, 0.97 ] - }, - { "time": 0.2333, "angle": -4.83 }, - { "time": 0.5, "angle": -19.53 }, - { "time": 0.6333, "angle": -64.8 }, - { - "time": 0.7333, - "angle": -82.56, - "curve": [ 0.557, 0.18, 1, 1 ] - }, - { "time": 1, "angle": -3.39 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.6333, "x": 2.18, "y": 0.21 }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": -4.16 }, - { - "time": 0.1333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.3666, "x": 0, "y": 6.78 }, - { "time": 0.5, "x": 0, "y": -6.13 }, - { - "time": 0.6333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.8666, "x": 0, "y": 6.78 }, - { "time": 1, "x": 0, "y": -4.16 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 3.6 }, - { "time": 0.1333, "angle": 17.49 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { "time": 0.5, "angle": 5.17 }, - { "time": 0.6333, "angle": 18.36 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 3.6, - "curve": [ 0, 0, 0.704, 1.17 ] - }, - { "time": 0.1333, "angle": -0.2 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { - "time": 0.5, - "angle": 5.17, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.6666, "angle": 1.1 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - } - }, - "slots": { - "eyes": { - "attachment": [ - { "time": 0.7, "name": "eyes closed" }, - { "time": 0.8, "name": null } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/spineboy.atlas b/examples/example 12 - Spine/data/spineboy.atlas new file mode 100644 index 0000000..cf32cd0 --- /dev/null +++ b/examples/example 12 - Spine/data/spineboy.atlas @@ -0,0 +1,165 @@ +spineboy.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +eyes-closed + rotate: false + xy: 73, 509 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +eyes + rotate: false + xy: 75, 464 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 121, 132 + orig: 121, 132 + offset: 0, 0 + index: -1 +left-ankle + rotate: false + xy: 96, 351 + size: 25, 32 + orig: 25, 32 + offset: 0, 0 + index: -1 +left-arm + rotate: false + xy: 39, 423 + size: 35, 29 + orig: 35, 29 + offset: 0, 0 + index: -1 +left-foot + rotate: false + xy: 2, 262 + size: 65, 30 + orig: 65, 30 + offset: 0, 0 + index: -1 +left-hand + rotate: false + xy: 2, 423 + size: 35, 38 + orig: 35, 38 + offset: 0, 0 + index: -1 +left-lower-leg + rotate: false + xy: 72, 202 + size: 49, 64 + orig: 49, 64 + offset: 0, 0 + index: -1 +left-pant-bottom + rotate: false + xy: 2, 363 + size: 44, 22 + orig: 44, 22 + offset: 0, 0 + index: -1 +left-shoulder + rotate: false + xy: 39, 454 + size: 34, 53 + orig: 34, 53 + offset: 0, 0 + index: -1 +left-upper-leg + rotate: false + xy: 2, 464 + size: 33, 67 + orig: 33, 67 + offset: 0, 0 + index: -1 +neck + rotate: false + xy: 37, 509 + size: 34, 28 + orig: 34, 28 + offset: 0, 0 + index: -1 +pelvis + rotate: false + xy: 2, 294 + size: 63, 47 + orig: 63, 47 + offset: 0, 0 + index: -1 +right-ankle + rotate: false + xy: 96, 385 + size: 25, 30 + orig: 25, 30 + offset: 0, 0 + index: -1 +right-arm + rotate: false + xy: 96, 417 + size: 21, 45 + orig: 21, 45 + offset: 0, 0 + index: -1 +right-foot-idle + rotate: false + xy: 69, 268 + size: 53, 28 + orig: 53, 28 + offset: 0, 0 + index: -1 +right-foot + rotate: false + xy: 2, 230 + size: 67, 30 + orig: 67, 30 + offset: 0, 0 + index: -1 +right-hand + rotate: false + xy: 2, 387 + size: 32, 32 + orig: 32, 32 + offset: 0, 0 + index: -1 +right-lower-leg + rotate: false + xy: 72, 136 + size: 51, 64 + orig: 51, 64 + offset: 0, 0 + index: -1 +right-pant-bottom + rotate: false + xy: 2, 343 + size: 46, 18 + orig: 46, 18 + offset: 0, 0 + index: -1 +right-shoulder + rotate: false + xy: 67, 298 + size: 52, 51 + orig: 52, 51 + offset: 0, 0 + index: -1 +right-upper-leg + rotate: false + xy: 50, 351 + size: 44, 70 + orig: 44, 70 + offset: 0, 0 + index: -1 +torso + rotate: false + xy: 2, 136 + size: 68, 92 + orig: 68, 92 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/spineboy.json b/examples/example 12 - Spine/data/spineboy.json index 54f9d82..17c5095 100755 --- a/examples/example 12 - Spine/data/spineboy.json +++ b/examples/example 12 - Spine/data/spineboy.json @@ -1,196 +1,787 @@ -{"frames": { - -"head": { - "frame": {"x":1,"y":122,"w":121,"h":132}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":121,"h":132}, - "sourceSize": {"w":121,"h":132} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, + { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, + { "name": "left lower leg", "parent": "left upper leg", "length": 56.45, "x": 51.78, "y": 3.46, "rotation": -16.65 }, + { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 64.02, "y": -8.67, "rotation": 102.43 }, + { "name": "right upper leg", "parent": "hip", "length": 45.76, "x": -18.27, "rotation": -101.13 }, + { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 50.21, "y": 0.6, "rotation": -10.7 }, + { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, + { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 94.95 }, + { "name": "neck", "parent": "torso", "length": 18.38, "x": 83.64, "y": -1.78, "rotation": 0.9 }, + { "name": "head", "parent": "neck", "length": 68.28, "x": 19.09, "y": 6.97, "rotation": -8.94 }, + { "name": "right shoulder", "parent": "torso", "length": 49.95, "x": 81.9, "y": 6.79, "rotation": 130.6 }, + { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 49.95, "y": -0.12, "rotation": 40.12 }, + { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 }, + { "name": "left shoulder", "parent": "torso", "length": 44.19, "x": 78.96, "y": -15.75, "rotation": -156.96 }, + { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 44.19, "y": -0.01, "rotation": 28.16 }, + { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, + { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 } +], +"slots": [ + { "name": "left shoulder", "bone": "left shoulder", "attachment": "left-shoulder" }, + { "name": "left arm", "bone": "left arm", "attachment": "left-arm" }, + { "name": "left hand", "bone": "left hand", "attachment": "left-hand" }, + { "name": "left foot", "bone": "left foot", "attachment": "left-foot" }, + { "name": "left lower leg", "bone": "left lower leg", "attachment": "left-lower-leg" }, + { "name": "left upper leg", "bone": "left upper leg", "attachment": "left-upper-leg" }, + { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, + { "name": "right foot", "bone": "right foot", "attachment": "right-foot" }, + { "name": "right lower leg", "bone": "right lower leg", "attachment": "right-lower-leg" }, + { "name": "right upper leg", "bone": "right upper leg", "attachment": "right-upper-leg" }, + { "name": "torso", "bone": "torso", "attachment": "torso" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "eyes", "bone": "head", "attachment": "eyes" }, + { "name": "right shoulder", "bone": "right shoulder", "attachment": "right-shoulder" }, + { "name": "right arm", "bone": "right arm", "attachment": "right-arm" }, + { "name": "right hand", "bone": "right hand", "attachment": "right-hand" } +], +"skins": { + "default": { + "left shoulder": { + "left-shoulder": { "x": 23.74, "y": 0.11, "rotation": 62.01, "width": 34, "height": 53 } + }, + "left arm": { + "left-arm": { "x": 15.11, "y": -0.44, "rotation": 33.84, "width": 35, "height": 29 } + }, + "left hand": { + "left-hand": { "x": 0.75, "y": 1.86, "rotation": 31.14, "width": 35, "height": 38 } + }, + "left foot": { + "left-foot": { "x": 24.35, "y": 8.88, "rotation": 3.32, "width": 65, "height": 30 } + }, + "left lower leg": { + "left-lower-leg": { "x": 24.55, "y": -1.92, "rotation": 105.75, "width": 49, "height": 64 } + }, + "left upper leg": { + "left-upper-leg": { "x": 26.12, "y": -1.85, "rotation": 89.09, "width": 33, "height": 67 } + }, + "pelvis": { + "pelvis": { "x": -4.83, "y": 10.62, "width": 63, "height": 47 } + }, + "right foot": { + "right-foot": { "x": 19.02, "y": 8.47, "rotation": 1.52, "width": 67, "height": 30 } + }, + "right lower leg": { + "right-lower-leg": { "x": 23.28, "y": -2.59, "rotation": 111.83, "width": 51, "height": 64 } + }, + "right upper leg": { + "right-upper-leg": { "x": 23.03, "y": 0.25, "rotation": 101.13, "width": 44, "height": 70 } + }, + "torso": { + "torso": { "x": 44.57, "y": -7.08, "rotation": -94.95, "width": 68, "height": 92 } + }, + "neck": { + "neck": { "x": 9.42, "y": -3.66, "rotation": -100.15, "width": 34, "height": 28 } + }, + "head": { + "head": { "x": 53.94, "y": -5.75, "rotation": -86.9, "width": 121, "height": 132 } + }, + "eyes": { + "eyes": { "x": 28.94, "y": -32.92, "rotation": -86.9, "width": 34, "height": 27 }, + "eyes-closed": { "x": 28.77, "y": -32.86, "rotation": -86.9, "width": 34, "height": 27 } + }, + "right shoulder": { + "right-shoulder": { "x": 25.86, "y": 0.03, "rotation": 134.44, "width": 52, "height": 51 } + }, + "right arm": { + "right-arm": { "x": 18.34, "y": -2.64, "rotation": 94.32, "width": 21, "height": 45 } + }, + "right hand": { + "right-hand": { "x": 6.82, "y": 1.25, "rotation": 91.96, "width": 32, "height": 32 } + } + } }, -"torso": -{ - "frame": {"x":1,"y":28,"w":68,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":92}, - "sourceSize": {"w":68,"h":92} -}, -"left-pant-bottom": -{ - "frame": {"x":1,"y":4,"w":44,"h":22}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":44,"h":22}, - "sourceSize": {"w":44,"h":22} -}, -"right-pant-bottom": -{ - "frame": {"x":47,"y":8,"w":46,"h":18}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":46,"h":18}, - "sourceSize": {"w":46,"h":18} -}, -"right-upper-leg": -{ - "frame": {"x":71,"y":50,"w":44,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":44,"h":70}, - "sourceSize": {"w":44,"h":70} -}, -"pelvis": -{ - "frame": {"x":95,"y":1,"w":63,"h":47}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":47}, - "sourceSize": {"w":63,"h":47} -}, -"left-upper-leg": -{ - "frame": {"x":117,"y":53,"w":33,"h":67}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":67}, - "sourceSize": {"w":33,"h":67} -}, -"right-foot": -{ - "frame": {"x":160,"y":224,"w":67,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":67,"h":30}, - "sourceSize": {"w":67,"h":30} -}, -"left-shoulder": -{ - "frame": {"x":124,"y":201,"w":34,"h":53}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":53}, - "sourceSize": {"w":34,"h":53} -}, -"left-ankle": -{ - "frame": {"x":229,"y":222,"w":25,"h":32}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":25,"h":32}, - "sourceSize": {"w":25,"h":32} -}, -"left-foot": -{ - "frame": {"x":160,"y":192,"w":65,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":30}, - "sourceSize": {"w":65,"h":30} -}, -"neck": -{ - "frame": {"x":124,"y":171,"w":34,"h":28}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":28}, - "sourceSize": {"w":34,"h":28} -}, -"right-arm": -{ - "frame": {"x":124,"y":124,"w":21,"h":45}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":21,"h":45}, - "sourceSize": {"w":21,"h":45} -}, -"right-ankle": -{ - "frame": {"x":227,"y":190,"w":25,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":25,"h":30}, - "sourceSize": {"w":25,"h":30} -}, -"left-hand": -{ - "frame": {"x":147,"y":131,"w":35,"h":38}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":38}, - "sourceSize": {"w":35,"h":38} -}, -"left-arm": -{ - "frame": {"x":184,"y":161,"w":35,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":29}, - "sourceSize": {"w":35,"h":29} -}, -"eyes-closed": -{ - "frame": {"x":221,"y":161,"w":34,"h":27}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, - "sourceSize": {"w":34,"h":27} -}, -"right-lower-leg": -{ - "frame": {"x":152,"y":65,"w":51,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":51,"h":64}, - "sourceSize": {"w":51,"h":64} -}, -"right-foot-idle": -{ - "frame": {"x":184,"y":131,"w":53,"h":28}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":53,"h":28}, - "sourceSize": {"w":53,"h":28} -}, -"left-lower-leg": -{ - "frame": {"x":205,"y":65,"w":49,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":49,"h":64}, - "sourceSize": {"w":49,"h":64} -}, -"right-shoulder": -{ - "frame": {"x":160,"y":12,"w":52,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":51}, - "sourceSize": {"w":52,"h":51} -}, -"eyes": -{ - "frame": {"x":214,"y":36,"w":34,"h":27}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, - "sourceSize": {"w":34,"h":27} -}, -"right-hand": -{ - "frame": {"x":214,"y":2,"w":32,"h":32}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":32,"h":32}, - "sourceSize": {"w":32,"h":32} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "spineboy.png", - "format": "RGBA8888", - "size": {"w":256,"h":256}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:93f9a66503bccd3c31cdba2ae4b91285$" +"animations": { + "walk": { + "bones": { + "left upper leg": { + "rotate": [ + { "time": 0, "angle": -26.55 }, + { "time": 0.1333, "angle": -8.78 }, + { "time": 0.2666, "angle": 9.51 }, + { "time": 0.4, "angle": 30.74 }, + { "time": 0.5333, "angle": 25.33 }, + { "time": 0.6666, "angle": 26.11 }, + { "time": 0.8, "angle": -7.7 }, + { "time": 0.9333, "angle": -21.19 }, + { "time": 1.0666, "angle": -26.55 } + ], + "translate": [ + { "time": 0, "x": -3, "y": -2.25 }, + { "time": 0.4, "x": -2.18, "y": -2.25 }, + { "time": 1.0666, "x": -3, "y": -2.25 } + ] + }, + "right upper leg": { + "rotate": [ + { "time": 0, "angle": 42.45 }, + { "time": 0.1333, "angle": 52.1 }, + { "time": 0.2666, "angle": 5.96 }, + { "time": 0.5333, "angle": -16.93 }, + { "time": 0.6666, "angle": 1.89 }, + { + "time": 0.8, + "angle": 28.06, + "curve": [ 0.462, 0.11, 1, 1 ] + }, + { + "time": 0.9333, + "angle": 58.68, + "curve": [ 0.5, 0.02, 1, 1 ] + }, + { "time": 1.0666, "angle": 42.45 } + ], + "translate": [ + { "time": 0, "x": 8.11, "y": -2.36 }, + { "time": 0.1333, "x": 10.03, "y": -2.56 }, + { "time": 0.4, "x": 2.76, "y": -2.97 }, + { "time": 0.5333, "x": 2.76, "y": -2.81 }, + { "time": 0.9333, "x": 8.67, "y": -2.54 }, + { "time": 1.0666, "x": 8.11, "y": -2.36 } + ] + }, + "left lower leg": { + "rotate": [ + { "time": 0, "angle": -10.21 }, + { "time": 0.1333, "angle": -55.64 }, + { "time": 0.2666, "angle": -68.12 }, + { "time": 0.5333, "angle": 5.11 }, + { "time": 0.6666, "angle": -28.29 }, + { "time": 0.8, "angle": 4.08 }, + { "time": 0.9333, "angle": 3.53 }, + { "time": 1.0666, "angle": -10.21 } + ] + }, + "left foot": { + "rotate": [ + { "time": 0, "angle": -3.69 }, + { "time": 0.1333, "angle": -10.42 }, + { "time": 0.2666, "angle": -17.14 }, + { "time": 0.4, "angle": -2.83 }, + { "time": 0.5333, "angle": -3.87 }, + { "time": 0.6666, "angle": 2.78 }, + { "time": 0.8, "angle": 1.68 }, + { "time": 0.9333, "angle": -8.54 }, + { "time": 1.0666, "angle": -3.69 } + ] + }, + "right shoulder": { + "rotate": [ + { + "time": 0, + "angle": 20.89, + "curve": [ 0.264, 0, 0.75, 1 ] + }, + { + "time": 0.1333, + "angle": 3.72, + "curve": [ 0.272, 0, 0.841, 1 ] + }, + { "time": 0.6666, "angle": -278.28 }, + { "time": 1.0666, "angle": 20.89 } + ], + "translate": [ + { "time": 0, "x": -7.84, "y": 7.19 }, + { "time": 0.1333, "x": -6.36, "y": 6.42 }, + { "time": 0.6666, "x": -11.07, "y": 5.25 }, + { "time": 1.0666, "x": -7.84, "y": 7.19 } + ] + }, + "right arm": { + "rotate": [ + { + "time": 0, + "angle": -4.02, + "curve": [ 0.267, 0, 0.804, 0.99 ] + }, + { + "time": 0.1333, + "angle": -13.99, + "curve": [ 0.341, 0, 1, 1 ] + }, + { + "time": 0.6666, + "angle": 36.54, + "curve": [ 0.307, 0, 0.787, 0.99 ] + }, + { "time": 1.0666, "angle": -4.02 } + ] + }, + "right hand": { + "rotate": [ + { "time": 0, "angle": 22.92 }, + { "time": 0.4, "angle": -8.97 }, + { "time": 0.6666, "angle": 0.51 }, + { "time": 1.0666, "angle": 22.92 } + ] + }, + "left shoulder": { + "rotate": [ + { "time": 0, "angle": -1.47 }, + { "time": 0.1333, "angle": 13.6 }, + { "time": 0.6666, "angle": 280.74 }, + { "time": 1.0666, "angle": -1.47 } + ], + "translate": [ + { "time": 0, "x": -1.76, "y": 0.56 }, + { "time": 0.6666, "x": -2.47, "y": 8.14 }, + { "time": 1.0666, "x": -1.76, "y": 0.56 } + ] + }, + "left hand": { + "rotate": [ + { + "time": 0, + "angle": 11.58, + "curve": [ 0.169, 0.37, 0.632, 1.55 ] + }, + { + "time": 0.1333, + "angle": 28.13, + "curve": [ 0.692, 0, 0.692, 0.99 ] + }, + { + "time": 0.6666, + "angle": -27.42, + "curve": [ 0.117, 0.41, 0.738, 1.76 ] + }, + { "time": 0.8, "angle": -36.32 }, + { "time": 1.0666, "angle": 11.58 } + ] + }, + "left arm": { + "rotate": [ + { "time": 0, "angle": -8.27 }, + { "time": 0.1333, "angle": 18.43 }, + { "time": 0.6666, "angle": 0.88 }, + { "time": 1.0666, "angle": -8.27 } + ] + }, + "torso": { + "rotate": [ + { "time": 0, "angle": -10.28 }, + { + "time": 0.1333, + "angle": -15.38, + "curve": [ 0.545, 0, 1, 1 ] + }, + { + "time": 0.4, + "angle": -9.78, + "curve": [ 0.58, 0.17, 1, 1 ] + }, + { "time": 0.6666, "angle": -15.75 }, + { "time": 0.9333, "angle": -7.06 }, + { "time": 1.0666, "angle": -10.28 } + ], + "translate": [ + { "time": 0, "x": -3.67, "y": 1.68 }, + { "time": 0.1333, "x": -3.67, "y": 0.68 }, + { "time": 0.4, "x": -3.67, "y": 1.97 }, + { "time": 0.6666, "x": -3.67, "y": -0.14 }, + { "time": 1.0666, "x": -3.67, "y": 1.68 } + ] + }, + "right foot": { + "rotate": [ + { "time": 0, "angle": -5.25 }, + { "time": 0.2666, "angle": -4.08 }, + { "time": 0.4, "angle": -6.45 }, + { "time": 0.5333, "angle": -5.39 }, + { "time": 0.8, "angle": -11.68 }, + { "time": 0.9333, "angle": 0.46 }, + { "time": 1.0666, "angle": -5.25 } + ] + }, + "right lower leg": { + "rotate": [ + { "time": 0, "angle": -3.39 }, + { "time": 0.1333, "angle": -45.53 }, + { "time": 0.2666, "angle": -2.59 }, + { "time": 0.5333, "angle": -19.53 }, + { "time": 0.6666, "angle": -64.8 }, + { + "time": 0.8, + "angle": -82.56, + "curve": [ 0.557, 0.18, 1, 1 ] + }, + { "time": 1.0666, "angle": -3.39 } + ] + }, + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 1.0666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { + "time": 0.1333, + "x": 0, + "y": -7.61, + "curve": [ 0.272, 0.86, 1, 1 ] + }, + { "time": 0.4, "x": 0, "y": 8.7 }, + { "time": 0.5333, "x": 0, "y": -0.41 }, + { + "time": 0.6666, + "x": 0, + "y": -7.05, + "curve": [ 0.235, 0.89, 1, 1 ] + }, + { "time": 0.8, "x": 0, "y": 2.92 }, + { "time": 0.9333, "x": 0, "y": 6.78 }, + { "time": 1.0666, "x": 0, "y": 0 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 3.6 }, + { "time": 0.1333, "angle": 17.49 }, + { "time": 0.2666, "angle": 6.1 }, + { "time": 0.4, "angle": 3.45 }, + { "time": 0.5333, "angle": 5.17 }, + { "time": 0.6666, "angle": 18.36 }, + { "time": 0.8, "angle": 6.09 }, + { "time": 0.9333, "angle": 2.28 }, + { "time": 1.0666, "angle": 3.6 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 3.6, + "curve": [ 0, 0, 0.704, 1.61 ] + }, + { "time": 0.1666, "angle": -0.2 }, + { "time": 0.2666, "angle": 6.1 }, + { "time": 0.4, "angle": 3.45 }, + { + "time": 0.5333, + "angle": 5.17, + "curve": [ 0, 0, 0.704, 1.61 ] + }, + { "time": 0.7, "angle": 1.1 }, + { "time": 0.8, "angle": 6.09 }, + { "time": 0.9333, "angle": 2.28 }, + { "time": 1.0666, "angle": 3.6 } + ] + } + } + }, + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.9333, "angle": 0, "curve": "stepped" }, + { "time": 1.3666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": -11.57, "y": -3 }, + { "time": 0.2333, "x": -16.2, "y": -19.43 }, + { + "time": 0.3333, + "x": 7.66, + "y": -8.48, + "curve": [ 0.057, 0.06, 0.712, 1 ] + }, + { "time": 0.3666, "x": 15.38, "y": 5.01 }, + { "time": 0.4666, "x": -7.84, "y": 57.22 }, + { + "time": 0.6, + "x": -10.81, + "y": 96.34, + "curve": [ 0.241, 0, 1, 1 ] + }, + { "time": 0.7333, "x": -7.01, "y": 54.7 }, + { "time": 0.8, "x": -10.58, "y": 32.2 }, + { "time": 0.9333, "x": -31.99, "y": 0.45 }, + { "time": 1.0666, "x": -12.48, "y": -29.47 }, + { "time": 1.3666, "x": -11.57, "y": -3 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left upper leg": { + "rotate": [ + { "time": 0, "angle": 17.13 }, + { "time": 0.2333, "angle": 44.35 }, + { "time": 0.3333, "angle": 16.46 }, + { "time": 0.4, "angle": -9.88 }, + { "time": 0.4666, "angle": -11.42 }, + { "time": 0.5666, "angle": 23.46 }, + { "time": 0.7666, "angle": 71.82 }, + { "time": 0.9333, "angle": 65.53 }, + { "time": 1.0666, "angle": 51.01 }, + { "time": 1.3666, "angle": 17.13 } + ], + "translate": [ + { "time": 0, "x": -3, "y": -2.25, "curve": "stepped" }, + { "time": 0.9333, "x": -3, "y": -2.25, "curve": "stepped" }, + { "time": 1.3666, "x": -3, "y": -2.25 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left lower leg": { + "rotate": [ + { "time": 0, "angle": -16.25 }, + { "time": 0.2333, "angle": -52.21 }, + { "time": 0.4, "angle": 15.04 }, + { "time": 0.4666, "angle": -8.95 }, + { "time": 0.5666, "angle": -39.53 }, + { "time": 0.7666, "angle": -27.27 }, + { "time": 0.9333, "angle": -3.52 }, + { "time": 1.0666, "angle": -61.92 }, + { "time": 1.3666, "angle": -16.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left foot": { + "rotate": [ + { "time": 0, "angle": 0.33 }, + { "time": 0.2333, "angle": 6.2 }, + { "time": 0.3333, "angle": 14.73 }, + { "time": 0.4, "angle": -15.54 }, + { "time": 0.4333, "angle": -21.2 }, + { "time": 0.5666, "angle": -7.55 }, + { "time": 0.7666, "angle": -0.67 }, + { "time": 0.9333, "angle": -0.58 }, + { "time": 1.0666, "angle": 14.64 }, + { "time": 1.3666, "angle": 0.33 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right upper leg": { + "rotate": [ + { "time": 0, "angle": 25.97 }, + { "time": 0.2333, "angle": 46.43 }, + { "time": 0.3333, "angle": 22.61 }, + { "time": 0.4, "angle": 2.13 }, + { + "time": 0.4666, + "angle": 0.04, + "curve": [ 0, 0, 0.637, 0.98 ] + }, + { "time": 0.6, "angle": 65.55 }, + { "time": 0.7666, "angle": 64.93 }, + { "time": 0.9333, "angle": 41.08 }, + { "time": 1.0666, "angle": 66.25 }, + { "time": 1.3666, "angle": 25.97 } + ], + "translate": [ + { "time": 0, "x": 5.74, "y": 0.61 }, + { "time": 0.2333, "x": 4.79, "y": 1.79 }, + { "time": 0.3333, "x": 6.05, "y": -4.55 }, + { "time": 0.9333, "x": 4.79, "y": 1.79, "curve": "stepped" }, + { "time": 1.0666, "x": 4.79, "y": 1.79 }, + { "time": 1.3666, "x": 5.74, "y": 0.61 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right lower leg": { + "rotate": [ + { "time": 0, "angle": -27.46 }, + { "time": 0.2333, "angle": -64.03 }, + { "time": 0.4, "angle": -48.36 }, + { "time": 0.5666, "angle": -76.86 }, + { "time": 0.7666, "angle": -26.89 }, + { "time": 0.9, "angle": -18.97 }, + { "time": 0.9333, "angle": -14.18 }, + { "time": 1.0666, "angle": -80.45 }, + { "time": 1.3666, "angle": -27.46 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right foot": { + "rotate": [ + { "time": 0, "angle": 1.08 }, + { "time": 0.2333, "angle": 16.02 }, + { "time": 0.3, "angle": 12.94 }, + { "time": 0.3333, "angle": 15.16 }, + { "time": 0.4, "angle": -14.7 }, + { "time": 0.4333, "angle": -12.85 }, + { "time": 0.4666, "angle": -19.18 }, + { "time": 0.5666, "angle": -15.82 }, + { "time": 0.6, "angle": -3.59 }, + { "time": 0.7666, "angle": -3.56 }, + { "time": 0.9333, "angle": 1.86 }, + { "time": 1.0666, "angle": 16.02 }, + { "time": 1.3666, "angle": 1.08 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "torso": { + "rotate": [ + { "time": 0, "angle": -13.35 }, + { "time": 0.2333, "angle": -48.95 }, + { "time": 0.4333, "angle": -35.77 }, + { "time": 0.6, "angle": -4.59 }, + { "time": 0.7666, "angle": 14.61 }, + { "time": 0.9333, "angle": 15.74 }, + { "time": 1.0666, "angle": -32.44 }, + { "time": 1.3666, "angle": -13.35 } + ], + "translate": [ + { "time": 0, "x": -3.67, "y": 1.68, "curve": "stepped" }, + { "time": 0.9333, "x": -3.67, "y": 1.68, "curve": "stepped" }, + { "time": 1.3666, "x": -3.67, "y": 1.68 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 12.78 }, + { "time": 0.2333, "angle": 16.46 }, + { "time": 0.4, "angle": 26.49 }, + { "time": 0.6, "angle": 15.51 }, + { "time": 0.7666, "angle": 1.34 }, + { "time": 0.9333, "angle": 2.35 }, + { "time": 1.0666, "angle": 6.08 }, + { "time": 1.3, "angle": 21.23 }, + { "time": 1.3666, "angle": 12.78 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 5.19 }, + { "time": 0.2333, "angle": 20.27 }, + { "time": 0.4, "angle": 15.27 }, + { "time": 0.6, "angle": -24.69 }, + { "time": 0.7666, "angle": -11.02 }, + { "time": 0.9333, "angle": -24.38 }, + { "time": 1.0666, "angle": 11.99 }, + { "time": 1.3, "angle": 4.86 }, + { "time": 1.3666, "angle": 5.19 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left shoulder": { + "rotate": [ + { + "time": 0, + "angle": 0.05, + "curve": [ 0, 0, 0.62, 1 ] + }, + { + "time": 0.2333, + "angle": 279.66, + "curve": [ 0.218, 0.67, 0.66, 0.99 ] + }, + { + "time": 0.5, + "angle": 62.27, + "curve": [ 0.462, 0, 0.764, 0.58 ] + }, + { "time": 0.9333, "angle": 28.91 }, + { "time": 1.0666, "angle": -8.62 }, + { "time": 1.1666, "angle": -18.43 }, + { "time": 1.3666, "angle": 0.05 } + ], + "translate": [ + { "time": 0, "x": -1.76, "y": 0.56, "curve": "stepped" }, + { "time": 0.9333, "x": -1.76, "y": 0.56, "curve": "stepped" }, + { "time": 1.3666, "x": -1.76, "y": 0.56 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left hand": { + "rotate": [ + { "time": 0, "angle": 11.58, "curve": "stepped" }, + { "time": 0.9333, "angle": 11.58, "curve": "stepped" }, + { "time": 1.3666, "angle": 11.58 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left arm": { + "rotate": [ + { "time": 0, "angle": 0.51 }, + { "time": 0.4333, "angle": 12.82 }, + { "time": 0.6, "angle": 47.55 }, + { "time": 0.9333, "angle": 12.82 }, + { "time": 1.1666, "angle": -6.5 }, + { "time": 1.3666, "angle": 0.51 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right shoulder": { + "rotate": [ + { + "time": 0, + "angle": 43.82, + "curve": [ 0, 0, 0.62, 1 ] + }, + { + "time": 0.2333, + "angle": -8.74, + "curve": [ 0.304, 0.58, 0.709, 0.97 ] + }, + { + "time": 0.5333, + "angle": -208.02, + "curve": [ 0.462, 0, 0.764, 0.58 ] + }, + { "time": 0.9333, "angle": -246.72 }, + { "time": 1.0666, "angle": -307.13 }, + { "time": 1.1666, "angle": 37.15 }, + { "time": 1.3666, "angle": 43.82 } + ], + "translate": [ + { "time": 0, "x": -7.84, "y": 7.19, "curve": "stepped" }, + { "time": 0.9333, "x": -7.84, "y": 7.19, "curve": "stepped" }, + { "time": 1.3666, "x": -7.84, "y": 7.19 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right arm": { + "rotate": [ + { "time": 0, "angle": -4.02 }, + { "time": 0.6, "angle": 17.5 }, + { "time": 0.9333, "angle": -4.02 }, + { "time": 1.1666, "angle": -16.72 }, + { "time": 1.3666, "angle": -4.02 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right hand": { + "rotate": [ + { "time": 0, "angle": 22.92, "curve": "stepped" }, + { "time": 0.9333, "angle": 22.92, "curve": "stepped" }, + { "time": 1.3666, "angle": 22.92 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "root": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.4333, "angle": -14.52 }, + { "time": 0.8, "angle": 9.86 }, + { "time": 1.3666, "angle": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/spineboy.png b/examples/example 12 - Spine/data/spineboy.png index b8b493d..ab85747 100755 --- a/examples/example 12 - Spine/data/spineboy.png +++ b/examples/example 12 - Spine/data/spineboy.png Binary files differ diff --git a/examples/example 12 - Spine/data/spineboySpineData.json b/examples/example 12 - Spine/data/spineboySpineData.json deleted file mode 100755 index 17c5095..0000000 --- a/examples/example 12 - Spine/data/spineboySpineData.json +++ /dev/null @@ -1,787 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, - { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, - { "name": "left lower leg", "parent": "left upper leg", "length": 56.45, "x": 51.78, "y": 3.46, "rotation": -16.65 }, - { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 64.02, "y": -8.67, "rotation": 102.43 }, - { "name": "right upper leg", "parent": "hip", "length": 45.76, "x": -18.27, "rotation": -101.13 }, - { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 50.21, "y": 0.6, "rotation": -10.7 }, - { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, - { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 94.95 }, - { "name": "neck", "parent": "torso", "length": 18.38, "x": 83.64, "y": -1.78, "rotation": 0.9 }, - { "name": "head", "parent": "neck", "length": 68.28, "x": 19.09, "y": 6.97, "rotation": -8.94 }, - { "name": "right shoulder", "parent": "torso", "length": 49.95, "x": 81.9, "y": 6.79, "rotation": 130.6 }, - { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 49.95, "y": -0.12, "rotation": 40.12 }, - { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 }, - { "name": "left shoulder", "parent": "torso", "length": 44.19, "x": 78.96, "y": -15.75, "rotation": -156.96 }, - { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 44.19, "y": -0.01, "rotation": 28.16 }, - { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, - { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 } -], -"slots": [ - { "name": "left shoulder", "bone": "left shoulder", "attachment": "left-shoulder" }, - { "name": "left arm", "bone": "left arm", "attachment": "left-arm" }, - { "name": "left hand", "bone": "left hand", "attachment": "left-hand" }, - { "name": "left foot", "bone": "left foot", "attachment": "left-foot" }, - { "name": "left lower leg", "bone": "left lower leg", "attachment": "left-lower-leg" }, - { "name": "left upper leg", "bone": "left upper leg", "attachment": "left-upper-leg" }, - { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, - { "name": "right foot", "bone": "right foot", "attachment": "right-foot" }, - { "name": "right lower leg", "bone": "right lower leg", "attachment": "right-lower-leg" }, - { "name": "right upper leg", "bone": "right upper leg", "attachment": "right-upper-leg" }, - { "name": "torso", "bone": "torso", "attachment": "torso" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "eyes", "bone": "head", "attachment": "eyes" }, - { "name": "right shoulder", "bone": "right shoulder", "attachment": "right-shoulder" }, - { "name": "right arm", "bone": "right arm", "attachment": "right-arm" }, - { "name": "right hand", "bone": "right hand", "attachment": "right-hand" } -], -"skins": { - "default": { - "left shoulder": { - "left-shoulder": { "x": 23.74, "y": 0.11, "rotation": 62.01, "width": 34, "height": 53 } - }, - "left arm": { - "left-arm": { "x": 15.11, "y": -0.44, "rotation": 33.84, "width": 35, "height": 29 } - }, - "left hand": { - "left-hand": { "x": 0.75, "y": 1.86, "rotation": 31.14, "width": 35, "height": 38 } - }, - "left foot": { - "left-foot": { "x": 24.35, "y": 8.88, "rotation": 3.32, "width": 65, "height": 30 } - }, - "left lower leg": { - "left-lower-leg": { "x": 24.55, "y": -1.92, "rotation": 105.75, "width": 49, "height": 64 } - }, - "left upper leg": { - "left-upper-leg": { "x": 26.12, "y": -1.85, "rotation": 89.09, "width": 33, "height": 67 } - }, - "pelvis": { - "pelvis": { "x": -4.83, "y": 10.62, "width": 63, "height": 47 } - }, - "right foot": { - "right-foot": { "x": 19.02, "y": 8.47, "rotation": 1.52, "width": 67, "height": 30 } - }, - "right lower leg": { - "right-lower-leg": { "x": 23.28, "y": -2.59, "rotation": 111.83, "width": 51, "height": 64 } - }, - "right upper leg": { - "right-upper-leg": { "x": 23.03, "y": 0.25, "rotation": 101.13, "width": 44, "height": 70 } - }, - "torso": { - "torso": { "x": 44.57, "y": -7.08, "rotation": -94.95, "width": 68, "height": 92 } - }, - "neck": { - "neck": { "x": 9.42, "y": -3.66, "rotation": -100.15, "width": 34, "height": 28 } - }, - "head": { - "head": { "x": 53.94, "y": -5.75, "rotation": -86.9, "width": 121, "height": 132 } - }, - "eyes": { - "eyes": { "x": 28.94, "y": -32.92, "rotation": -86.9, "width": 34, "height": 27 }, - "eyes-closed": { "x": 28.77, "y": -32.86, "rotation": -86.9, "width": 34, "height": 27 } - }, - "right shoulder": { - "right-shoulder": { "x": 25.86, "y": 0.03, "rotation": 134.44, "width": 52, "height": 51 } - }, - "right arm": { - "right-arm": { "x": 18.34, "y": -2.64, "rotation": 94.32, "width": 21, "height": 45 } - }, - "right hand": { - "right-hand": { "x": 6.82, "y": 1.25, "rotation": 91.96, "width": 32, "height": 32 } - } - } -}, -"animations": { - "walk": { - "bones": { - "left upper leg": { - "rotate": [ - { "time": 0, "angle": -26.55 }, - { "time": 0.1333, "angle": -8.78 }, - { "time": 0.2666, "angle": 9.51 }, - { "time": 0.4, "angle": 30.74 }, - { "time": 0.5333, "angle": 25.33 }, - { "time": 0.6666, "angle": 26.11 }, - { "time": 0.8, "angle": -7.7 }, - { "time": 0.9333, "angle": -21.19 }, - { "time": 1.0666, "angle": -26.55 } - ], - "translate": [ - { "time": 0, "x": -3, "y": -2.25 }, - { "time": 0.4, "x": -2.18, "y": -2.25 }, - { "time": 1.0666, "x": -3, "y": -2.25 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 42.45 }, - { "time": 0.1333, "angle": 52.1 }, - { "time": 0.2666, "angle": 5.96 }, - { "time": 0.5333, "angle": -16.93 }, - { "time": 0.6666, "angle": 1.89 }, - { - "time": 0.8, - "angle": 28.06, - "curve": [ 0.462, 0.11, 1, 1 ] - }, - { - "time": 0.9333, - "angle": 58.68, - "curve": [ 0.5, 0.02, 1, 1 ] - }, - { "time": 1.0666, "angle": 42.45 } - ], - "translate": [ - { "time": 0, "x": 8.11, "y": -2.36 }, - { "time": 0.1333, "x": 10.03, "y": -2.56 }, - { "time": 0.4, "x": 2.76, "y": -2.97 }, - { "time": 0.5333, "x": 2.76, "y": -2.81 }, - { "time": 0.9333, "x": 8.67, "y": -2.54 }, - { "time": 1.0666, "x": 8.11, "y": -2.36 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -10.21 }, - { "time": 0.1333, "angle": -55.64 }, - { "time": 0.2666, "angle": -68.12 }, - { "time": 0.5333, "angle": 5.11 }, - { "time": 0.6666, "angle": -28.29 }, - { "time": 0.8, "angle": 4.08 }, - { "time": 0.9333, "angle": 3.53 }, - { "time": 1.0666, "angle": -10.21 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": -3.69 }, - { "time": 0.1333, "angle": -10.42 }, - { "time": 0.2666, "angle": -17.14 }, - { "time": 0.4, "angle": -2.83 }, - { "time": 0.5333, "angle": -3.87 }, - { "time": 0.6666, "angle": 2.78 }, - { "time": 0.8, "angle": 1.68 }, - { "time": 0.9333, "angle": -8.54 }, - { "time": 1.0666, "angle": -3.69 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 20.89, - "curve": [ 0.264, 0, 0.75, 1 ] - }, - { - "time": 0.1333, - "angle": 3.72, - "curve": [ 0.272, 0, 0.841, 1 ] - }, - { "time": 0.6666, "angle": -278.28 }, - { "time": 1.0666, "angle": 20.89 } - ], - "translate": [ - { "time": 0, "x": -7.84, "y": 7.19 }, - { "time": 0.1333, "x": -6.36, "y": 6.42 }, - { "time": 0.6666, "x": -11.07, "y": 5.25 }, - { "time": 1.0666, "x": -7.84, "y": 7.19 } - ] - }, - "right arm": { - "rotate": [ - { - "time": 0, - "angle": -4.02, - "curve": [ 0.267, 0, 0.804, 0.99 ] - }, - { - "time": 0.1333, - "angle": -13.99, - "curve": [ 0.341, 0, 1, 1 ] - }, - { - "time": 0.6666, - "angle": 36.54, - "curve": [ 0.307, 0, 0.787, 0.99 ] - }, - { "time": 1.0666, "angle": -4.02 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 22.92 }, - { "time": 0.4, "angle": -8.97 }, - { "time": 0.6666, "angle": 0.51 }, - { "time": 1.0666, "angle": 22.92 } - ] - }, - "left shoulder": { - "rotate": [ - { "time": 0, "angle": -1.47 }, - { "time": 0.1333, "angle": 13.6 }, - { "time": 0.6666, "angle": 280.74 }, - { "time": 1.0666, "angle": -1.47 } - ], - "translate": [ - { "time": 0, "x": -1.76, "y": 0.56 }, - { "time": 0.6666, "x": -2.47, "y": 8.14 }, - { "time": 1.0666, "x": -1.76, "y": 0.56 } - ] - }, - "left hand": { - "rotate": [ - { - "time": 0, - "angle": 11.58, - "curve": [ 0.169, 0.37, 0.632, 1.55 ] - }, - { - "time": 0.1333, - "angle": 28.13, - "curve": [ 0.692, 0, 0.692, 0.99 ] - }, - { - "time": 0.6666, - "angle": -27.42, - "curve": [ 0.117, 0.41, 0.738, 1.76 ] - }, - { "time": 0.8, "angle": -36.32 }, - { "time": 1.0666, "angle": 11.58 } - ] - }, - "left arm": { - "rotate": [ - { "time": 0, "angle": -8.27 }, - { "time": 0.1333, "angle": 18.43 }, - { "time": 0.6666, "angle": 0.88 }, - { "time": 1.0666, "angle": -8.27 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -10.28 }, - { - "time": 0.1333, - "angle": -15.38, - "curve": [ 0.545, 0, 1, 1 ] - }, - { - "time": 0.4, - "angle": -9.78, - "curve": [ 0.58, 0.17, 1, 1 ] - }, - { "time": 0.6666, "angle": -15.75 }, - { "time": 0.9333, "angle": -7.06 }, - { "time": 1.0666, "angle": -10.28 } - ], - "translate": [ - { "time": 0, "x": -3.67, "y": 1.68 }, - { "time": 0.1333, "x": -3.67, "y": 0.68 }, - { "time": 0.4, "x": -3.67, "y": 1.97 }, - { "time": 0.6666, "x": -3.67, "y": -0.14 }, - { "time": 1.0666, "x": -3.67, "y": 1.68 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": -5.25 }, - { "time": 0.2666, "angle": -4.08 }, - { "time": 0.4, "angle": -6.45 }, - { "time": 0.5333, "angle": -5.39 }, - { "time": 0.8, "angle": -11.68 }, - { "time": 0.9333, "angle": 0.46 }, - { "time": 1.0666, "angle": -5.25 } - ] - }, - "right lower leg": { - "rotate": [ - { "time": 0, "angle": -3.39 }, - { "time": 0.1333, "angle": -45.53 }, - { "time": 0.2666, "angle": -2.59 }, - { "time": 0.5333, "angle": -19.53 }, - { "time": 0.6666, "angle": -64.8 }, - { - "time": 0.8, - "angle": -82.56, - "curve": [ 0.557, 0.18, 1, 1 ] - }, - { "time": 1.0666, "angle": -3.39 } - ] - }, - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 1.0666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { - "time": 0.1333, - "x": 0, - "y": -7.61, - "curve": [ 0.272, 0.86, 1, 1 ] - }, - { "time": 0.4, "x": 0, "y": 8.7 }, - { "time": 0.5333, "x": 0, "y": -0.41 }, - { - "time": 0.6666, - "x": 0, - "y": -7.05, - "curve": [ 0.235, 0.89, 1, 1 ] - }, - { "time": 0.8, "x": 0, "y": 2.92 }, - { "time": 0.9333, "x": 0, "y": 6.78 }, - { "time": 1.0666, "x": 0, "y": 0 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 3.6 }, - { "time": 0.1333, "angle": 17.49 }, - { "time": 0.2666, "angle": 6.1 }, - { "time": 0.4, "angle": 3.45 }, - { "time": 0.5333, "angle": 5.17 }, - { "time": 0.6666, "angle": 18.36 }, - { "time": 0.8, "angle": 6.09 }, - { "time": 0.9333, "angle": 2.28 }, - { "time": 1.0666, "angle": 3.6 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 3.6, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.1666, "angle": -0.2 }, - { "time": 0.2666, "angle": 6.1 }, - { "time": 0.4, "angle": 3.45 }, - { - "time": 0.5333, - "angle": 5.17, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.7, "angle": 1.1 }, - { "time": 0.8, "angle": 6.09 }, - { "time": 0.9333, "angle": 2.28 }, - { "time": 1.0666, "angle": 3.6 } - ] - } - } - }, - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.9333, "angle": 0, "curve": "stepped" }, - { "time": 1.3666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": -11.57, "y": -3 }, - { "time": 0.2333, "x": -16.2, "y": -19.43 }, - { - "time": 0.3333, - "x": 7.66, - "y": -8.48, - "curve": [ 0.057, 0.06, 0.712, 1 ] - }, - { "time": 0.3666, "x": 15.38, "y": 5.01 }, - { "time": 0.4666, "x": -7.84, "y": 57.22 }, - { - "time": 0.6, - "x": -10.81, - "y": 96.34, - "curve": [ 0.241, 0, 1, 1 ] - }, - { "time": 0.7333, "x": -7.01, "y": 54.7 }, - { "time": 0.8, "x": -10.58, "y": 32.2 }, - { "time": 0.9333, "x": -31.99, "y": 0.45 }, - { "time": 1.0666, "x": -12.48, "y": -29.47 }, - { "time": 1.3666, "x": -11.57, "y": -3 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left upper leg": { - "rotate": [ - { "time": 0, "angle": 17.13 }, - { "time": 0.2333, "angle": 44.35 }, - { "time": 0.3333, "angle": 16.46 }, - { "time": 0.4, "angle": -9.88 }, - { "time": 0.4666, "angle": -11.42 }, - { "time": 0.5666, "angle": 23.46 }, - { "time": 0.7666, "angle": 71.82 }, - { "time": 0.9333, "angle": 65.53 }, - { "time": 1.0666, "angle": 51.01 }, - { "time": 1.3666, "angle": 17.13 } - ], - "translate": [ - { "time": 0, "x": -3, "y": -2.25, "curve": "stepped" }, - { "time": 0.9333, "x": -3, "y": -2.25, "curve": "stepped" }, - { "time": 1.3666, "x": -3, "y": -2.25 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -16.25 }, - { "time": 0.2333, "angle": -52.21 }, - { "time": 0.4, "angle": 15.04 }, - { "time": 0.4666, "angle": -8.95 }, - { "time": 0.5666, "angle": -39.53 }, - { "time": 0.7666, "angle": -27.27 }, - { "time": 0.9333, "angle": -3.52 }, - { "time": 1.0666, "angle": -61.92 }, - { "time": 1.3666, "angle": -16.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": 0.33 }, - { "time": 0.2333, "angle": 6.2 }, - { "time": 0.3333, "angle": 14.73 }, - { "time": 0.4, "angle": -15.54 }, - { "time": 0.4333, "angle": -21.2 }, - { "time": 0.5666, "angle": -7.55 }, - { "time": 0.7666, "angle": -0.67 }, - { "time": 0.9333, "angle": -0.58 }, - { "time": 1.0666, "angle": 14.64 }, - { "time": 1.3666, "angle": 0.33 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 25.97 }, - { "time": 0.2333, "angle": 46.43 }, - { "time": 0.3333, "angle": 22.61 }, - { "time": 0.4, "angle": 2.13 }, - { - "time": 0.4666, - "angle": 0.04, - "curve": [ 0, 0, 0.637, 0.98 ] - }, - { "time": 0.6, "angle": 65.55 }, - { "time": 0.7666, "angle": 64.93 }, - { "time": 0.9333, "angle": 41.08 }, - { "time": 1.0666, "angle": 66.25 }, - { "time": 1.3666, "angle": 25.97 } - ], - "translate": [ - { "time": 0, "x": 5.74, "y": 0.61 }, - { "time": 0.2333, "x": 4.79, "y": 1.79 }, - { "time": 0.3333, "x": 6.05, "y": -4.55 }, - { "time": 0.9333, "x": 4.79, "y": 1.79, "curve": "stepped" }, - { "time": 1.0666, "x": 4.79, "y": 1.79 }, - { "time": 1.3666, "x": 5.74, "y": 0.61 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right lower leg": { - "rotate": [ - { "time": 0, "angle": -27.46 }, - { "time": 0.2333, "angle": -64.03 }, - { "time": 0.4, "angle": -48.36 }, - { "time": 0.5666, "angle": -76.86 }, - { "time": 0.7666, "angle": -26.89 }, - { "time": 0.9, "angle": -18.97 }, - { "time": 0.9333, "angle": -14.18 }, - { "time": 1.0666, "angle": -80.45 }, - { "time": 1.3666, "angle": -27.46 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": 1.08 }, - { "time": 0.2333, "angle": 16.02 }, - { "time": 0.3, "angle": 12.94 }, - { "time": 0.3333, "angle": 15.16 }, - { "time": 0.4, "angle": -14.7 }, - { "time": 0.4333, "angle": -12.85 }, - { "time": 0.4666, "angle": -19.18 }, - { "time": 0.5666, "angle": -15.82 }, - { "time": 0.6, "angle": -3.59 }, - { "time": 0.7666, "angle": -3.56 }, - { "time": 0.9333, "angle": 1.86 }, - { "time": 1.0666, "angle": 16.02 }, - { "time": 1.3666, "angle": 1.08 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -13.35 }, - { "time": 0.2333, "angle": -48.95 }, - { "time": 0.4333, "angle": -35.77 }, - { "time": 0.6, "angle": -4.59 }, - { "time": 0.7666, "angle": 14.61 }, - { "time": 0.9333, "angle": 15.74 }, - { "time": 1.0666, "angle": -32.44 }, - { "time": 1.3666, "angle": -13.35 } - ], - "translate": [ - { "time": 0, "x": -3.67, "y": 1.68, "curve": "stepped" }, - { "time": 0.9333, "x": -3.67, "y": 1.68, "curve": "stepped" }, - { "time": 1.3666, "x": -3.67, "y": 1.68 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 12.78 }, - { "time": 0.2333, "angle": 16.46 }, - { "time": 0.4, "angle": 26.49 }, - { "time": 0.6, "angle": 15.51 }, - { "time": 0.7666, "angle": 1.34 }, - { "time": 0.9333, "angle": 2.35 }, - { "time": 1.0666, "angle": 6.08 }, - { "time": 1.3, "angle": 21.23 }, - { "time": 1.3666, "angle": 12.78 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 5.19 }, - { "time": 0.2333, "angle": 20.27 }, - { "time": 0.4, "angle": 15.27 }, - { "time": 0.6, "angle": -24.69 }, - { "time": 0.7666, "angle": -11.02 }, - { "time": 0.9333, "angle": -24.38 }, - { "time": 1.0666, "angle": 11.99 }, - { "time": 1.3, "angle": 4.86 }, - { "time": 1.3666, "angle": 5.19 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left shoulder": { - "rotate": [ - { - "time": 0, - "angle": 0.05, - "curve": [ 0, 0, 0.62, 1 ] - }, - { - "time": 0.2333, - "angle": 279.66, - "curve": [ 0.218, 0.67, 0.66, 0.99 ] - }, - { - "time": 0.5, - "angle": 62.27, - "curve": [ 0.462, 0, 0.764, 0.58 ] - }, - { "time": 0.9333, "angle": 28.91 }, - { "time": 1.0666, "angle": -8.62 }, - { "time": 1.1666, "angle": -18.43 }, - { "time": 1.3666, "angle": 0.05 } - ], - "translate": [ - { "time": 0, "x": -1.76, "y": 0.56, "curve": "stepped" }, - { "time": 0.9333, "x": -1.76, "y": 0.56, "curve": "stepped" }, - { "time": 1.3666, "x": -1.76, "y": 0.56 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left hand": { - "rotate": [ - { "time": 0, "angle": 11.58, "curve": "stepped" }, - { "time": 0.9333, "angle": 11.58, "curve": "stepped" }, - { "time": 1.3666, "angle": 11.58 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left arm": { - "rotate": [ - { "time": 0, "angle": 0.51 }, - { "time": 0.4333, "angle": 12.82 }, - { "time": 0.6, "angle": 47.55 }, - { "time": 0.9333, "angle": 12.82 }, - { "time": 1.1666, "angle": -6.5 }, - { "time": 1.3666, "angle": 0.51 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 43.82, - "curve": [ 0, 0, 0.62, 1 ] - }, - { - "time": 0.2333, - "angle": -8.74, - "curve": [ 0.304, 0.58, 0.709, 0.97 ] - }, - { - "time": 0.5333, - "angle": -208.02, - "curve": [ 0.462, 0, 0.764, 0.58 ] - }, - { "time": 0.9333, "angle": -246.72 }, - { "time": 1.0666, "angle": -307.13 }, - { "time": 1.1666, "angle": 37.15 }, - { "time": 1.3666, "angle": 43.82 } - ], - "translate": [ - { "time": 0, "x": -7.84, "y": 7.19, "curve": "stepped" }, - { "time": 0.9333, "x": -7.84, "y": 7.19, "curve": "stepped" }, - { "time": 1.3666, "x": -7.84, "y": 7.19 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right arm": { - "rotate": [ - { "time": 0, "angle": -4.02 }, - { "time": 0.6, "angle": 17.5 }, - { "time": 0.9333, "angle": -4.02 }, - { "time": 1.1666, "angle": -16.72 }, - { "time": 1.3666, "angle": -4.02 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 22.92, "curve": "stepped" }, - { "time": 0.9333, "angle": 22.92, "curve": "stepped" }, - { "time": 1.3666, "angle": 22.92 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "root": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.4333, "angle": -14.52 }, - { "time": 0.8, "angle": 9.86 }, - { "time": 1.3666, "angle": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/index.html b/examples/example 12 - Spine/index.html index 5abc5ef..7c9fc47 100644 --- a/examples/example 12 - Spine/index.html +++ b/examples/example 12 - Spine/index.html @@ -18,7 +18,7 @@ // create an array of assets to load - var assetsToLoader = ["data/spineboy.json", "data/spineboySpineData.json"]; + var assetsToLoader = ["data/spineboy.json"]; // create a new loader loader = new PIXI.AssetLoader(assetsToLoader); @@ -45,7 +45,7 @@ function onAssetsLoaded() { // create a spine boy - var spineBoy = new PIXI.Spine("data/spineboySpineData.json"); + var spineBoy = new PIXI.Spine("data/spineboy.json"); // set the position spineBoy.position.x = window.innerWidth/2; @@ -58,15 +58,15 @@ spineBoy.stateData.setMixByName("jump", "walk", 0.4); // play animation - spineBoy.state.setAnimationByName("walk", true); + spineBoy.state.setAnimationByName(0, "walk", true); stage.addChild(spineBoy); stage.click = function() { - spineBoy.state.setAnimationByName("jump", false); - spineBoy.state.addAnimationByName("walk", true); + spineBoy.state.setAnimationByName(0, "jump", false); + spineBoy.state.addAnimationByName(0, "walk", true, 0); } diff --git a/examples/example 12 - Spine/index_dragon.html b/examples/example 12 - Spine/index_dragon.html index 51b090c..a4f62d6 100644 --- a/examples/example 12 - Spine/index_dragon.html +++ b/examples/example 12 - Spine/index_dragon.html @@ -20,7 +20,7 @@ // create an array of assets to load - var assetsToLoader = ["../../logo_small.png", "data/dragonBones.json", "data/dragonBonesData.json"]; + var assetsToLoader = ["../../logo_small.png", "data/dragon.json"]; // create a new loader loader = new PIXI.AssetLoader(assetsToLoader); @@ -43,22 +43,38 @@ // add render view to DOM document.body.appendChild(renderer.view); + + var dragon = null; function onAssetsLoaded() { - var dragon = new PIXI.Spine("data/dragonBonesData.json"); - - var scale = 1;//window.innerHeight / 700; - - dragon.position.x = window.innerWidth/2; - dragon.position.y = window.innerHeight/2 + (450 * scale); - - dragon.scale.x = dragon.scale.y = scale + /* instantiate the spine animation */ + dragon = new PIXI.Spine("data/dragon.json"); + dragon.skeleton.setToSetupPose(); + dragon.update(0); + dragon.autoUpdate = false; + + /* create a container for the spine animation and add the animation to it */ + var dragonCage = new PIXI.DisplayObjectContainer(); + dragonCage.addChild(dragon); + + /* measure the spine animation and position it inside its container to align it to the origin */ + var localRect = dragon.getLocalBounds(); + dragon.position.set(-localRect.x, -localRect.y); + + /* now we can scale, position and rotate the container as any other display object */ + var scale = Math.min((window.innerWidth * 0.7) / dragonCage.width, (window.innerHeight * 0.7) / dragonCage.height); + dragonCage.scale.set(scale, scale); + dragonCage.position.set((window.innerWidth - dragonCage.width) * 0.5, (window.innerHeight - dragonCage.height) * 0.5); + + /* add the container to the stage */ + stage.addChild(dragonCage); + + /* once position and scaled, set the animation to play */ + dragon.state.setAnimationByName(0, "flying", true); - dragon.state.setAnimationByName("flying", true); - stage.addChild(dragon); var logo = PIXI.Sprite.fromImage("../../logo_small.png") stage.addChild(logo); @@ -74,17 +90,17 @@ { window.open("https://github.com/GoodBoyDigital/pixi.js", "_blank") } + + requestAnimFrame(animate); } - - requestAnimFrame(animate); - - function animate() { requestAnimFrame( animate ); + /* update the spine animation, only needed if autoupdate is set to false */ + dragon.update(0.01666666666667); // HARDCODED FRAMERATE! renderer.render(stage); } diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/dragonBones.png b/examples/example 12 - Spine/data/dragonBones.png deleted file mode 100644 index 12cb92e..0000000 --- a/examples/example 12 - Spine/data/dragonBones.png +++ /dev/null Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBonesData.json b/examples/example 12 - Spine/data/dragonBonesData.json deleted file mode 100644 index c65508a..0000000 --- a/examples/example 12 - Spine/data/dragonBonesData.json +++ /dev/null @@ -1,779 +0,0 @@ -{ -"bones": [ - { "name": "root", "y": -176.12 }, - { "name": "COG", "parent": "root", "y": 176.12 }, - { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, - { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, - { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, - { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, - { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, - { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, - { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, - { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, - { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, - { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, - { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, - { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, - { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, - { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, - { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, - { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, - { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, - { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, - { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, - { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, - { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, - { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, - { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, - { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, - { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, - { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, - { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, - { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, - { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, - { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, - { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } -], -"slots": [ - { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, - { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, - { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, - { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, - { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, - { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, - { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, - { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, - { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, - { "name": "back", "bone": "back", "attachment": "back" }, - { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, - { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, - { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, - { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, - { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, - { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, - { "name": "chest", "bone": "chest", "attachment": "chest" }, - { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, - { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, - { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, - { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, - { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, - { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, - { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, - { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, - { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, - { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, - { "name": "chin", "bone": "chin", "attachment": "chin" }, - { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, - { "name": "head", "bone": "head", "attachment": "head" } -], -"skins": { - "default": { - "L_front_leg": { - "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } - }, - "L_front_thigh": { - "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } - }, - "L_front_toe1": { - "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } - }, - "L_front_toe2": { - "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } - }, - "L_front_toe3": { - "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } - }, - "L_front_toe4": { - "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } - }, - "L_rear_leg": { - "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } - }, - "L_rear_thigh": { - "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } - }, - "L_wing": { - "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, - "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, - "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, - "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, - "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, - "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, - "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, - "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, - "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } - }, - "R_front_leg": { - "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } - }, - "R_front_thigh": { - "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } - }, - "R_front_toe1": { - "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } - }, - "R_front_toe2": { - "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } - }, - "R_front_toe3": { - "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } - }, - "R_rear_leg": { - "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } - }, - "R_rear_thigh": { - "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } - }, - "R_rear_toe1": { - "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } - }, - "R_rear_toe2": { - "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } - }, - "R_rear_toe3": { - "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } - }, - "R_wing": { - "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, - "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, - "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, - "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, - "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, - "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, - "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, - "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, - "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } - }, - "back": { - "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } - }, - "chest": { - "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } - }, - "chin": { - "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } - }, - "head": { - "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } - }, - "tail1": { - "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } - }, - "tail2": { - "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } - }, - "tail3": { - "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } - }, - "tail4": { - "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } - }, - "tail5": { - "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } - }, - "tail6": { - "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } - } - } -}, -"animations": { - "flying": { - "bones": { - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.39 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.8333, "angle": 7 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -8.18 }, - { "time": 0.3333, "angle": -23.16 }, - { "time": 0.5, "angle": -18.01 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chest": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -2.42 }, - { "time": 0.3333, "angle": -26.2 }, - { "time": 0.5, "angle": -29.65 }, - { "time": 0.6666, "angle": -23.15 }, - { "time": 0.8333, "angle": -55.46 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_thigh": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -1.12 }, - { "time": 0.3333, "angle": 10.48 }, - { "time": 0.5, "angle": 7.89 }, - { "time": 0.8333, "angle": -10.38 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 8.24 }, - { "time": 0.3333, "angle": 15.21 }, - { "time": 0.5, "angle": 14.84 }, - { "time": 0.8333, "angle": -18.9 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.46 }, - { "time": 0.3333, "angle": 22.15 }, - { "time": 0.5, "angle": 22.76 }, - { "time": 0.8333, "angle": -4.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail5": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 7.4 }, - { "time": 0.3333, "angle": 28.5 }, - { "time": 0.5, "angle": 21.33 }, - { "time": 0.8333, "angle": -1.27 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail6": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 45.99 }, - { "time": 0.4, "angle": 43.53 }, - { "time": 0.5, "angle": 61.79 }, - { "time": 0.8333, "angle": 13.28 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -14.21 }, - { "time": 0.5, "angle": 47.17 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -36.06 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -20.32 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -18.71 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.408, 1.36, 0.675, 1.43 ] - }, - { "time": 0.5, "angle": 1.03 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chin": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.416, 1.15, 0.494, 1.27 ] - }, - { "time": 0.3333, "angle": -5.15 }, - { "time": 0.5, "angle": 9.79 }, - { "time": 0.6666, "angle": 18.94 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -19.18 }, - { "time": 0.3333, "angle": -32.02 }, - { "time": 0.5, "angle": -19.62 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -12.96 }, - { "time": 0.5, "angle": 16.2 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 37.77 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -16.08 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.33, "y": 1.029 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 26.51 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.239, "y": 0.993 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 16.99 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.402, "y": 1.007 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 26.07 }, - { "time": 0.5, "angle": -21.6 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 29.23 }, - { "time": 0.5, "angle": 34.83 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.412, "y": 1 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 24.89 }, - { "time": 0.5, "angle": 23.16 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.407, "y": 1.057 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 11.01 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.329, "y": 1.181 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 25.19 }, - { "time": 0.6666, "angle": -15.65 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "COG": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.456, 0.2, 0.422, 1.06 ] - }, - { "time": 0.3333, "angle": 23.93 }, - { - "time": 0.6666, - "angle": 337.8, - "curve": [ 0.41, 0, 0.887, 0.75 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.33, 1, 0.816, 1.33 ] - }, - { - "time": 0.5, - "x": 0, - "y": 113.01, - "curve": [ 0.396, 0, 0.709, 2.03 ] - }, - { "time": 1, "x": 0, "y": 0 } - ] - } - }, - "slots": { - "R_wing": { - "attachment": [ - { "time": 0, "name": "R_wing01" }, - { "time": 0.0666, "name": "R_wing02" }, - { "time": 0.1333, "name": "R_wing03" }, - { "time": 0.2, "name": "R_wing04" }, - { "time": 0.2666, "name": "R_wing05" }, - { "time": 0.3333, "name": "R_wing06" }, - { "time": 0.4, "name": "R_wing07" }, - { "time": 0.4666, "name": "R_wing08" }, - { "time": 0.5333, "name": "R_wing09" }, - { "time": 0.6, "name": "R_wing01" }, - { "time": 0.7333, "name": "R_wing02" }, - { "time": 0.7666, "name": "R_wing02" }, - { "time": 0.8, "name": "R_wing03" }, - { "time": 0.8333, "name": "R_wing04" }, - { "time": 0.8666, "name": "R_wing05" }, - { "time": 0.9, "name": "R_wing06" }, - { "time": 0.9333, "name": "R_wing07" }, - { "time": 0.9666, "name": "R_wing08" }, - { "time": 1, "name": "R_wing09" } - ] - }, - "L_wing": { - "attachment": [ - { "time": 0, "name": "L_wing01" }, - { "time": 0.0666, "name": "L_wing02" }, - { "time": 0.1333, "name": "L_wing03" }, - { "time": 0.2, "name": "L_wing04" }, - { "time": 0.2666, "name": "L_wing05" }, - { "time": 0.3333, "name": "L_wing06" }, - { "time": 0.4, "name": "L_wing07" }, - { "time": 0.4666, "name": "L_wing08" }, - { "time": 0.5333, "name": "L_wing09" }, - { "time": 0.6, "name": "L_wing01" }, - { "time": 0.7333, "name": "L_wing02" }, - { "time": 0.8, "name": "L_wing03" }, - { "time": 0.8333, "name": "L_wing04" }, - { "time": 0.8666, "name": "L_wing05" }, - { "time": 0.9, "name": "L_wing06" }, - { "time": 0.9333, "name": "L_wing07" }, - { "time": 0.9666, "name": "L_wing08" }, - { "time": 1, "name": "L_wing09" } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/goblins.atlas b/examples/example 12 - Spine/data/goblins.atlas new file mode 100644 index 0000000..c9cb702 --- /dev/null +++ b/examples/example 12 - Spine/data/goblins.atlas @@ -0,0 +1,293 @@ + +goblins.png +size: 228,523 +format: RGBA8888 +filter: Linear,Linear +repeat: none +dagger + rotate: false + xy: 2, 43 + size: 26, 108 + orig: 26, 108 + offset: 0, 0 + index: -1 +goblin/eyes-closed + rotate: false + xy: 166, 237 + size: 34, 12 + orig: 34, 12 + offset: 0, 0 + index: -1 +goblin/head + rotate: false + xy: 26, 372 + size: 103, 66 + orig: 103, 66 + offset: 0, 0 + index: -1 +goblin/left-arm + rotate: false + xy: 166, 251 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblin/left-foot + rotate: true + xy: 195, 358 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblin/left-hand + rotate: false + xy: 49, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/left-lower-leg + rotate: false + xy: 30, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblin/left-shoulder + rotate: true + xy: 169, 288 + size: 29, 44 + orig: 29, 44 + offset: 0, 0 + index: -1 +goblin/left-upper-leg + rotate: false + xy: 134, 305 + size: 33, 73 + orig: 33, 73 + offset: 0, 0 + index: -1 +goblin/neck + rotate: false + xy: 87, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/pelvis + rotate: false + xy: 131, 380 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblin/right-arm + rotate: false + xy: 135, 69 + size: 23, 50 + orig: 23, 50 + offset: 0, 0 + index: -1 +goblin/right-foot + rotate: true + xy: 104, 157 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblin/right-hand + rotate: false + xy: 190, 319 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblin/right-lower-leg + rotate: false + xy: 96, 294 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblin/right-shoulder + rotate: true + xy: 2, 2 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblin/right-upper-leg + rotate: false + xy: 139, 162 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblin/torso + rotate: false + xy: 131, 425 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblin/undie-straps + rotate: true + xy: 201, 466 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblin/undies + rotate: false + xy: 190, 51 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +goblingirl/eyes-closed + rotate: true + xy: 201, 427 + size: 37, 21 + orig: 37, 21 + offset: 0, 0 + index: -1 +goblingirl/head + rotate: false + xy: 26, 440 + size: 103, 81 + orig: 103, 81 + offset: 0, 0 + index: -1 +goblingirl/left-arm + rotate: true + xy: 175, 198 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblingirl/left-foot + rotate: true + xy: 133, 227 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblingirl/left-hand + rotate: true + xy: 168, 2 + size: 35, 40 + orig: 35, 40 + offset: 0, 0 + index: -1 +goblingirl/left-lower-leg + rotate: false + xy: 65, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/left-shoulder + rotate: true + xy: 135, 39 + size: 28, 46 + orig: 28, 46 + offset: 0, 0 + index: -1 +goblingirl/left-upper-leg + rotate: false + xy: 98, 222 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/neck + rotate: true + xy: 125, 2 + size: 35, 41 + orig: 35, 41 + offset: 0, 0 + index: -1 +goblingirl/pelvis + rotate: false + xy: 30, 117 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblingirl/right-arm + rotate: false + xy: 160, 69 + size: 28, 50 + orig: 28, 50 + offset: 0, 0 + index: -1 +goblingirl/right-foot + rotate: true + xy: 100, 56 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblingirl/right-hand + rotate: false + xy: 190, 82 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblingirl/right-lower-leg + rotate: true + xy: 26, 162 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblingirl/right-shoulder + rotate: true + xy: 159, 121 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblingirl/right-upper-leg + rotate: true + xy: 94, 121 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblingirl/torso + rotate: false + xy: 26, 274 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblingirl/undie-straps + rotate: true + xy: 169, 323 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblingirl/undies + rotate: false + xy: 175, 167 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +shield + rotate: false + xy: 26, 200 + size: 70, 72 + orig: 70, 72 + offset: 0, 0 + index: -1 +spear + rotate: false + xy: 2, 153 + size: 22, 368 + orig: 22, 368 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/goblins.json b/examples/example 12 - Spine/data/goblins.json index f87ec19..5d83ae1 100644 --- a/examples/example 12 - Spine/data/goblins.json +++ b/examples/example 12 - Spine/data/goblins.json @@ -1,332 +1 @@ -{"frames": { - -"dagger.png": -{ - "frame": {"x":2,"y":372,"w":26,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":26,"h":108}, - "sourceSize": {"w":26,"h":108} -}, -"goblin/eyes-closed.png": -{ - "frame": {"x":64,"y":354,"w":34,"h":12}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":12}, - "sourceSize": {"w":34,"h":12} -}, -"goblin/head.png": -{ - "frame": {"x":59,"y":83,"w":103,"h":64}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":103,"h":64}, - "sourceSize": {"w":103,"h":66} -}, -"goblin/left-arm.png": -{ - "frame": {"x":30,"y":445,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblin/left-foot.png": -{ - "frame": {"x":59,"y":182,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblin/left-hand.png": -{ - "frame": {"x":107,"y":436,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/left-lower-leg.png": -{ - "frame": {"x":26,"y":74,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblin/left-shoulder.png": -{ - "frame": {"x":26,"y":146,"w":29,"h":44}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":44}, - "sourceSize": {"w":29,"h":44} -}, -"goblin/left-upper-leg.png": -{ - "frame": {"x":30,"y":370,"w":33,"h":73}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":73}, - "sourceSize": {"w":33,"h":73} -}, -"goblin/neck.png": -{ - "frame": {"x":146,"y":309,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/pelvis.png": -{ - "frame": {"x":163,"y":233,"w":62,"h":43}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":62,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblin/right-arm.png": -{ - "frame": {"x":30,"y":240,"w":23,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":23,"h":50}, - "sourceSize": {"w":23,"h":50} -}, -"goblin/right-foot.png": -{ - "frame": {"x":164,"y":198,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblin/right-hand.png": -{ - "frame": {"x":154,"y":462,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblin/right-lower-leg.png": -{ - "frame": {"x":26,"y":292,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblin/right-shoulder.png": -{ - "frame": {"x":105,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblin/right-upper-leg.png": -{ - "frame": {"x":136,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblin/torso.png": -{ - "frame": {"x":164,"y":2,"w":68,"h":96}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblin/undie-straps.png": -{ - "frame": {"x":59,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblin/undies.png": -{ - "frame": {"x":116,"y":479,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"goblingirl/eyes-closed.png": -{ - "frame": {"x":100,"y":419,"w":37,"h":15}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":6,"w":37,"h":15}, - "sourceSize": {"w":37,"h":21} -}, -"goblingirl/head.png": -{ - "frame": {"x":59,"y":2,"w":103,"h":79}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":79}, - "sourceSize": {"w":103,"h":81} -}, -"goblingirl/left-arm.png": -{ - "frame": {"x":124,"y":227,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblingirl/left-foot.png": -{ - "frame": {"x":59,"y":149,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblingirl/left-hand.png": -{ - "frame": {"x":55,"y":250,"w":35,"h":40}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":40}, - "sourceSize": {"w":35,"h":40} -}, -"goblingirl/left-lower-leg.png": -{ - "frame": {"x":26,"y":2,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/left-shoulder.png": -{ - "frame": {"x":26,"y":192,"w":28,"h":46}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":28,"h":46}, - "sourceSize": {"w":28,"h":46} -}, -"goblingirl/left-upper-leg.png": -{ - "frame": {"x":65,"y":368,"w":33,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/neck.png": -{ - "frame": {"x":145,"y":419,"w":33,"h":41}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":41}, - "sourceSize": {"w":35,"h":41} -}, -"goblingirl/pelvis.png": -{ - "frame": {"x":92,"y":264,"w":60,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":60,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblingirl/right-arm.png": -{ - "frame": {"x":232,"y":100,"w":22,"h":50}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":3,"y":0,"w":22,"h":50}, - "sourceSize": {"w":28,"h":50} -}, -"goblingirl/right-foot.png": -{ - "frame": {"x":59,"y":215,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblingirl/right-hand.png": -{ - "frame": {"x":69,"y":440,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblingirl/right-lower-leg.png": -{ - "frame": {"x":126,"y":149,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblingirl/right-shoulder.png": -{ - "frame": {"x":64,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblingirl/right-upper-leg.png": -{ - "frame": {"x":100,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblingirl/torso.png": -{ - "frame": {"x":164,"y":100,"w":66,"h":96}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":66,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblingirl/undie-straps.png": -{ - "frame": {"x":2,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblingirl/undies.png": -{ - "frame": {"x":154,"y":278,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"spear.png": -{ - "frame": {"x":2,"y":2,"w":22,"h":368}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":22,"h":368}, - "sourceSize": {"w":22,"h":368} -}}, -"meta": { - "app": "http://www.codeandweb.com/texturepacker ", - "version": "1.0", - "image": "goblins.png", - "format": "RGBA8888", - "size": {"w":256,"h":512}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:f89858b99c6b15e23d39806c4170313a:1/1$" -} -} +{"skeleton":{"hash":"BMzsp4a1APif5tjCQwomTTo3Ino","spine":"2.1.05","width":233.95,"height":354.87},"bones":[{"name":"root"},{"name":"hip","parent":"root","x":0.64,"y":114.41},{"name":"left upper leg","parent":"hip","length":50.39,"x":14.45,"y":2.81,"rotation":-89.09},{"name":"pelvis","parent":"hip","x":1.41,"y":-6.57},{"name":"right upper leg","parent":"hip","length":42.45,"x":-20.07,"y":-6.83,"rotation":-97.49},{"name":"torso","parent":"hip","length":85.82,"x":-6.42,"y":1.97,"rotation":93.92},{"name":"left lower leg","parent":"left upper leg","length":49.89,"x":56.34,"y":0.98,"rotation":-16.65},{"name":"left shoulder","parent":"torso","length":35.43,"x":74.04,"y":-20.38,"rotation":-156.96},{"name":"neck","parent":"torso","length":18.38,"x":81.67,"y":-6.34,"rotation":-1.51},{"name":"right lower leg","parent":"right upper leg","length":58.52,"x":42.99,"y":-0.61,"rotation":-14.34},{"name":"right shoulder","parent":"torso","length":37.24,"x":76.02,"y":18.14,"rotation":133.88},{"name":"head","parent":"neck","length":68.28,"x":20.93,"y":11.59,"rotation":-13.92},{"name":"left arm","parent":"left shoulder","length":35.62,"x":37.85,"y":-2.34,"rotation":28.16},{"name":"left foot","parent":"left lower leg","length":46.5,"x":58.94,"y":-7.61,"rotation":102.43},{"name":"right arm","parent":"right shoulder","length":36.74,"x":37.6,"y":0.31,"rotation":36.32},{"name":"right foot","parent":"right lower leg","length":45.45,"x":64.88,"y":0.04,"rotation":110.3},{"name":"left hand","parent":"left arm","length":11.52,"x":35.62,"y":0.07,"rotation":2.7},{"name":"right hand","parent":"right arm","length":15.32,"x":36.9,"y":0.34,"rotation":2.35}],"slots":[{"name":"left shoulder","bone":"left shoulder","attachment":"left shoulder"},{"name":"left arm","bone":"left arm","attachment":"left arm"},{"name":"left hand item","bone":"left hand","attachment":"spear"},{"name":"left hand","bone":"left hand","attachment":"left hand"},{"name":"left foot","bone":"left foot","attachment":"left foot"},{"name":"left lower leg","bone":"left lower leg","attachment":"left lower leg"},{"name":"left upper leg","bone":"left upper leg","attachment":"left upper leg"},{"name":"neck","bone":"neck","attachment":"neck"},{"name":"torso","bone":"torso","attachment":"torso"},{"name":"pelvis","bone":"pelvis","attachment":"pelvis"},{"name":"right foot","bone":"right foot","attachment":"right foot"},{"name":"right lower leg","bone":"right lower leg","attachment":"right lower leg"},{"name":"undie straps","bone":"pelvis","attachment":"undie straps"},{"name":"undies","bone":"pelvis","attachment":"undies"},{"name":"right upper leg","bone":"right upper leg","attachment":"right upper leg"},{"name":"head","bone":"head","attachment":"head"},{"name":"eyes","bone":"head"},{"name":"right shoulder","bone":"right shoulder","attachment":"right shoulder"},{"name":"right arm","bone":"right arm","attachment":"right arm"},{"name":"right hand item","bone":"right hand"},{"name":"right hand","bone":"right hand","attachment":"right hand"},{"name":"right hand item top","bone":"right hand","attachment":"shield"}],"skins":{"default":{"left hand item":{"dagger":{"x":7.88,"y":-23.45,"rotation":10.47,"width":26,"height":108},"spear":{"x":-4.55,"y":39.2,"rotation":13.04,"width":22,"height":368}},"right hand item":{"dagger":{"x":6.51,"y":-24.15,"rotation":-8.06,"width":26,"height":108}},"right hand item top":{"shield":{"rotation":93.49,"width":70,"height":72}}},"goblin":{"eyes":{"eyes closed":{"name":"goblin/eyes-closed","x":32.21,"y":-21.27,"rotation":-88.92,"width":34,"height":12}},"head":{"head":{"name":"goblin/head","x":25.73,"y":2.33,"rotation":-92.29,"width":103,"height":66}},"left arm":{"left arm":{"name":"goblin/left-arm","x":16.7,"y":-1.69,"scaleX":1.057,"scaleY":1.057,"rotation":33.84,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblin/left-foot","x":24.85,"y":8.74,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblin/left-hand","x":3.47,"y":3.41,"scaleX":0.892,"scaleY":0.892,"rotation":31.14,"width":36,"height":41}},"left lower leg":{"left lower leg":{"name":"goblin/left-lower-leg","x":23.58,"y":-2.06,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblin/left-shoulder","x":15.56,"y":-2.26,"rotation":62.01,"width":29,"height":44}},"left upper leg":{"left upper leg":{"name":"goblin/left-upper-leg","x":29.68,"y":-3.87,"rotation":89.09,"width":33,"height":73}},"neck":{"neck":{"name":"goblin/neck","x":10.1,"y":0.42,"rotation":-93.69,"width":36,"height":41}},"pelvis":{"pelvis":{"name":"goblin/pelvis","x":-5.61,"y":0.76,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblin/right-arm","x":16.44,"y":-1.04,"rotation":94.32,"width":23,"height":50}},"right foot":{"right foot":{"name":"goblin/right-foot","x":23.56,"y":9.8,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblin/right-hand","x":7.88,"y":2.78,"rotation":91.96,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblin/right-lower-leg","x":25.68,"y":-3.15,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblin/right-shoulder","x":15.68,"y":-1.03,"rotation":130.65,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblin/right-upper-leg","x":20.35,"y":1.47,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblin/torso","x":38.09,"y":-3.87,"rotation":-94.95,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblin/undie-straps","x":-3.87,"y":13.1,"scaleX":1.089,"width":55,"height":19}},"undies":{"undies":{"name":"goblin/undies","x":6.3,"y":0.12,"rotation":0.91,"width":36,"height":29}}},"goblingirl":{"eyes":{"eyes closed":{"name":"goblingirl/eyes-closed","x":28,"y":-25.54,"rotation":-87.04,"width":37,"height":21}},"head":{"head":{"name":"goblingirl/head","x":27.71,"y":-4.32,"rotation":-85.58,"width":103,"height":81}},"left arm":{"left arm":{"name":"goblingirl/left-arm","x":19.64,"y":-2.42,"rotation":33.05,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblingirl/left-foot","x":25.17,"y":7.92,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblingirl/left-hand","x":4.34,"y":2.39,"scaleX":0.896,"scaleY":0.896,"rotation":30.34,"width":35,"height":40}},"left lower leg":{"left lower leg":{"name":"goblingirl/left-lower-leg","x":25.02,"y":-0.6,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblingirl/left-shoulder","x":19.8,"y":-0.42,"rotation":61.21,"width":28,"height":46}},"left upper leg":{"left upper leg":{"name":"goblingirl/left-upper-leg","x":30.21,"y":-2.95,"rotation":89.09,"width":33,"height":70}},"neck":{"neck":{"name":"goblingirl/neck","x":6.16,"y":-3.14,"rotation":-98.86,"width":35,"height":41}},"pelvis":{"pelvis":{"name":"goblingirl/pelvis","x":-3.87,"y":3.18,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblingirl/right-arm","x":16.85,"y":-0.66,"rotation":93.52,"width":28,"height":50}},"right foot":{"right foot":{"name":"goblingirl/right-foot","x":23.46,"y":9.66,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblingirl/right-hand","x":7.21,"y":3.43,"rotation":91.16,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblingirl/right-lower-leg","x":26.15,"y":-3.27,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblingirl/right-shoulder","x":14.46,"y":0.45,"rotation":129.85,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblingirl/right-upper-leg","x":19.69,"y":2.13,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblingirl/torso","x":36.28,"y":-5.14,"rotation":-95.74,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblingirl/undie-straps","x":-1.51,"y":14.18,"width":55,"height":19}},"undies":{"undies":{"name":"goblingirl/undies","x":5.4,"y":1.7,"width":36,"height":29}}}},"animations":{"walk":{"slots":{"eyes":{"attachment":[{"time":0.7,"name":"eyes closed"},{"time":0.8,"name":null}]}},"bones":{"left upper leg":{"rotate":[{"time":0,"angle":-26.55},{"time":0.1333,"angle":-8.78},{"time":0.2333,"angle":9.51},{"time":0.3666,"angle":30.74},{"time":0.5,"angle":25.33},{"time":0.6333,"angle":26.11},{"time":0.7333,"angle":-7.7},{"time":0.8666,"angle":-21.19},{"time":1,"angle":-26.55}],"translate":[{"time":0,"x":-1.32,"y":1.7},{"time":0.3666,"x":-0.06,"y":2.42},{"time":1,"x":-1.32,"y":1.7}]},"right upper leg":{"rotate":[{"time":0,"angle":42.45},{"time":0.1333,"angle":52.1},{"time":0.2333,"angle":8.53},{"time":0.5,"angle":-16.93},{"time":0.6333,"angle":1.89},{"time":0.7333,"angle":28.06,"curve":[0.462,0.11,1,1]},{"time":0.8666,"angle":58.68,"curve":[0.5,0.02,1,1]},{"time":1,"angle":42.45}],"translate":[{"time":0,"x":6.23,"y":0},{"time":0.2333,"x":2.14,"y":2.4},{"time":0.5,"x":2.44,"y":4.8},{"time":1,"x":6.23,"y":0}]},"left lower leg":{"rotate":[{"time":0,"angle":-22.98},{"time":0.1333,"angle":-63.5},{"time":0.2333,"angle":-73.76},{"time":0.5,"angle":5.11},{"time":0.6333,"angle":-28.29},{"time":0.7333,"angle":4.08},{"time":0.8666,"angle":3.53},{"time":1,"angle":-22.98}],"translate":[{"time":0,"x":0,"y":0},{"time":0.2333,"x":2.55,"y":-0.47},{"time":0.5,"x":0,"y":0,"curve":"stepped"},{"time":1,"x":0,"y":0}]},"left foot":{"rotate":[{"time":0,"angle":-3.69},{"time":0.1333,"angle":-10.42},{"time":0.2333,"angle":-5.01},{"time":0.3666,"angle":3.87},{"time":0.5,"angle":-3.87},{"time":0.6333,"angle":2.78},{"time":0.7333,"angle":1.68},{"time":0.8666,"angle":-8.54},{"time":1,"angle":-3.69}]},"right shoulder":{"rotate":[{"time":0,"angle":5.29,"curve":[0.264,0,0.75,1]},{"time":0.6333,"angle":6.65},{"time":1,"angle":5.29}]},"right arm":{"rotate":[{"time":0,"angle":-4.02,"curve":[0.267,0,0.804,0.99]},{"time":0.6333,"angle":19.78,"curve":[0.307,0,0.787,0.99]},{"time":1,"angle":-4.02}]},"right hand":{"rotate":[{"time":0,"angle":8.98},{"time":0.6333,"angle":0.51},{"time":1,"angle":8.98}]},"left shoulder":{"rotate":[{"time":0,"angle":6.25,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":-11.78,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":6.25}],"translate":[{"time":0,"x":1.15,"y":0.23}]},"left hand":{"rotate":[{"time":0,"angle":-21.23,"curve":[0.295,0,0.755,0.98]},{"time":0.5,"angle":-27.28,"curve":[0.241,0,0.75,0.97]},{"time":1,"angle":-21.23}]},"left arm":{"rotate":[{"time":0,"angle":28.37,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":60.09,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":28.37}]},"torso":{"rotate":[{"time":0,"angle":-10.28},{"time":0.1333,"angle":-15.38,"curve":[0.545,0,0.818,1]},{"time":0.3666,"angle":-9.78,"curve":[0.58,0.17,0.669,0.99]},{"time":0.6333,"angle":-15.75,"curve":[0.235,0.01,0.795,1]},{"time":0.8666,"angle":-7.06,"curve":[0.209,0,0.816,0.98]},{"time":1,"angle":-10.28}],"translate":[{"time":0,"x":-1.29,"y":1.68}]},"right foot":{"rotate":[{"time":0,"angle":-5.25},{"time":0.2333,"angle":-1.91},{"time":0.3666,"angle":-6.45},{"time":0.5,"angle":-5.39},{"time":0.7333,"angle":-11.68},{"time":0.8666,"angle":0.46},{"time":1,"angle":-5.25}]},"right lower leg":{"rotate":[{"time":0,"angle":-3.39,"curve":[0.316,0.01,0.741,0.98]},{"time":0.1333,"angle":-45.53,"curve":[0.229,0,0.738,0.97]},{"time":0.2333,"angle":-4.83},{"time":0.5,"angle":-19.53},{"time":0.6333,"angle":-64.8},{"time":0.7333,"angle":-82.56,"curve":[0.557,0.18,1,1]},{"time":1,"angle":-3.39}],"translate":[{"time":0,"x":0,"y":0,"curve":"stepped"},{"time":0.5,"x":0,"y":0},{"time":0.6333,"x":2.18,"y":0.21},{"time":1,"x":0,"y":0}]},"hip":{"rotate":[{"time":0,"angle":0,"curve":"stepped"},{"time":1,"angle":0}],"translate":[{"time":0,"x":0,"y":-4.16},{"time":0.1333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.3666,"x":0,"y":6.78},{"time":0.5,"x":0,"y":-6.13},{"time":0.6333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.8666,"x":0,"y":6.78},{"time":1,"x":0,"y":-4.16}]},"neck":{"rotate":[{"time":0,"angle":3.6},{"time":0.1333,"angle":17.49},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17},{"time":0.6333,"angle":18.36},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]},"head":{"rotate":[{"time":0,"angle":3.6,"curve":[0,0,0.704,1.17]},{"time":0.1333,"angle":-0.2},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17,"curve":[0,0,0.704,1.61]},{"time":0.6666,"angle":1.1},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]}}}}} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/goblins.png b/examples/example 12 - Spine/data/goblins.png index 5c26ca0..f2cdf16 100644 --- a/examples/example 12 - Spine/data/goblins.png +++ b/examples/example 12 - Spine/data/goblins.png Binary files differ diff --git a/examples/example 12 - Spine/data/goblinsSpineData.json b/examples/example 12 - Spine/data/goblinsSpineData.json deleted file mode 100644 index 8d63c62..0000000 --- a/examples/example 12 - Spine/data/goblinsSpineData.json +++ /dev/null @@ -1,502 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, - { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, - { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 }, - { "name": "right upper leg", "parent": "hip", "length": 42.45, "x": -20.07, "y": -6.83, "rotation": -97.49 }, - { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 93.92 }, - { "name": "left lower leg", "parent": "left upper leg", "length": 49.89, "x": 56.34, "y": 0.98, "rotation": -16.65 }, - { "name": "left shoulder", "parent": "torso", "length": 35.43, "x": 74.04, "y": -20.38, "rotation": -156.96 }, - { "name": "neck", "parent": "torso", "length": 18.38, "x": 81.67, "y": -6.34, "rotation": -1.51 }, - { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 42.99, "y": -0.61, "rotation": -14.34 }, - { "name": "right shoulder", "parent": "torso", "length": 37.24, "x": 76.02, "y": 18.14, "rotation": 133.88 }, - { "name": "head", "parent": "neck", "length": 68.28, "x": 20.93, "y": 11.59, "rotation": -13.92 }, - { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 37.85, "y": -2.34, "rotation": 28.16 }, - { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 58.94, "y": -7.61, "rotation": 102.43 }, - { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 37.6, "y": 0.31, "rotation": 36.32 }, - { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, - { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, - { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 } -], -"slots": [ - { "name": "left shoulder", "bone": "left shoulder", "attachment": "left shoulder" }, - { "name": "left arm", "bone": "left arm", "attachment": "left arm" }, - { "name": "left hand item", "bone": "left hand", "attachment": "spear" }, - { "name": "left hand", "bone": "left hand", "attachment": "left hand" }, - { "name": "left foot", "bone": "left foot", "attachment": "left foot" }, - { "name": "left lower leg", "bone": "left lower leg", "attachment": "left lower leg" }, - { "name": "left upper leg", "bone": "left upper leg", "attachment": "left upper leg" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "torso", "bone": "torso", "attachment": "torso" }, - { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, - { "name": "right foot", "bone": "right foot", "attachment": "right foot" }, - { "name": "right lower leg", "bone": "right lower leg", "attachment": "right lower leg" }, - { "name": "undie straps", "bone": "pelvis", "attachment": "undie straps" }, - { "name": "undies", "bone": "pelvis", "attachment": "undies" }, - { "name": "right upper leg", "bone": "right upper leg", "attachment": "right upper leg" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "eyes", "bone": "head" }, - { "name": "right shoulder", "bone": "right shoulder", "attachment": "right shoulder" }, - { "name": "right arm", "bone": "right arm", "attachment": "right arm" }, - { "name": "right hand item", "bone": "right hand", "attachment": "dagger" }, - { "name": "right hand", "bone": "right hand", "attachment": "right hand" } -], -"skins": { - "default": { - "left hand item": { - "dagger": { "x": 7.88, "y": -23.45, "rotation": 10.47, "width": 26, "height": 108 }, - "spear": { "x": -4.55, "y": 39.2, "rotation": 13.04, "width": 22, "height": 368 } - }, - "right hand item": { - "dagger": { "x": 6.51, "y": -24.15, "rotation": -8.06, "width": 26, "height": 108 } - } - }, - "goblin": { - "eyes": { - "eyes closed": { "name": "goblin/eyes-closed", "x": 32.21, "y": -21.27, "rotation": -88.92, "width": 34, "height": 12 } - }, - "head": { - "head": { "name": "goblin/head", "x": 25.73, "y": 2.33, "rotation": -92.29, "width": 103, "height": 66 } - }, - "left arm": { - "left arm": { - "name": "goblin/left-arm", - "x": 16.7, - "y": -1.69, - "scaleX": 1.057, - "scaleY": 1.057, - "rotation": 33.84, - "width": 37, - "height": 35 - } - }, - "left foot": { - "left foot": { "name": "goblin/left-foot", "x": 24.85, "y": 8.74, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblin/left-hand", - "x": 3.47, - "y": 3.41, - "scaleX": 0.892, - "scaleY": 0.892, - "rotation": 31.14, - "width": 36, - "height": 41 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblin/left-lower-leg", "x": 23.58, "y": -2.06, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblin/left-shoulder", "x": 15.56, "y": -2.26, "rotation": 62.01, "width": 29, "height": 44 } - }, - "left upper leg": { - "left upper leg": { "name": "goblin/left-upper-leg", "x": 29.68, "y": -3.87, "rotation": 89.09, "width": 33, "height": 73 } - }, - "neck": { - "neck": { "name": "goblin/neck", "x": 10.1, "y": 0.42, "rotation": -93.69, "width": 36, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblin/pelvis", "x": -5.61, "y": 0.76, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblin/right-arm", "x": 16.44, "y": -1.04, "rotation": 94.32, "width": 23, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblin/right-foot", "x": 23.56, "y": 9.8, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblin/right-hand", "x": 7.88, "y": 2.78, "rotation": 91.96, "width": 36, "height": 37 } - }, - "right lower leg": { - "right lower leg": { "name": "goblin/right-lower-leg", "x": 25.68, "y": -3.15, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblin/right-shoulder", "x": 15.68, "y": -1.03, "rotation": 130.65, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblin/right-upper-leg", "x": 20.35, "y": 1.47, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblin/torso", "x": 38.09, "y": -3.87, "rotation": -94.95, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblin/undie-straps", "x": -3.87, "y": 13.1, "scaleX": 1.089, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblin/undies", "x": 6.3, "y": 0.12, "rotation": 0.91, "width": 36, "height": 29 } - } - }, - "goblingirl": { - "eyes": { - "eyes closed": { "name": "goblingirl/eyes-closed", "x": 28, "y": -25.54, "rotation": -87.04, "width": 37, "height": 21 } - }, - "head": { - "head": { "name": "goblingirl/head", "x": 27.71, "y": -4.32, "rotation": -85.58, "width": 103, "height": 81 } - }, - "left arm": { - "left arm": { "name": "goblingirl/left-arm", "x": 19.64, "y": -2.42, "rotation": 33.05, "width": 37, "height": 35 } - }, - "left foot": { - "left foot": { "name": "goblingirl/left-foot", "x": 25.17, "y": 7.92, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblingirl/left-hand", - "x": 4.34, - "y": 2.39, - "scaleX": 0.896, - "scaleY": 0.896, - "rotation": 30.34, - "width": 35, - "height": 40 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblingirl/left-lower-leg", "x": 25.02, "y": -0.6, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblingirl/left-shoulder", "x": 19.8, "y": -0.42, "rotation": 61.21, "width": 28, "height": 46 } - }, - "left upper leg": { - "left upper leg": { "name": "goblingirl/left-upper-leg", "x": 30.21, "y": -2.95, "rotation": 89.09, "width": 33, "height": 70 } - }, - "neck": { - "neck": { "name": "goblingirl/neck", "x": 6.16, "y": -3.14, "rotation": -98.86, "width": 35, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblingirl/pelvis", "x": -3.87, "y": 3.18, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblingirl/right-arm", "x": 16.85, "y": -0.66, "rotation": 93.52, "width": 28, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblingirl/right-foot", "x": 23.46, "y": 9.66, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblingirl/right-hand", "x": 7.21, "y": 3.43, "rotation": 91.16, "width": 36, "height": 37 } - }, - "right hand item": { - "right hand item": { "name": "goblingirl/dagger-tip", "x": 13.45, "y": 22.07, "rotation": -3.23, "width": 17, "height": 17 } - }, - "right lower leg": { - "right lower leg": { "name": "goblingirl/right-lower-leg", "x": 26.15, "y": -3.27, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblingirl/right-shoulder", "x": 14.46, "y": 0.45, "rotation": 129.85, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblingirl/right-upper-leg", "x": 19.69, "y": 2.13, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblingirl/torso", "x": 36.28, "y": -5.14, "rotation": -95.74, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblingirl/undie-straps", "x": -1.51, "y": 14.18, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblingirl/undies", "x": 5.4, "y": 1.7, "width": 36, "height": 29 } - } - } -}, -"animations": { - "walk": { - "bones": { - "left upper leg": { - "rotate": [ - { "time": 0, "angle": -26.55 }, - { "time": 0.1333, "angle": -8.78 }, - { "time": 0.2333, "angle": 9.51 }, - { "time": 0.3666, "angle": 30.74 }, - { "time": 0.5, "angle": 25.33 }, - { "time": 0.6333, "angle": 26.11 }, - { "time": 0.7333, "angle": -7.7 }, - { "time": 0.8666, "angle": -21.19 }, - { "time": 1, "angle": -26.55 } - ], - "translate": [ - { "time": 0, "x": -1.32, "y": 1.7 }, - { "time": 0.3666, "x": -0.06, "y": 2.42 }, - { "time": 1, "x": -1.32, "y": 1.7 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 42.45 }, - { "time": 0.1333, "angle": 52.1 }, - { "time": 0.2333, "angle": 8.53 }, - { "time": 0.5, "angle": -16.93 }, - { "time": 0.6333, "angle": 1.89 }, - { - "time": 0.7333, - "angle": 28.06, - "curve": [ 0.462, 0.11, 1, 1 ] - }, - { - "time": 0.8666, - "angle": 58.68, - "curve": [ 0.5, 0.02, 1, 1 ] - }, - { "time": 1, "angle": 42.45 } - ], - "translate": [ - { "time": 0, "x": 6.23, "y": 0 }, - { "time": 0.2333, "x": 2.14, "y": 2.4 }, - { "time": 0.5, "x": 2.44, "y": 4.8 }, - { "time": 1, "x": 6.23, "y": 0 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -22.98 }, - { "time": 0.1333, "angle": -63.5 }, - { "time": 0.2333, "angle": -73.76 }, - { "time": 0.5, "angle": 5.11 }, - { "time": 0.6333, "angle": -28.29 }, - { "time": 0.7333, "angle": 4.08 }, - { "time": 0.8666, "angle": 3.53 }, - { "time": 1, "angle": -22.98 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 2.55, "y": -0.47 }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": -3.69 }, - { "time": 0.1333, "angle": -10.42 }, - { "time": 0.2333, "angle": -5.01 }, - { "time": 0.3666, "angle": 3.87 }, - { "time": 0.5, "angle": -3.87 }, - { "time": 0.6333, "angle": 2.78 }, - { "time": 0.7333, "angle": 1.68 }, - { "time": 0.8666, "angle": -8.54 }, - { "time": 1, "angle": -3.69 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 5.29, - "curve": [ 0.264, 0, 0.75, 1 ] - }, - { "time": 0.6333, "angle": 6.65 }, - { "time": 1, "angle": 5.29 } - ] - }, - "right arm": { - "rotate": [ - { - "time": 0, - "angle": -4.02, - "curve": [ 0.267, 0, 0.804, 0.99 ] - }, - { - "time": 0.6333, - "angle": 19.78, - "curve": [ 0.307, 0, 0.787, 0.99 ] - }, - { "time": 1, "angle": -4.02 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 8.98 }, - { "time": 0.6333, "angle": 0.51 }, - { "time": 1, "angle": 8.98 } - ] - }, - "left shoulder": { - "rotate": [ - { - "time": 0, - "angle": 6.25, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": -11.78, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 6.25 } - ], - "translate": [ - { "time": 0, "x": 1.15, "y": 0.23 } - ] - }, - "left hand": { - "rotate": [ - { - "time": 0, - "angle": -21.23, - "curve": [ 0.295, 0, 0.755, 0.98 ] - }, - { - "time": 0.5, - "angle": -27.28, - "curve": [ 0.241, 0, 0.75, 0.97 ] - }, - { "time": 1, "angle": -21.23 } - ] - }, - "left arm": { - "rotate": [ - { - "time": 0, - "angle": 28.37, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": 60.09, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 28.37 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -10.28 }, - { - "time": 0.1333, - "angle": -15.38, - "curve": [ 0.545, 0, 0.818, 1 ] - }, - { - "time": 0.3666, - "angle": -9.78, - "curve": [ 0.58, 0.17, 0.669, 0.99 ] - }, - { - "time": 0.6333, - "angle": -15.75, - "curve": [ 0.235, 0.01, 0.795, 1 ] - }, - { - "time": 0.8666, - "angle": -7.06, - "curve": [ 0.209, 0, 0.816, 0.98 ] - }, - { "time": 1, "angle": -10.28 } - ], - "translate": [ - { "time": 0, "x": -1.29, "y": 1.68 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": -5.25 }, - { "time": 0.2333, "angle": -1.91 }, - { "time": 0.3666, "angle": -6.45 }, - { "time": 0.5, "angle": -5.39 }, - { "time": 0.7333, "angle": -11.68 }, - { "time": 0.8666, "angle": 0.46 }, - { "time": 1, "angle": -5.25 } - ] - }, - "right lower leg": { - "rotate": [ - { - "time": 0, - "angle": -3.39, - "curve": [ 0.316, 0.01, 0.741, 0.98 ] - }, - { - "time": 0.1333, - "angle": -45.53, - "curve": [ 0.229, 0, 0.738, 0.97 ] - }, - { "time": 0.2333, "angle": -4.83 }, - { "time": 0.5, "angle": -19.53 }, - { "time": 0.6333, "angle": -64.8 }, - { - "time": 0.7333, - "angle": -82.56, - "curve": [ 0.557, 0.18, 1, 1 ] - }, - { "time": 1, "angle": -3.39 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.6333, "x": 2.18, "y": 0.21 }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": -4.16 }, - { - "time": 0.1333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.3666, "x": 0, "y": 6.78 }, - { "time": 0.5, "x": 0, "y": -6.13 }, - { - "time": 0.6333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.8666, "x": 0, "y": 6.78 }, - { "time": 1, "x": 0, "y": -4.16 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 3.6 }, - { "time": 0.1333, "angle": 17.49 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { "time": 0.5, "angle": 5.17 }, - { "time": 0.6333, "angle": 18.36 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 3.6, - "curve": [ 0, 0, 0.704, 1.17 ] - }, - { "time": 0.1333, "angle": -0.2 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { - "time": 0.5, - "angle": 5.17, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.6666, "angle": 1.1 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - } - }, - "slots": { - "eyes": { - "attachment": [ - { "time": 0.7, "name": "eyes closed" }, - { "time": 0.8, "name": null } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/spineboy.atlas b/examples/example 12 - Spine/data/spineboy.atlas new file mode 100644 index 0000000..cf32cd0 --- /dev/null +++ b/examples/example 12 - Spine/data/spineboy.atlas @@ -0,0 +1,165 @@ +spineboy.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +eyes-closed + rotate: false + xy: 73, 509 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +eyes + rotate: false + xy: 75, 464 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 121, 132 + orig: 121, 132 + offset: 0, 0 + index: -1 +left-ankle + rotate: false + xy: 96, 351 + size: 25, 32 + orig: 25, 32 + offset: 0, 0 + index: -1 +left-arm + rotate: false + xy: 39, 423 + size: 35, 29 + orig: 35, 29 + offset: 0, 0 + index: -1 +left-foot + rotate: false + xy: 2, 262 + size: 65, 30 + orig: 65, 30 + offset: 0, 0 + index: -1 +left-hand + rotate: false + xy: 2, 423 + size: 35, 38 + orig: 35, 38 + offset: 0, 0 + index: -1 +left-lower-leg + rotate: false + xy: 72, 202 + size: 49, 64 + orig: 49, 64 + offset: 0, 0 + index: -1 +left-pant-bottom + rotate: false + xy: 2, 363 + size: 44, 22 + orig: 44, 22 + offset: 0, 0 + index: -1 +left-shoulder + rotate: false + xy: 39, 454 + size: 34, 53 + orig: 34, 53 + offset: 0, 0 + index: -1 +left-upper-leg + rotate: false + xy: 2, 464 + size: 33, 67 + orig: 33, 67 + offset: 0, 0 + index: -1 +neck + rotate: false + xy: 37, 509 + size: 34, 28 + orig: 34, 28 + offset: 0, 0 + index: -1 +pelvis + rotate: false + xy: 2, 294 + size: 63, 47 + orig: 63, 47 + offset: 0, 0 + index: -1 +right-ankle + rotate: false + xy: 96, 385 + size: 25, 30 + orig: 25, 30 + offset: 0, 0 + index: -1 +right-arm + rotate: false + xy: 96, 417 + size: 21, 45 + orig: 21, 45 + offset: 0, 0 + index: -1 +right-foot-idle + rotate: false + xy: 69, 268 + size: 53, 28 + orig: 53, 28 + offset: 0, 0 + index: -1 +right-foot + rotate: false + xy: 2, 230 + size: 67, 30 + orig: 67, 30 + offset: 0, 0 + index: -1 +right-hand + rotate: false + xy: 2, 387 + size: 32, 32 + orig: 32, 32 + offset: 0, 0 + index: -1 +right-lower-leg + rotate: false + xy: 72, 136 + size: 51, 64 + orig: 51, 64 + offset: 0, 0 + index: -1 +right-pant-bottom + rotate: false + xy: 2, 343 + size: 46, 18 + orig: 46, 18 + offset: 0, 0 + index: -1 +right-shoulder + rotate: false + xy: 67, 298 + size: 52, 51 + orig: 52, 51 + offset: 0, 0 + index: -1 +right-upper-leg + rotate: false + xy: 50, 351 + size: 44, 70 + orig: 44, 70 + offset: 0, 0 + index: -1 +torso + rotate: false + xy: 2, 136 + size: 68, 92 + orig: 68, 92 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/spineboy.json b/examples/example 12 - Spine/data/spineboy.json index 54f9d82..17c5095 100755 --- a/examples/example 12 - Spine/data/spineboy.json +++ b/examples/example 12 - Spine/data/spineboy.json @@ -1,196 +1,787 @@ -{"frames": { - -"head": { - "frame": {"x":1,"y":122,"w":121,"h":132}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":121,"h":132}, - "sourceSize": {"w":121,"h":132} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, + { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, + { "name": "left lower leg", "parent": "left upper leg", "length": 56.45, "x": 51.78, "y": 3.46, "rotation": -16.65 }, + { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 64.02, "y": -8.67, "rotation": 102.43 }, + { "name": "right upper leg", "parent": "hip", "length": 45.76, "x": -18.27, "rotation": -101.13 }, + { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 50.21, "y": 0.6, "rotation": -10.7 }, + { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, + { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 94.95 }, + { "name": "neck", "parent": "torso", "length": 18.38, "x": 83.64, "y": -1.78, "rotation": 0.9 }, + { "name": "head", "parent": "neck", "length": 68.28, "x": 19.09, "y": 6.97, "rotation": -8.94 }, + { "name": "right shoulder", "parent": "torso", "length": 49.95, "x": 81.9, "y": 6.79, "rotation": 130.6 }, + { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 49.95, "y": -0.12, "rotation": 40.12 }, + { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 }, + { "name": "left shoulder", "parent": "torso", "length": 44.19, "x": 78.96, "y": -15.75, "rotation": -156.96 }, + { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 44.19, "y": -0.01, "rotation": 28.16 }, + { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, + { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 } +], +"slots": [ + { "name": "left shoulder", "bone": "left shoulder", "attachment": "left-shoulder" }, + { "name": "left arm", "bone": "left arm", "attachment": "left-arm" }, + { "name": "left hand", "bone": "left hand", "attachment": "left-hand" }, + { "name": "left foot", "bone": "left foot", "attachment": "left-foot" }, + { "name": "left lower leg", "bone": "left lower leg", "attachment": "left-lower-leg" }, + { "name": "left upper leg", "bone": "left upper leg", "attachment": "left-upper-leg" }, + { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, + { "name": "right foot", "bone": "right foot", "attachment": "right-foot" }, + { "name": "right lower leg", "bone": "right lower leg", "attachment": "right-lower-leg" }, + { "name": "right upper leg", "bone": "right upper leg", "attachment": "right-upper-leg" }, + { "name": "torso", "bone": "torso", "attachment": "torso" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "eyes", "bone": "head", "attachment": "eyes" }, + { "name": "right shoulder", "bone": "right shoulder", "attachment": "right-shoulder" }, + { "name": "right arm", "bone": "right arm", "attachment": "right-arm" }, + { "name": "right hand", "bone": "right hand", "attachment": "right-hand" } +], +"skins": { + "default": { + "left shoulder": { + "left-shoulder": { "x": 23.74, "y": 0.11, "rotation": 62.01, "width": 34, "height": 53 } + }, + "left arm": { + "left-arm": { "x": 15.11, "y": -0.44, "rotation": 33.84, "width": 35, "height": 29 } + }, + "left hand": { + "left-hand": { "x": 0.75, "y": 1.86, "rotation": 31.14, "width": 35, "height": 38 } + }, + "left foot": { + "left-foot": { "x": 24.35, "y": 8.88, "rotation": 3.32, "width": 65, "height": 30 } + }, + "left lower leg": { + "left-lower-leg": { "x": 24.55, "y": -1.92, "rotation": 105.75, "width": 49, "height": 64 } + }, + "left upper leg": { + "left-upper-leg": { "x": 26.12, "y": -1.85, "rotation": 89.09, "width": 33, "height": 67 } + }, + "pelvis": { + "pelvis": { "x": -4.83, "y": 10.62, "width": 63, "height": 47 } + }, + "right foot": { + "right-foot": { "x": 19.02, "y": 8.47, "rotation": 1.52, "width": 67, "height": 30 } + }, + "right lower leg": { + "right-lower-leg": { "x": 23.28, "y": -2.59, "rotation": 111.83, "width": 51, "height": 64 } + }, + "right upper leg": { + "right-upper-leg": { "x": 23.03, "y": 0.25, "rotation": 101.13, "width": 44, "height": 70 } + }, + "torso": { + "torso": { "x": 44.57, "y": -7.08, "rotation": -94.95, "width": 68, "height": 92 } + }, + "neck": { + "neck": { "x": 9.42, "y": -3.66, "rotation": -100.15, "width": 34, "height": 28 } + }, + "head": { + "head": { "x": 53.94, "y": -5.75, "rotation": -86.9, "width": 121, "height": 132 } + }, + "eyes": { + "eyes": { "x": 28.94, "y": -32.92, "rotation": -86.9, "width": 34, "height": 27 }, + "eyes-closed": { "x": 28.77, "y": -32.86, "rotation": -86.9, "width": 34, "height": 27 } + }, + "right shoulder": { + "right-shoulder": { "x": 25.86, "y": 0.03, "rotation": 134.44, "width": 52, "height": 51 } + }, + "right arm": { + "right-arm": { "x": 18.34, "y": -2.64, "rotation": 94.32, "width": 21, "height": 45 } + }, + "right hand": { + "right-hand": { "x": 6.82, "y": 1.25, "rotation": 91.96, "width": 32, "height": 32 } + } + } }, -"torso": -{ - "frame": {"x":1,"y":28,"w":68,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":92}, - "sourceSize": {"w":68,"h":92} -}, -"left-pant-bottom": -{ - "frame": {"x":1,"y":4,"w":44,"h":22}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":44,"h":22}, - "sourceSize": {"w":44,"h":22} -}, -"right-pant-bottom": -{ - "frame": {"x":47,"y":8,"w":46,"h":18}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":46,"h":18}, - "sourceSize": {"w":46,"h":18} -}, -"right-upper-leg": -{ - "frame": {"x":71,"y":50,"w":44,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":44,"h":70}, - "sourceSize": {"w":44,"h":70} -}, -"pelvis": -{ - "frame": {"x":95,"y":1,"w":63,"h":47}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":47}, - "sourceSize": {"w":63,"h":47} -}, -"left-upper-leg": -{ - "frame": {"x":117,"y":53,"w":33,"h":67}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":67}, - "sourceSize": {"w":33,"h":67} -}, -"right-foot": -{ - "frame": {"x":160,"y":224,"w":67,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":67,"h":30}, - "sourceSize": {"w":67,"h":30} -}, -"left-shoulder": -{ - "frame": {"x":124,"y":201,"w":34,"h":53}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":53}, - "sourceSize": {"w":34,"h":53} -}, -"left-ankle": -{ - "frame": {"x":229,"y":222,"w":25,"h":32}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":25,"h":32}, - "sourceSize": {"w":25,"h":32} -}, -"left-foot": -{ - "frame": {"x":160,"y":192,"w":65,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":30}, - "sourceSize": {"w":65,"h":30} -}, -"neck": -{ - "frame": {"x":124,"y":171,"w":34,"h":28}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":28}, - "sourceSize": {"w":34,"h":28} -}, -"right-arm": -{ - "frame": {"x":124,"y":124,"w":21,"h":45}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":21,"h":45}, - "sourceSize": {"w":21,"h":45} -}, -"right-ankle": -{ - "frame": {"x":227,"y":190,"w":25,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":25,"h":30}, - "sourceSize": {"w":25,"h":30} -}, -"left-hand": -{ - "frame": {"x":147,"y":131,"w":35,"h":38}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":38}, - "sourceSize": {"w":35,"h":38} -}, -"left-arm": -{ - "frame": {"x":184,"y":161,"w":35,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":29}, - "sourceSize": {"w":35,"h":29} -}, -"eyes-closed": -{ - "frame": {"x":221,"y":161,"w":34,"h":27}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, - "sourceSize": {"w":34,"h":27} -}, -"right-lower-leg": -{ - "frame": {"x":152,"y":65,"w":51,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":51,"h":64}, - "sourceSize": {"w":51,"h":64} -}, -"right-foot-idle": -{ - "frame": {"x":184,"y":131,"w":53,"h":28}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":53,"h":28}, - "sourceSize": {"w":53,"h":28} -}, -"left-lower-leg": -{ - "frame": {"x":205,"y":65,"w":49,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":49,"h":64}, - "sourceSize": {"w":49,"h":64} -}, -"right-shoulder": -{ - "frame": {"x":160,"y":12,"w":52,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":51}, - "sourceSize": {"w":52,"h":51} -}, -"eyes": -{ - "frame": {"x":214,"y":36,"w":34,"h":27}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, - "sourceSize": {"w":34,"h":27} -}, -"right-hand": -{ - "frame": {"x":214,"y":2,"w":32,"h":32}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":32,"h":32}, - "sourceSize": {"w":32,"h":32} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "spineboy.png", - "format": "RGBA8888", - "size": {"w":256,"h":256}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:93f9a66503bccd3c31cdba2ae4b91285$" +"animations": { + "walk": { + "bones": { + "left upper leg": { + "rotate": [ + { "time": 0, "angle": -26.55 }, + { "time": 0.1333, "angle": -8.78 }, + { "time": 0.2666, "angle": 9.51 }, + { "time": 0.4, "angle": 30.74 }, + { "time": 0.5333, "angle": 25.33 }, + { "time": 0.6666, "angle": 26.11 }, + { "time": 0.8, "angle": -7.7 }, + { "time": 0.9333, "angle": -21.19 }, + { "time": 1.0666, "angle": -26.55 } + ], + "translate": [ + { "time": 0, "x": -3, "y": -2.25 }, + { "time": 0.4, "x": -2.18, "y": -2.25 }, + { "time": 1.0666, "x": -3, "y": -2.25 } + ] + }, + "right upper leg": { + "rotate": [ + { "time": 0, "angle": 42.45 }, + { "time": 0.1333, "angle": 52.1 }, + { "time": 0.2666, "angle": 5.96 }, + { "time": 0.5333, "angle": -16.93 }, + { "time": 0.6666, "angle": 1.89 }, + { + "time": 0.8, + "angle": 28.06, + "curve": [ 0.462, 0.11, 1, 1 ] + }, + { + "time": 0.9333, + "angle": 58.68, + "curve": [ 0.5, 0.02, 1, 1 ] + }, + { "time": 1.0666, "angle": 42.45 } + ], + "translate": [ + { "time": 0, "x": 8.11, "y": -2.36 }, + { "time": 0.1333, "x": 10.03, "y": -2.56 }, + { "time": 0.4, "x": 2.76, "y": -2.97 }, + { "time": 0.5333, "x": 2.76, "y": -2.81 }, + { "time": 0.9333, "x": 8.67, "y": -2.54 }, + { "time": 1.0666, "x": 8.11, "y": -2.36 } + ] + }, + "left lower leg": { + "rotate": [ + { "time": 0, "angle": -10.21 }, + { "time": 0.1333, "angle": -55.64 }, + { "time": 0.2666, "angle": -68.12 }, + { "time": 0.5333, "angle": 5.11 }, + { "time": 0.6666, "angle": -28.29 }, + { "time": 0.8, "angle": 4.08 }, + { "time": 0.9333, "angle": 3.53 }, + { "time": 1.0666, "angle": -10.21 } + ] + }, + "left foot": { + "rotate": [ + { "time": 0, "angle": -3.69 }, + { "time": 0.1333, "angle": -10.42 }, + { "time": 0.2666, "angle": -17.14 }, + { "time": 0.4, "angle": -2.83 }, + { "time": 0.5333, "angle": -3.87 }, + { "time": 0.6666, "angle": 2.78 }, + { "time": 0.8, "angle": 1.68 }, + { "time": 0.9333, "angle": -8.54 }, + { "time": 1.0666, "angle": -3.69 } + ] + }, + "right shoulder": { + "rotate": [ + { + "time": 0, + "angle": 20.89, + "curve": [ 0.264, 0, 0.75, 1 ] + }, + { + "time": 0.1333, + "angle": 3.72, + "curve": [ 0.272, 0, 0.841, 1 ] + }, + { "time": 0.6666, "angle": -278.28 }, + { "time": 1.0666, "angle": 20.89 } + ], + "translate": [ + { "time": 0, "x": -7.84, "y": 7.19 }, + { "time": 0.1333, "x": -6.36, "y": 6.42 }, + { "time": 0.6666, "x": -11.07, "y": 5.25 }, + { "time": 1.0666, "x": -7.84, "y": 7.19 } + ] + }, + "right arm": { + "rotate": [ + { + "time": 0, + "angle": -4.02, + "curve": [ 0.267, 0, 0.804, 0.99 ] + }, + { + "time": 0.1333, + "angle": -13.99, + "curve": [ 0.341, 0, 1, 1 ] + }, + { + "time": 0.6666, + "angle": 36.54, + "curve": [ 0.307, 0, 0.787, 0.99 ] + }, + { "time": 1.0666, "angle": -4.02 } + ] + }, + "right hand": { + "rotate": [ + { "time": 0, "angle": 22.92 }, + { "time": 0.4, "angle": -8.97 }, + { "time": 0.6666, "angle": 0.51 }, + { "time": 1.0666, "angle": 22.92 } + ] + }, + "left shoulder": { + "rotate": [ + { "time": 0, "angle": -1.47 }, + { "time": 0.1333, "angle": 13.6 }, + { "time": 0.6666, "angle": 280.74 }, + { "time": 1.0666, "angle": -1.47 } + ], + "translate": [ + { "time": 0, "x": -1.76, "y": 0.56 }, + { "time": 0.6666, "x": -2.47, "y": 8.14 }, + { "time": 1.0666, "x": -1.76, "y": 0.56 } + ] + }, + "left hand": { + "rotate": [ + { + "time": 0, + "angle": 11.58, + "curve": [ 0.169, 0.37, 0.632, 1.55 ] + }, + { + "time": 0.1333, + "angle": 28.13, + "curve": [ 0.692, 0, 0.692, 0.99 ] + }, + { + "time": 0.6666, + "angle": -27.42, + "curve": [ 0.117, 0.41, 0.738, 1.76 ] + }, + { "time": 0.8, "angle": -36.32 }, + { "time": 1.0666, "angle": 11.58 } + ] + }, + "left arm": { + "rotate": [ + { "time": 0, "angle": -8.27 }, + { "time": 0.1333, "angle": 18.43 }, + { "time": 0.6666, "angle": 0.88 }, + { "time": 1.0666, "angle": -8.27 } + ] + }, + "torso": { + "rotate": [ + { "time": 0, "angle": -10.28 }, + { + "time": 0.1333, + "angle": -15.38, + "curve": [ 0.545, 0, 1, 1 ] + }, + { + "time": 0.4, + "angle": -9.78, + "curve": [ 0.58, 0.17, 1, 1 ] + }, + { "time": 0.6666, "angle": -15.75 }, + { "time": 0.9333, "angle": -7.06 }, + { "time": 1.0666, "angle": -10.28 } + ], + "translate": [ + { "time": 0, "x": -3.67, "y": 1.68 }, + { "time": 0.1333, "x": -3.67, "y": 0.68 }, + { "time": 0.4, "x": -3.67, "y": 1.97 }, + { "time": 0.6666, "x": -3.67, "y": -0.14 }, + { "time": 1.0666, "x": -3.67, "y": 1.68 } + ] + }, + "right foot": { + "rotate": [ + { "time": 0, "angle": -5.25 }, + { "time": 0.2666, "angle": -4.08 }, + { "time": 0.4, "angle": -6.45 }, + { "time": 0.5333, "angle": -5.39 }, + { "time": 0.8, "angle": -11.68 }, + { "time": 0.9333, "angle": 0.46 }, + { "time": 1.0666, "angle": -5.25 } + ] + }, + "right lower leg": { + "rotate": [ + { "time": 0, "angle": -3.39 }, + { "time": 0.1333, "angle": -45.53 }, + { "time": 0.2666, "angle": -2.59 }, + { "time": 0.5333, "angle": -19.53 }, + { "time": 0.6666, "angle": -64.8 }, + { + "time": 0.8, + "angle": -82.56, + "curve": [ 0.557, 0.18, 1, 1 ] + }, + { "time": 1.0666, "angle": -3.39 } + ] + }, + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 1.0666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { + "time": 0.1333, + "x": 0, + "y": -7.61, + "curve": [ 0.272, 0.86, 1, 1 ] + }, + { "time": 0.4, "x": 0, "y": 8.7 }, + { "time": 0.5333, "x": 0, "y": -0.41 }, + { + "time": 0.6666, + "x": 0, + "y": -7.05, + "curve": [ 0.235, 0.89, 1, 1 ] + }, + { "time": 0.8, "x": 0, "y": 2.92 }, + { "time": 0.9333, "x": 0, "y": 6.78 }, + { "time": 1.0666, "x": 0, "y": 0 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 3.6 }, + { "time": 0.1333, "angle": 17.49 }, + { "time": 0.2666, "angle": 6.1 }, + { "time": 0.4, "angle": 3.45 }, + { "time": 0.5333, "angle": 5.17 }, + { "time": 0.6666, "angle": 18.36 }, + { "time": 0.8, "angle": 6.09 }, + { "time": 0.9333, "angle": 2.28 }, + { "time": 1.0666, "angle": 3.6 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 3.6, + "curve": [ 0, 0, 0.704, 1.61 ] + }, + { "time": 0.1666, "angle": -0.2 }, + { "time": 0.2666, "angle": 6.1 }, + { "time": 0.4, "angle": 3.45 }, + { + "time": 0.5333, + "angle": 5.17, + "curve": [ 0, 0, 0.704, 1.61 ] + }, + { "time": 0.7, "angle": 1.1 }, + { "time": 0.8, "angle": 6.09 }, + { "time": 0.9333, "angle": 2.28 }, + { "time": 1.0666, "angle": 3.6 } + ] + } + } + }, + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.9333, "angle": 0, "curve": "stepped" }, + { "time": 1.3666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": -11.57, "y": -3 }, + { "time": 0.2333, "x": -16.2, "y": -19.43 }, + { + "time": 0.3333, + "x": 7.66, + "y": -8.48, + "curve": [ 0.057, 0.06, 0.712, 1 ] + }, + { "time": 0.3666, "x": 15.38, "y": 5.01 }, + { "time": 0.4666, "x": -7.84, "y": 57.22 }, + { + "time": 0.6, + "x": -10.81, + "y": 96.34, + "curve": [ 0.241, 0, 1, 1 ] + }, + { "time": 0.7333, "x": -7.01, "y": 54.7 }, + { "time": 0.8, "x": -10.58, "y": 32.2 }, + { "time": 0.9333, "x": -31.99, "y": 0.45 }, + { "time": 1.0666, "x": -12.48, "y": -29.47 }, + { "time": 1.3666, "x": -11.57, "y": -3 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left upper leg": { + "rotate": [ + { "time": 0, "angle": 17.13 }, + { "time": 0.2333, "angle": 44.35 }, + { "time": 0.3333, "angle": 16.46 }, + { "time": 0.4, "angle": -9.88 }, + { "time": 0.4666, "angle": -11.42 }, + { "time": 0.5666, "angle": 23.46 }, + { "time": 0.7666, "angle": 71.82 }, + { "time": 0.9333, "angle": 65.53 }, + { "time": 1.0666, "angle": 51.01 }, + { "time": 1.3666, "angle": 17.13 } + ], + "translate": [ + { "time": 0, "x": -3, "y": -2.25, "curve": "stepped" }, + { "time": 0.9333, "x": -3, "y": -2.25, "curve": "stepped" }, + { "time": 1.3666, "x": -3, "y": -2.25 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left lower leg": { + "rotate": [ + { "time": 0, "angle": -16.25 }, + { "time": 0.2333, "angle": -52.21 }, + { "time": 0.4, "angle": 15.04 }, + { "time": 0.4666, "angle": -8.95 }, + { "time": 0.5666, "angle": -39.53 }, + { "time": 0.7666, "angle": -27.27 }, + { "time": 0.9333, "angle": -3.52 }, + { "time": 1.0666, "angle": -61.92 }, + { "time": 1.3666, "angle": -16.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left foot": { + "rotate": [ + { "time": 0, "angle": 0.33 }, + { "time": 0.2333, "angle": 6.2 }, + { "time": 0.3333, "angle": 14.73 }, + { "time": 0.4, "angle": -15.54 }, + { "time": 0.4333, "angle": -21.2 }, + { "time": 0.5666, "angle": -7.55 }, + { "time": 0.7666, "angle": -0.67 }, + { "time": 0.9333, "angle": -0.58 }, + { "time": 1.0666, "angle": 14.64 }, + { "time": 1.3666, "angle": 0.33 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right upper leg": { + "rotate": [ + { "time": 0, "angle": 25.97 }, + { "time": 0.2333, "angle": 46.43 }, + { "time": 0.3333, "angle": 22.61 }, + { "time": 0.4, "angle": 2.13 }, + { + "time": 0.4666, + "angle": 0.04, + "curve": [ 0, 0, 0.637, 0.98 ] + }, + { "time": 0.6, "angle": 65.55 }, + { "time": 0.7666, "angle": 64.93 }, + { "time": 0.9333, "angle": 41.08 }, + { "time": 1.0666, "angle": 66.25 }, + { "time": 1.3666, "angle": 25.97 } + ], + "translate": [ + { "time": 0, "x": 5.74, "y": 0.61 }, + { "time": 0.2333, "x": 4.79, "y": 1.79 }, + { "time": 0.3333, "x": 6.05, "y": -4.55 }, + { "time": 0.9333, "x": 4.79, "y": 1.79, "curve": "stepped" }, + { "time": 1.0666, "x": 4.79, "y": 1.79 }, + { "time": 1.3666, "x": 5.74, "y": 0.61 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right lower leg": { + "rotate": [ + { "time": 0, "angle": -27.46 }, + { "time": 0.2333, "angle": -64.03 }, + { "time": 0.4, "angle": -48.36 }, + { "time": 0.5666, "angle": -76.86 }, + { "time": 0.7666, "angle": -26.89 }, + { "time": 0.9, "angle": -18.97 }, + { "time": 0.9333, "angle": -14.18 }, + { "time": 1.0666, "angle": -80.45 }, + { "time": 1.3666, "angle": -27.46 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right foot": { + "rotate": [ + { "time": 0, "angle": 1.08 }, + { "time": 0.2333, "angle": 16.02 }, + { "time": 0.3, "angle": 12.94 }, + { "time": 0.3333, "angle": 15.16 }, + { "time": 0.4, "angle": -14.7 }, + { "time": 0.4333, "angle": -12.85 }, + { "time": 0.4666, "angle": -19.18 }, + { "time": 0.5666, "angle": -15.82 }, + { "time": 0.6, "angle": -3.59 }, + { "time": 0.7666, "angle": -3.56 }, + { "time": 0.9333, "angle": 1.86 }, + { "time": 1.0666, "angle": 16.02 }, + { "time": 1.3666, "angle": 1.08 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "torso": { + "rotate": [ + { "time": 0, "angle": -13.35 }, + { "time": 0.2333, "angle": -48.95 }, + { "time": 0.4333, "angle": -35.77 }, + { "time": 0.6, "angle": -4.59 }, + { "time": 0.7666, "angle": 14.61 }, + { "time": 0.9333, "angle": 15.74 }, + { "time": 1.0666, "angle": -32.44 }, + { "time": 1.3666, "angle": -13.35 } + ], + "translate": [ + { "time": 0, "x": -3.67, "y": 1.68, "curve": "stepped" }, + { "time": 0.9333, "x": -3.67, "y": 1.68, "curve": "stepped" }, + { "time": 1.3666, "x": -3.67, "y": 1.68 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 12.78 }, + { "time": 0.2333, "angle": 16.46 }, + { "time": 0.4, "angle": 26.49 }, + { "time": 0.6, "angle": 15.51 }, + { "time": 0.7666, "angle": 1.34 }, + { "time": 0.9333, "angle": 2.35 }, + { "time": 1.0666, "angle": 6.08 }, + { "time": 1.3, "angle": 21.23 }, + { "time": 1.3666, "angle": 12.78 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 5.19 }, + { "time": 0.2333, "angle": 20.27 }, + { "time": 0.4, "angle": 15.27 }, + { "time": 0.6, "angle": -24.69 }, + { "time": 0.7666, "angle": -11.02 }, + { "time": 0.9333, "angle": -24.38 }, + { "time": 1.0666, "angle": 11.99 }, + { "time": 1.3, "angle": 4.86 }, + { "time": 1.3666, "angle": 5.19 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left shoulder": { + "rotate": [ + { + "time": 0, + "angle": 0.05, + "curve": [ 0, 0, 0.62, 1 ] + }, + { + "time": 0.2333, + "angle": 279.66, + "curve": [ 0.218, 0.67, 0.66, 0.99 ] + }, + { + "time": 0.5, + "angle": 62.27, + "curve": [ 0.462, 0, 0.764, 0.58 ] + }, + { "time": 0.9333, "angle": 28.91 }, + { "time": 1.0666, "angle": -8.62 }, + { "time": 1.1666, "angle": -18.43 }, + { "time": 1.3666, "angle": 0.05 } + ], + "translate": [ + { "time": 0, "x": -1.76, "y": 0.56, "curve": "stepped" }, + { "time": 0.9333, "x": -1.76, "y": 0.56, "curve": "stepped" }, + { "time": 1.3666, "x": -1.76, "y": 0.56 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left hand": { + "rotate": [ + { "time": 0, "angle": 11.58, "curve": "stepped" }, + { "time": 0.9333, "angle": 11.58, "curve": "stepped" }, + { "time": 1.3666, "angle": 11.58 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left arm": { + "rotate": [ + { "time": 0, "angle": 0.51 }, + { "time": 0.4333, "angle": 12.82 }, + { "time": 0.6, "angle": 47.55 }, + { "time": 0.9333, "angle": 12.82 }, + { "time": 1.1666, "angle": -6.5 }, + { "time": 1.3666, "angle": 0.51 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right shoulder": { + "rotate": [ + { + "time": 0, + "angle": 43.82, + "curve": [ 0, 0, 0.62, 1 ] + }, + { + "time": 0.2333, + "angle": -8.74, + "curve": [ 0.304, 0.58, 0.709, 0.97 ] + }, + { + "time": 0.5333, + "angle": -208.02, + "curve": [ 0.462, 0, 0.764, 0.58 ] + }, + { "time": 0.9333, "angle": -246.72 }, + { "time": 1.0666, "angle": -307.13 }, + { "time": 1.1666, "angle": 37.15 }, + { "time": 1.3666, "angle": 43.82 } + ], + "translate": [ + { "time": 0, "x": -7.84, "y": 7.19, "curve": "stepped" }, + { "time": 0.9333, "x": -7.84, "y": 7.19, "curve": "stepped" }, + { "time": 1.3666, "x": -7.84, "y": 7.19 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right arm": { + "rotate": [ + { "time": 0, "angle": -4.02 }, + { "time": 0.6, "angle": 17.5 }, + { "time": 0.9333, "angle": -4.02 }, + { "time": 1.1666, "angle": -16.72 }, + { "time": 1.3666, "angle": -4.02 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right hand": { + "rotate": [ + { "time": 0, "angle": 22.92, "curve": "stepped" }, + { "time": 0.9333, "angle": 22.92, "curve": "stepped" }, + { "time": 1.3666, "angle": 22.92 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "root": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.4333, "angle": -14.52 }, + { "time": 0.8, "angle": 9.86 }, + { "time": 1.3666, "angle": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/spineboy.png b/examples/example 12 - Spine/data/spineboy.png index b8b493d..ab85747 100755 --- a/examples/example 12 - Spine/data/spineboy.png +++ b/examples/example 12 - Spine/data/spineboy.png Binary files differ diff --git a/examples/example 12 - Spine/data/spineboySpineData.json b/examples/example 12 - Spine/data/spineboySpineData.json deleted file mode 100755 index 17c5095..0000000 --- a/examples/example 12 - Spine/data/spineboySpineData.json +++ /dev/null @@ -1,787 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, - { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, - { "name": "left lower leg", "parent": "left upper leg", "length": 56.45, "x": 51.78, "y": 3.46, "rotation": -16.65 }, - { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 64.02, "y": -8.67, "rotation": 102.43 }, - { "name": "right upper leg", "parent": "hip", "length": 45.76, "x": -18.27, "rotation": -101.13 }, - { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 50.21, "y": 0.6, "rotation": -10.7 }, - { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, - { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 94.95 }, - { "name": "neck", "parent": "torso", "length": 18.38, "x": 83.64, "y": -1.78, "rotation": 0.9 }, - { "name": "head", "parent": "neck", "length": 68.28, "x": 19.09, "y": 6.97, "rotation": -8.94 }, - { "name": "right shoulder", "parent": "torso", "length": 49.95, "x": 81.9, "y": 6.79, "rotation": 130.6 }, - { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 49.95, "y": -0.12, "rotation": 40.12 }, - { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 }, - { "name": "left shoulder", "parent": "torso", "length": 44.19, "x": 78.96, "y": -15.75, "rotation": -156.96 }, - { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 44.19, "y": -0.01, "rotation": 28.16 }, - { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, - { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 } -], -"slots": [ - { "name": "left shoulder", "bone": "left shoulder", "attachment": "left-shoulder" }, - { "name": "left arm", "bone": "left arm", "attachment": "left-arm" }, - { "name": "left hand", "bone": "left hand", "attachment": "left-hand" }, - { "name": "left foot", "bone": "left foot", "attachment": "left-foot" }, - { "name": "left lower leg", "bone": "left lower leg", "attachment": "left-lower-leg" }, - { "name": "left upper leg", "bone": "left upper leg", "attachment": "left-upper-leg" }, - { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, - { "name": "right foot", "bone": "right foot", "attachment": "right-foot" }, - { "name": "right lower leg", "bone": "right lower leg", "attachment": "right-lower-leg" }, - { "name": "right upper leg", "bone": "right upper leg", "attachment": "right-upper-leg" }, - { "name": "torso", "bone": "torso", "attachment": "torso" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "eyes", "bone": "head", "attachment": "eyes" }, - { "name": "right shoulder", "bone": "right shoulder", "attachment": "right-shoulder" }, - { "name": "right arm", "bone": "right arm", "attachment": "right-arm" }, - { "name": "right hand", "bone": "right hand", "attachment": "right-hand" } -], -"skins": { - "default": { - "left shoulder": { - "left-shoulder": { "x": 23.74, "y": 0.11, "rotation": 62.01, "width": 34, "height": 53 } - }, - "left arm": { - "left-arm": { "x": 15.11, "y": -0.44, "rotation": 33.84, "width": 35, "height": 29 } - }, - "left hand": { - "left-hand": { "x": 0.75, "y": 1.86, "rotation": 31.14, "width": 35, "height": 38 } - }, - "left foot": { - "left-foot": { "x": 24.35, "y": 8.88, "rotation": 3.32, "width": 65, "height": 30 } - }, - "left lower leg": { - "left-lower-leg": { "x": 24.55, "y": -1.92, "rotation": 105.75, "width": 49, "height": 64 } - }, - "left upper leg": { - "left-upper-leg": { "x": 26.12, "y": -1.85, "rotation": 89.09, "width": 33, "height": 67 } - }, - "pelvis": { - "pelvis": { "x": -4.83, "y": 10.62, "width": 63, "height": 47 } - }, - "right foot": { - "right-foot": { "x": 19.02, "y": 8.47, "rotation": 1.52, "width": 67, "height": 30 } - }, - "right lower leg": { - "right-lower-leg": { "x": 23.28, "y": -2.59, "rotation": 111.83, "width": 51, "height": 64 } - }, - "right upper leg": { - "right-upper-leg": { "x": 23.03, "y": 0.25, "rotation": 101.13, "width": 44, "height": 70 } - }, - "torso": { - "torso": { "x": 44.57, "y": -7.08, "rotation": -94.95, "width": 68, "height": 92 } - }, - "neck": { - "neck": { "x": 9.42, "y": -3.66, "rotation": -100.15, "width": 34, "height": 28 } - }, - "head": { - "head": { "x": 53.94, "y": -5.75, "rotation": -86.9, "width": 121, "height": 132 } - }, - "eyes": { - "eyes": { "x": 28.94, "y": -32.92, "rotation": -86.9, "width": 34, "height": 27 }, - "eyes-closed": { "x": 28.77, "y": -32.86, "rotation": -86.9, "width": 34, "height": 27 } - }, - "right shoulder": { - "right-shoulder": { "x": 25.86, "y": 0.03, "rotation": 134.44, "width": 52, "height": 51 } - }, - "right arm": { - "right-arm": { "x": 18.34, "y": -2.64, "rotation": 94.32, "width": 21, "height": 45 } - }, - "right hand": { - "right-hand": { "x": 6.82, "y": 1.25, "rotation": 91.96, "width": 32, "height": 32 } - } - } -}, -"animations": { - "walk": { - "bones": { - "left upper leg": { - "rotate": [ - { "time": 0, "angle": -26.55 }, - { "time": 0.1333, "angle": -8.78 }, - { "time": 0.2666, "angle": 9.51 }, - { "time": 0.4, "angle": 30.74 }, - { "time": 0.5333, "angle": 25.33 }, - { "time": 0.6666, "angle": 26.11 }, - { "time": 0.8, "angle": -7.7 }, - { "time": 0.9333, "angle": -21.19 }, - { "time": 1.0666, "angle": -26.55 } - ], - "translate": [ - { "time": 0, "x": -3, "y": -2.25 }, - { "time": 0.4, "x": -2.18, "y": -2.25 }, - { "time": 1.0666, "x": -3, "y": -2.25 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 42.45 }, - { "time": 0.1333, "angle": 52.1 }, - { "time": 0.2666, "angle": 5.96 }, - { "time": 0.5333, "angle": -16.93 }, - { "time": 0.6666, "angle": 1.89 }, - { - "time": 0.8, - "angle": 28.06, - "curve": [ 0.462, 0.11, 1, 1 ] - }, - { - "time": 0.9333, - "angle": 58.68, - "curve": [ 0.5, 0.02, 1, 1 ] - }, - { "time": 1.0666, "angle": 42.45 } - ], - "translate": [ - { "time": 0, "x": 8.11, "y": -2.36 }, - { "time": 0.1333, "x": 10.03, "y": -2.56 }, - { "time": 0.4, "x": 2.76, "y": -2.97 }, - { "time": 0.5333, "x": 2.76, "y": -2.81 }, - { "time": 0.9333, "x": 8.67, "y": -2.54 }, - { "time": 1.0666, "x": 8.11, "y": -2.36 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -10.21 }, - { "time": 0.1333, "angle": -55.64 }, - { "time": 0.2666, "angle": -68.12 }, - { "time": 0.5333, "angle": 5.11 }, - { "time": 0.6666, "angle": -28.29 }, - { "time": 0.8, "angle": 4.08 }, - { "time": 0.9333, "angle": 3.53 }, - { "time": 1.0666, "angle": -10.21 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": -3.69 }, - { "time": 0.1333, "angle": -10.42 }, - { "time": 0.2666, "angle": -17.14 }, - { "time": 0.4, "angle": -2.83 }, - { "time": 0.5333, "angle": -3.87 }, - { "time": 0.6666, "angle": 2.78 }, - { "time": 0.8, "angle": 1.68 }, - { "time": 0.9333, "angle": -8.54 }, - { "time": 1.0666, "angle": -3.69 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 20.89, - "curve": [ 0.264, 0, 0.75, 1 ] - }, - { - "time": 0.1333, - "angle": 3.72, - "curve": [ 0.272, 0, 0.841, 1 ] - }, - { "time": 0.6666, "angle": -278.28 }, - { "time": 1.0666, "angle": 20.89 } - ], - "translate": [ - { "time": 0, "x": -7.84, "y": 7.19 }, - { "time": 0.1333, "x": -6.36, "y": 6.42 }, - { "time": 0.6666, "x": -11.07, "y": 5.25 }, - { "time": 1.0666, "x": -7.84, "y": 7.19 } - ] - }, - "right arm": { - "rotate": [ - { - "time": 0, - "angle": -4.02, - "curve": [ 0.267, 0, 0.804, 0.99 ] - }, - { - "time": 0.1333, - "angle": -13.99, - "curve": [ 0.341, 0, 1, 1 ] - }, - { - "time": 0.6666, - "angle": 36.54, - "curve": [ 0.307, 0, 0.787, 0.99 ] - }, - { "time": 1.0666, "angle": -4.02 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 22.92 }, - { "time": 0.4, "angle": -8.97 }, - { "time": 0.6666, "angle": 0.51 }, - { "time": 1.0666, "angle": 22.92 } - ] - }, - "left shoulder": { - "rotate": [ - { "time": 0, "angle": -1.47 }, - { "time": 0.1333, "angle": 13.6 }, - { "time": 0.6666, "angle": 280.74 }, - { "time": 1.0666, "angle": -1.47 } - ], - "translate": [ - { "time": 0, "x": -1.76, "y": 0.56 }, - { "time": 0.6666, "x": -2.47, "y": 8.14 }, - { "time": 1.0666, "x": -1.76, "y": 0.56 } - ] - }, - "left hand": { - "rotate": [ - { - "time": 0, - "angle": 11.58, - "curve": [ 0.169, 0.37, 0.632, 1.55 ] - }, - { - "time": 0.1333, - "angle": 28.13, - "curve": [ 0.692, 0, 0.692, 0.99 ] - }, - { - "time": 0.6666, - "angle": -27.42, - "curve": [ 0.117, 0.41, 0.738, 1.76 ] - }, - { "time": 0.8, "angle": -36.32 }, - { "time": 1.0666, "angle": 11.58 } - ] - }, - "left arm": { - "rotate": [ - { "time": 0, "angle": -8.27 }, - { "time": 0.1333, "angle": 18.43 }, - { "time": 0.6666, "angle": 0.88 }, - { "time": 1.0666, "angle": -8.27 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -10.28 }, - { - "time": 0.1333, - "angle": -15.38, - "curve": [ 0.545, 0, 1, 1 ] - }, - { - "time": 0.4, - "angle": -9.78, - "curve": [ 0.58, 0.17, 1, 1 ] - }, - { "time": 0.6666, "angle": -15.75 }, - { "time": 0.9333, "angle": -7.06 }, - { "time": 1.0666, "angle": -10.28 } - ], - "translate": [ - { "time": 0, "x": -3.67, "y": 1.68 }, - { "time": 0.1333, "x": -3.67, "y": 0.68 }, - { "time": 0.4, "x": -3.67, "y": 1.97 }, - { "time": 0.6666, "x": -3.67, "y": -0.14 }, - { "time": 1.0666, "x": -3.67, "y": 1.68 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": -5.25 }, - { "time": 0.2666, "angle": -4.08 }, - { "time": 0.4, "angle": -6.45 }, - { "time": 0.5333, "angle": -5.39 }, - { "time": 0.8, "angle": -11.68 }, - { "time": 0.9333, "angle": 0.46 }, - { "time": 1.0666, "angle": -5.25 } - ] - }, - "right lower leg": { - "rotate": [ - { "time": 0, "angle": -3.39 }, - { "time": 0.1333, "angle": -45.53 }, - { "time": 0.2666, "angle": -2.59 }, - { "time": 0.5333, "angle": -19.53 }, - { "time": 0.6666, "angle": -64.8 }, - { - "time": 0.8, - "angle": -82.56, - "curve": [ 0.557, 0.18, 1, 1 ] - }, - { "time": 1.0666, "angle": -3.39 } - ] - }, - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 1.0666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { - "time": 0.1333, - "x": 0, - "y": -7.61, - "curve": [ 0.272, 0.86, 1, 1 ] - }, - { "time": 0.4, "x": 0, "y": 8.7 }, - { "time": 0.5333, "x": 0, "y": -0.41 }, - { - "time": 0.6666, - "x": 0, - "y": -7.05, - "curve": [ 0.235, 0.89, 1, 1 ] - }, - { "time": 0.8, "x": 0, "y": 2.92 }, - { "time": 0.9333, "x": 0, "y": 6.78 }, - { "time": 1.0666, "x": 0, "y": 0 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 3.6 }, - { "time": 0.1333, "angle": 17.49 }, - { "time": 0.2666, "angle": 6.1 }, - { "time": 0.4, "angle": 3.45 }, - { "time": 0.5333, "angle": 5.17 }, - { "time": 0.6666, "angle": 18.36 }, - { "time": 0.8, "angle": 6.09 }, - { "time": 0.9333, "angle": 2.28 }, - { "time": 1.0666, "angle": 3.6 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 3.6, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.1666, "angle": -0.2 }, - { "time": 0.2666, "angle": 6.1 }, - { "time": 0.4, "angle": 3.45 }, - { - "time": 0.5333, - "angle": 5.17, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.7, "angle": 1.1 }, - { "time": 0.8, "angle": 6.09 }, - { "time": 0.9333, "angle": 2.28 }, - { "time": 1.0666, "angle": 3.6 } - ] - } - } - }, - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.9333, "angle": 0, "curve": "stepped" }, - { "time": 1.3666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": -11.57, "y": -3 }, - { "time": 0.2333, "x": -16.2, "y": -19.43 }, - { - "time": 0.3333, - "x": 7.66, - "y": -8.48, - "curve": [ 0.057, 0.06, 0.712, 1 ] - }, - { "time": 0.3666, "x": 15.38, "y": 5.01 }, - { "time": 0.4666, "x": -7.84, "y": 57.22 }, - { - "time": 0.6, - "x": -10.81, - "y": 96.34, - "curve": [ 0.241, 0, 1, 1 ] - }, - { "time": 0.7333, "x": -7.01, "y": 54.7 }, - { "time": 0.8, "x": -10.58, "y": 32.2 }, - { "time": 0.9333, "x": -31.99, "y": 0.45 }, - { "time": 1.0666, "x": -12.48, "y": -29.47 }, - { "time": 1.3666, "x": -11.57, "y": -3 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left upper leg": { - "rotate": [ - { "time": 0, "angle": 17.13 }, - { "time": 0.2333, "angle": 44.35 }, - { "time": 0.3333, "angle": 16.46 }, - { "time": 0.4, "angle": -9.88 }, - { "time": 0.4666, "angle": -11.42 }, - { "time": 0.5666, "angle": 23.46 }, - { "time": 0.7666, "angle": 71.82 }, - { "time": 0.9333, "angle": 65.53 }, - { "time": 1.0666, "angle": 51.01 }, - { "time": 1.3666, "angle": 17.13 } - ], - "translate": [ - { "time": 0, "x": -3, "y": -2.25, "curve": "stepped" }, - { "time": 0.9333, "x": -3, "y": -2.25, "curve": "stepped" }, - { "time": 1.3666, "x": -3, "y": -2.25 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -16.25 }, - { "time": 0.2333, "angle": -52.21 }, - { "time": 0.4, "angle": 15.04 }, - { "time": 0.4666, "angle": -8.95 }, - { "time": 0.5666, "angle": -39.53 }, - { "time": 0.7666, "angle": -27.27 }, - { "time": 0.9333, "angle": -3.52 }, - { "time": 1.0666, "angle": -61.92 }, - { "time": 1.3666, "angle": -16.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": 0.33 }, - { "time": 0.2333, "angle": 6.2 }, - { "time": 0.3333, "angle": 14.73 }, - { "time": 0.4, "angle": -15.54 }, - { "time": 0.4333, "angle": -21.2 }, - { "time": 0.5666, "angle": -7.55 }, - { "time": 0.7666, "angle": -0.67 }, - { "time": 0.9333, "angle": -0.58 }, - { "time": 1.0666, "angle": 14.64 }, - { "time": 1.3666, "angle": 0.33 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 25.97 }, - { "time": 0.2333, "angle": 46.43 }, - { "time": 0.3333, "angle": 22.61 }, - { "time": 0.4, "angle": 2.13 }, - { - "time": 0.4666, - "angle": 0.04, - "curve": [ 0, 0, 0.637, 0.98 ] - }, - { "time": 0.6, "angle": 65.55 }, - { "time": 0.7666, "angle": 64.93 }, - { "time": 0.9333, "angle": 41.08 }, - { "time": 1.0666, "angle": 66.25 }, - { "time": 1.3666, "angle": 25.97 } - ], - "translate": [ - { "time": 0, "x": 5.74, "y": 0.61 }, - { "time": 0.2333, "x": 4.79, "y": 1.79 }, - { "time": 0.3333, "x": 6.05, "y": -4.55 }, - { "time": 0.9333, "x": 4.79, "y": 1.79, "curve": "stepped" }, - { "time": 1.0666, "x": 4.79, "y": 1.79 }, - { "time": 1.3666, "x": 5.74, "y": 0.61 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right lower leg": { - "rotate": [ - { "time": 0, "angle": -27.46 }, - { "time": 0.2333, "angle": -64.03 }, - { "time": 0.4, "angle": -48.36 }, - { "time": 0.5666, "angle": -76.86 }, - { "time": 0.7666, "angle": -26.89 }, - { "time": 0.9, "angle": -18.97 }, - { "time": 0.9333, "angle": -14.18 }, - { "time": 1.0666, "angle": -80.45 }, - { "time": 1.3666, "angle": -27.46 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": 1.08 }, - { "time": 0.2333, "angle": 16.02 }, - { "time": 0.3, "angle": 12.94 }, - { "time": 0.3333, "angle": 15.16 }, - { "time": 0.4, "angle": -14.7 }, - { "time": 0.4333, "angle": -12.85 }, - { "time": 0.4666, "angle": -19.18 }, - { "time": 0.5666, "angle": -15.82 }, - { "time": 0.6, "angle": -3.59 }, - { "time": 0.7666, "angle": -3.56 }, - { "time": 0.9333, "angle": 1.86 }, - { "time": 1.0666, "angle": 16.02 }, - { "time": 1.3666, "angle": 1.08 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -13.35 }, - { "time": 0.2333, "angle": -48.95 }, - { "time": 0.4333, "angle": -35.77 }, - { "time": 0.6, "angle": -4.59 }, - { "time": 0.7666, "angle": 14.61 }, - { "time": 0.9333, "angle": 15.74 }, - { "time": 1.0666, "angle": -32.44 }, - { "time": 1.3666, "angle": -13.35 } - ], - "translate": [ - { "time": 0, "x": -3.67, "y": 1.68, "curve": "stepped" }, - { "time": 0.9333, "x": -3.67, "y": 1.68, "curve": "stepped" }, - { "time": 1.3666, "x": -3.67, "y": 1.68 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 12.78 }, - { "time": 0.2333, "angle": 16.46 }, - { "time": 0.4, "angle": 26.49 }, - { "time": 0.6, "angle": 15.51 }, - { "time": 0.7666, "angle": 1.34 }, - { "time": 0.9333, "angle": 2.35 }, - { "time": 1.0666, "angle": 6.08 }, - { "time": 1.3, "angle": 21.23 }, - { "time": 1.3666, "angle": 12.78 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 5.19 }, - { "time": 0.2333, "angle": 20.27 }, - { "time": 0.4, "angle": 15.27 }, - { "time": 0.6, "angle": -24.69 }, - { "time": 0.7666, "angle": -11.02 }, - { "time": 0.9333, "angle": -24.38 }, - { "time": 1.0666, "angle": 11.99 }, - { "time": 1.3, "angle": 4.86 }, - { "time": 1.3666, "angle": 5.19 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left shoulder": { - "rotate": [ - { - "time": 0, - "angle": 0.05, - "curve": [ 0, 0, 0.62, 1 ] - }, - { - "time": 0.2333, - "angle": 279.66, - "curve": [ 0.218, 0.67, 0.66, 0.99 ] - }, - { - "time": 0.5, - "angle": 62.27, - "curve": [ 0.462, 0, 0.764, 0.58 ] - }, - { "time": 0.9333, "angle": 28.91 }, - { "time": 1.0666, "angle": -8.62 }, - { "time": 1.1666, "angle": -18.43 }, - { "time": 1.3666, "angle": 0.05 } - ], - "translate": [ - { "time": 0, "x": -1.76, "y": 0.56, "curve": "stepped" }, - { "time": 0.9333, "x": -1.76, "y": 0.56, "curve": "stepped" }, - { "time": 1.3666, "x": -1.76, "y": 0.56 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left hand": { - "rotate": [ - { "time": 0, "angle": 11.58, "curve": "stepped" }, - { "time": 0.9333, "angle": 11.58, "curve": "stepped" }, - { "time": 1.3666, "angle": 11.58 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left arm": { - "rotate": [ - { "time": 0, "angle": 0.51 }, - { "time": 0.4333, "angle": 12.82 }, - { "time": 0.6, "angle": 47.55 }, - { "time": 0.9333, "angle": 12.82 }, - { "time": 1.1666, "angle": -6.5 }, - { "time": 1.3666, "angle": 0.51 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 43.82, - "curve": [ 0, 0, 0.62, 1 ] - }, - { - "time": 0.2333, - "angle": -8.74, - "curve": [ 0.304, 0.58, 0.709, 0.97 ] - }, - { - "time": 0.5333, - "angle": -208.02, - "curve": [ 0.462, 0, 0.764, 0.58 ] - }, - { "time": 0.9333, "angle": -246.72 }, - { "time": 1.0666, "angle": -307.13 }, - { "time": 1.1666, "angle": 37.15 }, - { "time": 1.3666, "angle": 43.82 } - ], - "translate": [ - { "time": 0, "x": -7.84, "y": 7.19, "curve": "stepped" }, - { "time": 0.9333, "x": -7.84, "y": 7.19, "curve": "stepped" }, - { "time": 1.3666, "x": -7.84, "y": 7.19 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right arm": { - "rotate": [ - { "time": 0, "angle": -4.02 }, - { "time": 0.6, "angle": 17.5 }, - { "time": 0.9333, "angle": -4.02 }, - { "time": 1.1666, "angle": -16.72 }, - { "time": 1.3666, "angle": -4.02 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 22.92, "curve": "stepped" }, - { "time": 0.9333, "angle": 22.92, "curve": "stepped" }, - { "time": 1.3666, "angle": 22.92 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "root": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.4333, "angle": -14.52 }, - { "time": 0.8, "angle": 9.86 }, - { "time": 1.3666, "angle": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/index.html b/examples/example 12 - Spine/index.html index 5abc5ef..7c9fc47 100644 --- a/examples/example 12 - Spine/index.html +++ b/examples/example 12 - Spine/index.html @@ -18,7 +18,7 @@ // create an array of assets to load - var assetsToLoader = ["data/spineboy.json", "data/spineboySpineData.json"]; + var assetsToLoader = ["data/spineboy.json"]; // create a new loader loader = new PIXI.AssetLoader(assetsToLoader); @@ -45,7 +45,7 @@ function onAssetsLoaded() { // create a spine boy - var spineBoy = new PIXI.Spine("data/spineboySpineData.json"); + var spineBoy = new PIXI.Spine("data/spineboy.json"); // set the position spineBoy.position.x = window.innerWidth/2; @@ -58,15 +58,15 @@ spineBoy.stateData.setMixByName("jump", "walk", 0.4); // play animation - spineBoy.state.setAnimationByName("walk", true); + spineBoy.state.setAnimationByName(0, "walk", true); stage.addChild(spineBoy); stage.click = function() { - spineBoy.state.setAnimationByName("jump", false); - spineBoy.state.addAnimationByName("walk", true); + spineBoy.state.setAnimationByName(0, "jump", false); + spineBoy.state.addAnimationByName(0, "walk", true, 0); } diff --git a/examples/example 12 - Spine/index_dragon.html b/examples/example 12 - Spine/index_dragon.html index 51b090c..a4f62d6 100644 --- a/examples/example 12 - Spine/index_dragon.html +++ b/examples/example 12 - Spine/index_dragon.html @@ -20,7 +20,7 @@ // create an array of assets to load - var assetsToLoader = ["../../logo_small.png", "data/dragonBones.json", "data/dragonBonesData.json"]; + var assetsToLoader = ["../../logo_small.png", "data/dragon.json"]; // create a new loader loader = new PIXI.AssetLoader(assetsToLoader); @@ -43,22 +43,38 @@ // add render view to DOM document.body.appendChild(renderer.view); + + var dragon = null; function onAssetsLoaded() { - var dragon = new PIXI.Spine("data/dragonBonesData.json"); - - var scale = 1;//window.innerHeight / 700; - - dragon.position.x = window.innerWidth/2; - dragon.position.y = window.innerHeight/2 + (450 * scale); - - dragon.scale.x = dragon.scale.y = scale + /* instantiate the spine animation */ + dragon = new PIXI.Spine("data/dragon.json"); + dragon.skeleton.setToSetupPose(); + dragon.update(0); + dragon.autoUpdate = false; + + /* create a container for the spine animation and add the animation to it */ + var dragonCage = new PIXI.DisplayObjectContainer(); + dragonCage.addChild(dragon); + + /* measure the spine animation and position it inside its container to align it to the origin */ + var localRect = dragon.getLocalBounds(); + dragon.position.set(-localRect.x, -localRect.y); + + /* now we can scale, position and rotate the container as any other display object */ + var scale = Math.min((window.innerWidth * 0.7) / dragonCage.width, (window.innerHeight * 0.7) / dragonCage.height); + dragonCage.scale.set(scale, scale); + dragonCage.position.set((window.innerWidth - dragonCage.width) * 0.5, (window.innerHeight - dragonCage.height) * 0.5); + + /* add the container to the stage */ + stage.addChild(dragonCage); + + /* once position and scaled, set the animation to play */ + dragon.state.setAnimationByName(0, "flying", true); - dragon.state.setAnimationByName("flying", true); - stage.addChild(dragon); var logo = PIXI.Sprite.fromImage("../../logo_small.png") stage.addChild(logo); @@ -74,17 +90,17 @@ { window.open("https://github.com/GoodBoyDigital/pixi.js", "_blank") } + + requestAnimFrame(animate); } - - requestAnimFrame(animate); - - function animate() { requestAnimFrame( animate ); + /* update the spine animation, only needed if autoupdate is set to false */ + dragon.update(0.01666666666667); // HARDCODED FRAMERATE! renderer.render(stage); } diff --git a/examples/example 12 - Spine/index_goblins.html b/examples/example 12 - Spine/index_goblins.html index 2914eb2..245e9a0 100644 --- a/examples/example 12 - Spine/index_goblins.html +++ b/examples/example 12 - Spine/index_goblins.html @@ -19,7 +19,7 @@ // create an array of assets to load - var assetsToLoader = ["data/goblins.json", "data/goblinsSpineData.json"]; + var assetsToLoader = ["data/goblins.json"]; // create a new loader loader = new PIXI.AssetLoader(assetsToLoader); @@ -45,7 +45,7 @@ function onAssetsLoaded() { - var goblin = new PIXI.Spine("data/goblinsSpineData.json"); + var goblin = new PIXI.Spine("data/goblins.json"); // set current skin goblin.skeleton.setSkinByName('goblin'); @@ -58,7 +58,7 @@ goblin.scale.x = goblin.scale.y = window.innerHeight / 400; // play animation - goblin.state.setAnimationByName("walk", true); + goblin.state.setAnimationByName(0, "walk", true); stage.addChild(goblin); @@ -80,7 +80,7 @@ logo.position.x = window.innerWidth logo.scale.x = logo.scale.y = 0.5; logo.position.y = window.innerHeight - 70; - logo.setInteractive(true); + logo.interactive = true; logo.buttonMode = true; logo.click = logo.tap = function() { diff --git a/examples/example 12 - Spine/data/Pixie.atlas b/examples/example 12 - Spine/data/Pixie.atlas new file mode 100644 index 0000000..68a8013 --- /dev/null +++ b/examples/example 12 - Spine/data/Pixie.atlas @@ -0,0 +1,158 @@ +Pixie.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_foot + rotate: false + xy: 1048, 355 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +L_hand + rotate: true + xy: 916, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +L_lower_arm + rotate: false + xy: 1273, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +L_lower_leg + rotate: false + xy: 1201, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +L_upper_arm + rotate: true + xy: 1399, 2 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +L_upper_leg + rotate: false + xy: 1351, 259 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +R_foot + rotate: false + xy: 1319, 345 + size: 68, 51 + orig: 68, 51 + offset: 0, 0 + index: -1 +R_hand + rotate: true + xy: 982, 355 + size: 55, 64 + orig: 55, 64 + offset: 0, 0 + index: -1 +R_lower_arm + rotate: false + xy: 1345, 226 + size: 70, 31 + orig: 70, 31 + offset: 0, 0 + index: -1 +R_lower_leg + rotate: false + xy: 1260, 345 + size: 57, 65 + orig: 57, 65 + offset: 0, 0 + index: -1 +R_upper_arm + rotate: true + xy: 1399, 82 + size: 78, 74 + orig: 78, 74 + offset: 0, 0 + index: -1 +R_upper_leg + rotate: false + xy: 1389, 332 + size: 124, 71 + orig: 124, 71 + offset: 0, 0 + index: -1 +backHair + rotate: true + xy: 1096, 2 + size: 261, 175 + orig: 261, 175 + offset: 0, 0 + index: -1 +foreWing + rotate: false + xy: 1096, 265 + size: 253, 78 + orig: 253, 78 + offset: 0, 0 + index: -1 +frontHair + rotate: true + xy: 617, 2 + size: 396, 297 + orig: 396, 297 + offset: 0, 0 + index: -1 +groinal + rotate: true + xy: 1515, 296 + size: 103, 84 + orig: 103, 84 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 613, 408 + orig: 613, 408 + offset: 0, 0 + index: -1 +jaw + rotate: true + xy: 1273, 2 + size: 222, 124 + orig: 222, 124 + offset: 0, 0 + index: -1 +midHair + rotate: true + xy: 916, 2 + size: 351, 178 + orig: 351, 178 + offset: 0, 0 + index: -1 +neck + rotate: true + xy: 1118, 345 + size: 65, 81 + orig: 65, 81 + offset: 0, 0 + index: -1 +rearWing + rotate: false + xy: 1477, 148 + size: 136, 146 + orig: 136, 146 + offset: 0, 0 + index: -1 +vest + rotate: false + xy: 1477, 2 + size: 139, 144 + orig: 139, 144 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/Pixie.json b/examples/example 12 - Spine/data/Pixie.json index cef4fd1..bc7e888 100644 --- a/examples/example 12 - Spine/data/Pixie.json +++ b/examples/example 12 - Spine/data/Pixie.json @@ -1,188 +1,924 @@ -{"frames": { - -"L_foot.png": { - "frame": {"x":401,"y":609,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, + { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, + { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, + { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, + { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, + { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, + { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, + { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, + { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, + { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, + { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, + { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, + { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, + { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, + { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, + { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, + { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, + { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, + { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, + { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, + { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, + { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, + { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } +], +"slots": [ + { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, + { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, + { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, + { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, + { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, + { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, + { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, + { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, + { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, + { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, + { "name": "hip", "bone": "hip", "attachment": "groinal" }, + { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "back", "bone": "back", "attachment": "vest" }, + { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, + { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, + { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, + { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, + { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, + { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } +], +"skins": { + "default": { + "L arm lower": { + "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } + }, + "L arm upper": { + "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } + }, + "L foot": { + "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } + }, + "L hand": { + "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } + }, + "L leg lower": { + "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } + }, + "L leg upper": { + "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } + }, + "R arm lower": { + "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } + }, + "R arm upper": { + "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } + }, + "R foot": { + "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } + }, + "R hand": { + "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } + }, + "R lower": { + "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } + }, + "R upper": { + "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } + }, + "back": { + "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } + }, + "fore wing": { + "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } + }, + "hair back": { + "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } + }, + "hair front": { + "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } + }, + "hair mid": { + "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } + }, + "head": { + "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } + }, + "hip": { + "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } + }, + "jaw": { + "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } + }, + "neck": { + "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } + }, + "rear wing": { + "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } + } + } }, -"L_hand.png": -{ - "frame": {"x":968,"y":365,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"L_lower_arm.png": -{ - "frame": {"x":401,"y":576,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"L_lower_leg.png": -{ - "frame": {"x":963,"y":546,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"L_upper_arm.png": -{ - "frame": {"x":518,"y":486,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"L_upper_leg.png": -{ - "frame": {"x":126,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"R_foot.png": -{ - "frame": {"x":473,"y":595,"w":68,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":51}, - "sourceSize": {"w":68,"h":51} -}, -"R_hand.png": -{ - "frame": {"x":968,"y":299,"w":55,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":64}, - "sourceSize": {"w":55,"h":64} -}, -"R_lower_arm.png": -{ - "frame": {"x":506,"y":562,"w":70,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":70,"h":31}, - "sourceSize": {"w":70,"h":31} -}, -"R_lower_leg.png": -{ - "frame": {"x":963,"y":479,"w":57,"h":65}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":57,"h":65}, - "sourceSize": {"w":57,"h":65} -}, -"R_upper_arm.png": -{ - "frame": {"x":518,"y":410,"w":78,"h":74}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":78,"h":74}, - "sourceSize": {"w":78,"h":74} -}, -"R_upper_leg.png": -{ - "frame": {"x":0,"y":587,"w":124,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":124,"h":71}, - "sourceSize": {"w":124,"h":71} -}, -"backHair.png": -{ - "frame": {"x":0,"y":410,"w":261,"h":175}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":261,"h":175}, - "sourceSize": {"w":261,"h":175} -}, -"foreWing.png": -{ - "frame": {"x":263,"y":410,"w":253,"h":78}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":253,"h":78}, - "sourceSize": {"w":253,"h":78} -}, -"frontHair.png": -{ - "frame": {"x":615,"y":0,"w":396,"h":297}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":396,"h":297}, - "sourceSize": {"w":396,"h":297} -}, -"groinal.png": -{ - "frame": {"x":401,"y":490,"w":103,"h":84}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":84}, - "sourceSize": {"w":103,"h":84} -}, -"head.png": -{ - "frame": {"x":0,"y":0,"w":613,"h":408}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":613,"h":408}, - "sourceSize": {"w":613,"h":408} -}, -"jaw.png": -{ - "frame": {"x":598,"y":479,"w":222,"h":124}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":222,"h":124}, - "sourceSize": {"w":222,"h":124} -}, -"midHair.png": -{ - "frame": {"x":615,"y":299,"w":351,"h":178}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":351,"h":178}, - "sourceSize": {"w":351,"h":178} -}, -"neck.png": -{ - "frame": {"x":252,"y":638,"w":65,"h":81}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":81}, - "sourceSize": {"w":65,"h":81} -}, -"rearWing.png": -{ - "frame": {"x":263,"y":490,"w":136,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":146}, - "sourceSize": {"w":136,"h":146} -}, -"vest.png": -{ - "frame": {"x":822,"y":479,"w":139,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":139,"h":144}, - "sourceSize": {"w":139,"h":144} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "Pixie.png", - "format": "RGBA8888", - "size": {"w":1023,"h":719}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:d58d60a5edd2ac7a15c00bcd989497b2$" +"animations": { + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3666, + "x": 48.25, + "y": 387.29, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -52.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 42.23 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 17.45 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -12.48, "y": 6.24 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -23.04 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 21.33 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm upper": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -20.49 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R leg lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 18.73 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": -17.83 }, + { "time": 0.2333, "angle": -0.57 }, + { "time": 0.3333, "angle": -22.57 }, + { "time": 0.4333, "angle": 6.45 }, + { "time": 0.5333, "angle": -15.51 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 16.6 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -19.99 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -13.89, "y": -5.83 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 54.98 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": -4.87 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "bone1": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.3743, + "angle": 13.84, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1333, "angle": 30.94 }, + { "time": 0.2333, "angle": -24.35 }, + { "time": 0.3333, "angle": 25.11 }, + { "time": 0.4333, "angle": -6.54 }, + { "time": 0.5333, "angle": 24.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "L hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 57.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 3.65 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.5 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 5.72 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3666, "x": -4.28, "y": 3.04 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.3666, "x": 1.169, "y": 1 }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair mid": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": 6.71 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + }, + "hair front": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3333, "angle": -8.18 }, + { "time": 0.6666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.3333, "x": -17.24, "y": 20.35 }, + { "time": 0.6666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.6666, "x": 1, "y": 1 } + ] + } + } + }, + "running": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 2.79 }, + { "time": 0.2333, "x": 0, "y": -15.43 }, + { "time": 0.5, "x": 0, "y": 8 }, + { "time": 0.7, "x": 0, "y": -8.92 }, + { "time": 0.9666, "x": 0, "y": 2.79 } + ] + }, + "R leg upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": -150.25 }, + { "time": 0.7, "angle": -110.91 }, + { + "time": 0.8333, + "angle": -25.14, + "curve": [ 0.155, 0.16, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": -35.15, "y": 0 }, + { "time": 0.7, "x": -6.5, "y": 0 }, + { "time": 1, "x": 2.6, "y": 0 } + ] + }, + "R leg lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 7.47 }, + { "time": 0.7, "angle": -53.49 }, + { + "time": 0.8333, + "angle": -85.3, + "curve": [ 0.16, 0.21, 0.75, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.7, "x": 2.5, "y": -1.47 }, + { "time": 0.8333, "x": 3.93, "y": -5.18 } + ] + }, + "R foot": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2, "angle": 7.03 }, + { "time": 0.2333, "angle": 18.45 }, + { "time": 0.2666, "angle": 26.41 }, + { "time": 0.3, "angle": 29.63 }, + { "time": 0.5, "angle": -22.49 }, + { "time": 0.7, "angle": -30.93 }, + { "time": 0.8333, "angle": -50.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0.5, "x": 0.7, "y": -3.84 } + ] + }, + "L leg upper": { + "rotate": [ + { + "time": 0, + "angle": -30.25, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.2333, "angle": 77.26 }, + { + "time": 0.5, + "angle": 104.21, + "curve": [ 0.25, 0, 0.29, 1 ] + }, + { "time": 1, "angle": -30.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.5, "x": 22.13, "y": -16.92 }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L leg lower": { + "rotate": [ + { + "time": 0, + "angle": 22.34, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -65.53, + "curve": [ 0.094, -0.03, 0.678, 1.08 ] + }, + { + "time": 0.5, + "angle": 43.39, + "curve": [ 0.25, 0, 0.287, 1 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 1, "x": 0.58, "y": -1.74 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L foot": { + "rotate": [ + { "time": 0, "angle": -22.23 }, + { "time": 0.2333, "angle": -1.44 }, + { "time": 0.5, "angle": 5.06 }, + { "time": 0.6333, "angle": 27.11 }, + { "time": 0.6666, "angle": 50.34 }, + { "time": 1, "angle": -12.47 } + ], + "translate": [ + { "time": 0, "x": -4.13, "y": -3.42 }, + { "time": 0.6333, "x": 1.22, "y": 1.73 }, + { "time": 0.6666, "x": -0.56, "y": 5.49 }, + { "time": 1, "x": -0.87, "y": -0.96 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "back": { + "rotate": [ + { "time": 0, "angle": -1.79 }, + { "time": 0.2333, "angle": -10.71 }, + { "time": 0.5, "angle": -2.16 }, + { "time": 0.7, "angle": -10.27 }, + { "time": 0.9666, "angle": -1.79 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 5.2, "y": -6.5 }, + { "time": 0.5, "x": 1.3, "y": -2.6 }, + { "time": 0.7, "x": 7.81, "y": -6.5 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "R arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.5, "angle": 235.62 }, + { "time": 0.7, "angle": -57.38 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R arm lower": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.068, 0, 0.632, 1.14 ] + }, + { "time": 0.5, "angle": -34.21 }, + { + "time": 0.7, + "angle": 17.35, + "curve": [ 0.221, 0.26, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "R hand": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 30.13 }, + { "time": 0.7, "angle": 3.91 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "L arm upper": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -190.85, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L hand": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 1, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": -15.76, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "L arm lower": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3, "angle": 45.27 }, + { "time": 0.5, "angle": -20.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "fore wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "rear wing": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": 17.36 }, + { "time": 0.5333, "angle": -2.27 }, + { "time": 0.7333, "angle": 20.14 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2666, "angle": -13.61 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.7333, "angle": -11.08 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2666, "x": 4.54, "y": -38.81 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7333, "x": 0.32, "y": -40.1 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "jaw": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.2333, "angle": -3.93 }, + { "time": 0.4666, "angle": 8.79 }, + { "time": 0.7333, "angle": 13.97 }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": 4.63, "y": 6.7 }, + { "time": 0.4666, "x": 6.67, "y": -4.82 }, + { "time": 0.7333, "x": 6.8, "y": -7.61 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair back": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { "time": 0.2333, "x": -1.3, "y": -6.5 }, + { "time": 0.5, "x": 0, "y": 0 }, + { "time": 0.7666, "x": -3.49, "y": -10.15 }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair front": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + }, + "hair mid": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.2333, + "angle": -3.9, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.5, + "angle": 0, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { + "time": 0.7666, + "angle": -4, + "curve": [ 0.25, 0, 0.75, 1 ] + }, + { "time": 0.9666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9666, "x": 0, "y": 0 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/Pixie.png b/examples/example 12 - Spine/data/Pixie.png index 58ee0fb..b1e5b77 100644 --- a/examples/example 12 - Spine/data/Pixie.png +++ b/examples/example 12 - Spine/data/Pixie.png Binary files differ diff --git a/examples/example 12 - Spine/data/PixieSpineData.json b/examples/example 12 - Spine/data/PixieSpineData.json deleted file mode 100644 index bc7e888..0000000 --- a/examples/example 12 - Spine/data/PixieSpineData.json +++ /dev/null @@ -1,924 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": -5.36, "y": 120.63 }, - { "name": "L leg upper", "parent": "hip", "length": 90.28, "x": -21.3, "y": -8.59, "rotation": -123.16 }, - { "name": "R leg upper", "parent": "hip", "length": 79.63, "x": 14.54, "y": -29.09, "rotation": -12.07 }, - { "name": "back", "parent": "hip", "length": 117.04, "x": 3.43, "y": 0.51, "rotation": 64.34 }, - { "name": "L arm upper", "parent": "back", "length": 88.01, "x": 120.71, "y": -25.79, "rotation": 108.03 }, - { "name": "L leg lower", "parent": "L leg upper", "length": 77.82, "x": 89.23, "y": 3.84, "rotation": -74.59 }, - { "name": "R arm upper", "parent": "back", "length": 82.87, "x": 107.42, "y": 16.92, "rotation": -108.18 }, - { "name": "R leg lower", "parent": "R leg upper", "length": 67.73, "x": 79.31, "y": -0.23, "rotation": -35.49 }, - { "name": "fore wing", "parent": "back", "length": 174.95, "x": 78.26, "y": 14.47, "rotation": 111.09 }, - { "name": "neck", "parent": "back", "length": 65.79, "x": 115.87, "y": -0.67, "rotation": -1.35 }, - { "name": "L arm lower", "parent": "L arm upper", "length": 57.67, "x": 84.14, "y": -0.57, "rotation": 35.83 }, - { "name": "L foot", "parent": "L leg lower", "length": 57.67, "x": 74.89, "y": -3.37, "rotation": 79.65 }, - { "name": "R arm lower", "parent": "R arm upper", "length": 58.76, "x": 80.97, "y": -3.48, "rotation": 56.62 }, - { "name": "R foot", "parent": "R leg lower", "length": 51.26, "x": 67.69, "y": -1.98, "rotation": 84.54 }, - { "name": "bone1", "parent": "fore wing", "x": 50.67, "y": 19.71 }, - { "name": "head", "parent": "neck", "length": 132.5, "x": 116.13, "y": 41.67, "rotation": -40.37 }, - { "name": "rear wing", "parent": "fore wing", "length": 123.2, "x": 2.22, "y": -11.57, "rotation": -30.89 }, - { "name": "L hand", "parent": "L arm lower", "length": 33.27, "x": 55.37, "y": 1.3, "rotation": 30.89 }, - { "name": "R hand", "parent": "R arm lower", "length": 33.34, "x": 58.46, "y": -1.24, "rotation": 25.65 }, - { "name": "hair back", "parent": "head", "length": 156.52, "x": 43.77, "y": 270.91, "rotation": 22.07 }, - { "name": "jaw", "parent": "head", "length": 139.22, "x": 8.71, "y": -33.25, "rotation": -46.82 }, - { "name": "hair mid", "parent": "hair back", "length": 191.57, "x": 155.16, "y": -89.36, "rotation": -17.61 }, - { "name": "hair front", "parent": "hair mid", "length": 202.73, "x": 48, "y": -100.58, "rotation": -18.29 } -], -"slots": [ - { "name": "L hand", "bone": "L hand", "attachment": "L_hand" }, - { "name": "L arm lower", "bone": "L arm lower", "attachment": "L_lower_arm" }, - { "name": "L arm upper", "bone": "L arm upper", "attachment": "L_upper_arm" }, - { "name": "rear wing", "bone": "rear wing", "attachment": "rearWing" }, - { "name": "L foot", "bone": "L foot", "attachment": "L_foot" }, - { "name": "L leg lower", "bone": "L leg lower", "attachment": "L_lower_leg" }, - { "name": "L leg upper", "bone": "L leg upper", "attachment": "L_upper_leg" }, - { "name": "R foot", "bone": "R foot", "attachment": "R_foot" }, - { "name": "R lower", "bone": "R leg lower", "attachment": "R_lower_leg" }, - { "name": "R upper", "bone": "R leg upper", "attachment": "R_upper_leg" }, - { "name": "hip", "bone": "hip", "attachment": "groinal" }, - { "name": "fore wing", "bone": "fore wing", "attachment": "foreWing" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "back", "bone": "back", "attachment": "vest" }, - { "name": "R arm upper", "bone": "R arm upper", "attachment": "R_upper_arm" }, - { "name": "R arm lower", "bone": "R arm lower", "attachment": "R_lower_arm" }, - { "name": "R hand", "bone": "R hand", "attachment": "R_hand" }, - { "name": "hair back", "bone": "hair back", "attachment": "backHair" }, - { "name": "hair front", "bone": "hair front", "attachment": "frontHair" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "jaw", "bone": "jaw", "attachment": "jaw" }, - { "name": "hair mid", "bone": "hair mid", "attachment": "midHair" } -], -"skins": { - "default": { - "L arm lower": { - "L_lower_arm": { "x": 26.8, "y": 0.38, "rotation": -12.92, "width": 70, "height": 31 } - }, - "L arm upper": { - "L_upper_arm": { "x": 43.44, "y": -0.75, "rotation": 43.61, "width": 78, "height": 74 } - }, - "L foot": { - "L_foot": { "x": 25.73, "y": -3.97, "rotation": -37.09, "width": 68, "height": 51 } - }, - "L hand": { - "L_hand": { "x": 16.53, "y": 5.33, "rotation": -19.13, "width": 55, "height": 64 } - }, - "L leg lower": { - "L_lower_leg": { "x": 32.98, "y": 3.71, "rotation": 50.68, "width": 57, "height": 65 } - }, - "L leg upper": { - "L_upper_leg": { "x": 34.37, "y": 6.89, "rotation": 14.72, "width": 124, "height": 71 } - }, - "R arm lower": { - "R_lower_arm": { "x": 27.12, "y": 1.85, "rotation": -12.78, "width": 70, "height": 31 } - }, - "R arm upper": { - "R_upper_arm": { "x": 40.47, "y": -2.66, "rotation": 43.84, "width": 78, "height": 74 } - }, - "R foot": { - "R_foot": { "x": 19.53, "y": -8.7, "rotation": -36.33, "width": 68, "height": 51 } - }, - "R hand": { - "R_hand": { "x": 17.09, "y": -3.59, "rotation": -38.44, "width": 55, "height": 64 } - }, - "R lower": { - "R_lower_leg": { "x": 33.18, "y": -0.42, "rotation": 50.06, "width": 57, "height": 65 } - }, - "R upper": { - "R_upper_leg": { "x": 26.1, "y": 2.57, "rotation": 14.14, "width": 124, "height": 71 } - }, - "back": { - "vest": { "x": 47.37, "y": 12.63, "rotation": -64.34, "width": 139, "height": 144 } - }, - "fore wing": { - "foreWing": { "x": 103.77, "y": -7.39, "rotation": -175.44, "width": 253, "height": 78 } - }, - "hair back": { - "backHair": { "x": 71.84, "y": -6.96, "rotation": -44.69, "width": 261, "height": 175 } - }, - "hair front": { - "frontHair": { "x": 144.79, "y": -43.44, "rotation": -8.77, "width": 396, "height": 297 } - }, - "hair mid": { - "midHair": { "x": 98.77, "y": -24.19, "rotation": -27.07, "width": 351, "height": 178 } - }, - "head": { - "head": { "x": 54.08, "y": 79.01, "rotation": -22.61, "width": 613, "height": 408 } - }, - "hip": { - "groinal": { "x": -1.3, "y": -22.13, "width": 103, "height": 84 } - }, - "jaw": { - "jaw": { "x": 37.24, "y": -10.62, "rotation": 16.36, "width": 222, "height": 124 } - }, - "neck": { - "neck": { "x": 11.64, "y": 0.09, "rotation": -62.99, "width": 65, "height": 81 } - }, - "rear wing": { - "rearWing": { "x": 72.18, "y": -9.33, "rotation": -144.54, "width": 136, "height": 146 } - } - } -}, -"animations": { - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3666, - "x": 48.25, - "y": 387.29, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -52.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 42.23 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 17.45 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -12.48, "y": 6.24 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -23.04 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 21.33 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm upper": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -20.49 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R leg lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 18.73 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": -17.83 }, - { "time": 0.2333, "angle": -0.57 }, - { "time": 0.3333, "angle": -22.57 }, - { "time": 0.4333, "angle": 6.45 }, - { "time": 0.5333, "angle": -15.51 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 16.6 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -19.99 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -13.89, "y": -5.83 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 54.98 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": -4.87 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "bone1": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.3743, - "angle": 13.84, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1333, "angle": 30.94 }, - { "time": 0.2333, "angle": -24.35 }, - { "time": 0.3333, "angle": 25.11 }, - { "time": 0.4333, "angle": -6.54 }, - { "time": 0.5333, "angle": 24.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "L hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 57.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 3.65 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.5 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 5.72 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3666, "x": -4.28, "y": 3.04 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.3666, "x": 1.169, "y": 1 }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair mid": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": 6.71 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - }, - "hair front": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3333, "angle": -8.18 }, - { "time": 0.6666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.3333, "x": -17.24, "y": 20.35 }, - { "time": 0.6666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.6666, "x": 1, "y": 1 } - ] - } - } - }, - "running": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 2.79 }, - { "time": 0.2333, "x": 0, "y": -15.43 }, - { "time": 0.5, "x": 0, "y": 8 }, - { "time": 0.7, "x": 0, "y": -8.92 }, - { "time": 0.9666, "x": 0, "y": 2.79 } - ] - }, - "R leg upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": -150.25 }, - { "time": 0.7, "angle": -110.91 }, - { - "time": 0.8333, - "angle": -25.14, - "curve": [ 0.155, 0.16, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": -35.15, "y": 0 }, - { "time": 0.7, "x": -6.5, "y": 0 }, - { "time": 1, "x": 2.6, "y": 0 } - ] - }, - "R leg lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 7.47 }, - { "time": 0.7, "angle": -53.49 }, - { - "time": 0.8333, - "angle": -85.3, - "curve": [ 0.16, 0.21, 0.75, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.7, "x": 2.5, "y": -1.47 }, - { "time": 0.8333, "x": 3.93, "y": -5.18 } - ] - }, - "R foot": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2, "angle": 7.03 }, - { "time": 0.2333, "angle": 18.45 }, - { "time": 0.2666, "angle": 26.41 }, - { "time": 0.3, "angle": 29.63 }, - { "time": 0.5, "angle": -22.49 }, - { "time": 0.7, "angle": -30.93 }, - { "time": 0.8333, "angle": -50.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0.5, "x": 0.7, "y": -3.84 } - ] - }, - "L leg upper": { - "rotate": [ - { - "time": 0, - "angle": -30.25, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.2333, "angle": 77.26 }, - { - "time": 0.5, - "angle": 104.21, - "curve": [ 0.25, 0, 0.29, 1 ] - }, - { "time": 1, "angle": -30.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.5, "x": 22.13, "y": -16.92 }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L leg lower": { - "rotate": [ - { - "time": 0, - "angle": 22.34, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -65.53, - "curve": [ 0.094, -0.03, 0.678, 1.08 ] - }, - { - "time": 0.5, - "angle": 43.39, - "curve": [ 0.25, 0, 0.287, 1 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 1, "x": 0.58, "y": -1.74 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L foot": { - "rotate": [ - { "time": 0, "angle": -22.23 }, - { "time": 0.2333, "angle": -1.44 }, - { "time": 0.5, "angle": 5.06 }, - { "time": 0.6333, "angle": 27.11 }, - { "time": 0.6666, "angle": 50.34 }, - { "time": 1, "angle": -12.47 } - ], - "translate": [ - { "time": 0, "x": -4.13, "y": -3.42 }, - { "time": 0.6333, "x": 1.22, "y": 1.73 }, - { "time": 0.6666, "x": -0.56, "y": 5.49 }, - { "time": 1, "x": -0.87, "y": -0.96 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "back": { - "rotate": [ - { "time": 0, "angle": -1.79 }, - { "time": 0.2333, "angle": -10.71 }, - { "time": 0.5, "angle": -2.16 }, - { "time": 0.7, "angle": -10.27 }, - { "time": 0.9666, "angle": -1.79 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 5.2, "y": -6.5 }, - { "time": 0.5, "x": 1.3, "y": -2.6 }, - { "time": 0.7, "x": 7.81, "y": -6.5 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "R arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.5, "angle": 235.62 }, - { "time": 0.7, "angle": -57.38 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R arm lower": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.068, 0, 0.632, 1.14 ] - }, - { "time": 0.5, "angle": -34.21 }, - { - "time": 0.7, - "angle": 17.35, - "curve": [ 0.221, 0.26, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "R hand": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 30.13 }, - { "time": 0.7, "angle": 3.91 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "L arm upper": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -190.85, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L hand": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 1, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": -15.76, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "L arm lower": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3, "angle": 45.27 }, - { "time": 0.5, "angle": -20.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "fore wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "rear wing": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": 17.36 }, - { "time": 0.5333, "angle": -2.27 }, - { "time": 0.7333, "angle": 20.14 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2666, "angle": -13.61 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.7333, "angle": -11.08 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2666, "x": 4.54, "y": -38.81 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7333, "x": 0.32, "y": -40.1 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "jaw": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.2333, "angle": -3.93 }, - { "time": 0.4666, "angle": 8.79 }, - { "time": 0.7333, "angle": 13.97 }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 4.63, "y": 6.7 }, - { "time": 0.4666, "x": 6.67, "y": -4.82 }, - { "time": 0.7333, "x": 6.8, "y": -7.61 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair back": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": -1.3, "y": -6.5 }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.7666, "x": -3.49, "y": -10.15 }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair front": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - }, - "hair mid": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.2333, - "angle": -3.9, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.5, - "angle": 0, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { - "time": 0.7666, - "angle": -4, - "curve": [ 0.25, 0, 0.75, 1 ] - }, - { "time": 0.9666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9666, "x": 0, "y": 0 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/dragon.atlas b/examples/example 12 - Spine/data/dragon.atlas new file mode 100644 index 0000000..eefbc1d --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.atlas @@ -0,0 +1,290 @@ + +dragon.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_rear_thigh + rotate: false + xy: 895, 20 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +L_wing01 + rotate: false + xy: 814, 672 + size: 191, 256 + orig: 191, 256 + offset: 0, 0 + index: -1 +L_wing02 + rotate: false + xy: 714, 189 + size: 179, 269 + orig: 179, 269 + offset: 0, 0 + index: -1 +L_wing03 + rotate: false + xy: 785, 463 + size: 186, 207 + orig: 186, 207 + offset: 0, 0 + index: -1 +L_wing05 + rotate: true + xy: 2, 9 + size: 218, 213 + orig: 218, 213 + offset: 0, 0 + index: -1 +L_wing06 + rotate: false + xy: 2, 229 + size: 192, 331 + orig: 192, 331 + offset: 0, 0 + index: -1 +R_wing01 + rotate: true + xy: 502, 709 + size: 219, 310 + orig: 219, 310 + offset: 0, 0 + index: -1 +R_wing02 + rotate: true + xy: 204, 463 + size: 203, 305 + orig: 203, 305 + offset: 0, 0 + index: -1 +R_wing03 + rotate: false + xy: 511, 460 + size: 272, 247 + orig: 272, 247 + offset: 0, 0 + index: -1 +R_wing05 + rotate: false + xy: 196, 232 + size: 251, 229 + orig: 251, 229 + offset: 0, 0 + index: -1 +R_wing06 + rotate: false + xy: 2, 562 + size: 200, 366 + orig: 200, 366 + offset: 0, 0 + index: -1 +R_wing07 + rotate: true + xy: 449, 258 + size: 200, 263 + orig: 200, 263 + offset: 0, 0 + index: -1 +R_wing08 + rotate: false + xy: 467, 2 + size: 234, 254 + orig: 234, 254 + offset: 0, 0 + index: -1 +R_wing09 + rotate: false + xy: 217, 26 + size: 248, 204 + orig: 248, 204 + offset: 0, 0 + index: -1 +back + rotate: false + xy: 703, 2 + size: 190, 185 + orig: 190, 185 + offset: 0, 0 + index: -1 +chest + rotate: true + xy: 895, 170 + size: 136, 122 + orig: 136, 122 + offset: 0, 0 + index: -1 +front_toeA + rotate: false + xy: 976, 972 + size: 29, 50 + orig: 29, 50 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 204, 668 + size: 296, 260 + orig: 296, 260 + offset: 0, 0 + index: -1 +logo + rotate: false + xy: 2, 930 + size: 897, 92 + orig: 897, 92 + offset: 0, 0 + index: -1 +tail01 + rotate: false + xy: 895, 308 + size: 120, 153 + orig: 120, 153 + offset: 0, 0 + index: -1 +tail03 + rotate: false + xy: 901, 930 + size: 73, 92 + orig: 73, 92 + offset: 0, 0 + index: -1 + +dragon2.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +L_front_leg + rotate: true + xy: 391, 141 + size: 84, 57 + orig: 84, 57 + offset: 0, 0 + index: -1 +L_front_thigh + rotate: false + xy: 446, 269 + size: 84, 72 + orig: 84, 72 + offset: 0, 0 + index: -1 +L_rear_leg + rotate: true + xy: 888, 342 + size: 168, 132 + orig: 206, 177 + offset: 19, 20 + index: -1 +L_wing04 + rotate: false + xy: 256, 227 + size: 188, 135 + orig: 188, 135 + offset: 0, 0 + index: -1 +L_wing07 + rotate: false + xy: 2, 109 + size: 159, 255 + orig: 159, 255 + offset: 0, 0 + index: -1 +L_wing08 + rotate: true + xy: 705, 346 + size: 164, 181 + orig: 164, 181 + offset: 0, 0 + index: -1 +L_wing09 + rotate: false + xy: 499, 343 + size: 204, 167 + orig: 204, 167 + offset: 0, 0 + index: -1 +R_front_leg + rotate: false + xy: 273, 34 + size: 101, 89 + orig: 101, 89 + offset: 0, 0 + index: -1 +R_front_thigh + rotate: false + xy: 163, 106 + size: 108, 108 + orig: 108, 108 + offset: 0, 0 + index: -1 +R_rear_leg + rotate: false + xy: 273, 125 + size: 116, 100 + orig: 116, 100 + offset: 0, 0 + index: -1 +R_rear_thigh + rotate: false + xy: 163, 216 + size: 91, 148 + orig: 91, 149 + offset: 0, 0 + index: -1 +R_wing04 + rotate: false + xy: 2, 366 + size: 279, 144 + orig: 279, 144 + offset: 0, 0 + index: -1 +chin + rotate: false + xy: 283, 364 + size: 214, 146 + orig: 214, 146 + offset: 0, 0 + index: -1 +front_toeB + rotate: false + xy: 590, 284 + size: 56, 57 + orig: 56, 57 + offset: 0, 0 + index: -1 +rear-toe + rotate: true + xy: 2, 2 + size: 105, 77 + orig: 109, 77 + offset: 0, 0 + index: -1 +tail02 + rotate: true + xy: 151, 9 + size: 95, 120 + orig: 95, 120 + offset: 0, 0 + index: -1 +tail04 + rotate: false + xy: 532, 270 + size: 56, 71 + orig: 56, 71 + offset: 0, 0 + index: -1 +tail05 + rotate: false + xy: 648, 282 + size: 52, 59 + orig: 52, 59 + offset: 0, 0 + index: -1 +tail06 + rotate: true + xy: 81, 12 + size: 95, 68 + orig: 95, 68 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/dragon.json b/examples/example 12 - Spine/data/dragon.json new file mode 100644 index 0000000..0d25038 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.json @@ -0,0 +1,783 @@ +{ +"bones": [ + { "name": "root", "y": -176.12 }, + { "name": "COG", "parent": "root", "y": 176.12 }, + { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, + { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, + { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, + { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, + { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, + { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, + { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, + { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, + { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, + { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, + { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, + { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, + { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, + { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, + { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, + { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, + { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, + { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, + { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, + { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, + { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, + { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, + { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, + { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, + { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, + { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, + { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, + { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, + { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, + { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, + { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } +], +"slots": [ + { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, + { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, + { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, + { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, + { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, + { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, + { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, + { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, + { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, + { "name": "back", "bone": "back", "attachment": "back" }, + { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, + { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, + { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, + { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, + { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, + { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, + { "name": "chest", "bone": "chest", "attachment": "chest" }, + { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, + { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, + { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, + { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, + { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, + { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, + { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, + { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, + { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, + { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, + { "name": "chin", "bone": "chin", "attachment": "chin" }, + { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "logo", "bone": "root", "attachment": "logo" } +], +"skins": { + "default": { + "L_front_leg": { + "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } + }, + "L_front_thigh": { + "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } + }, + "L_front_toe1": { + "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } + }, + "L_front_toe2": { + "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } + }, + "L_front_toe3": { + "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } + }, + "L_front_toe4": { + "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } + }, + "L_rear_leg": { + "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } + }, + "L_rear_thigh": { + "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } + }, + "L_wing": { + "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, + "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, + "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, + "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, + "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, + "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, + "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, + "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, + "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } + }, + "R_front_leg": { + "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } + }, + "R_front_thigh": { + "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } + }, + "R_front_toe1": { + "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } + }, + "R_front_toe2": { + "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } + }, + "R_front_toe3": { + "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } + }, + "R_rear_leg": { + "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } + }, + "R_rear_thigh": { + "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } + }, + "R_rear_toe1": { + "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } + }, + "R_rear_toe2": { + "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } + }, + "R_rear_toe3": { + "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } + }, + "R_wing": { + "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, + "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, + "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, + "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, + "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, + "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, + "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, + "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, + "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } + }, + "back": { + "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } + }, + "chest": { + "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } + }, + "chin": { + "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } + }, + "head": { + "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } + }, + "logo": { + "logo": { "y": -176.72, "width": 897, "height": 92 } + }, + "tail1": { + "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } + }, + "tail2": { + "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } + }, + "tail3": { + "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } + }, + "tail4": { + "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } + }, + "tail5": { + "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } + }, + "tail6": { + "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } + } + } +}, +"animations": { + "flying": { + "slots": { + "L_wing": { + "attachment": [ + { "time": 0, "name": "L_wing01" }, + { "time": 0.0666, "name": "L_wing02" }, + { "time": 0.1333, "name": "L_wing03" }, + { "time": 0.2, "name": "L_wing04" }, + { "time": 0.2666, "name": "L_wing05" }, + { "time": 0.3333, "name": "L_wing06" }, + { "time": 0.4, "name": "L_wing07" }, + { "time": 0.4666, "name": "L_wing08" }, + { "time": 0.5333, "name": "L_wing09" }, + { "time": 0.6, "name": "L_wing01" }, + { "time": 0.7333, "name": "L_wing02" }, + { "time": 0.8, "name": "L_wing03" }, + { "time": 0.8333, "name": "L_wing04" }, + { "time": 0.8666, "name": "L_wing05" }, + { "time": 0.9, "name": "L_wing06" }, + { "time": 0.9333, "name": "L_wing07" }, + { "time": 0.9666, "name": "L_wing08" }, + { "time": 1, "name": "L_wing01" } + ] + }, + "R_wing": { + "attachment": [ + { "time": 0, "name": "R_wing01" }, + { "time": 0.0666, "name": "R_wing02" }, + { "time": 0.1333, "name": "R_wing03" }, + { "time": 0.2, "name": "R_wing04" }, + { "time": 0.2666, "name": "R_wing05" }, + { "time": 0.3333, "name": "R_wing06" }, + { "time": 0.4, "name": "R_wing07" }, + { "time": 0.4666, "name": "R_wing08" }, + { "time": 0.5333, "name": "R_wing09" }, + { "time": 0.6, "name": "R_wing01" }, + { "time": 0.7333, "name": "R_wing02" }, + { "time": 0.7666, "name": "R_wing02" }, + { "time": 0.8, "name": "R_wing03" }, + { "time": 0.8333, "name": "R_wing04" }, + { "time": 0.8666, "name": "R_wing05" }, + { "time": 0.9, "name": "R_wing06" }, + { "time": 0.9333, "name": "R_wing07" }, + { "time": 0.9666, "name": "R_wing08" }, + { "time": 1, "name": "R_wing01" } + ] + } + }, + "bones": { + "back": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.39 }, + { "time": 0.5, "angle": 0 }, + { "time": 0.8333, "angle": 7 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -8.18 }, + { "time": 0.3333, "angle": -23.16 }, + { "time": 0.5, "angle": -18.01 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chest": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -2.42 }, + { "time": 0.3333, "angle": -26.2 }, + { "time": 0.5, "angle": -29.65 }, + { "time": 0.6666, "angle": -23.15 }, + { "time": 0.8333, "angle": -55.46 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_thigh": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -1.12 }, + { "time": 0.3333, "angle": 10.48 }, + { "time": 0.5, "angle": 7.89 }, + { "time": 0.8333, "angle": -10.38 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 8.24 }, + { "time": 0.3333, "angle": 15.21 }, + { "time": 0.5, "angle": 14.84 }, + { "time": 0.8333, "angle": -18.9 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 17.46 }, + { "time": 0.3333, "angle": 22.15 }, + { "time": 0.5, "angle": 22.76 }, + { "time": 0.8333, "angle": -4.37 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail5": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 7.4 }, + { "time": 0.3333, "angle": 28.5 }, + { "time": 0.5, "angle": 21.33 }, + { "time": 0.8333, "angle": -1.27 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "tail6": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 45.99 }, + { "time": 0.4, "angle": 43.53 }, + { "time": 0.5, "angle": 61.79 }, + { "time": 0.8333, "angle": 13.28 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -14.21 }, + { "time": 0.5, "angle": 47.17 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -36.06 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -20.32 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_rear_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": -18.71 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.408, 1.36, 0.675, 1.43 ] + }, + { "time": 0.5, "angle": 1.03 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "chin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.416, 1.15, 0.494, 1.27 ] + }, + { "time": 0.3333, "angle": -5.15 }, + { "time": 0.5, "angle": 9.79 }, + { "time": 0.6666, "angle": 18.94 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -19.18 }, + { "time": 0.3333, "angle": -32.02 }, + { "time": 0.5, "angle": -19.62 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_thigh": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -12.96 }, + { "time": 0.5, "angle": 16.2 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 37.77 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": -16.08 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.33, "y": 1.029 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe4": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 26.51 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.239, "y": 0.993 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.5, "angle": 16.99 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.402, "y": 1.007 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 26.07 }, + { "time": 0.5, "angle": -21.6 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe1": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 29.23 }, + { "time": 0.5, "angle": 34.83 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.412, "y": 1 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe2": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 24.89 }, + { "time": 0.5, "angle": 23.16 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.407, "y": 1.057 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "R_front_toe3": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.1666, "angle": 11.01 }, + { "time": 0.5, "angle": 0, "curve": "stepped" }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 }, + { "time": 0.5, "x": 1.329, "y": 1.181 }, + { "time": 1, "x": 1, "y": 1 } + ] + }, + "L_rear_leg": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.3666, "angle": 25.19 }, + { "time": 0.6666, "angle": -15.65 }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1 } + ] + }, + "COG": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ 0.456, 0.2, 0.422, 1.06 ] + }, + { "time": 0.3333, "angle": 23.93 }, + { + "time": 0.6666, + "angle": 337.8, + "curve": [ 0.41, 0, 0.887, 0.75 ] + }, + { "time": 1, "angle": 0 } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ 0.33, 1, 0.816, 1.33 ] + }, + { + "time": 0.5, + "x": 0, + "y": 113.01, + "curve": [ 0.396, 0, 0.709, 2.03 ] + }, + { "time": 1, "x": 0, "y": 0 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/dragon.png b/examples/example 12 - Spine/data/dragon.png new file mode 100644 index 0000000..bb1fc41 --- /dev/null +++ b/examples/example 12 - Spine/data/dragon.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragon2.png b/examples/example 12 - Spine/data/dragon2.png new file mode 100644 index 0000000..381e77a --- /dev/null +++ b/examples/example 12 - Spine/data/dragon2.png Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBones.json b/examples/example 12 - Spine/data/dragonBones.json deleted file mode 100644 index d56cacd..0000000 --- a/examples/example 12 - Spine/data/dragonBones.json +++ /dev/null @@ -1,332 +0,0 @@ -{"frames": { - -"L_front_leg.png": -{ - "frame": {"x":279,"y":1379,"w":84,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":57}, - "sourceSize": {"w":84,"h":57} -}, -"L_front_thigh.png": -{ - "frame": {"x":193,"y":1379,"w":84,"h":72}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":84,"h":72}, - "sourceSize": {"w":84,"h":72} -}, -"L_rear_leg.png": -{ - "frame": {"x":471,"y":600,"w":206,"h":177}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":206,"h":177}, - "sourceSize": {"w":206,"h":177} -}, -"L_rear_thigh.png": -{ - "frame": {"x":569,"y":1228,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"L_wing01.png": -{ - "frame": {"x":195,"y":1121,"w":191,"h":256}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":191,"h":256}, - "sourceSize": {"w":191,"h":256} -}, -"L_wing02.png": -{ - "frame": {"x":388,"y":1147,"w":179,"h":269}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":179,"h":269}, - "sourceSize": {"w":179,"h":269} -}, -"L_wing03.png": -{ - "frame": {"x":736,"y":1045,"w":186,"h":207}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":186,"h":207}, - "sourceSize": {"w":186,"h":207} -}, -"L_wing04.png": -{ - "frame": {"x":763,"y":908,"w":188,"h":135}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":188,"h":135}, - "sourceSize": {"w":188,"h":135} -}, -"L_wing05.png": -{ - "frame": {"x":251,"y":472,"w":218,"h":213}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":218,"h":213}, - "sourceSize": {"w":218,"h":213} -}, -"L_wing06.png": -{ - "frame": {"x":1,"y":1018,"w":192,"h":331}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":192,"h":331}, - "sourceSize": {"w":192,"h":331} -}, -"L_wing07.png": -{ - "frame": {"x":854,"y":339,"w":159,"h":255}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":159,"h":255}, - "sourceSize": {"w":159,"h":255} -}, -"L_wing08.png": -{ - "frame": {"x":854,"y":156,"w":164,"h":181}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":164,"h":181}, - "sourceSize": {"w":164,"h":181} -}, -"L_wing09.png": -{ - "frame": {"x":217,"y":687,"w":204,"h":167}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":204,"h":167}, - "sourceSize": {"w":204,"h":167} -}, -"R_front_leg.png": -{ - "frame": {"x":679,"y":600,"w":101,"h":89}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":101,"h":89}, - "sourceSize": {"w":101,"h":89} -}, -"R_front_thigh.png": -{ - "frame": {"x":625,"y":1118,"w":108,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":108,"h":108}, - "sourceSize": {"w":108,"h":108} -}, -"R_rear_leg.png": -{ - "frame": {"x":625,"y":937,"w":116,"h":100}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":116,"h":100}, - "sourceSize": {"w":116,"h":100} -}, -"R_rear_thigh.png": -{ - "frame": {"x":924,"y":1115,"w":91,"h":149}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":91,"h":149}, - "sourceSize": {"w":91,"h":149} -}, -"R_wing01.png": -{ - "frame": {"x":788,"y":596,"w":219,"h":310}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":219,"h":310}, - "sourceSize": {"w":219,"h":310} -}, -"R_wing02.png": -{ - "frame": {"x":1,"y":711,"w":203,"h":305}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":203,"h":305}, - "sourceSize": {"w":203,"h":305} -}, -"R_wing03.png": -{ - "frame": {"x":580,"y":95,"w":272,"h":247}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":272,"h":247}, - "sourceSize": {"w":272,"h":247} -}, -"R_wing04.png": -{ - "frame": {"x":299,"y":95,"w":279,"h":144}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":279,"h":144}, - "sourceSize": {"w":279,"h":144} -}, -"R_wing05.png": -{ - "frame": {"x":299,"y":241,"w":251,"h":229}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":251,"h":229}, - "sourceSize": {"w":251,"h":229} -}, -"R_wing06.png": -{ - "frame": {"x":423,"y":779,"w":200,"h":366}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":366}, - "sourceSize": {"w":200,"h":366} -}, -"R_wing07.png": -{ - "frame": {"x":206,"y":856,"w":200,"h":263}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":200,"h":263}, - "sourceSize": {"w":200,"h":263} -}, -"R_wing08.png": -{ - "frame": {"x":552,"y":344,"w":234,"h":254}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":234,"h":254}, - "sourceSize": {"w":234,"h":254} -}, -"R_wing09.png": -{ - "frame": {"x":1,"y":357,"w":248,"h":204}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":248,"h":204}, - "sourceSize": {"w":248,"h":204} -}, -"back.png": -{ - "frame": {"x":1,"y":1351,"w":190,"h":185}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":190,"h":185}, - "sourceSize": {"w":190,"h":185} -}, -"chest.png": -{ - "frame": {"x":625,"y":813,"w":136,"h":122}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":136,"h":122}, - "sourceSize": {"w":136,"h":122} -}, -"chin.png": -{ - "frame": {"x":1,"y":563,"w":214,"h":146}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":214,"h":146}, - "sourceSize": {"w":214,"h":146} -}, -"front_toeA.png": -{ - "frame": {"x":854,"y":95,"w":29,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":50}, - "sourceSize": {"w":29,"h":50} -}, -"front_toeB.png": -{ - "frame": {"x":788,"y":417,"w":56,"h":57}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":57}, - "sourceSize": {"w":56,"h":57} -}, -"head.png": -{ - "frame": {"x":1,"y":95,"w":296,"h":260}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":296,"h":260}, - "sourceSize": {"w":296,"h":260} -}, -"logo.png": -{ - "frame": {"x":1,"y":1,"w":897,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":897,"h":92}, - "sourceSize": {"w":897,"h":92} -}, -"rear-toe.png": -{ - "frame": {"x":625,"y":1039,"w":109,"h":77}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":109,"h":77}, - "sourceSize": {"w":109,"h":77} -}, -"tail01.png": -{ - "frame": {"x":900,"y":1,"w":120,"h":153}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":120,"h":153}, - "sourceSize": {"w":120,"h":153} -}, -"tail02.png": -{ - "frame": {"x":679,"y":691,"w":95,"h":120}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":120}, - "sourceSize": {"w":95,"h":120} -}, -"tail03.png": -{ - "frame": {"x":471,"y":472,"w":73,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":73,"h":92}, - "sourceSize": {"w":73,"h":92} -}, -"tail04.png": -{ - "frame": {"x":788,"y":344,"w":56,"h":71}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":56,"h":71}, - "sourceSize": {"w":56,"h":71} -}, -"tail05.png": -{ - "frame": {"x":788,"y":476,"w":52,"h":59}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":59}, - "sourceSize": {"w":52,"h":59} -}, -"tail06.png": -{ - "frame": {"x":924,"y":1045,"w":95,"h":68}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":95,"h":68}, - "sourceSize": {"w":95,"h":68} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "dragonBones.png", - "format": "RGBA8888", - "size": {"w":1021,"h":1537}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:c753ed84c4fd09adbd6ca3b2ea2d4206$" -} -} diff --git a/examples/example 12 - Spine/data/dragonBones.png b/examples/example 12 - Spine/data/dragonBones.png deleted file mode 100644 index 12cb92e..0000000 --- a/examples/example 12 - Spine/data/dragonBones.png +++ /dev/null Binary files differ diff --git a/examples/example 12 - Spine/data/dragonBonesData.json b/examples/example 12 - Spine/data/dragonBonesData.json deleted file mode 100644 index c65508a..0000000 --- a/examples/example 12 - Spine/data/dragonBonesData.json +++ /dev/null @@ -1,779 +0,0 @@ -{ -"bones": [ - { "name": "root", "y": -176.12 }, - { "name": "COG", "parent": "root", "y": 176.12 }, - { "name": "back", "parent": "COG", "length": 115.37, "x": 16.03, "y": 27.94, "rotation": 151.83 }, - { "name": "chest", "parent": "COG", "length": 31.24, "x": 52.52, "y": 15.34, "rotation": 161.7 }, - { "name": "neck", "parent": "COG", "length": 41.36, "x": 64.75, "y": 11.98, "rotation": 39.05 }, - { "name": "L_front_thigh", "parent": "chest", "length": 67.42, "x": -45.58, "y": 7.92, "rotation": 138.94 }, - { "name": "L_wing", "parent": "chest", "length": 301.12, "x": -7.24, "y": -24.65, "rotation": -75.51 }, - { "name": "R_front_thigh", "parent": "chest", "length": 81.63, "x": -10.89, "y": 28.25, "rotation": 67.96 }, - { "name": "R_rear_thigh", "parent": "back", "length": 123.46, "x": 65.31, "y": 59.89, "rotation": 104.87 }, - { "name": "chin", "parent": "neck", "length": 153.15, "x": 64.62, "y": -6.99, "rotation": -69.07 }, - { "name": "head", "parent": "neck", "length": 188.83, "x": 69.96, "y": 2.49, "rotation": 8.06 }, - { "name": "tail1", "parent": "back", "length": 65.65, "x": 115.37, "y": -0.19, "rotation": 44.31 }, - { "name": "L_front_leg", "parent": "L_front_thigh", "length": 51.57, "x": 67.42, "y": 0.02, "rotation": 43.36 }, - { "name": "L_rear_thigh", "parent": "R_rear_thigh", "length": 88.05, "x": -8.59, "y": 30.18, "rotation": 28.35 }, - { "name": "R_front_leg", "parent": "R_front_thigh", "length": 66.52, "x": 83.04, "y": -0.3, "rotation": 92.7 }, - { "name": "R_rear_leg", "parent": "R_rear_thigh", "length": 91.06, "x": 123.46, "y": -0.26, "rotation": -129.04 }, - { "name": "R_wing", "parent": "head", "length": 359.5, "x": -74.68, "y": 20.9, "rotation": 83.21 }, - { "name": "tail2", "parent": "tail1", "length": 54.5, "x": 65.65, "y": 0.22, "rotation": 12 }, - { "name": "L_front_toe1", "parent": "L_front_leg", "length": 51.44, "x": 45.53, "y": 2.43, "rotation": -98 }, - { "name": "L_front_toe2", "parent": "L_front_leg", "length": 61.97, "x": 51.57, "y": -0.12, "rotation": -55.26 }, - { "name": "L_front_toe3", "parent": "L_front_leg", "length": 45.65, "x": 54.19, "y": 0.6, "scaleX": 1.134, "rotation": -11.13 }, - { "name": "L_front_toe4", "parent": "L_front_leg", "length": 53.47, "x": 50.6, "y": 7.08, "scaleX": 1.134, "rotation": 19.42 }, - { "name": "L_rear_leg", "parent": "L_rear_thigh", "length": 103.74, "x": 96.04, "y": -0.97, "rotation": -122.41 }, - { "name": "R_front_toe1", "parent": "R_front_leg", "length": 46.65, "x": 70.03, "y": 5.31, "rotation": 8.59 }, - { "name": "R_front_toe2", "parent": "R_front_leg", "length": 53.66, "x": 66.52, "y": 0.33, "rotation": -35.02 }, - { "name": "R_front_toe3", "parent": "R_front_leg", "length": 58.38, "x": 62.1, "y": -0.79, "rotation": -74.67 }, - { "name": "R_rear_toe1", "parent": "R_rear_leg", "length": 94.99, "x": 90.06, "y": 2.12, "rotation": 141.98 }, - { "name": "R_rear_toe2", "parent": "R_rear_leg", "length": 99.29, "x": 89.6, "y": 1.52, "rotation": 125.32 }, - { "name": "R_rear_toe3", "parent": "R_rear_leg", "length": 103.45, "x": 91.06, "y": -0.35, "rotation": 112.26 }, - { "name": "tail3", "parent": "tail2", "length": 41.78, "x": 54.5, "y": 0.37, "rotation": 1.8 }, - { "name": "tail4", "parent": "tail3", "length": 34.19, "x": 41.78, "y": 0.16, "rotation": -1.8 }, - { "name": "tail5", "parent": "tail4", "length": 32.32, "x": 34.19, "y": -0.19, "rotation": -3.15 }, - { "name": "tail6", "parent": "tail5", "length": 80.08, "x": 32.32, "y": -0.23, "rotation": -29.55 } -], -"slots": [ - { "name": "L_rear_leg", "bone": "L_rear_leg", "attachment": "L_rear_leg" }, - { "name": "L_rear_thigh", "bone": "L_rear_thigh", "attachment": "L_rear_thigh" }, - { "name": "L_wing", "bone": "L_wing", "attachment": "L_wing01" }, - { "name": "tail6", "bone": "tail6", "attachment": "tail06" }, - { "name": "tail5", "bone": "tail5", "attachment": "tail05" }, - { "name": "tail4", "bone": "tail4", "attachment": "tail04" }, - { "name": "tail3", "bone": "tail3", "attachment": "tail03" }, - { "name": "tail2", "bone": "tail2", "attachment": "tail02" }, - { "name": "tail1", "bone": "tail1", "attachment": "tail01" }, - { "name": "back", "bone": "back", "attachment": "back" }, - { "name": "L_front_thigh", "bone": "L_front_thigh", "attachment": "L_front_thigh" }, - { "name": "L_front_leg", "bone": "L_front_leg", "attachment": "L_front_leg" }, - { "name": "L_front_toe1", "bone": "L_front_toe1", "attachment": "front_toeA" }, - { "name": "L_front_toe4", "bone": "L_front_toe4", "attachment": "front_toeB" }, - { "name": "L_front_toe3", "bone": "L_front_toe3", "attachment": "front_toeB" }, - { "name": "L_front_toe2", "bone": "L_front_toe2", "attachment": "front_toeB" }, - { "name": "chest", "bone": "chest", "attachment": "chest" }, - { "name": "R_rear_toe1", "bone": "R_rear_toe1", "attachment": "rear-toe" }, - { "name": "R_rear_toe2", "bone": "R_rear_toe2", "attachment": "rear-toe" }, - { "name": "R_rear_toe3", "bone": "R_rear_toe3", "attachment": "rear-toe" }, - { "name": "R_rear_leg", "bone": "R_rear_leg", "attachment": "R_rear_leg" }, - { "name": "R_rear_thigh", "bone": "R_rear_thigh", "attachment": "R_rear_thigh" }, - { "name": "R_front_toe1", "bone": "R_front_toe1", "attachment": "front_toeB" }, - { "name": "R_front_thigh", "bone": "R_front_thigh", "attachment": "R_front_thigh" }, - { "name": "R_front_leg", "bone": "R_front_leg", "attachment": "R_front_leg" }, - { "name": "R_front_toe2", "bone": "R_front_toe2", "attachment": "front_toeB" }, - { "name": "R_front_toe3", "bone": "R_front_toe3", "attachment": "front_toeB" }, - { "name": "chin", "bone": "chin", "attachment": "chin" }, - { "name": "R_wing", "bone": "R_wing", "attachment": "R_wing01" }, - { "name": "head", "bone": "head", "attachment": "head" } -], -"skins": { - "default": { - "L_front_leg": { - "L_front_leg": { "x": 14.68, "y": 0.48, "rotation": 15.99, "width": 84, "height": 57 } - }, - "L_front_thigh": { - "L_front_thigh": { "x": 27.66, "y": -11.58, "rotation": 58.66, "width": 84, "height": 72 } - }, - "L_front_toe1": { - "front_toeA": { "x": 31.92, "y": 0.61, "rotation": 109.55, "width": 29, "height": 50 } - }, - "L_front_toe2": { - "front_toeB": { "x": 26.83, "y": -4.94, "rotation": 109.51, "width": 56, "height": 57 } - }, - "L_front_toe3": { - "front_toeB": { "x": 18.21, "y": -7.21, "scaleX": 0.881, "scaleY": 0.94, "rotation": 99.71, "width": 56, "height": 57 } - }, - "L_front_toe4": { - "front_toeB": { "x": 23.21, "y": -11.68, "scaleX": 0.881, "rotation": 79.89, "width": 56, "height": 57 } - }, - "L_rear_leg": { - "L_rear_leg": { "x": 67.29, "y": 12.62, "rotation": -162.65, "width": 206, "height": 177 } - }, - "L_rear_thigh": { - "L_rear_thigh": { "x": 56.03, "y": 27.38, "rotation": 74.93, "width": 91, "height": 149 } - }, - "L_wing": { - "L_wing01": { "x": 129.21, "y": -45.49, "rotation": -83.7, "width": 191, "height": 256 }, - "L_wing02": { "x": 126.37, "y": -31.69, "rotation": -86.18, "width": 179, "height": 269 }, - "L_wing03": { "x": 110.26, "y": -90.89, "rotation": -86.18, "width": 186, "height": 207 }, - "L_wing04": { "x": -61.61, "y": -83.26, "rotation": -86.18, "width": 188, "height": 135 }, - "L_wing05": { "x": -90.01, "y": -78.14, "rotation": -86.18, "width": 218, "height": 213 }, - "L_wing06": { "x": -143.76, "y": -83.71, "rotation": -86.18, "width": 192, "height": 331 }, - "L_wing07": { "x": -133.04, "y": -33.89, "rotation": -86.18, "width": 159, "height": 255 }, - "L_wing08": { "x": 50.15, "y": -15.71, "rotation": -86.18, "width": 164, "height": 181 }, - "L_wing09": { "x": 85.94, "y": -11.32, "rotation": -86.18, "width": 204, "height": 167 } - }, - "R_front_leg": { - "R_front_leg": { "x": 17.79, "y": 4.22, "rotation": 37.62, "width": 101, "height": 89 } - }, - "R_front_thigh": { - "R_front_thigh": { "x": 35.28, "y": 2.11, "rotation": 130.33, "width": 108, "height": 108 } - }, - "R_front_toe1": { - "front_toeB": { "x": 24.49, "y": -2.61, "rotation": 104.18, "width": 56, "height": 57 } - }, - "R_front_toe2": { - "front_toeB": { "x": 26.39, "y": 1.16, "rotation": 104.57, "width": 56, "height": 57 } - }, - "R_front_toe3": { - "front_toeB": { "x": 30.66, "y": -0.06, "rotation": 112.29, "width": 56, "height": 57 } - }, - "R_rear_leg": { - "R_rear_leg": { "x": 60.87, "y": -5.72, "rotation": -127.66, "width": 116, "height": 100 } - }, - "R_rear_thigh": { - "R_rear_thigh": { "x": 53.25, "y": 12.58, "rotation": 103.29, "width": 91, "height": 149 } - }, - "R_rear_toe1": { - "rear-toe": { "x": 54.75, "y": -5.72, "rotation": 134.79, "width": 109, "height": 77 } - }, - "R_rear_toe2": { - "rear-toe": { "x": 57.02, "y": -7.22, "rotation": 134.42, "width": 109, "height": 77 } - }, - "R_rear_toe3": { - "rear-toe": { "x": 47.46, "y": -7.64, "rotation": 134.34, "width": 109, "height": 77 } - }, - "R_wing": { - "R_wing01": { "x": 170.08, "y": -23.67, "rotation": -130.33, "width": 219, "height": 310 }, - "R_wing02": { "x": 171.14, "y": -19.33, "rotation": -130.33, "width": 203, "height": 305 }, - "R_wing03": { "x": 166.46, "y": 29.23, "rotation": -130.33, "width": 272, "height": 247 }, - "R_wing04": { "x": 42.94, "y": 134.05, "rotation": -130.33, "width": 279, "height": 144 }, - "R_wing05": { "x": -8.83, "y": 142.59, "rotation": -130.33, "width": 251, "height": 229 }, - "R_wing06": { "x": -123.33, "y": 111.22, "rotation": -130.33, "width": 200, "height": 366 }, - "R_wing07": { "x": -40.17, "y": 118.03, "rotation": -130.33, "width": 200, "height": 263 }, - "R_wing08": { "x": 48.01, "y": 28.76, "rotation": -130.33, "width": 234, "height": 254 }, - "R_wing09": { "x": 128.1, "y": 21.12, "rotation": -130.33, "width": 248, "height": 204 } - }, - "back": { - "back": { "x": 35.84, "y": 19.99, "rotation": -151.83, "width": 190, "height": 185 } - }, - "chest": { - "chest": { "x": -14.6, "y": 24.78, "rotation": -161.7, "width": 136, "height": 122 } - }, - "chin": { - "chin": { "x": 66.55, "y": 7.32, "rotation": 30.01, "width": 214, "height": 146 } - }, - "head": { - "head": { "x": 76.68, "y": 32.21, "rotation": -47.12, "width": 296, "height": 260 } - }, - "tail1": { - "tail01": { "x": 22.59, "y": -4.5, "rotation": 163.85, "width": 120, "height": 153 } - }, - "tail2": { - "tail02": { "x": 18.11, "y": -1.75, "rotation": 151.84, "width": 95, "height": 120 } - }, - "tail3": { - "tail03": { "x": 16.94, "y": -2, "rotation": 150.04, "width": 73, "height": 92 } - }, - "tail4": { - "tail04": { "x": 15.34, "y": -2.17, "rotation": 151.84, "width": 56, "height": 71 } - }, - "tail5": { - "tail05": { "x": 15.05, "y": -3.57, "rotation": 155, "width": 52, "height": 59 } - }, - "tail6": { - "tail06": { "x": 28.02, "y": -16.83, "rotation": -175.44, "width": 95, "height": 68 } - } - } -}, -"animations": { - "flying": { - "bones": { - "back": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.39 }, - { "time": 0.5, "angle": 0 }, - { "time": 0.8333, "angle": 7 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -8.18 }, - { "time": 0.3333, "angle": -23.16 }, - { "time": 0.5, "angle": -18.01 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chest": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -2.42 }, - { "time": 0.3333, "angle": -26.2 }, - { "time": 0.5, "angle": -29.65 }, - { "time": 0.6666, "angle": -23.15 }, - { "time": 0.8333, "angle": -55.46 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_thigh": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -1.12 }, - { "time": 0.3333, "angle": 10.48 }, - { "time": 0.5, "angle": 7.89 }, - { "time": 0.8333, "angle": -10.38 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 8.24 }, - { "time": 0.3333, "angle": 15.21 }, - { "time": 0.5, "angle": 14.84 }, - { "time": 0.8333, "angle": -18.9 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 17.46 }, - { "time": 0.3333, "angle": 22.15 }, - { "time": 0.5, "angle": 22.76 }, - { "time": 0.8333, "angle": -4.37 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail5": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 7.4 }, - { "time": 0.3333, "angle": 28.5 }, - { "time": 0.5, "angle": 21.33 }, - { "time": 0.8333, "angle": -1.27 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "tail6": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 45.99 }, - { "time": 0.4, "angle": 43.53 }, - { "time": 0.5, "angle": 61.79 }, - { "time": 0.8333, "angle": 13.28 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -14.21 }, - { "time": 0.5, "angle": 47.17 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -36.06 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -20.32 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_rear_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": -18.71 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.408, 1.36, 0.675, 1.43 ] - }, - { "time": 0.5, "angle": 1.03 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "chin": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.416, 1.15, 0.494, 1.27 ] - }, - { "time": 0.3333, "angle": -5.15 }, - { "time": 0.5, "angle": 9.79 }, - { "time": 0.6666, "angle": 18.94 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -19.18 }, - { "time": 0.3333, "angle": -32.02 }, - { "time": 0.5, "angle": -19.62 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_thigh": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -12.96 }, - { "time": 0.5, "angle": 16.2 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 37.77 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": -16.08 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.33, "y": 1.029 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe4": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 26.51 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.239, "y": 0.993 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.5, "angle": 16.99 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.402, "y": 1.007 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 26.07 }, - { "time": 0.5, "angle": -21.6 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.5, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe1": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 29.23 }, - { "time": 0.5, "angle": 34.83 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.412, "y": 1 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe2": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 24.89 }, - { "time": 0.5, "angle": 23.16 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.407, "y": 1.057 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "R_front_toe3": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.1666, "angle": 11.01 }, - { "time": 0.5, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 }, - { "time": 0.5, "x": 1.329, "y": 1.181 }, - { "time": 1, "x": 1, "y": 1 } - ] - }, - "L_rear_leg": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.3666, "angle": 25.19 }, - { "time": 0.6666, "angle": -15.65 }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1 } - ] - }, - "COG": { - "rotate": [ - { - "time": 0, - "angle": 0, - "curve": [ 0.456, 0.2, 0.422, 1.06 ] - }, - { "time": 0.3333, "angle": 23.93 }, - { - "time": 0.6666, - "angle": 337.8, - "curve": [ 0.41, 0, 0.887, 0.75 ] - }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { - "time": 0, - "x": 0, - "y": 0, - "curve": [ 0.33, 1, 0.816, 1.33 ] - }, - { - "time": 0.5, - "x": 0, - "y": 113.01, - "curve": [ 0.396, 0, 0.709, 2.03 ] - }, - { "time": 1, "x": 0, "y": 0 } - ] - } - }, - "slots": { - "R_wing": { - "attachment": [ - { "time": 0, "name": "R_wing01" }, - { "time": 0.0666, "name": "R_wing02" }, - { "time": 0.1333, "name": "R_wing03" }, - { "time": 0.2, "name": "R_wing04" }, - { "time": 0.2666, "name": "R_wing05" }, - { "time": 0.3333, "name": "R_wing06" }, - { "time": 0.4, "name": "R_wing07" }, - { "time": 0.4666, "name": "R_wing08" }, - { "time": 0.5333, "name": "R_wing09" }, - { "time": 0.6, "name": "R_wing01" }, - { "time": 0.7333, "name": "R_wing02" }, - { "time": 0.7666, "name": "R_wing02" }, - { "time": 0.8, "name": "R_wing03" }, - { "time": 0.8333, "name": "R_wing04" }, - { "time": 0.8666, "name": "R_wing05" }, - { "time": 0.9, "name": "R_wing06" }, - { "time": 0.9333, "name": "R_wing07" }, - { "time": 0.9666, "name": "R_wing08" }, - { "time": 1, "name": "R_wing09" } - ] - }, - "L_wing": { - "attachment": [ - { "time": 0, "name": "L_wing01" }, - { "time": 0.0666, "name": "L_wing02" }, - { "time": 0.1333, "name": "L_wing03" }, - { "time": 0.2, "name": "L_wing04" }, - { "time": 0.2666, "name": "L_wing05" }, - { "time": 0.3333, "name": "L_wing06" }, - { "time": 0.4, "name": "L_wing07" }, - { "time": 0.4666, "name": "L_wing08" }, - { "time": 0.5333, "name": "L_wing09" }, - { "time": 0.6, "name": "L_wing01" }, - { "time": 0.7333, "name": "L_wing02" }, - { "time": 0.8, "name": "L_wing03" }, - { "time": 0.8333, "name": "L_wing04" }, - { "time": 0.8666, "name": "L_wing05" }, - { "time": 0.9, "name": "L_wing06" }, - { "time": 0.9333, "name": "L_wing07" }, - { "time": 0.9666, "name": "L_wing08" }, - { "time": 1, "name": "L_wing09" } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/goblins.atlas b/examples/example 12 - Spine/data/goblins.atlas new file mode 100644 index 0000000..c9cb702 --- /dev/null +++ b/examples/example 12 - Spine/data/goblins.atlas @@ -0,0 +1,293 @@ + +goblins.png +size: 228,523 +format: RGBA8888 +filter: Linear,Linear +repeat: none +dagger + rotate: false + xy: 2, 43 + size: 26, 108 + orig: 26, 108 + offset: 0, 0 + index: -1 +goblin/eyes-closed + rotate: false + xy: 166, 237 + size: 34, 12 + orig: 34, 12 + offset: 0, 0 + index: -1 +goblin/head + rotate: false + xy: 26, 372 + size: 103, 66 + orig: 103, 66 + offset: 0, 0 + index: -1 +goblin/left-arm + rotate: false + xy: 166, 251 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblin/left-foot + rotate: true + xy: 195, 358 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblin/left-hand + rotate: false + xy: 49, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/left-lower-leg + rotate: false + xy: 30, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblin/left-shoulder + rotate: true + xy: 169, 288 + size: 29, 44 + orig: 29, 44 + offset: 0, 0 + index: -1 +goblin/left-upper-leg + rotate: false + xy: 134, 305 + size: 33, 73 + orig: 33, 73 + offset: 0, 0 + index: -1 +goblin/neck + rotate: false + xy: 87, 2 + size: 36, 41 + orig: 36, 41 + offset: 0, 0 + index: -1 +goblin/pelvis + rotate: false + xy: 131, 380 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblin/right-arm + rotate: false + xy: 135, 69 + size: 23, 50 + orig: 23, 50 + offset: 0, 0 + index: -1 +goblin/right-foot + rotate: true + xy: 104, 157 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblin/right-hand + rotate: false + xy: 190, 319 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblin/right-lower-leg + rotate: false + xy: 96, 294 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblin/right-shoulder + rotate: true + xy: 2, 2 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblin/right-upper-leg + rotate: false + xy: 139, 162 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblin/torso + rotate: false + xy: 131, 425 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblin/undie-straps + rotate: true + xy: 201, 466 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblin/undies + rotate: false + xy: 190, 51 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +goblingirl/eyes-closed + rotate: true + xy: 201, 427 + size: 37, 21 + orig: 37, 21 + offset: 0, 0 + index: -1 +goblingirl/head + rotate: false + xy: 26, 440 + size: 103, 81 + orig: 103, 81 + offset: 0, 0 + index: -1 +goblingirl/left-arm + rotate: true + xy: 175, 198 + size: 37, 35 + orig: 37, 35 + offset: 0, 0 + index: -1 +goblingirl/left-foot + rotate: true + xy: 133, 227 + size: 65, 31 + orig: 65, 31 + offset: 0, 0 + index: -1 +goblingirl/left-hand + rotate: true + xy: 168, 2 + size: 35, 40 + orig: 35, 40 + offset: 0, 0 + index: -1 +goblingirl/left-lower-leg + rotate: false + xy: 65, 45 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/left-shoulder + rotate: true + xy: 135, 39 + size: 28, 46 + orig: 28, 46 + offset: 0, 0 + index: -1 +goblingirl/left-upper-leg + rotate: false + xy: 98, 222 + size: 33, 70 + orig: 33, 70 + offset: 0, 0 + index: -1 +goblingirl/neck + rotate: true + xy: 125, 2 + size: 35, 41 + orig: 35, 41 + offset: 0, 0 + index: -1 +goblingirl/pelvis + rotate: false + xy: 30, 117 + size: 62, 43 + orig: 62, 43 + offset: 0, 0 + index: -1 +goblingirl/right-arm + rotate: false + xy: 160, 69 + size: 28, 50 + orig: 28, 50 + offset: 0, 0 + index: -1 +goblingirl/right-foot + rotate: true + xy: 100, 56 + size: 63, 33 + orig: 63, 33 + offset: 0, 0 + index: -1 +goblingirl/right-hand + rotate: false + xy: 190, 82 + size: 36, 37 + orig: 36, 37 + offset: 0, 0 + index: -1 +goblingirl/right-lower-leg + rotate: true + xy: 26, 162 + size: 36, 76 + orig: 36, 76 + offset: 0, 0 + index: -1 +goblingirl/right-shoulder + rotate: true + xy: 159, 121 + size: 39, 45 + orig: 39, 45 + offset: 0, 0 + index: -1 +goblingirl/right-upper-leg + rotate: true + xy: 94, 121 + size: 34, 63 + orig: 34, 63 + offset: 0, 0 + index: -1 +goblingirl/torso + rotate: false + xy: 26, 274 + size: 68, 96 + orig: 68, 96 + offset: 0, 0 + index: -1 +goblingirl/undie-straps + rotate: true + xy: 169, 323 + size: 55, 19 + orig: 55, 19 + offset: 0, 0 + index: -1 +goblingirl/undies + rotate: false + xy: 175, 167 + size: 36, 29 + orig: 36, 29 + offset: 0, 0 + index: -1 +shield + rotate: false + xy: 26, 200 + size: 70, 72 + orig: 70, 72 + offset: 0, 0 + index: -1 +spear + rotate: false + xy: 2, 153 + size: 22, 368 + orig: 22, 368 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/goblins.json b/examples/example 12 - Spine/data/goblins.json index f87ec19..5d83ae1 100644 --- a/examples/example 12 - Spine/data/goblins.json +++ b/examples/example 12 - Spine/data/goblins.json @@ -1,332 +1 @@ -{"frames": { - -"dagger.png": -{ - "frame": {"x":2,"y":372,"w":26,"h":108}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":26,"h":108}, - "sourceSize": {"w":26,"h":108} -}, -"goblin/eyes-closed.png": -{ - "frame": {"x":64,"y":354,"w":34,"h":12}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":12}, - "sourceSize": {"w":34,"h":12} -}, -"goblin/head.png": -{ - "frame": {"x":59,"y":83,"w":103,"h":64}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":103,"h":64}, - "sourceSize": {"w":103,"h":66} -}, -"goblin/left-arm.png": -{ - "frame": {"x":30,"y":445,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblin/left-foot.png": -{ - "frame": {"x":59,"y":182,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblin/left-hand.png": -{ - "frame": {"x":107,"y":436,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/left-lower-leg.png": -{ - "frame": {"x":26,"y":74,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblin/left-shoulder.png": -{ - "frame": {"x":26,"y":146,"w":29,"h":44}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":29,"h":44}, - "sourceSize": {"w":29,"h":44} -}, -"goblin/left-upper-leg.png": -{ - "frame": {"x":30,"y":370,"w":33,"h":73}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":73}, - "sourceSize": {"w":33,"h":73} -}, -"goblin/neck.png": -{ - "frame": {"x":146,"y":309,"w":36,"h":41}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":41}, - "sourceSize": {"w":36,"h":41} -}, -"goblin/pelvis.png": -{ - "frame": {"x":163,"y":233,"w":62,"h":43}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":62,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblin/right-arm.png": -{ - "frame": {"x":30,"y":240,"w":23,"h":50}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":23,"h":50}, - "sourceSize": {"w":23,"h":50} -}, -"goblin/right-foot.png": -{ - "frame": {"x":164,"y":198,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblin/right-hand.png": -{ - "frame": {"x":154,"y":462,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblin/right-lower-leg.png": -{ - "frame": {"x":26,"y":292,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblin/right-shoulder.png": -{ - "frame": {"x":105,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblin/right-upper-leg.png": -{ - "frame": {"x":136,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblin/torso.png": -{ - "frame": {"x":164,"y":2,"w":68,"h":96}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblin/undie-straps.png": -{ - "frame": {"x":59,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblin/undies.png": -{ - "frame": {"x":116,"y":479,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"goblingirl/eyes-closed.png": -{ - "frame": {"x":100,"y":419,"w":37,"h":15}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":6,"w":37,"h":15}, - "sourceSize": {"w":37,"h":21} -}, -"goblingirl/head.png": -{ - "frame": {"x":59,"y":2,"w":103,"h":79}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":103,"h":79}, - "sourceSize": {"w":103,"h":81} -}, -"goblingirl/left-arm.png": -{ - "frame": {"x":124,"y":227,"w":37,"h":35}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":37,"h":35}, - "sourceSize": {"w":37,"h":35} -}, -"goblingirl/left-foot.png": -{ - "frame": {"x":59,"y":149,"w":65,"h":31}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":31}, - "sourceSize": {"w":65,"h":31} -}, -"goblingirl/left-hand.png": -{ - "frame": {"x":55,"y":250,"w":35,"h":40}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":40}, - "sourceSize": {"w":35,"h":40} -}, -"goblingirl/left-lower-leg.png": -{ - "frame": {"x":26,"y":2,"w":31,"h":70}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":1,"y":0,"w":31,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/left-shoulder.png": -{ - "frame": {"x":26,"y":192,"w":28,"h":46}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":28,"h":46}, - "sourceSize": {"w":28,"h":46} -}, -"goblingirl/left-upper-leg.png": -{ - "frame": {"x":65,"y":368,"w":33,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":70}, - "sourceSize": {"w":33,"h":70} -}, -"goblingirl/neck.png": -{ - "frame": {"x":145,"y":419,"w":33,"h":41}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":41}, - "sourceSize": {"w":35,"h":41} -}, -"goblingirl/pelvis.png": -{ - "frame": {"x":92,"y":264,"w":60,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":60,"h":43}, - "sourceSize": {"w":62,"h":43} -}, -"goblingirl/right-arm.png": -{ - "frame": {"x":232,"y":100,"w":22,"h":50}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":3,"y":0,"w":22,"h":50}, - "sourceSize": {"w":28,"h":50} -}, -"goblingirl/right-foot.png": -{ - "frame": {"x":59,"y":215,"w":63,"h":33}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":33}, - "sourceSize": {"w":63,"h":33} -}, -"goblingirl/right-hand.png": -{ - "frame": {"x":69,"y":440,"w":36,"h":37}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":37}, - "sourceSize": {"w":36,"h":37} -}, -"goblingirl/right-lower-leg.png": -{ - "frame": {"x":126,"y":149,"w":36,"h":76}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":76}, - "sourceSize": {"w":36,"h":76} -}, -"goblingirl/right-shoulder.png": -{ - "frame": {"x":64,"y":309,"w":39,"h":43}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":2,"w":39,"h":43}, - "sourceSize": {"w":39,"h":45} -}, -"goblingirl/right-upper-leg.png": -{ - "frame": {"x":100,"y":354,"w":34,"h":63}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":63}, - "sourceSize": {"w":34,"h":63} -}, -"goblingirl/torso.png": -{ - "frame": {"x":164,"y":100,"w":66,"h":96}, - "rotated": false, - "trimmed": true, - "spriteSourceSize": {"x":0,"y":0,"w":66,"h":96}, - "sourceSize": {"w":68,"h":96} -}, -"goblingirl/undie-straps.png": -{ - "frame": {"x":2,"y":482,"w":55,"h":19}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":55,"h":19}, - "sourceSize": {"w":55,"h":19} -}, -"goblingirl/undies.png": -{ - "frame": {"x":154,"y":278,"w":36,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":36,"h":29}, - "sourceSize": {"w":36,"h":29} -}, -"spear.png": -{ - "frame": {"x":2,"y":2,"w":22,"h":368}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":22,"h":368}, - "sourceSize": {"w":22,"h":368} -}}, -"meta": { - "app": "http://www.codeandweb.com/texturepacker ", - "version": "1.0", - "image": "goblins.png", - "format": "RGBA8888", - "size": {"w":256,"h":512}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:f89858b99c6b15e23d39806c4170313a:1/1$" -} -} +{"skeleton":{"hash":"BMzsp4a1APif5tjCQwomTTo3Ino","spine":"2.1.05","width":233.95,"height":354.87},"bones":[{"name":"root"},{"name":"hip","parent":"root","x":0.64,"y":114.41},{"name":"left upper leg","parent":"hip","length":50.39,"x":14.45,"y":2.81,"rotation":-89.09},{"name":"pelvis","parent":"hip","x":1.41,"y":-6.57},{"name":"right upper leg","parent":"hip","length":42.45,"x":-20.07,"y":-6.83,"rotation":-97.49},{"name":"torso","parent":"hip","length":85.82,"x":-6.42,"y":1.97,"rotation":93.92},{"name":"left lower leg","parent":"left upper leg","length":49.89,"x":56.34,"y":0.98,"rotation":-16.65},{"name":"left shoulder","parent":"torso","length":35.43,"x":74.04,"y":-20.38,"rotation":-156.96},{"name":"neck","parent":"torso","length":18.38,"x":81.67,"y":-6.34,"rotation":-1.51},{"name":"right lower leg","parent":"right upper leg","length":58.52,"x":42.99,"y":-0.61,"rotation":-14.34},{"name":"right shoulder","parent":"torso","length":37.24,"x":76.02,"y":18.14,"rotation":133.88},{"name":"head","parent":"neck","length":68.28,"x":20.93,"y":11.59,"rotation":-13.92},{"name":"left arm","parent":"left shoulder","length":35.62,"x":37.85,"y":-2.34,"rotation":28.16},{"name":"left foot","parent":"left lower leg","length":46.5,"x":58.94,"y":-7.61,"rotation":102.43},{"name":"right arm","parent":"right shoulder","length":36.74,"x":37.6,"y":0.31,"rotation":36.32},{"name":"right foot","parent":"right lower leg","length":45.45,"x":64.88,"y":0.04,"rotation":110.3},{"name":"left hand","parent":"left arm","length":11.52,"x":35.62,"y":0.07,"rotation":2.7},{"name":"right hand","parent":"right arm","length":15.32,"x":36.9,"y":0.34,"rotation":2.35}],"slots":[{"name":"left shoulder","bone":"left shoulder","attachment":"left shoulder"},{"name":"left arm","bone":"left arm","attachment":"left arm"},{"name":"left hand item","bone":"left hand","attachment":"spear"},{"name":"left hand","bone":"left hand","attachment":"left hand"},{"name":"left foot","bone":"left foot","attachment":"left foot"},{"name":"left lower leg","bone":"left lower leg","attachment":"left lower leg"},{"name":"left upper leg","bone":"left upper leg","attachment":"left upper leg"},{"name":"neck","bone":"neck","attachment":"neck"},{"name":"torso","bone":"torso","attachment":"torso"},{"name":"pelvis","bone":"pelvis","attachment":"pelvis"},{"name":"right foot","bone":"right foot","attachment":"right foot"},{"name":"right lower leg","bone":"right lower leg","attachment":"right lower leg"},{"name":"undie straps","bone":"pelvis","attachment":"undie straps"},{"name":"undies","bone":"pelvis","attachment":"undies"},{"name":"right upper leg","bone":"right upper leg","attachment":"right upper leg"},{"name":"head","bone":"head","attachment":"head"},{"name":"eyes","bone":"head"},{"name":"right shoulder","bone":"right shoulder","attachment":"right shoulder"},{"name":"right arm","bone":"right arm","attachment":"right arm"},{"name":"right hand item","bone":"right hand"},{"name":"right hand","bone":"right hand","attachment":"right hand"},{"name":"right hand item top","bone":"right hand","attachment":"shield"}],"skins":{"default":{"left hand item":{"dagger":{"x":7.88,"y":-23.45,"rotation":10.47,"width":26,"height":108},"spear":{"x":-4.55,"y":39.2,"rotation":13.04,"width":22,"height":368}},"right hand item":{"dagger":{"x":6.51,"y":-24.15,"rotation":-8.06,"width":26,"height":108}},"right hand item top":{"shield":{"rotation":93.49,"width":70,"height":72}}},"goblin":{"eyes":{"eyes closed":{"name":"goblin/eyes-closed","x":32.21,"y":-21.27,"rotation":-88.92,"width":34,"height":12}},"head":{"head":{"name":"goblin/head","x":25.73,"y":2.33,"rotation":-92.29,"width":103,"height":66}},"left arm":{"left arm":{"name":"goblin/left-arm","x":16.7,"y":-1.69,"scaleX":1.057,"scaleY":1.057,"rotation":33.84,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblin/left-foot","x":24.85,"y":8.74,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblin/left-hand","x":3.47,"y":3.41,"scaleX":0.892,"scaleY":0.892,"rotation":31.14,"width":36,"height":41}},"left lower leg":{"left lower leg":{"name":"goblin/left-lower-leg","x":23.58,"y":-2.06,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblin/left-shoulder","x":15.56,"y":-2.26,"rotation":62.01,"width":29,"height":44}},"left upper leg":{"left upper leg":{"name":"goblin/left-upper-leg","x":29.68,"y":-3.87,"rotation":89.09,"width":33,"height":73}},"neck":{"neck":{"name":"goblin/neck","x":10.1,"y":0.42,"rotation":-93.69,"width":36,"height":41}},"pelvis":{"pelvis":{"name":"goblin/pelvis","x":-5.61,"y":0.76,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblin/right-arm","x":16.44,"y":-1.04,"rotation":94.32,"width":23,"height":50}},"right foot":{"right foot":{"name":"goblin/right-foot","x":23.56,"y":9.8,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblin/right-hand","x":7.88,"y":2.78,"rotation":91.96,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblin/right-lower-leg","x":25.68,"y":-3.15,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblin/right-shoulder","x":15.68,"y":-1.03,"rotation":130.65,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblin/right-upper-leg","x":20.35,"y":1.47,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblin/torso","x":38.09,"y":-3.87,"rotation":-94.95,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblin/undie-straps","x":-3.87,"y":13.1,"scaleX":1.089,"width":55,"height":19}},"undies":{"undies":{"name":"goblin/undies","x":6.3,"y":0.12,"rotation":0.91,"width":36,"height":29}}},"goblingirl":{"eyes":{"eyes closed":{"name":"goblingirl/eyes-closed","x":28,"y":-25.54,"rotation":-87.04,"width":37,"height":21}},"head":{"head":{"name":"goblingirl/head","x":27.71,"y":-4.32,"rotation":-85.58,"width":103,"height":81}},"left arm":{"left arm":{"name":"goblingirl/left-arm","x":19.64,"y":-2.42,"rotation":33.05,"width":37,"height":35}},"left foot":{"left foot":{"name":"goblingirl/left-foot","x":25.17,"y":7.92,"rotation":3.32,"width":65,"height":31}},"left hand":{"left hand":{"name":"goblingirl/left-hand","x":4.34,"y":2.39,"scaleX":0.896,"scaleY":0.896,"rotation":30.34,"width":35,"height":40}},"left lower leg":{"left lower leg":{"name":"goblingirl/left-lower-leg","x":25.02,"y":-0.6,"rotation":105.75,"width":33,"height":70}},"left shoulder":{"left shoulder":{"name":"goblingirl/left-shoulder","x":19.8,"y":-0.42,"rotation":61.21,"width":28,"height":46}},"left upper leg":{"left upper leg":{"name":"goblingirl/left-upper-leg","x":30.21,"y":-2.95,"rotation":89.09,"width":33,"height":70}},"neck":{"neck":{"name":"goblingirl/neck","x":6.16,"y":-3.14,"rotation":-98.86,"width":35,"height":41}},"pelvis":{"pelvis":{"name":"goblingirl/pelvis","x":-3.87,"y":3.18,"width":62,"height":43}},"right arm":{"right arm":{"name":"goblingirl/right-arm","x":16.85,"y":-0.66,"rotation":93.52,"width":28,"height":50}},"right foot":{"right foot":{"name":"goblingirl/right-foot","x":23.46,"y":9.66,"rotation":1.52,"width":63,"height":33}},"right hand":{"right hand":{"name":"goblingirl/right-hand","x":7.21,"y":3.43,"rotation":91.16,"width":36,"height":37}},"right lower leg":{"right lower leg":{"name":"goblingirl/right-lower-leg","x":26.15,"y":-3.27,"rotation":111.83,"width":36,"height":76}},"right shoulder":{"right shoulder":{"name":"goblingirl/right-shoulder","x":14.46,"y":0.45,"rotation":129.85,"width":39,"height":45}},"right upper leg":{"right upper leg":{"name":"goblingirl/right-upper-leg","x":19.69,"y":2.13,"rotation":97.49,"width":34,"height":63}},"torso":{"torso":{"name":"goblingirl/torso","x":36.28,"y":-5.14,"rotation":-95.74,"width":68,"height":96}},"undie straps":{"undie straps":{"name":"goblingirl/undie-straps","x":-1.51,"y":14.18,"width":55,"height":19}},"undies":{"undies":{"name":"goblingirl/undies","x":5.4,"y":1.7,"width":36,"height":29}}}},"animations":{"walk":{"slots":{"eyes":{"attachment":[{"time":0.7,"name":"eyes closed"},{"time":0.8,"name":null}]}},"bones":{"left upper leg":{"rotate":[{"time":0,"angle":-26.55},{"time":0.1333,"angle":-8.78},{"time":0.2333,"angle":9.51},{"time":0.3666,"angle":30.74},{"time":0.5,"angle":25.33},{"time":0.6333,"angle":26.11},{"time":0.7333,"angle":-7.7},{"time":0.8666,"angle":-21.19},{"time":1,"angle":-26.55}],"translate":[{"time":0,"x":-1.32,"y":1.7},{"time":0.3666,"x":-0.06,"y":2.42},{"time":1,"x":-1.32,"y":1.7}]},"right upper leg":{"rotate":[{"time":0,"angle":42.45},{"time":0.1333,"angle":52.1},{"time":0.2333,"angle":8.53},{"time":0.5,"angle":-16.93},{"time":0.6333,"angle":1.89},{"time":0.7333,"angle":28.06,"curve":[0.462,0.11,1,1]},{"time":0.8666,"angle":58.68,"curve":[0.5,0.02,1,1]},{"time":1,"angle":42.45}],"translate":[{"time":0,"x":6.23,"y":0},{"time":0.2333,"x":2.14,"y":2.4},{"time":0.5,"x":2.44,"y":4.8},{"time":1,"x":6.23,"y":0}]},"left lower leg":{"rotate":[{"time":0,"angle":-22.98},{"time":0.1333,"angle":-63.5},{"time":0.2333,"angle":-73.76},{"time":0.5,"angle":5.11},{"time":0.6333,"angle":-28.29},{"time":0.7333,"angle":4.08},{"time":0.8666,"angle":3.53},{"time":1,"angle":-22.98}],"translate":[{"time":0,"x":0,"y":0},{"time":0.2333,"x":2.55,"y":-0.47},{"time":0.5,"x":0,"y":0,"curve":"stepped"},{"time":1,"x":0,"y":0}]},"left foot":{"rotate":[{"time":0,"angle":-3.69},{"time":0.1333,"angle":-10.42},{"time":0.2333,"angle":-5.01},{"time":0.3666,"angle":3.87},{"time":0.5,"angle":-3.87},{"time":0.6333,"angle":2.78},{"time":0.7333,"angle":1.68},{"time":0.8666,"angle":-8.54},{"time":1,"angle":-3.69}]},"right shoulder":{"rotate":[{"time":0,"angle":5.29,"curve":[0.264,0,0.75,1]},{"time":0.6333,"angle":6.65},{"time":1,"angle":5.29}]},"right arm":{"rotate":[{"time":0,"angle":-4.02,"curve":[0.267,0,0.804,0.99]},{"time":0.6333,"angle":19.78,"curve":[0.307,0,0.787,0.99]},{"time":1,"angle":-4.02}]},"right hand":{"rotate":[{"time":0,"angle":8.98},{"time":0.6333,"angle":0.51},{"time":1,"angle":8.98}]},"left shoulder":{"rotate":[{"time":0,"angle":6.25,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":-11.78,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":6.25}],"translate":[{"time":0,"x":1.15,"y":0.23}]},"left hand":{"rotate":[{"time":0,"angle":-21.23,"curve":[0.295,0,0.755,0.98]},{"time":0.5,"angle":-27.28,"curve":[0.241,0,0.75,0.97]},{"time":1,"angle":-21.23}]},"left arm":{"rotate":[{"time":0,"angle":28.37,"curve":[0.339,0,0.683,1]},{"time":0.5,"angle":60.09,"curve":[0.281,0,0.686,0.99]},{"time":1,"angle":28.37}]},"torso":{"rotate":[{"time":0,"angle":-10.28},{"time":0.1333,"angle":-15.38,"curve":[0.545,0,0.818,1]},{"time":0.3666,"angle":-9.78,"curve":[0.58,0.17,0.669,0.99]},{"time":0.6333,"angle":-15.75,"curve":[0.235,0.01,0.795,1]},{"time":0.8666,"angle":-7.06,"curve":[0.209,0,0.816,0.98]},{"time":1,"angle":-10.28}],"translate":[{"time":0,"x":-1.29,"y":1.68}]},"right foot":{"rotate":[{"time":0,"angle":-5.25},{"time":0.2333,"angle":-1.91},{"time":0.3666,"angle":-6.45},{"time":0.5,"angle":-5.39},{"time":0.7333,"angle":-11.68},{"time":0.8666,"angle":0.46},{"time":1,"angle":-5.25}]},"right lower leg":{"rotate":[{"time":0,"angle":-3.39,"curve":[0.316,0.01,0.741,0.98]},{"time":0.1333,"angle":-45.53,"curve":[0.229,0,0.738,0.97]},{"time":0.2333,"angle":-4.83},{"time":0.5,"angle":-19.53},{"time":0.6333,"angle":-64.8},{"time":0.7333,"angle":-82.56,"curve":[0.557,0.18,1,1]},{"time":1,"angle":-3.39}],"translate":[{"time":0,"x":0,"y":0,"curve":"stepped"},{"time":0.5,"x":0,"y":0},{"time":0.6333,"x":2.18,"y":0.21},{"time":1,"x":0,"y":0}]},"hip":{"rotate":[{"time":0,"angle":0,"curve":"stepped"},{"time":1,"angle":0}],"translate":[{"time":0,"x":0,"y":-4.16},{"time":0.1333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.3666,"x":0,"y":6.78},{"time":0.5,"x":0,"y":-6.13},{"time":0.6333,"x":0,"y":-7.05,"curve":[0.359,0.47,0.646,0.74]},{"time":0.8666,"x":0,"y":6.78},{"time":1,"x":0,"y":-4.16}]},"neck":{"rotate":[{"time":0,"angle":3.6},{"time":0.1333,"angle":17.49},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17},{"time":0.6333,"angle":18.36},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]},"head":{"rotate":[{"time":0,"angle":3.6,"curve":[0,0,0.704,1.17]},{"time":0.1333,"angle":-0.2},{"time":0.2333,"angle":6.1},{"time":0.3666,"angle":3.45},{"time":0.5,"angle":5.17,"curve":[0,0,0.704,1.61]},{"time":0.6666,"angle":1.1},{"time":0.7333,"angle":6.09},{"time":0.8666,"angle":2.28},{"time":1,"angle":3.6}]}}}}} \ No newline at end of file diff --git a/examples/example 12 - Spine/data/goblins.png b/examples/example 12 - Spine/data/goblins.png index 5c26ca0..f2cdf16 100644 --- a/examples/example 12 - Spine/data/goblins.png +++ b/examples/example 12 - Spine/data/goblins.png Binary files differ diff --git a/examples/example 12 - Spine/data/goblinsSpineData.json b/examples/example 12 - Spine/data/goblinsSpineData.json deleted file mode 100644 index 8d63c62..0000000 --- a/examples/example 12 - Spine/data/goblinsSpineData.json +++ /dev/null @@ -1,502 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, - { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, - { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 }, - { "name": "right upper leg", "parent": "hip", "length": 42.45, "x": -20.07, "y": -6.83, "rotation": -97.49 }, - { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 93.92 }, - { "name": "left lower leg", "parent": "left upper leg", "length": 49.89, "x": 56.34, "y": 0.98, "rotation": -16.65 }, - { "name": "left shoulder", "parent": "torso", "length": 35.43, "x": 74.04, "y": -20.38, "rotation": -156.96 }, - { "name": "neck", "parent": "torso", "length": 18.38, "x": 81.67, "y": -6.34, "rotation": -1.51 }, - { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 42.99, "y": -0.61, "rotation": -14.34 }, - { "name": "right shoulder", "parent": "torso", "length": 37.24, "x": 76.02, "y": 18.14, "rotation": 133.88 }, - { "name": "head", "parent": "neck", "length": 68.28, "x": 20.93, "y": 11.59, "rotation": -13.92 }, - { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 37.85, "y": -2.34, "rotation": 28.16 }, - { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 58.94, "y": -7.61, "rotation": 102.43 }, - { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 37.6, "y": 0.31, "rotation": 36.32 }, - { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, - { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, - { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 } -], -"slots": [ - { "name": "left shoulder", "bone": "left shoulder", "attachment": "left shoulder" }, - { "name": "left arm", "bone": "left arm", "attachment": "left arm" }, - { "name": "left hand item", "bone": "left hand", "attachment": "spear" }, - { "name": "left hand", "bone": "left hand", "attachment": "left hand" }, - { "name": "left foot", "bone": "left foot", "attachment": "left foot" }, - { "name": "left lower leg", "bone": "left lower leg", "attachment": "left lower leg" }, - { "name": "left upper leg", "bone": "left upper leg", "attachment": "left upper leg" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "torso", "bone": "torso", "attachment": "torso" }, - { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, - { "name": "right foot", "bone": "right foot", "attachment": "right foot" }, - { "name": "right lower leg", "bone": "right lower leg", "attachment": "right lower leg" }, - { "name": "undie straps", "bone": "pelvis", "attachment": "undie straps" }, - { "name": "undies", "bone": "pelvis", "attachment": "undies" }, - { "name": "right upper leg", "bone": "right upper leg", "attachment": "right upper leg" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "eyes", "bone": "head" }, - { "name": "right shoulder", "bone": "right shoulder", "attachment": "right shoulder" }, - { "name": "right arm", "bone": "right arm", "attachment": "right arm" }, - { "name": "right hand item", "bone": "right hand", "attachment": "dagger" }, - { "name": "right hand", "bone": "right hand", "attachment": "right hand" } -], -"skins": { - "default": { - "left hand item": { - "dagger": { "x": 7.88, "y": -23.45, "rotation": 10.47, "width": 26, "height": 108 }, - "spear": { "x": -4.55, "y": 39.2, "rotation": 13.04, "width": 22, "height": 368 } - }, - "right hand item": { - "dagger": { "x": 6.51, "y": -24.15, "rotation": -8.06, "width": 26, "height": 108 } - } - }, - "goblin": { - "eyes": { - "eyes closed": { "name": "goblin/eyes-closed", "x": 32.21, "y": -21.27, "rotation": -88.92, "width": 34, "height": 12 } - }, - "head": { - "head": { "name": "goblin/head", "x": 25.73, "y": 2.33, "rotation": -92.29, "width": 103, "height": 66 } - }, - "left arm": { - "left arm": { - "name": "goblin/left-arm", - "x": 16.7, - "y": -1.69, - "scaleX": 1.057, - "scaleY": 1.057, - "rotation": 33.84, - "width": 37, - "height": 35 - } - }, - "left foot": { - "left foot": { "name": "goblin/left-foot", "x": 24.85, "y": 8.74, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblin/left-hand", - "x": 3.47, - "y": 3.41, - "scaleX": 0.892, - "scaleY": 0.892, - "rotation": 31.14, - "width": 36, - "height": 41 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblin/left-lower-leg", "x": 23.58, "y": -2.06, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblin/left-shoulder", "x": 15.56, "y": -2.26, "rotation": 62.01, "width": 29, "height": 44 } - }, - "left upper leg": { - "left upper leg": { "name": "goblin/left-upper-leg", "x": 29.68, "y": -3.87, "rotation": 89.09, "width": 33, "height": 73 } - }, - "neck": { - "neck": { "name": "goblin/neck", "x": 10.1, "y": 0.42, "rotation": -93.69, "width": 36, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblin/pelvis", "x": -5.61, "y": 0.76, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblin/right-arm", "x": 16.44, "y": -1.04, "rotation": 94.32, "width": 23, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblin/right-foot", "x": 23.56, "y": 9.8, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblin/right-hand", "x": 7.88, "y": 2.78, "rotation": 91.96, "width": 36, "height": 37 } - }, - "right lower leg": { - "right lower leg": { "name": "goblin/right-lower-leg", "x": 25.68, "y": -3.15, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblin/right-shoulder", "x": 15.68, "y": -1.03, "rotation": 130.65, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblin/right-upper-leg", "x": 20.35, "y": 1.47, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblin/torso", "x": 38.09, "y": -3.87, "rotation": -94.95, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblin/undie-straps", "x": -3.87, "y": 13.1, "scaleX": 1.089, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblin/undies", "x": 6.3, "y": 0.12, "rotation": 0.91, "width": 36, "height": 29 } - } - }, - "goblingirl": { - "eyes": { - "eyes closed": { "name": "goblingirl/eyes-closed", "x": 28, "y": -25.54, "rotation": -87.04, "width": 37, "height": 21 } - }, - "head": { - "head": { "name": "goblingirl/head", "x": 27.71, "y": -4.32, "rotation": -85.58, "width": 103, "height": 81 } - }, - "left arm": { - "left arm": { "name": "goblingirl/left-arm", "x": 19.64, "y": -2.42, "rotation": 33.05, "width": 37, "height": 35 } - }, - "left foot": { - "left foot": { "name": "goblingirl/left-foot", "x": 25.17, "y": 7.92, "rotation": 3.32, "width": 65, "height": 31 } - }, - "left hand": { - "left hand": { - "name": "goblingirl/left-hand", - "x": 4.34, - "y": 2.39, - "scaleX": 0.896, - "scaleY": 0.896, - "rotation": 30.34, - "width": 35, - "height": 40 - } - }, - "left lower leg": { - "left lower leg": { "name": "goblingirl/left-lower-leg", "x": 25.02, "y": -0.6, "rotation": 105.75, "width": 33, "height": 70 } - }, - "left shoulder": { - "left shoulder": { "name": "goblingirl/left-shoulder", "x": 19.8, "y": -0.42, "rotation": 61.21, "width": 28, "height": 46 } - }, - "left upper leg": { - "left upper leg": { "name": "goblingirl/left-upper-leg", "x": 30.21, "y": -2.95, "rotation": 89.09, "width": 33, "height": 70 } - }, - "neck": { - "neck": { "name": "goblingirl/neck", "x": 6.16, "y": -3.14, "rotation": -98.86, "width": 35, "height": 41 } - }, - "pelvis": { - "pelvis": { "name": "goblingirl/pelvis", "x": -3.87, "y": 3.18, "width": 62, "height": 43 } - }, - "right arm": { - "right arm": { "name": "goblingirl/right-arm", "x": 16.85, "y": -0.66, "rotation": 93.52, "width": 28, "height": 50 } - }, - "right foot": { - "right foot": { "name": "goblingirl/right-foot", "x": 23.46, "y": 9.66, "rotation": 1.52, "width": 63, "height": 33 } - }, - "right hand": { - "right hand": { "name": "goblingirl/right-hand", "x": 7.21, "y": 3.43, "rotation": 91.16, "width": 36, "height": 37 } - }, - "right hand item": { - "right hand item": { "name": "goblingirl/dagger-tip", "x": 13.45, "y": 22.07, "rotation": -3.23, "width": 17, "height": 17 } - }, - "right lower leg": { - "right lower leg": { "name": "goblingirl/right-lower-leg", "x": 26.15, "y": -3.27, "rotation": 111.83, "width": 36, "height": 76 } - }, - "right shoulder": { - "right shoulder": { "name": "goblingirl/right-shoulder", "x": 14.46, "y": 0.45, "rotation": 129.85, "width": 39, "height": 45 } - }, - "right upper leg": { - "right upper leg": { "name": "goblingirl/right-upper-leg", "x": 19.69, "y": 2.13, "rotation": 97.49, "width": 34, "height": 63 } - }, - "torso": { - "torso": { "name": "goblingirl/torso", "x": 36.28, "y": -5.14, "rotation": -95.74, "width": 68, "height": 96 } - }, - "undie straps": { - "undie straps": { "name": "goblingirl/undie-straps", "x": -1.51, "y": 14.18, "width": 55, "height": 19 } - }, - "undies": { - "undies": { "name": "goblingirl/undies", "x": 5.4, "y": 1.7, "width": 36, "height": 29 } - } - } -}, -"animations": { - "walk": { - "bones": { - "left upper leg": { - "rotate": [ - { "time": 0, "angle": -26.55 }, - { "time": 0.1333, "angle": -8.78 }, - { "time": 0.2333, "angle": 9.51 }, - { "time": 0.3666, "angle": 30.74 }, - { "time": 0.5, "angle": 25.33 }, - { "time": 0.6333, "angle": 26.11 }, - { "time": 0.7333, "angle": -7.7 }, - { "time": 0.8666, "angle": -21.19 }, - { "time": 1, "angle": -26.55 } - ], - "translate": [ - { "time": 0, "x": -1.32, "y": 1.7 }, - { "time": 0.3666, "x": -0.06, "y": 2.42 }, - { "time": 1, "x": -1.32, "y": 1.7 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 42.45 }, - { "time": 0.1333, "angle": 52.1 }, - { "time": 0.2333, "angle": 8.53 }, - { "time": 0.5, "angle": -16.93 }, - { "time": 0.6333, "angle": 1.89 }, - { - "time": 0.7333, - "angle": 28.06, - "curve": [ 0.462, 0.11, 1, 1 ] - }, - { - "time": 0.8666, - "angle": 58.68, - "curve": [ 0.5, 0.02, 1, 1 ] - }, - { "time": 1, "angle": 42.45 } - ], - "translate": [ - { "time": 0, "x": 6.23, "y": 0 }, - { "time": 0.2333, "x": 2.14, "y": 2.4 }, - { "time": 0.5, "x": 2.44, "y": 4.8 }, - { "time": 1, "x": 6.23, "y": 0 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -22.98 }, - { "time": 0.1333, "angle": -63.5 }, - { "time": 0.2333, "angle": -73.76 }, - { "time": 0.5, "angle": 5.11 }, - { "time": 0.6333, "angle": -28.29 }, - { "time": 0.7333, "angle": 4.08 }, - { "time": 0.8666, "angle": 3.53 }, - { "time": 1, "angle": -22.98 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { "time": 0.2333, "x": 2.55, "y": -0.47 }, - { "time": 0.5, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": -3.69 }, - { "time": 0.1333, "angle": -10.42 }, - { "time": 0.2333, "angle": -5.01 }, - { "time": 0.3666, "angle": 3.87 }, - { "time": 0.5, "angle": -3.87 }, - { "time": 0.6333, "angle": 2.78 }, - { "time": 0.7333, "angle": 1.68 }, - { "time": 0.8666, "angle": -8.54 }, - { "time": 1, "angle": -3.69 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 5.29, - "curve": [ 0.264, 0, 0.75, 1 ] - }, - { "time": 0.6333, "angle": 6.65 }, - { "time": 1, "angle": 5.29 } - ] - }, - "right arm": { - "rotate": [ - { - "time": 0, - "angle": -4.02, - "curve": [ 0.267, 0, 0.804, 0.99 ] - }, - { - "time": 0.6333, - "angle": 19.78, - "curve": [ 0.307, 0, 0.787, 0.99 ] - }, - { "time": 1, "angle": -4.02 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 8.98 }, - { "time": 0.6333, "angle": 0.51 }, - { "time": 1, "angle": 8.98 } - ] - }, - "left shoulder": { - "rotate": [ - { - "time": 0, - "angle": 6.25, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": -11.78, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 6.25 } - ], - "translate": [ - { "time": 0, "x": 1.15, "y": 0.23 } - ] - }, - "left hand": { - "rotate": [ - { - "time": 0, - "angle": -21.23, - "curve": [ 0.295, 0, 0.755, 0.98 ] - }, - { - "time": 0.5, - "angle": -27.28, - "curve": [ 0.241, 0, 0.75, 0.97 ] - }, - { "time": 1, "angle": -21.23 } - ] - }, - "left arm": { - "rotate": [ - { - "time": 0, - "angle": 28.37, - "curve": [ 0.339, 0, 0.683, 1 ] - }, - { - "time": 0.5, - "angle": 60.09, - "curve": [ 0.281, 0, 0.686, 0.99 ] - }, - { "time": 1, "angle": 28.37 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -10.28 }, - { - "time": 0.1333, - "angle": -15.38, - "curve": [ 0.545, 0, 0.818, 1 ] - }, - { - "time": 0.3666, - "angle": -9.78, - "curve": [ 0.58, 0.17, 0.669, 0.99 ] - }, - { - "time": 0.6333, - "angle": -15.75, - "curve": [ 0.235, 0.01, 0.795, 1 ] - }, - { - "time": 0.8666, - "angle": -7.06, - "curve": [ 0.209, 0, 0.816, 0.98 ] - }, - { "time": 1, "angle": -10.28 } - ], - "translate": [ - { "time": 0, "x": -1.29, "y": 1.68 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": -5.25 }, - { "time": 0.2333, "angle": -1.91 }, - { "time": 0.3666, "angle": -6.45 }, - { "time": 0.5, "angle": -5.39 }, - { "time": 0.7333, "angle": -11.68 }, - { "time": 0.8666, "angle": 0.46 }, - { "time": 1, "angle": -5.25 } - ] - }, - "right lower leg": { - "rotate": [ - { - "time": 0, - "angle": -3.39, - "curve": [ 0.316, 0.01, 0.741, 0.98 ] - }, - { - "time": 0.1333, - "angle": -45.53, - "curve": [ 0.229, 0, 0.738, 0.97 ] - }, - { "time": 0.2333, "angle": -4.83 }, - { "time": 0.5, "angle": -19.53 }, - { "time": 0.6333, "angle": -64.8 }, - { - "time": 0.7333, - "angle": -82.56, - "curve": [ 0.557, 0.18, 1, 1 ] - }, - { "time": 1, "angle": -3.39 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.5, "x": 0, "y": 0 }, - { "time": 0.6333, "x": 2.18, "y": 0.21 }, - { "time": 1, "x": 0, "y": 0 } - ] - }, - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 1, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": -4.16 }, - { - "time": 0.1333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.3666, "x": 0, "y": 6.78 }, - { "time": 0.5, "x": 0, "y": -6.13 }, - { - "time": 0.6333, - "x": 0, - "y": -7.05, - "curve": [ 0.359, 0.47, 0.646, 0.74 ] - }, - { "time": 0.8666, "x": 0, "y": 6.78 }, - { "time": 1, "x": 0, "y": -4.16 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 3.6 }, - { "time": 0.1333, "angle": 17.49 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { "time": 0.5, "angle": 5.17 }, - { "time": 0.6333, "angle": 18.36 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 3.6, - "curve": [ 0, 0, 0.704, 1.17 ] - }, - { "time": 0.1333, "angle": -0.2 }, - { "time": 0.2333, "angle": 6.1 }, - { "time": 0.3666, "angle": 3.45 }, - { - "time": 0.5, - "angle": 5.17, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.6666, "angle": 1.1 }, - { "time": 0.7333, "angle": 6.09 }, - { "time": 0.8666, "angle": 2.28 }, - { "time": 1, "angle": 3.6 } - ] - } - }, - "slots": { - "eyes": { - "attachment": [ - { "time": 0.7, "name": "eyes closed" }, - { "time": 0.8, "name": null } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/data/spineboy.atlas b/examples/example 12 - Spine/data/spineboy.atlas new file mode 100644 index 0000000..cf32cd0 --- /dev/null +++ b/examples/example 12 - Spine/data/spineboy.atlas @@ -0,0 +1,165 @@ +spineboy.png +format: RGBA8888 +filter: Linear,Linear +repeat: none +eyes-closed + rotate: false + xy: 73, 509 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +eyes + rotate: false + xy: 75, 464 + size: 34, 27 + orig: 34, 27 + offset: 0, 0 + index: -1 +head + rotate: false + xy: 2, 2 + size: 121, 132 + orig: 121, 132 + offset: 0, 0 + index: -1 +left-ankle + rotate: false + xy: 96, 351 + size: 25, 32 + orig: 25, 32 + offset: 0, 0 + index: -1 +left-arm + rotate: false + xy: 39, 423 + size: 35, 29 + orig: 35, 29 + offset: 0, 0 + index: -1 +left-foot + rotate: false + xy: 2, 262 + size: 65, 30 + orig: 65, 30 + offset: 0, 0 + index: -1 +left-hand + rotate: false + xy: 2, 423 + size: 35, 38 + orig: 35, 38 + offset: 0, 0 + index: -1 +left-lower-leg + rotate: false + xy: 72, 202 + size: 49, 64 + orig: 49, 64 + offset: 0, 0 + index: -1 +left-pant-bottom + rotate: false + xy: 2, 363 + size: 44, 22 + orig: 44, 22 + offset: 0, 0 + index: -1 +left-shoulder + rotate: false + xy: 39, 454 + size: 34, 53 + orig: 34, 53 + offset: 0, 0 + index: -1 +left-upper-leg + rotate: false + xy: 2, 464 + size: 33, 67 + orig: 33, 67 + offset: 0, 0 + index: -1 +neck + rotate: false + xy: 37, 509 + size: 34, 28 + orig: 34, 28 + offset: 0, 0 + index: -1 +pelvis + rotate: false + xy: 2, 294 + size: 63, 47 + orig: 63, 47 + offset: 0, 0 + index: -1 +right-ankle + rotate: false + xy: 96, 385 + size: 25, 30 + orig: 25, 30 + offset: 0, 0 + index: -1 +right-arm + rotate: false + xy: 96, 417 + size: 21, 45 + orig: 21, 45 + offset: 0, 0 + index: -1 +right-foot-idle + rotate: false + xy: 69, 268 + size: 53, 28 + orig: 53, 28 + offset: 0, 0 + index: -1 +right-foot + rotate: false + xy: 2, 230 + size: 67, 30 + orig: 67, 30 + offset: 0, 0 + index: -1 +right-hand + rotate: false + xy: 2, 387 + size: 32, 32 + orig: 32, 32 + offset: 0, 0 + index: -1 +right-lower-leg + rotate: false + xy: 72, 136 + size: 51, 64 + orig: 51, 64 + offset: 0, 0 + index: -1 +right-pant-bottom + rotate: false + xy: 2, 343 + size: 46, 18 + orig: 46, 18 + offset: 0, 0 + index: -1 +right-shoulder + rotate: false + xy: 67, 298 + size: 52, 51 + orig: 52, 51 + offset: 0, 0 + index: -1 +right-upper-leg + rotate: false + xy: 50, 351 + size: 44, 70 + orig: 44, 70 + offset: 0, 0 + index: -1 +torso + rotate: false + xy: 2, 136 + size: 68, 92 + orig: 68, 92 + offset: 0, 0 + index: -1 diff --git a/examples/example 12 - Spine/data/spineboy.json b/examples/example 12 - Spine/data/spineboy.json index 54f9d82..17c5095 100755 --- a/examples/example 12 - Spine/data/spineboy.json +++ b/examples/example 12 - Spine/data/spineboy.json @@ -1,196 +1,787 @@ -{"frames": { - -"head": { - "frame": {"x":1,"y":122,"w":121,"h":132}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":121,"h":132}, - "sourceSize": {"w":121,"h":132} +"bones": [ + { "name": "root" }, + { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, + { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, + { "name": "left lower leg", "parent": "left upper leg", "length": 56.45, "x": 51.78, "y": 3.46, "rotation": -16.65 }, + { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 64.02, "y": -8.67, "rotation": 102.43 }, + { "name": "right upper leg", "parent": "hip", "length": 45.76, "x": -18.27, "rotation": -101.13 }, + { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 50.21, "y": 0.6, "rotation": -10.7 }, + { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, + { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 94.95 }, + { "name": "neck", "parent": "torso", "length": 18.38, "x": 83.64, "y": -1.78, "rotation": 0.9 }, + { "name": "head", "parent": "neck", "length": 68.28, "x": 19.09, "y": 6.97, "rotation": -8.94 }, + { "name": "right shoulder", "parent": "torso", "length": 49.95, "x": 81.9, "y": 6.79, "rotation": 130.6 }, + { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 49.95, "y": -0.12, "rotation": 40.12 }, + { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 }, + { "name": "left shoulder", "parent": "torso", "length": 44.19, "x": 78.96, "y": -15.75, "rotation": -156.96 }, + { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 44.19, "y": -0.01, "rotation": 28.16 }, + { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, + { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 } +], +"slots": [ + { "name": "left shoulder", "bone": "left shoulder", "attachment": "left-shoulder" }, + { "name": "left arm", "bone": "left arm", "attachment": "left-arm" }, + { "name": "left hand", "bone": "left hand", "attachment": "left-hand" }, + { "name": "left foot", "bone": "left foot", "attachment": "left-foot" }, + { "name": "left lower leg", "bone": "left lower leg", "attachment": "left-lower-leg" }, + { "name": "left upper leg", "bone": "left upper leg", "attachment": "left-upper-leg" }, + { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, + { "name": "right foot", "bone": "right foot", "attachment": "right-foot" }, + { "name": "right lower leg", "bone": "right lower leg", "attachment": "right-lower-leg" }, + { "name": "right upper leg", "bone": "right upper leg", "attachment": "right-upper-leg" }, + { "name": "torso", "bone": "torso", "attachment": "torso" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "head", "bone": "head", "attachment": "head" }, + { "name": "eyes", "bone": "head", "attachment": "eyes" }, + { "name": "right shoulder", "bone": "right shoulder", "attachment": "right-shoulder" }, + { "name": "right arm", "bone": "right arm", "attachment": "right-arm" }, + { "name": "right hand", "bone": "right hand", "attachment": "right-hand" } +], +"skins": { + "default": { + "left shoulder": { + "left-shoulder": { "x": 23.74, "y": 0.11, "rotation": 62.01, "width": 34, "height": 53 } + }, + "left arm": { + "left-arm": { "x": 15.11, "y": -0.44, "rotation": 33.84, "width": 35, "height": 29 } + }, + "left hand": { + "left-hand": { "x": 0.75, "y": 1.86, "rotation": 31.14, "width": 35, "height": 38 } + }, + "left foot": { + "left-foot": { "x": 24.35, "y": 8.88, "rotation": 3.32, "width": 65, "height": 30 } + }, + "left lower leg": { + "left-lower-leg": { "x": 24.55, "y": -1.92, "rotation": 105.75, "width": 49, "height": 64 } + }, + "left upper leg": { + "left-upper-leg": { "x": 26.12, "y": -1.85, "rotation": 89.09, "width": 33, "height": 67 } + }, + "pelvis": { + "pelvis": { "x": -4.83, "y": 10.62, "width": 63, "height": 47 } + }, + "right foot": { + "right-foot": { "x": 19.02, "y": 8.47, "rotation": 1.52, "width": 67, "height": 30 } + }, + "right lower leg": { + "right-lower-leg": { "x": 23.28, "y": -2.59, "rotation": 111.83, "width": 51, "height": 64 } + }, + "right upper leg": { + "right-upper-leg": { "x": 23.03, "y": 0.25, "rotation": 101.13, "width": 44, "height": 70 } + }, + "torso": { + "torso": { "x": 44.57, "y": -7.08, "rotation": -94.95, "width": 68, "height": 92 } + }, + "neck": { + "neck": { "x": 9.42, "y": -3.66, "rotation": -100.15, "width": 34, "height": 28 } + }, + "head": { + "head": { "x": 53.94, "y": -5.75, "rotation": -86.9, "width": 121, "height": 132 } + }, + "eyes": { + "eyes": { "x": 28.94, "y": -32.92, "rotation": -86.9, "width": 34, "height": 27 }, + "eyes-closed": { "x": 28.77, "y": -32.86, "rotation": -86.9, "width": 34, "height": 27 } + }, + "right shoulder": { + "right-shoulder": { "x": 25.86, "y": 0.03, "rotation": 134.44, "width": 52, "height": 51 } + }, + "right arm": { + "right-arm": { "x": 18.34, "y": -2.64, "rotation": 94.32, "width": 21, "height": 45 } + }, + "right hand": { + "right-hand": { "x": 6.82, "y": 1.25, "rotation": 91.96, "width": 32, "height": 32 } + } + } }, -"torso": -{ - "frame": {"x":1,"y":28,"w":68,"h":92}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":68,"h":92}, - "sourceSize": {"w":68,"h":92} -}, -"left-pant-bottom": -{ - "frame": {"x":1,"y":4,"w":44,"h":22}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":44,"h":22}, - "sourceSize": {"w":44,"h":22} -}, -"right-pant-bottom": -{ - "frame": {"x":47,"y":8,"w":46,"h":18}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":46,"h":18}, - "sourceSize": {"w":46,"h":18} -}, -"right-upper-leg": -{ - "frame": {"x":71,"y":50,"w":44,"h":70}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":44,"h":70}, - "sourceSize": {"w":44,"h":70} -}, -"pelvis": -{ - "frame": {"x":95,"y":1,"w":63,"h":47}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":63,"h":47}, - "sourceSize": {"w":63,"h":47} -}, -"left-upper-leg": -{ - "frame": {"x":117,"y":53,"w":33,"h":67}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":33,"h":67}, - "sourceSize": {"w":33,"h":67} -}, -"right-foot": -{ - "frame": {"x":160,"y":224,"w":67,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":67,"h":30}, - "sourceSize": {"w":67,"h":30} -}, -"left-shoulder": -{ - "frame": {"x":124,"y":201,"w":34,"h":53}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":53}, - "sourceSize": {"w":34,"h":53} -}, -"left-ankle": -{ - "frame": {"x":229,"y":222,"w":25,"h":32}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":25,"h":32}, - "sourceSize": {"w":25,"h":32} -}, -"left-foot": -{ - "frame": {"x":160,"y":192,"w":65,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":65,"h":30}, - "sourceSize": {"w":65,"h":30} -}, -"neck": -{ - "frame": {"x":124,"y":171,"w":34,"h":28}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":28}, - "sourceSize": {"w":34,"h":28} -}, -"right-arm": -{ - "frame": {"x":124,"y":124,"w":21,"h":45}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":21,"h":45}, - "sourceSize": {"w":21,"h":45} -}, -"right-ankle": -{ - "frame": {"x":227,"y":190,"w":25,"h":30}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":25,"h":30}, - "sourceSize": {"w":25,"h":30} -}, -"left-hand": -{ - "frame": {"x":147,"y":131,"w":35,"h":38}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":38}, - "sourceSize": {"w":35,"h":38} -}, -"left-arm": -{ - "frame": {"x":184,"y":161,"w":35,"h":29}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":35,"h":29}, - "sourceSize": {"w":35,"h":29} -}, -"eyes-closed": -{ - "frame": {"x":221,"y":161,"w":34,"h":27}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, - "sourceSize": {"w":34,"h":27} -}, -"right-lower-leg": -{ - "frame": {"x":152,"y":65,"w":51,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":51,"h":64}, - "sourceSize": {"w":51,"h":64} -}, -"right-foot-idle": -{ - "frame": {"x":184,"y":131,"w":53,"h":28}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":53,"h":28}, - "sourceSize": {"w":53,"h":28} -}, -"left-lower-leg": -{ - "frame": {"x":205,"y":65,"w":49,"h":64}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":49,"h":64}, - "sourceSize": {"w":49,"h":64} -}, -"right-shoulder": -{ - "frame": {"x":160,"y":12,"w":52,"h":51}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":52,"h":51}, - "sourceSize": {"w":52,"h":51} -}, -"eyes": -{ - "frame": {"x":214,"y":36,"w":34,"h":27}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, - "sourceSize": {"w":34,"h":27} -}, -"right-hand": -{ - "frame": {"x":214,"y":2,"w":32,"h":32}, - "rotated": false, - "trimmed": false, - "spriteSourceSize": {"x":0,"y":0,"w":32,"h":32}, - "sourceSize": {"w":32,"h":32} -}}, -"meta": { - "app": "http://www.texturepacker.com", - "version": "1.0", - "image": "spineboy.png", - "format": "RGBA8888", - "size": {"w":256,"h":256}, - "scale": "1", - "smartupdate": "$TexturePacker:SmartUpdate:93f9a66503bccd3c31cdba2ae4b91285$" +"animations": { + "walk": { + "bones": { + "left upper leg": { + "rotate": [ + { "time": 0, "angle": -26.55 }, + { "time": 0.1333, "angle": -8.78 }, + { "time": 0.2666, "angle": 9.51 }, + { "time": 0.4, "angle": 30.74 }, + { "time": 0.5333, "angle": 25.33 }, + { "time": 0.6666, "angle": 26.11 }, + { "time": 0.8, "angle": -7.7 }, + { "time": 0.9333, "angle": -21.19 }, + { "time": 1.0666, "angle": -26.55 } + ], + "translate": [ + { "time": 0, "x": -3, "y": -2.25 }, + { "time": 0.4, "x": -2.18, "y": -2.25 }, + { "time": 1.0666, "x": -3, "y": -2.25 } + ] + }, + "right upper leg": { + "rotate": [ + { "time": 0, "angle": 42.45 }, + { "time": 0.1333, "angle": 52.1 }, + { "time": 0.2666, "angle": 5.96 }, + { "time": 0.5333, "angle": -16.93 }, + { "time": 0.6666, "angle": 1.89 }, + { + "time": 0.8, + "angle": 28.06, + "curve": [ 0.462, 0.11, 1, 1 ] + }, + { + "time": 0.9333, + "angle": 58.68, + "curve": [ 0.5, 0.02, 1, 1 ] + }, + { "time": 1.0666, "angle": 42.45 } + ], + "translate": [ + { "time": 0, "x": 8.11, "y": -2.36 }, + { "time": 0.1333, "x": 10.03, "y": -2.56 }, + { "time": 0.4, "x": 2.76, "y": -2.97 }, + { "time": 0.5333, "x": 2.76, "y": -2.81 }, + { "time": 0.9333, "x": 8.67, "y": -2.54 }, + { "time": 1.0666, "x": 8.11, "y": -2.36 } + ] + }, + "left lower leg": { + "rotate": [ + { "time": 0, "angle": -10.21 }, + { "time": 0.1333, "angle": -55.64 }, + { "time": 0.2666, "angle": -68.12 }, + { "time": 0.5333, "angle": 5.11 }, + { "time": 0.6666, "angle": -28.29 }, + { "time": 0.8, "angle": 4.08 }, + { "time": 0.9333, "angle": 3.53 }, + { "time": 1.0666, "angle": -10.21 } + ] + }, + "left foot": { + "rotate": [ + { "time": 0, "angle": -3.69 }, + { "time": 0.1333, "angle": -10.42 }, + { "time": 0.2666, "angle": -17.14 }, + { "time": 0.4, "angle": -2.83 }, + { "time": 0.5333, "angle": -3.87 }, + { "time": 0.6666, "angle": 2.78 }, + { "time": 0.8, "angle": 1.68 }, + { "time": 0.9333, "angle": -8.54 }, + { "time": 1.0666, "angle": -3.69 } + ] + }, + "right shoulder": { + "rotate": [ + { + "time": 0, + "angle": 20.89, + "curve": [ 0.264, 0, 0.75, 1 ] + }, + { + "time": 0.1333, + "angle": 3.72, + "curve": [ 0.272, 0, 0.841, 1 ] + }, + { "time": 0.6666, "angle": -278.28 }, + { "time": 1.0666, "angle": 20.89 } + ], + "translate": [ + { "time": 0, "x": -7.84, "y": 7.19 }, + { "time": 0.1333, "x": -6.36, "y": 6.42 }, + { "time": 0.6666, "x": -11.07, "y": 5.25 }, + { "time": 1.0666, "x": -7.84, "y": 7.19 } + ] + }, + "right arm": { + "rotate": [ + { + "time": 0, + "angle": -4.02, + "curve": [ 0.267, 0, 0.804, 0.99 ] + }, + { + "time": 0.1333, + "angle": -13.99, + "curve": [ 0.341, 0, 1, 1 ] + }, + { + "time": 0.6666, + "angle": 36.54, + "curve": [ 0.307, 0, 0.787, 0.99 ] + }, + { "time": 1.0666, "angle": -4.02 } + ] + }, + "right hand": { + "rotate": [ + { "time": 0, "angle": 22.92 }, + { "time": 0.4, "angle": -8.97 }, + { "time": 0.6666, "angle": 0.51 }, + { "time": 1.0666, "angle": 22.92 } + ] + }, + "left shoulder": { + "rotate": [ + { "time": 0, "angle": -1.47 }, + { "time": 0.1333, "angle": 13.6 }, + { "time": 0.6666, "angle": 280.74 }, + { "time": 1.0666, "angle": -1.47 } + ], + "translate": [ + { "time": 0, "x": -1.76, "y": 0.56 }, + { "time": 0.6666, "x": -2.47, "y": 8.14 }, + { "time": 1.0666, "x": -1.76, "y": 0.56 } + ] + }, + "left hand": { + "rotate": [ + { + "time": 0, + "angle": 11.58, + "curve": [ 0.169, 0.37, 0.632, 1.55 ] + }, + { + "time": 0.1333, + "angle": 28.13, + "curve": [ 0.692, 0, 0.692, 0.99 ] + }, + { + "time": 0.6666, + "angle": -27.42, + "curve": [ 0.117, 0.41, 0.738, 1.76 ] + }, + { "time": 0.8, "angle": -36.32 }, + { "time": 1.0666, "angle": 11.58 } + ] + }, + "left arm": { + "rotate": [ + { "time": 0, "angle": -8.27 }, + { "time": 0.1333, "angle": 18.43 }, + { "time": 0.6666, "angle": 0.88 }, + { "time": 1.0666, "angle": -8.27 } + ] + }, + "torso": { + "rotate": [ + { "time": 0, "angle": -10.28 }, + { + "time": 0.1333, + "angle": -15.38, + "curve": [ 0.545, 0, 1, 1 ] + }, + { + "time": 0.4, + "angle": -9.78, + "curve": [ 0.58, 0.17, 1, 1 ] + }, + { "time": 0.6666, "angle": -15.75 }, + { "time": 0.9333, "angle": -7.06 }, + { "time": 1.0666, "angle": -10.28 } + ], + "translate": [ + { "time": 0, "x": -3.67, "y": 1.68 }, + { "time": 0.1333, "x": -3.67, "y": 0.68 }, + { "time": 0.4, "x": -3.67, "y": 1.97 }, + { "time": 0.6666, "x": -3.67, "y": -0.14 }, + { "time": 1.0666, "x": -3.67, "y": 1.68 } + ] + }, + "right foot": { + "rotate": [ + { "time": 0, "angle": -5.25 }, + { "time": 0.2666, "angle": -4.08 }, + { "time": 0.4, "angle": -6.45 }, + { "time": 0.5333, "angle": -5.39 }, + { "time": 0.8, "angle": -11.68 }, + { "time": 0.9333, "angle": 0.46 }, + { "time": 1.0666, "angle": -5.25 } + ] + }, + "right lower leg": { + "rotate": [ + { "time": 0, "angle": -3.39 }, + { "time": 0.1333, "angle": -45.53 }, + { "time": 0.2666, "angle": -2.59 }, + { "time": 0.5333, "angle": -19.53 }, + { "time": 0.6666, "angle": -64.8 }, + { + "time": 0.8, + "angle": -82.56, + "curve": [ 0.557, 0.18, 1, 1 ] + }, + { "time": 1.0666, "angle": -3.39 } + ] + }, + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 1.0666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0 }, + { + "time": 0.1333, + "x": 0, + "y": -7.61, + "curve": [ 0.272, 0.86, 1, 1 ] + }, + { "time": 0.4, "x": 0, "y": 8.7 }, + { "time": 0.5333, "x": 0, "y": -0.41 }, + { + "time": 0.6666, + "x": 0, + "y": -7.05, + "curve": [ 0.235, 0.89, 1, 1 ] + }, + { "time": 0.8, "x": 0, "y": 2.92 }, + { "time": 0.9333, "x": 0, "y": 6.78 }, + { "time": 1.0666, "x": 0, "y": 0 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 3.6 }, + { "time": 0.1333, "angle": 17.49 }, + { "time": 0.2666, "angle": 6.1 }, + { "time": 0.4, "angle": 3.45 }, + { "time": 0.5333, "angle": 5.17 }, + { "time": 0.6666, "angle": 18.36 }, + { "time": 0.8, "angle": 6.09 }, + { "time": 0.9333, "angle": 2.28 }, + { "time": 1.0666, "angle": 3.6 } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 3.6, + "curve": [ 0, 0, 0.704, 1.61 ] + }, + { "time": 0.1666, "angle": -0.2 }, + { "time": 0.2666, "angle": 6.1 }, + { "time": 0.4, "angle": 3.45 }, + { + "time": 0.5333, + "angle": 5.17, + "curve": [ 0, 0, 0.704, 1.61 ] + }, + { "time": 0.7, "angle": 1.1 }, + { "time": 0.8, "angle": 6.09 }, + { "time": 0.9333, "angle": 2.28 }, + { "time": 1.0666, "angle": 3.6 } + ] + } + } + }, + "jump": { + "bones": { + "hip": { + "rotate": [ + { "time": 0, "angle": 0, "curve": "stepped" }, + { "time": 0.9333, "angle": 0, "curve": "stepped" }, + { "time": 1.3666, "angle": 0 } + ], + "translate": [ + { "time": 0, "x": -11.57, "y": -3 }, + { "time": 0.2333, "x": -16.2, "y": -19.43 }, + { + "time": 0.3333, + "x": 7.66, + "y": -8.48, + "curve": [ 0.057, 0.06, 0.712, 1 ] + }, + { "time": 0.3666, "x": 15.38, "y": 5.01 }, + { "time": 0.4666, "x": -7.84, "y": 57.22 }, + { + "time": 0.6, + "x": -10.81, + "y": 96.34, + "curve": [ 0.241, 0, 1, 1 ] + }, + { "time": 0.7333, "x": -7.01, "y": 54.7 }, + { "time": 0.8, "x": -10.58, "y": 32.2 }, + { "time": 0.9333, "x": -31.99, "y": 0.45 }, + { "time": 1.0666, "x": -12.48, "y": -29.47 }, + { "time": 1.3666, "x": -11.57, "y": -3 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left upper leg": { + "rotate": [ + { "time": 0, "angle": 17.13 }, + { "time": 0.2333, "angle": 44.35 }, + { "time": 0.3333, "angle": 16.46 }, + { "time": 0.4, "angle": -9.88 }, + { "time": 0.4666, "angle": -11.42 }, + { "time": 0.5666, "angle": 23.46 }, + { "time": 0.7666, "angle": 71.82 }, + { "time": 0.9333, "angle": 65.53 }, + { "time": 1.0666, "angle": 51.01 }, + { "time": 1.3666, "angle": 17.13 } + ], + "translate": [ + { "time": 0, "x": -3, "y": -2.25, "curve": "stepped" }, + { "time": 0.9333, "x": -3, "y": -2.25, "curve": "stepped" }, + { "time": 1.3666, "x": -3, "y": -2.25 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left lower leg": { + "rotate": [ + { "time": 0, "angle": -16.25 }, + { "time": 0.2333, "angle": -52.21 }, + { "time": 0.4, "angle": 15.04 }, + { "time": 0.4666, "angle": -8.95 }, + { "time": 0.5666, "angle": -39.53 }, + { "time": 0.7666, "angle": -27.27 }, + { "time": 0.9333, "angle": -3.52 }, + { "time": 1.0666, "angle": -61.92 }, + { "time": 1.3666, "angle": -16.25 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left foot": { + "rotate": [ + { "time": 0, "angle": 0.33 }, + { "time": 0.2333, "angle": 6.2 }, + { "time": 0.3333, "angle": 14.73 }, + { "time": 0.4, "angle": -15.54 }, + { "time": 0.4333, "angle": -21.2 }, + { "time": 0.5666, "angle": -7.55 }, + { "time": 0.7666, "angle": -0.67 }, + { "time": 0.9333, "angle": -0.58 }, + { "time": 1.0666, "angle": 14.64 }, + { "time": 1.3666, "angle": 0.33 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right upper leg": { + "rotate": [ + { "time": 0, "angle": 25.97 }, + { "time": 0.2333, "angle": 46.43 }, + { "time": 0.3333, "angle": 22.61 }, + { "time": 0.4, "angle": 2.13 }, + { + "time": 0.4666, + "angle": 0.04, + "curve": [ 0, 0, 0.637, 0.98 ] + }, + { "time": 0.6, "angle": 65.55 }, + { "time": 0.7666, "angle": 64.93 }, + { "time": 0.9333, "angle": 41.08 }, + { "time": 1.0666, "angle": 66.25 }, + { "time": 1.3666, "angle": 25.97 } + ], + "translate": [ + { "time": 0, "x": 5.74, "y": 0.61 }, + { "time": 0.2333, "x": 4.79, "y": 1.79 }, + { "time": 0.3333, "x": 6.05, "y": -4.55 }, + { "time": 0.9333, "x": 4.79, "y": 1.79, "curve": "stepped" }, + { "time": 1.0666, "x": 4.79, "y": 1.79 }, + { "time": 1.3666, "x": 5.74, "y": 0.61 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right lower leg": { + "rotate": [ + { "time": 0, "angle": -27.46 }, + { "time": 0.2333, "angle": -64.03 }, + { "time": 0.4, "angle": -48.36 }, + { "time": 0.5666, "angle": -76.86 }, + { "time": 0.7666, "angle": -26.89 }, + { "time": 0.9, "angle": -18.97 }, + { "time": 0.9333, "angle": -14.18 }, + { "time": 1.0666, "angle": -80.45 }, + { "time": 1.3666, "angle": -27.46 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right foot": { + "rotate": [ + { "time": 0, "angle": 1.08 }, + { "time": 0.2333, "angle": 16.02 }, + { "time": 0.3, "angle": 12.94 }, + { "time": 0.3333, "angle": 15.16 }, + { "time": 0.4, "angle": -14.7 }, + { "time": 0.4333, "angle": -12.85 }, + { "time": 0.4666, "angle": -19.18 }, + { "time": 0.5666, "angle": -15.82 }, + { "time": 0.6, "angle": -3.59 }, + { "time": 0.7666, "angle": -3.56 }, + { "time": 0.9333, "angle": 1.86 }, + { "time": 1.0666, "angle": 16.02 }, + { "time": 1.3666, "angle": 1.08 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "torso": { + "rotate": [ + { "time": 0, "angle": -13.35 }, + { "time": 0.2333, "angle": -48.95 }, + { "time": 0.4333, "angle": -35.77 }, + { "time": 0.6, "angle": -4.59 }, + { "time": 0.7666, "angle": 14.61 }, + { "time": 0.9333, "angle": 15.74 }, + { "time": 1.0666, "angle": -32.44 }, + { "time": 1.3666, "angle": -13.35 } + ], + "translate": [ + { "time": 0, "x": -3.67, "y": 1.68, "curve": "stepped" }, + { "time": 0.9333, "x": -3.67, "y": 1.68, "curve": "stepped" }, + { "time": 1.3666, "x": -3.67, "y": 1.68 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "neck": { + "rotate": [ + { "time": 0, "angle": 12.78 }, + { "time": 0.2333, "angle": 16.46 }, + { "time": 0.4, "angle": 26.49 }, + { "time": 0.6, "angle": 15.51 }, + { "time": 0.7666, "angle": 1.34 }, + { "time": 0.9333, "angle": 2.35 }, + { "time": 1.0666, "angle": 6.08 }, + { "time": 1.3, "angle": 21.23 }, + { "time": 1.3666, "angle": 12.78 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "head": { + "rotate": [ + { "time": 0, "angle": 5.19 }, + { "time": 0.2333, "angle": 20.27 }, + { "time": 0.4, "angle": 15.27 }, + { "time": 0.6, "angle": -24.69 }, + { "time": 0.7666, "angle": -11.02 }, + { "time": 0.9333, "angle": -24.38 }, + { "time": 1.0666, "angle": 11.99 }, + { "time": 1.3, "angle": 4.86 }, + { "time": 1.3666, "angle": 5.19 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left shoulder": { + "rotate": [ + { + "time": 0, + "angle": 0.05, + "curve": [ 0, 0, 0.62, 1 ] + }, + { + "time": 0.2333, + "angle": 279.66, + "curve": [ 0.218, 0.67, 0.66, 0.99 ] + }, + { + "time": 0.5, + "angle": 62.27, + "curve": [ 0.462, 0, 0.764, 0.58 ] + }, + { "time": 0.9333, "angle": 28.91 }, + { "time": 1.0666, "angle": -8.62 }, + { "time": 1.1666, "angle": -18.43 }, + { "time": 1.3666, "angle": 0.05 } + ], + "translate": [ + { "time": 0, "x": -1.76, "y": 0.56, "curve": "stepped" }, + { "time": 0.9333, "x": -1.76, "y": 0.56, "curve": "stepped" }, + { "time": 1.3666, "x": -1.76, "y": 0.56 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left hand": { + "rotate": [ + { "time": 0, "angle": 11.58, "curve": "stepped" }, + { "time": 0.9333, "angle": 11.58, "curve": "stepped" }, + { "time": 1.3666, "angle": 11.58 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "left arm": { + "rotate": [ + { "time": 0, "angle": 0.51 }, + { "time": 0.4333, "angle": 12.82 }, + { "time": 0.6, "angle": 47.55 }, + { "time": 0.9333, "angle": 12.82 }, + { "time": 1.1666, "angle": -6.5 }, + { "time": 1.3666, "angle": 0.51 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right shoulder": { + "rotate": [ + { + "time": 0, + "angle": 43.82, + "curve": [ 0, 0, 0.62, 1 ] + }, + { + "time": 0.2333, + "angle": -8.74, + "curve": [ 0.304, 0.58, 0.709, 0.97 ] + }, + { + "time": 0.5333, + "angle": -208.02, + "curve": [ 0.462, 0, 0.764, 0.58 ] + }, + { "time": 0.9333, "angle": -246.72 }, + { "time": 1.0666, "angle": -307.13 }, + { "time": 1.1666, "angle": 37.15 }, + { "time": 1.3666, "angle": 43.82 } + ], + "translate": [ + { "time": 0, "x": -7.84, "y": 7.19, "curve": "stepped" }, + { "time": 0.9333, "x": -7.84, "y": 7.19, "curve": "stepped" }, + { "time": 1.3666, "x": -7.84, "y": 7.19 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right arm": { + "rotate": [ + { "time": 0, "angle": -4.02 }, + { "time": 0.6, "angle": 17.5 }, + { "time": 0.9333, "angle": -4.02 }, + { "time": 1.1666, "angle": -16.72 }, + { "time": 1.3666, "angle": -4.02 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "right hand": { + "rotate": [ + { "time": 0, "angle": 22.92, "curve": "stepped" }, + { "time": 0.9333, "angle": 22.92, "curve": "stepped" }, + { "time": 1.3666, "angle": 22.92 } + ], + "translate": [ + { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, + { "time": 1.3666, "x": 0, "y": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + }, + "root": { + "rotate": [ + { "time": 0, "angle": 0 }, + { "time": 0.4333, "angle": -14.52 }, + { "time": 0.8, "angle": 9.86 }, + { "time": 1.3666, "angle": 0 } + ], + "scale": [ + { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, + { "time": 1.3666, "x": 1, "y": 1 } + ] + } + } + } } } diff --git a/examples/example 12 - Spine/data/spineboy.png b/examples/example 12 - Spine/data/spineboy.png index b8b493d..ab85747 100755 --- a/examples/example 12 - Spine/data/spineboy.png +++ b/examples/example 12 - Spine/data/spineboy.png Binary files differ diff --git a/examples/example 12 - Spine/data/spineboySpineData.json b/examples/example 12 - Spine/data/spineboySpineData.json deleted file mode 100755 index 17c5095..0000000 --- a/examples/example 12 - Spine/data/spineboySpineData.json +++ /dev/null @@ -1,787 +0,0 @@ -{ -"bones": [ - { "name": "root" }, - { "name": "hip", "parent": "root", "x": 0.64, "y": 114.41 }, - { "name": "left upper leg", "parent": "hip", "length": 50.39, "x": 14.45, "y": 2.81, "rotation": -89.09 }, - { "name": "left lower leg", "parent": "left upper leg", "length": 56.45, "x": 51.78, "y": 3.46, "rotation": -16.65 }, - { "name": "left foot", "parent": "left lower leg", "length": 46.5, "x": 64.02, "y": -8.67, "rotation": 102.43 }, - { "name": "right upper leg", "parent": "hip", "length": 45.76, "x": -18.27, "rotation": -101.13 }, - { "name": "right lower leg", "parent": "right upper leg", "length": 58.52, "x": 50.21, "y": 0.6, "rotation": -10.7 }, - { "name": "right foot", "parent": "right lower leg", "length": 45.45, "x": 64.88, "y": 0.04, "rotation": 110.3 }, - { "name": "torso", "parent": "hip", "length": 85.82, "x": -6.42, "y": 1.97, "rotation": 94.95 }, - { "name": "neck", "parent": "torso", "length": 18.38, "x": 83.64, "y": -1.78, "rotation": 0.9 }, - { "name": "head", "parent": "neck", "length": 68.28, "x": 19.09, "y": 6.97, "rotation": -8.94 }, - { "name": "right shoulder", "parent": "torso", "length": 49.95, "x": 81.9, "y": 6.79, "rotation": 130.6 }, - { "name": "right arm", "parent": "right shoulder", "length": 36.74, "x": 49.95, "y": -0.12, "rotation": 40.12 }, - { "name": "right hand", "parent": "right arm", "length": 15.32, "x": 36.9, "y": 0.34, "rotation": 2.35 }, - { "name": "left shoulder", "parent": "torso", "length": 44.19, "x": 78.96, "y": -15.75, "rotation": -156.96 }, - { "name": "left arm", "parent": "left shoulder", "length": 35.62, "x": 44.19, "y": -0.01, "rotation": 28.16 }, - { "name": "left hand", "parent": "left arm", "length": 11.52, "x": 35.62, "y": 0.07, "rotation": 2.7 }, - { "name": "pelvis", "parent": "hip", "x": 1.41, "y": -6.57 } -], -"slots": [ - { "name": "left shoulder", "bone": "left shoulder", "attachment": "left-shoulder" }, - { "name": "left arm", "bone": "left arm", "attachment": "left-arm" }, - { "name": "left hand", "bone": "left hand", "attachment": "left-hand" }, - { "name": "left foot", "bone": "left foot", "attachment": "left-foot" }, - { "name": "left lower leg", "bone": "left lower leg", "attachment": "left-lower-leg" }, - { "name": "left upper leg", "bone": "left upper leg", "attachment": "left-upper-leg" }, - { "name": "pelvis", "bone": "pelvis", "attachment": "pelvis" }, - { "name": "right foot", "bone": "right foot", "attachment": "right-foot" }, - { "name": "right lower leg", "bone": "right lower leg", "attachment": "right-lower-leg" }, - { "name": "right upper leg", "bone": "right upper leg", "attachment": "right-upper-leg" }, - { "name": "torso", "bone": "torso", "attachment": "torso" }, - { "name": "neck", "bone": "neck", "attachment": "neck" }, - { "name": "head", "bone": "head", "attachment": "head" }, - { "name": "eyes", "bone": "head", "attachment": "eyes" }, - { "name": "right shoulder", "bone": "right shoulder", "attachment": "right-shoulder" }, - { "name": "right arm", "bone": "right arm", "attachment": "right-arm" }, - { "name": "right hand", "bone": "right hand", "attachment": "right-hand" } -], -"skins": { - "default": { - "left shoulder": { - "left-shoulder": { "x": 23.74, "y": 0.11, "rotation": 62.01, "width": 34, "height": 53 } - }, - "left arm": { - "left-arm": { "x": 15.11, "y": -0.44, "rotation": 33.84, "width": 35, "height": 29 } - }, - "left hand": { - "left-hand": { "x": 0.75, "y": 1.86, "rotation": 31.14, "width": 35, "height": 38 } - }, - "left foot": { - "left-foot": { "x": 24.35, "y": 8.88, "rotation": 3.32, "width": 65, "height": 30 } - }, - "left lower leg": { - "left-lower-leg": { "x": 24.55, "y": -1.92, "rotation": 105.75, "width": 49, "height": 64 } - }, - "left upper leg": { - "left-upper-leg": { "x": 26.12, "y": -1.85, "rotation": 89.09, "width": 33, "height": 67 } - }, - "pelvis": { - "pelvis": { "x": -4.83, "y": 10.62, "width": 63, "height": 47 } - }, - "right foot": { - "right-foot": { "x": 19.02, "y": 8.47, "rotation": 1.52, "width": 67, "height": 30 } - }, - "right lower leg": { - "right-lower-leg": { "x": 23.28, "y": -2.59, "rotation": 111.83, "width": 51, "height": 64 } - }, - "right upper leg": { - "right-upper-leg": { "x": 23.03, "y": 0.25, "rotation": 101.13, "width": 44, "height": 70 } - }, - "torso": { - "torso": { "x": 44.57, "y": -7.08, "rotation": -94.95, "width": 68, "height": 92 } - }, - "neck": { - "neck": { "x": 9.42, "y": -3.66, "rotation": -100.15, "width": 34, "height": 28 } - }, - "head": { - "head": { "x": 53.94, "y": -5.75, "rotation": -86.9, "width": 121, "height": 132 } - }, - "eyes": { - "eyes": { "x": 28.94, "y": -32.92, "rotation": -86.9, "width": 34, "height": 27 }, - "eyes-closed": { "x": 28.77, "y": -32.86, "rotation": -86.9, "width": 34, "height": 27 } - }, - "right shoulder": { - "right-shoulder": { "x": 25.86, "y": 0.03, "rotation": 134.44, "width": 52, "height": 51 } - }, - "right arm": { - "right-arm": { "x": 18.34, "y": -2.64, "rotation": 94.32, "width": 21, "height": 45 } - }, - "right hand": { - "right-hand": { "x": 6.82, "y": 1.25, "rotation": 91.96, "width": 32, "height": 32 } - } - } -}, -"animations": { - "walk": { - "bones": { - "left upper leg": { - "rotate": [ - { "time": 0, "angle": -26.55 }, - { "time": 0.1333, "angle": -8.78 }, - { "time": 0.2666, "angle": 9.51 }, - { "time": 0.4, "angle": 30.74 }, - { "time": 0.5333, "angle": 25.33 }, - { "time": 0.6666, "angle": 26.11 }, - { "time": 0.8, "angle": -7.7 }, - { "time": 0.9333, "angle": -21.19 }, - { "time": 1.0666, "angle": -26.55 } - ], - "translate": [ - { "time": 0, "x": -3, "y": -2.25 }, - { "time": 0.4, "x": -2.18, "y": -2.25 }, - { "time": 1.0666, "x": -3, "y": -2.25 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 42.45 }, - { "time": 0.1333, "angle": 52.1 }, - { "time": 0.2666, "angle": 5.96 }, - { "time": 0.5333, "angle": -16.93 }, - { "time": 0.6666, "angle": 1.89 }, - { - "time": 0.8, - "angle": 28.06, - "curve": [ 0.462, 0.11, 1, 1 ] - }, - { - "time": 0.9333, - "angle": 58.68, - "curve": [ 0.5, 0.02, 1, 1 ] - }, - { "time": 1.0666, "angle": 42.45 } - ], - "translate": [ - { "time": 0, "x": 8.11, "y": -2.36 }, - { "time": 0.1333, "x": 10.03, "y": -2.56 }, - { "time": 0.4, "x": 2.76, "y": -2.97 }, - { "time": 0.5333, "x": 2.76, "y": -2.81 }, - { "time": 0.9333, "x": 8.67, "y": -2.54 }, - { "time": 1.0666, "x": 8.11, "y": -2.36 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -10.21 }, - { "time": 0.1333, "angle": -55.64 }, - { "time": 0.2666, "angle": -68.12 }, - { "time": 0.5333, "angle": 5.11 }, - { "time": 0.6666, "angle": -28.29 }, - { "time": 0.8, "angle": 4.08 }, - { "time": 0.9333, "angle": 3.53 }, - { "time": 1.0666, "angle": -10.21 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": -3.69 }, - { "time": 0.1333, "angle": -10.42 }, - { "time": 0.2666, "angle": -17.14 }, - { "time": 0.4, "angle": -2.83 }, - { "time": 0.5333, "angle": -3.87 }, - { "time": 0.6666, "angle": 2.78 }, - { "time": 0.8, "angle": 1.68 }, - { "time": 0.9333, "angle": -8.54 }, - { "time": 1.0666, "angle": -3.69 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 20.89, - "curve": [ 0.264, 0, 0.75, 1 ] - }, - { - "time": 0.1333, - "angle": 3.72, - "curve": [ 0.272, 0, 0.841, 1 ] - }, - { "time": 0.6666, "angle": -278.28 }, - { "time": 1.0666, "angle": 20.89 } - ], - "translate": [ - { "time": 0, "x": -7.84, "y": 7.19 }, - { "time": 0.1333, "x": -6.36, "y": 6.42 }, - { "time": 0.6666, "x": -11.07, "y": 5.25 }, - { "time": 1.0666, "x": -7.84, "y": 7.19 } - ] - }, - "right arm": { - "rotate": [ - { - "time": 0, - "angle": -4.02, - "curve": [ 0.267, 0, 0.804, 0.99 ] - }, - { - "time": 0.1333, - "angle": -13.99, - "curve": [ 0.341, 0, 1, 1 ] - }, - { - "time": 0.6666, - "angle": 36.54, - "curve": [ 0.307, 0, 0.787, 0.99 ] - }, - { "time": 1.0666, "angle": -4.02 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 22.92 }, - { "time": 0.4, "angle": -8.97 }, - { "time": 0.6666, "angle": 0.51 }, - { "time": 1.0666, "angle": 22.92 } - ] - }, - "left shoulder": { - "rotate": [ - { "time": 0, "angle": -1.47 }, - { "time": 0.1333, "angle": 13.6 }, - { "time": 0.6666, "angle": 280.74 }, - { "time": 1.0666, "angle": -1.47 } - ], - "translate": [ - { "time": 0, "x": -1.76, "y": 0.56 }, - { "time": 0.6666, "x": -2.47, "y": 8.14 }, - { "time": 1.0666, "x": -1.76, "y": 0.56 } - ] - }, - "left hand": { - "rotate": [ - { - "time": 0, - "angle": 11.58, - "curve": [ 0.169, 0.37, 0.632, 1.55 ] - }, - { - "time": 0.1333, - "angle": 28.13, - "curve": [ 0.692, 0, 0.692, 0.99 ] - }, - { - "time": 0.6666, - "angle": -27.42, - "curve": [ 0.117, 0.41, 0.738, 1.76 ] - }, - { "time": 0.8, "angle": -36.32 }, - { "time": 1.0666, "angle": 11.58 } - ] - }, - "left arm": { - "rotate": [ - { "time": 0, "angle": -8.27 }, - { "time": 0.1333, "angle": 18.43 }, - { "time": 0.6666, "angle": 0.88 }, - { "time": 1.0666, "angle": -8.27 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -10.28 }, - { - "time": 0.1333, - "angle": -15.38, - "curve": [ 0.545, 0, 1, 1 ] - }, - { - "time": 0.4, - "angle": -9.78, - "curve": [ 0.58, 0.17, 1, 1 ] - }, - { "time": 0.6666, "angle": -15.75 }, - { "time": 0.9333, "angle": -7.06 }, - { "time": 1.0666, "angle": -10.28 } - ], - "translate": [ - { "time": 0, "x": -3.67, "y": 1.68 }, - { "time": 0.1333, "x": -3.67, "y": 0.68 }, - { "time": 0.4, "x": -3.67, "y": 1.97 }, - { "time": 0.6666, "x": -3.67, "y": -0.14 }, - { "time": 1.0666, "x": -3.67, "y": 1.68 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": -5.25 }, - { "time": 0.2666, "angle": -4.08 }, - { "time": 0.4, "angle": -6.45 }, - { "time": 0.5333, "angle": -5.39 }, - { "time": 0.8, "angle": -11.68 }, - { "time": 0.9333, "angle": 0.46 }, - { "time": 1.0666, "angle": -5.25 } - ] - }, - "right lower leg": { - "rotate": [ - { "time": 0, "angle": -3.39 }, - { "time": 0.1333, "angle": -45.53 }, - { "time": 0.2666, "angle": -2.59 }, - { "time": 0.5333, "angle": -19.53 }, - { "time": 0.6666, "angle": -64.8 }, - { - "time": 0.8, - "angle": -82.56, - "curve": [ 0.557, 0.18, 1, 1 ] - }, - { "time": 1.0666, "angle": -3.39 } - ] - }, - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 1.0666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0 }, - { - "time": 0.1333, - "x": 0, - "y": -7.61, - "curve": [ 0.272, 0.86, 1, 1 ] - }, - { "time": 0.4, "x": 0, "y": 8.7 }, - { "time": 0.5333, "x": 0, "y": -0.41 }, - { - "time": 0.6666, - "x": 0, - "y": -7.05, - "curve": [ 0.235, 0.89, 1, 1 ] - }, - { "time": 0.8, "x": 0, "y": 2.92 }, - { "time": 0.9333, "x": 0, "y": 6.78 }, - { "time": 1.0666, "x": 0, "y": 0 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 3.6 }, - { "time": 0.1333, "angle": 17.49 }, - { "time": 0.2666, "angle": 6.1 }, - { "time": 0.4, "angle": 3.45 }, - { "time": 0.5333, "angle": 5.17 }, - { "time": 0.6666, "angle": 18.36 }, - { "time": 0.8, "angle": 6.09 }, - { "time": 0.9333, "angle": 2.28 }, - { "time": 1.0666, "angle": 3.6 } - ] - }, - "head": { - "rotate": [ - { - "time": 0, - "angle": 3.6, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.1666, "angle": -0.2 }, - { "time": 0.2666, "angle": 6.1 }, - { "time": 0.4, "angle": 3.45 }, - { - "time": 0.5333, - "angle": 5.17, - "curve": [ 0, 0, 0.704, 1.61 ] - }, - { "time": 0.7, "angle": 1.1 }, - { "time": 0.8, "angle": 6.09 }, - { "time": 0.9333, "angle": 2.28 }, - { "time": 1.0666, "angle": 3.6 } - ] - } - } - }, - "jump": { - "bones": { - "hip": { - "rotate": [ - { "time": 0, "angle": 0, "curve": "stepped" }, - { "time": 0.9333, "angle": 0, "curve": "stepped" }, - { "time": 1.3666, "angle": 0 } - ], - "translate": [ - { "time": 0, "x": -11.57, "y": -3 }, - { "time": 0.2333, "x": -16.2, "y": -19.43 }, - { - "time": 0.3333, - "x": 7.66, - "y": -8.48, - "curve": [ 0.057, 0.06, 0.712, 1 ] - }, - { "time": 0.3666, "x": 15.38, "y": 5.01 }, - { "time": 0.4666, "x": -7.84, "y": 57.22 }, - { - "time": 0.6, - "x": -10.81, - "y": 96.34, - "curve": [ 0.241, 0, 1, 1 ] - }, - { "time": 0.7333, "x": -7.01, "y": 54.7 }, - { "time": 0.8, "x": -10.58, "y": 32.2 }, - { "time": 0.9333, "x": -31.99, "y": 0.45 }, - { "time": 1.0666, "x": -12.48, "y": -29.47 }, - { "time": 1.3666, "x": -11.57, "y": -3 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left upper leg": { - "rotate": [ - { "time": 0, "angle": 17.13 }, - { "time": 0.2333, "angle": 44.35 }, - { "time": 0.3333, "angle": 16.46 }, - { "time": 0.4, "angle": -9.88 }, - { "time": 0.4666, "angle": -11.42 }, - { "time": 0.5666, "angle": 23.46 }, - { "time": 0.7666, "angle": 71.82 }, - { "time": 0.9333, "angle": 65.53 }, - { "time": 1.0666, "angle": 51.01 }, - { "time": 1.3666, "angle": 17.13 } - ], - "translate": [ - { "time": 0, "x": -3, "y": -2.25, "curve": "stepped" }, - { "time": 0.9333, "x": -3, "y": -2.25, "curve": "stepped" }, - { "time": 1.3666, "x": -3, "y": -2.25 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left lower leg": { - "rotate": [ - { "time": 0, "angle": -16.25 }, - { "time": 0.2333, "angle": -52.21 }, - { "time": 0.4, "angle": 15.04 }, - { "time": 0.4666, "angle": -8.95 }, - { "time": 0.5666, "angle": -39.53 }, - { "time": 0.7666, "angle": -27.27 }, - { "time": 0.9333, "angle": -3.52 }, - { "time": 1.0666, "angle": -61.92 }, - { "time": 1.3666, "angle": -16.25 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left foot": { - "rotate": [ - { "time": 0, "angle": 0.33 }, - { "time": 0.2333, "angle": 6.2 }, - { "time": 0.3333, "angle": 14.73 }, - { "time": 0.4, "angle": -15.54 }, - { "time": 0.4333, "angle": -21.2 }, - { "time": 0.5666, "angle": -7.55 }, - { "time": 0.7666, "angle": -0.67 }, - { "time": 0.9333, "angle": -0.58 }, - { "time": 1.0666, "angle": 14.64 }, - { "time": 1.3666, "angle": 0.33 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right upper leg": { - "rotate": [ - { "time": 0, "angle": 25.97 }, - { "time": 0.2333, "angle": 46.43 }, - { "time": 0.3333, "angle": 22.61 }, - { "time": 0.4, "angle": 2.13 }, - { - "time": 0.4666, - "angle": 0.04, - "curve": [ 0, 0, 0.637, 0.98 ] - }, - { "time": 0.6, "angle": 65.55 }, - { "time": 0.7666, "angle": 64.93 }, - { "time": 0.9333, "angle": 41.08 }, - { "time": 1.0666, "angle": 66.25 }, - { "time": 1.3666, "angle": 25.97 } - ], - "translate": [ - { "time": 0, "x": 5.74, "y": 0.61 }, - { "time": 0.2333, "x": 4.79, "y": 1.79 }, - { "time": 0.3333, "x": 6.05, "y": -4.55 }, - { "time": 0.9333, "x": 4.79, "y": 1.79, "curve": "stepped" }, - { "time": 1.0666, "x": 4.79, "y": 1.79 }, - { "time": 1.3666, "x": 5.74, "y": 0.61 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right lower leg": { - "rotate": [ - { "time": 0, "angle": -27.46 }, - { "time": 0.2333, "angle": -64.03 }, - { "time": 0.4, "angle": -48.36 }, - { "time": 0.5666, "angle": -76.86 }, - { "time": 0.7666, "angle": -26.89 }, - { "time": 0.9, "angle": -18.97 }, - { "time": 0.9333, "angle": -14.18 }, - { "time": 1.0666, "angle": -80.45 }, - { "time": 1.3666, "angle": -27.46 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right foot": { - "rotate": [ - { "time": 0, "angle": 1.08 }, - { "time": 0.2333, "angle": 16.02 }, - { "time": 0.3, "angle": 12.94 }, - { "time": 0.3333, "angle": 15.16 }, - { "time": 0.4, "angle": -14.7 }, - { "time": 0.4333, "angle": -12.85 }, - { "time": 0.4666, "angle": -19.18 }, - { "time": 0.5666, "angle": -15.82 }, - { "time": 0.6, "angle": -3.59 }, - { "time": 0.7666, "angle": -3.56 }, - { "time": 0.9333, "angle": 1.86 }, - { "time": 1.0666, "angle": 16.02 }, - { "time": 1.3666, "angle": 1.08 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "torso": { - "rotate": [ - { "time": 0, "angle": -13.35 }, - { "time": 0.2333, "angle": -48.95 }, - { "time": 0.4333, "angle": -35.77 }, - { "time": 0.6, "angle": -4.59 }, - { "time": 0.7666, "angle": 14.61 }, - { "time": 0.9333, "angle": 15.74 }, - { "time": 1.0666, "angle": -32.44 }, - { "time": 1.3666, "angle": -13.35 } - ], - "translate": [ - { "time": 0, "x": -3.67, "y": 1.68, "curve": "stepped" }, - { "time": 0.9333, "x": -3.67, "y": 1.68, "curve": "stepped" }, - { "time": 1.3666, "x": -3.67, "y": 1.68 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "neck": { - "rotate": [ - { "time": 0, "angle": 12.78 }, - { "time": 0.2333, "angle": 16.46 }, - { "time": 0.4, "angle": 26.49 }, - { "time": 0.6, "angle": 15.51 }, - { "time": 0.7666, "angle": 1.34 }, - { "time": 0.9333, "angle": 2.35 }, - { "time": 1.0666, "angle": 6.08 }, - { "time": 1.3, "angle": 21.23 }, - { "time": 1.3666, "angle": 12.78 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "head": { - "rotate": [ - { "time": 0, "angle": 5.19 }, - { "time": 0.2333, "angle": 20.27 }, - { "time": 0.4, "angle": 15.27 }, - { "time": 0.6, "angle": -24.69 }, - { "time": 0.7666, "angle": -11.02 }, - { "time": 0.9333, "angle": -24.38 }, - { "time": 1.0666, "angle": 11.99 }, - { "time": 1.3, "angle": 4.86 }, - { "time": 1.3666, "angle": 5.19 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left shoulder": { - "rotate": [ - { - "time": 0, - "angle": 0.05, - "curve": [ 0, 0, 0.62, 1 ] - }, - { - "time": 0.2333, - "angle": 279.66, - "curve": [ 0.218, 0.67, 0.66, 0.99 ] - }, - { - "time": 0.5, - "angle": 62.27, - "curve": [ 0.462, 0, 0.764, 0.58 ] - }, - { "time": 0.9333, "angle": 28.91 }, - { "time": 1.0666, "angle": -8.62 }, - { "time": 1.1666, "angle": -18.43 }, - { "time": 1.3666, "angle": 0.05 } - ], - "translate": [ - { "time": 0, "x": -1.76, "y": 0.56, "curve": "stepped" }, - { "time": 0.9333, "x": -1.76, "y": 0.56, "curve": "stepped" }, - { "time": 1.3666, "x": -1.76, "y": 0.56 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left hand": { - "rotate": [ - { "time": 0, "angle": 11.58, "curve": "stepped" }, - { "time": 0.9333, "angle": 11.58, "curve": "stepped" }, - { "time": 1.3666, "angle": 11.58 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "left arm": { - "rotate": [ - { "time": 0, "angle": 0.51 }, - { "time": 0.4333, "angle": 12.82 }, - { "time": 0.6, "angle": 47.55 }, - { "time": 0.9333, "angle": 12.82 }, - { "time": 1.1666, "angle": -6.5 }, - { "time": 1.3666, "angle": 0.51 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right shoulder": { - "rotate": [ - { - "time": 0, - "angle": 43.82, - "curve": [ 0, 0, 0.62, 1 ] - }, - { - "time": 0.2333, - "angle": -8.74, - "curve": [ 0.304, 0.58, 0.709, 0.97 ] - }, - { - "time": 0.5333, - "angle": -208.02, - "curve": [ 0.462, 0, 0.764, 0.58 ] - }, - { "time": 0.9333, "angle": -246.72 }, - { "time": 1.0666, "angle": -307.13 }, - { "time": 1.1666, "angle": 37.15 }, - { "time": 1.3666, "angle": 43.82 } - ], - "translate": [ - { "time": 0, "x": -7.84, "y": 7.19, "curve": "stepped" }, - { "time": 0.9333, "x": -7.84, "y": 7.19, "curve": "stepped" }, - { "time": 1.3666, "x": -7.84, "y": 7.19 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right arm": { - "rotate": [ - { "time": 0, "angle": -4.02 }, - { "time": 0.6, "angle": 17.5 }, - { "time": 0.9333, "angle": -4.02 }, - { "time": 1.1666, "angle": -16.72 }, - { "time": 1.3666, "angle": -4.02 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "right hand": { - "rotate": [ - { "time": 0, "angle": 22.92, "curve": "stepped" }, - { "time": 0.9333, "angle": 22.92, "curve": "stepped" }, - { "time": 1.3666, "angle": 22.92 } - ], - "translate": [ - { "time": 0, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 0.9333, "x": 0, "y": 0, "curve": "stepped" }, - { "time": 1.3666, "x": 0, "y": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 0.9333, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - }, - "root": { - "rotate": [ - { "time": 0, "angle": 0 }, - { "time": 0.4333, "angle": -14.52 }, - { "time": 0.8, "angle": 9.86 }, - { "time": 1.3666, "angle": 0 } - ], - "scale": [ - { "time": 0, "x": 1, "y": 1, "curve": "stepped" }, - { "time": 1.3666, "x": 1, "y": 1 } - ] - } - } - } -} -} diff --git a/examples/example 12 - Spine/index.html b/examples/example 12 - Spine/index.html index 5abc5ef..7c9fc47 100644 --- a/examples/example 12 - Spine/index.html +++ b/examples/example 12 - Spine/index.html @@ -18,7 +18,7 @@ // create an array of assets to load - var assetsToLoader = ["data/spineboy.json", "data/spineboySpineData.json"]; + var assetsToLoader = ["data/spineboy.json"]; // create a new loader loader = new PIXI.AssetLoader(assetsToLoader); @@ -45,7 +45,7 @@ function onAssetsLoaded() { // create a spine boy - var spineBoy = new PIXI.Spine("data/spineboySpineData.json"); + var spineBoy = new PIXI.Spine("data/spineboy.json"); // set the position spineBoy.position.x = window.innerWidth/2; @@ -58,15 +58,15 @@ spineBoy.stateData.setMixByName("jump", "walk", 0.4); // play animation - spineBoy.state.setAnimationByName("walk", true); + spineBoy.state.setAnimationByName(0, "walk", true); stage.addChild(spineBoy); stage.click = function() { - spineBoy.state.setAnimationByName("jump", false); - spineBoy.state.addAnimationByName("walk", true); + spineBoy.state.setAnimationByName(0, "jump", false); + spineBoy.state.addAnimationByName(0, "walk", true, 0); } diff --git a/examples/example 12 - Spine/index_dragon.html b/examples/example 12 - Spine/index_dragon.html index 51b090c..a4f62d6 100644 --- a/examples/example 12 - Spine/index_dragon.html +++ b/examples/example 12 - Spine/index_dragon.html @@ -20,7 +20,7 @@ // create an array of assets to load - var assetsToLoader = ["../../logo_small.png", "data/dragonBones.json", "data/dragonBonesData.json"]; + var assetsToLoader = ["../../logo_small.png", "data/dragon.json"]; // create a new loader loader = new PIXI.AssetLoader(assetsToLoader); @@ -43,22 +43,38 @@ // add render view to DOM document.body.appendChild(renderer.view); + + var dragon = null; function onAssetsLoaded() { - var dragon = new PIXI.Spine("data/dragonBonesData.json"); - - var scale = 1;//window.innerHeight / 700; - - dragon.position.x = window.innerWidth/2; - dragon.position.y = window.innerHeight/2 + (450 * scale); - - dragon.scale.x = dragon.scale.y = scale + /* instantiate the spine animation */ + dragon = new PIXI.Spine("data/dragon.json"); + dragon.skeleton.setToSetupPose(); + dragon.update(0); + dragon.autoUpdate = false; + + /* create a container for the spine animation and add the animation to it */ + var dragonCage = new PIXI.DisplayObjectContainer(); + dragonCage.addChild(dragon); + + /* measure the spine animation and position it inside its container to align it to the origin */ + var localRect = dragon.getLocalBounds(); + dragon.position.set(-localRect.x, -localRect.y); + + /* now we can scale, position and rotate the container as any other display object */ + var scale = Math.min((window.innerWidth * 0.7) / dragonCage.width, (window.innerHeight * 0.7) / dragonCage.height); + dragonCage.scale.set(scale, scale); + dragonCage.position.set((window.innerWidth - dragonCage.width) * 0.5, (window.innerHeight - dragonCage.height) * 0.5); + + /* add the container to the stage */ + stage.addChild(dragonCage); + + /* once position and scaled, set the animation to play */ + dragon.state.setAnimationByName(0, "flying", true); - dragon.state.setAnimationByName("flying", true); - stage.addChild(dragon); var logo = PIXI.Sprite.fromImage("../../logo_small.png") stage.addChild(logo); @@ -74,17 +90,17 @@ { window.open("https://github.com/GoodBoyDigital/pixi.js", "_blank") } + + requestAnimFrame(animate); } - - requestAnimFrame(animate); - - function animate() { requestAnimFrame( animate ); + /* update the spine animation, only needed if autoupdate is set to false */ + dragon.update(0.01666666666667); // HARDCODED FRAMERATE! renderer.render(stage); } diff --git a/examples/example 12 - Spine/index_goblins.html b/examples/example 12 - Spine/index_goblins.html index 2914eb2..245e9a0 100644 --- a/examples/example 12 - Spine/index_goblins.html +++ b/examples/example 12 - Spine/index_goblins.html @@ -19,7 +19,7 @@ // create an array of assets to load - var assetsToLoader = ["data/goblins.json", "data/goblinsSpineData.json"]; + var assetsToLoader = ["data/goblins.json"]; // create a new loader loader = new PIXI.AssetLoader(assetsToLoader); @@ -45,7 +45,7 @@ function onAssetsLoaded() { - var goblin = new PIXI.Spine("data/goblinsSpineData.json"); + var goblin = new PIXI.Spine("data/goblins.json"); // set current skin goblin.skeleton.setSkinByName('goblin'); @@ -58,7 +58,7 @@ goblin.scale.x = goblin.scale.y = window.innerHeight / 400; // play animation - goblin.state.setAnimationByName("walk", true); + goblin.state.setAnimationByName(0, "walk", true); stage.addChild(goblin); @@ -80,7 +80,7 @@ logo.position.x = window.innerWidth logo.scale.x = logo.scale.y = 0.5; logo.position.y = window.innerHeight - 70; - logo.setInteractive(true); + logo.interactive = true; logo.buttonMode = true; logo.click = logo.tap = function() { diff --git a/examples/example 12 - Spine/index_pixie.html b/examples/example 12 - Spine/index_pixie.html index 8d36f96..59d0b36 100644 --- a/examples/example 12 - Spine/index_pixie.html +++ b/examples/example 12 - Spine/index_pixie.html @@ -19,7 +19,7 @@ // create an array of assets to load - var assetsToLoader = ["../../logo_small.png", "data/PixieSpineData.json", "data/Pixie.json", "data/iP4_BGtile.jpg", "data/iP4_ground.png"]; + var assetsToLoader = ["../../logo_small.png", "data/Pixie.json", "data/iP4_BGtile.jpg", "data/iP4_ground.png"]; // create a new loader loader = new PIXI.AssetLoader(assetsToLoader); @@ -61,7 +61,7 @@ stage.addChild(foreground2); foreground.position.y = foreground2.position.y = 640 - foreground2.height; - var pixie = new PIXI.Spine("data/PixieSpineData.json"); + var pixie = new PIXI.Spine("data/Pixie.json"); var scale = 0.3;//window.innerHeight / 700; @@ -78,14 +78,14 @@ pixie.stateData.setMixByName("running", "jump", 0.2); pixie.stateData.setMixByName("jump", "running", 0.4); - pixie.state.setAnimationByName("running", true); + pixie.state.setAnimationByName(0, "running", true); stage.mousedown = stage.touchstart = function() { - pixie.state.setAnimationByName("jump", false); - pixie.state.addAnimationByName("running", true); + pixie.state.setAnimationByName(0, "jump", false); + pixie.state.addAnimationByName(0, "running", true, 0); } var logo = PIXI.Sprite.fromImage("../../logo_small.png") @@ -96,7 +96,7 @@ logo.position.x = 1024 logo.scale.x = logo.scale.y = 0.5; logo.position.y = 640 - 70; - logo.setInteractive(true); + logo.interactive = true; logo.buttonMode = true; logo.click = logo.tap = function() {