Commit 64f3d4b8 authored by chenli's avatar chenli

保存版本

parent dd087543
{
"ver": "2.0.1",
"uuid": "6d9f0c64-a718-4de2-9a34-bc59a6d04473",
"downloadMode": 0,
"duration": 1.311125,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "402a645c-43dd-463b-a8f2-9281c9ad9aa8",
"downloadMode": 0,
"duration": 3.761633,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "6132e381-bbd1-4cad-b0ea-7290ac38b6aa",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{"frameRate":24,"name":"cake_fire","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-61,"y":-45,"width":126,"height":106},"bone":[{"name":"root"},{"name":"椭圆_8_拷贝","parent":"root","transform":{"x":-44,"y":-23.65}},{"name":"中间","parent":"root"},{"length":48,"name":"形状_8","parent":"root","transform":{"x":-5.1,"y":23.85,"skX":-83.4969,"skY":-83.4969}},{"name":"椭圆_8_拷贝_2","parent":"root","transform":{"x":45.85,"y":33.9}},{"name":"椭圆_8","parent":"root","transform":{"x":40.15,"y":-20.7}},{"name":"椭圆_8_拷贝_4","parent":"root","transform":{"x":-47.65,"y":55.4}}],"slot":[{"name":"椭圆_8","parent":"椭圆_8","color":{"aM":26}},{"name":"椭圆_8_拷贝_3","parent":"中间","color":{"aM":48}},{"name":"椭圆_8_拷贝","parent":"椭圆_8_拷贝","color":{"aM":37}},{"name":"椭圆_8_拷贝_2","parent":"椭圆_8_拷贝_2","color":{"aM":31}},{"name":"椭圆_8_拷贝_4","parent":"椭圆_8_拷贝_4","color":{"aM":32}},{"name":"形状_8","parent":"形状_8"}],"skin":[{"slot":[{"name":"椭圆_8","display":[{"name":"蜡烛火焰/椭圆_8","transform":{"x":0.35,"y":0.2}}]},{"name":"椭圆_8_拷贝_3","display":[{"name":"蜡烛火焰/椭圆_8_拷贝_3","transform":{"x":-2.5,"y":-1.5}}]},{"name":"椭圆_8_拷贝","display":[{"name":"蜡烛火焰/椭圆_8_拷贝","transform":{"x":2,"y":0.65}}]},{"name":"椭圆_8_拷贝_2","display":[{"name":"蜡烛火焰/椭圆_8_拷贝_2","transform":{"x":0.65,"y":0.1}}]},{"name":"椭圆_8_拷贝_4","display":[{"name":"蜡烛火焰/椭圆_8_拷贝_4","transform":{"x":1.15,"y":0.1}}]},{"name":"形状_8","display":[{"type":"mesh","name":"蜡烛火焰/形状_8","width":36,"height":61,"vertices":[-8.03,-7.29,-0.36,-15.96,10.02,-17.15,21.85,-18.49,34.38,-13.58,46.29,-9.76,53.93,-2.32,48.58,8.96,39.21,15.56,27.36,17.11,9.33,19.17,-1.01,17.22,-6.09,8.39],"uvs":[0.21528,1,0,0.85902,0,0.6877,0,0.49262,0.175,0.29754,0.31806,0.11066,0.54722,0,0.84167,0.1082,0.99444,0.27295,1,0.46885,1,0.76639,0.91389,0.93115,0.65417,0.99754],"triangles":[3,2,9,8,4,9,4,3,9,12,11,10,9,2,10,2,12,10,7,4,8,5,4,7,2,0,12,6,5,7,2,1,0],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,0],"userEdges":[]}]}]}],"animation":[{"duration":72,"playTimes":0,"name":"newAnimation","bone":[{"name":"椭圆_8_拷贝","translateFrame":[{"duration":61,"tweenEasing":0,"x":43.26,"y":24.5},{"duration":11,"x":-5.52,"y":-2.9}],"scaleFrame":[{"duration":65,"tweenEasing":0,"x":0.29,"y":0.29},{"duration":7}]},{"name":"椭圆_8","translateFrame":[{"duration":69,"tweenEasing":0,"x":-44.1,"y":21.89},{"duration":3}],"scaleFrame":[{"duration":67,"tweenEasing":0,"x":0.12,"y":0.12},{"duration":5}]},{"name":"椭圆_8_拷贝_2","translateFrame":[{"duration":46,"tweenEasing":0,"x":-45.11,"y":-34.23},{"duration":18,"tweenEasing":0,"x":-12.69,"y":-9.63},{"duration":8}],"scaleFrame":[{"duration":48,"tweenEasing":0,"x":0.24,"y":0.24},{"duration":24}]},{"name":"椭圆_8_拷贝_4","translateFrame":[{"duration":72,"tweenEasing":0,"x":46.54,"y":-55.56},{"duration":0}],"scaleFrame":[{"duration":53,"tweenEasing":0,"x":0.13,"y":0.13},{"duration":19}]}],"slot":[{"name":"椭圆_8","colorFrame":[{"duration":58,"tweenEasing":0,"value":{"aM":0}},{"duration":11,"tweenEasing":0,"value":{"aM":38}},{"duration":3,"value":{"aM":0}}]},{"name":"椭圆_8_拷贝_3","colorFrame":[{"duration":18,"tweenEasing":0,"value":{"aM":0}},{"duration":20,"tweenEasing":0,"value":{"aM":45}},{"duration":19,"tweenEasing":0,"value":{"aM":0}},{"duration":15,"tweenEasing":0,"value":{"aM":46}},{"duration":0,"value":{"aM":0}}]},{"name":"椭圆_8_拷贝","colorFrame":[{"duration":50,"tweenEasing":0,"value":{"aM":0}},{"duration":11,"tweenEasing":0,"value":{"aM":30}},{"duration":11,"value":{"aM":0}}]},{"name":"椭圆_8_拷贝_2","colorFrame":[{"duration":46,"tweenEasing":0,"value":{"aM":0}},{"duration":18,"tweenEasing":0,"value":{"aM":35}},{"duration":8,"value":{"aM":0}}]},{"name":"椭圆_8_拷贝_4","colorFrame":[{"duration":56,"tweenEasing":0,"value":{"aM":0}},{"duration":16,"tweenEasing":0,"value":{"aM":62}},{"duration":0,"value":{"aM":0}}]}],"ffd":[{"name":"蜡烛火焰/形状_8","slot":"形状_8","frame":[{"duration":5,"tweenEasing":0,"offset":4,"vertices":[0.1,-0.41]},{"duration":11,"tweenEasing":0,"offset":4,"vertices":[-0.06,-2.26,0,0,0.35,-1.35,0.62,-2.49,5.82,-3.23,0.5,-1.82,-0.48,-2.41,-1.09,-1.59,0.45,-1.31,0.01,-1.26,-0.25,-1.33]},{"duration":10,"tweenEasing":0,"offset":4,"vertices":[-1.06,-3.6,4.47,-5.34,1.39,-8.56,1.84,-5.04,7.17,3.26,0.5,-1.82,-1.06,-5.31,-2.7,-3.42,0.45,-1.31,0.01,-1.26,-0.25,-1.33]},{"duration":9,"tweenEasing":0,"offset":2,"vertices":[-3.11,-1.66,-1.98,-5.86,4.47,-5.34,2.19,-8.6,1.84,-5.04,7.17,3.26,-1.25,-3.88,-2.7,-6.89,-5.25,-4.08,0.45,-1.31,0.01,-1.26,-0.25,-1.33]},{"duration":9,"tweenEasing":0,"offset":4,"vertices":[-1.06,-3.6,4.47,-5.34,1.39,-8.56,1.84,-5.04,7.17,3.26,0.5,-1.82,-1.06,-5.31,-2.7,-3.42,0.45,-1.31,0.01,-1.26,-0.25,-1.33]},{"duration":18,"tweenEasing":0,"offset":4,"vertices":[-3.12,-1.31,-0.52,-1.45,-1.36,-3.07,-0.5,-0.85,7.17,3.26,1.1,3.95,-1.47,2.13,-3.63,2.63,-0.24,2.34,-0.46,2.57,-0.01,1.71]},{"duration":10,"tweenEasing":0,"offset":4,"vertices":[-0.06,-2.26,0,0,0.35,-1.35,0.62,-2.49,5.82,-3.23,0.5,-1.82,-0.48,-2.41,-1.09,-1.59,0.45,-1.31,0.01,-1.26,-0.25,-1.33]},{"duration":0,"offset":4,"vertices":[0.1,-0.41]}]}]}],"defaultActions":[{"gotoAndPlay":"newAnimation"}],"canvas":{"width":136,"height":136}},{"type":"MovieClip","frameRate":24,"name":"MovieClip","bone":[{"name":"root"}],"defaultActions":[{}]}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "e00587f4-6c50-4f3a-9987-aa0165e94634",
"subMetas": {}
}
\ No newline at end of file
{"name":"cake_fire","SubTexture":[{"name":"蜡烛火焰/椭圆_8","x":1,"height":49,"y":74,"width":49},{"name":"蜡烛火焰/椭圆_8_拷贝_3","x":1,"height":71,"y":1,"width":71},{"name":"蜡烛火焰/椭圆_8_拷贝","x":74,"height":38,"y":64,"width":38},{"name":"蜡烛火焰/椭圆_8_拷贝_2","x":52,"height":18,"y":74,"width":19},{"name":"蜡烛火焰/椭圆_8_拷贝_4","x":52,"height":11,"y":94,"width":11},{"name":"蜡烛火焰/形状_8","x":74,"height":61,"y":1,"width":36}],"height":128,"imagePath":"cake_fire_tex.png","width":128}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "68804f74-d23f-4f36-9dc8-167a7a7f8c55",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "aefb5bec-df17-44e3-9fd4-c51982a5a296",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 128,
"height": 128,
"platformSettings": {},
"subMetas": {
"cake_fire_tex": {
"ver": "1.0.4",
"uuid": "760065b8-b845-4021-9ba3-676df54ce9ed",
"rawTextureUuid": "aefb5bec-df17-44e3-9fd4-c51982a5a296",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -7.5,
"offsetY": 2,
"trimX": 1,
"trimY": 1,
"width": 111,
"height": 122,
"rawWidth": 128,
"rawHeight": 128,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "777b82b8-9ac5-4793-9daf-505d38cfd48b",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{"frameRate":24,"name":"cake_timeout","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-27.5,"y":-47.5,"width":47,"height":140},"bone":[{"name":"root"},{"length":36,"name":"图层_5","parent":"root","transform":{"x":17.8,"y":84.7,"skX":-95.0656,"skY":-95.0656}},{"length":47,"name":"图层_3","parent":"root","transform":{"x":-23.65,"y":77.45,"skX":-90.9679,"skY":-90.9679}},{"length":112,"name":"图层_4","parent":"root","transform":{"x":-1.95,"y":71.25,"skX":-91.067,"skY":-91.067}}],"slot":[{"name":"烛芯","parent":"root"},{"name":"图层_5","parent":"图层_5"},{"name":"图层_4","parent":"图层_4"},{"name":"图层_3","parent":"图层_3"}],"skin":[{"slot":[{"name":"图层_4","display":[{"type":"mesh","name":"蜡烛油冒烟/图层_4","width":18,"height":137,"vertices":[-15.43,-11.84,-6.54,-5.97,5.21,-2.95,20.63,-3.87,34.38,-6.71,48.86,-10.64,64.35,-10.35,77.25,-10.11,91.97,-8.04,105.83,-3.23,118.71,3.36,104.78,7.65,91.18,4.45,76.16,2.97,64,3.39,51.17,7.4,34.77,7.1,20.98,6.84,9.88,6.64,-1.32,3.93,-10.85,0,-16.7,-5.56,-18.08,-9.39,-18.03,-11.89],"uvs":[0,0.98102,0.31667,0.91533,0.47222,0.8292,0.40556,0.71679,0.23333,0.61679,0,0.51168,0,0.39854,0,0.30438,0.1,0.19672,0.35278,0.09489,0.70556,0,0.95833,0.10109,0.79444,0.20073,0.72778,0.31058,0.76389,0.39927,1,0.49234,1,0.61204,1,0.71277,1,0.7938,0.86111,0.87591,0.65278,0.94599,0.35,0.98942,0.13889,1,0,1],"triangles":[14,5,15,5,4,15,15,4,16,4,3,16,2,19,18,3,2,18,9,12,11,10,9,11,3,18,17,16,3,17,8,7,13,13,6,14,6,5,14,8,13,12,9,8,12,1,20,19,2,1,19,7,6,13,1,21,20,1,0,21,0,22,21,0,23,22],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,0],"userEdges":[]}]},{"name":"烛芯","display":[{"name":"蜡烛油冒烟/烛芯","transform":{"x":-4,"y":82.5}}]},{"name":"图层_5","display":[{"type":"mesh","name":"蜡烛油冒烟/图层_5","width":8,"height":42,"vertices":[-3.46,-4.02,3.26,-3.33,8.84,-4.04,14.1,-5.07,21.28,-4.44,28.85,-3.77,35.96,-1.88,38.35,-0.01,38.1,2.78,29.29,1.94,23.64,1.74,18.18,3.32,10.81,2.66,3.54,2.02,-0.1,1.7,-3.79,-0.24],"uvs":[0.325,1,0.3375,0.83929,0.1875,0.70833,0,0.58571,0,0.41429,0,0.23333,0.15625,0.06071,0.3625,0,0.7125,0,0.70625,0.21071,0.74375,0.34524,1,0.47143,1,0.64762,1,0.82143,1,0.90833,0.8,1],"triangles":[6,9,8,3,2,12,10,4,11,4,3,11,3,12,11,0,15,14,1,0,14,12,2,13,2,1,13,1,14,13,6,5,9,9,5,10,5,4,10,7,6,8],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,0],"userEdges":[]}]},{"name":"图层_3","display":[{"type":"mesh","name":"蜡烛油冒烟/图层_3","width":8,"height":56,"vertices":[-2.48,-3.89,2.07,-1.32,7.11,-0.63,13.71,-0.77,19.18,-1.83,23.71,-3.45,29.21,-3.36,35.46,-3.25,40.91,-3.16,46.89,-1.96,50.96,0.01,50.87,2.36,48.21,2.76,40.22,2.28,35.76,2.7,31.84,3.74,28.38,4.63,21.68,4.52,16.13,4.42,7.83,4.28,4.08,4.22,-0.39,2.49,-3.74,-0.41,-5.01,-2.63,-4.93,-3.93],"uvs":[0,0.95536,0.3125,0.87321,0.3875,0.78304,0.35625,0.66518,0.2125,0.56786,0,0.4875,0,0.38929,0,0.27768,0,0.18036,0.1375,0.07321,0.375,0,0.66875,0.00089,0.725,0.04821,0.68125,0.19107,0.74375,0.27054,0.88125,0.34018,1,0.40179,1,0.52143,1,0.62054,1,0.76875,1,0.83571,0.79375,0.91607,0.4375,0.97679,0.1625,1,0,0.99911],"triangles":[9,13,12,6,5,16,16,5,17,5,4,17,6,16,15,3,2,19,1,21,20,19,2,20,2,1,20,17,4,18,4,3,18,3,19,18,14,6,15,1,22,21,9,8,13,8,7,13,13,7,14,7,6,14,11,10,12,10,9,12,1,0,22,0,23,22,0,24,23],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,0],"userEdges":[]}]}]}],"animation":[{"duration":72,"playTimes":0,"name":"newAnimation","bone":[{"name":"图层_5","translateFrame":[{"duration":72,"tweenEasing":0},{"duration":0,"y":-161}]},{"name":"图层_3","translateFrame":[{"duration":54,"tweenEasing":0},{"duration":18,"y":-129.73}]},{"name":"图层_4","translateFrame":[{"duration":62,"tweenEasing":0},{"duration":10,"y":-80.85}]}],"slot":[{"name":"图层_5","colorFrame":[{"duration":11,"tweenEasing":0,"value":{"aM":0}},{"duration":23,"tweenEasing":0,"value":{"aM":69}},{"duration":30,"tweenEasing":0},{"duration":8,"tweenEasing":0,"value":{"aM":41}},{"duration":0,"value":{"aM":0}}]},{"name":"图层_4","colorFrame":[{"duration":5,"tweenEasing":0,"value":{"aM":0}},{"duration":22,"tweenEasing":0,"value":{"aM":54}},{"duration":29,"tweenEasing":0},{"duration":6,"tweenEasing":0,"value":{"aM":61}},{"duration":10,"value":{"aM":0}}]},{"name":"图层_3","colorFrame":[{"duration":3,"tweenEasing":0,"value":{"aM":0}},{"duration":21,"tweenEasing":0,"value":{"aM":60}},{"duration":26,"tweenEasing":0},{"duration":4,"tweenEasing":0,"value":{"aM":42}},{"duration":18,"value":{"aM":0}}]}],"ffd":[{"name":"蜡烛油冒烟/图层_3","slot":"图层_3","frame":[{"duration":6,"tweenEasing":0,"offset":34,"vertices":[-0.01,0.3,0.09,0.75,0.79,0.66]},{"duration":7,"tweenEasing":0,"offset":2,"vertices":[0.58,-1.64,0.28,-1.7,0.22,-1.45,-0.23,-1.15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.51,-0.49,0.25,-0.25,0.61,-0.74,0.12,-1,-0.01,0.3,0.1,0.25,2.76,-0.3,1.17,-1.28,0.02,-1.05]},{"duration":8,"tweenEasing":0,"offset":2,"vertices":[1.04,-2.43,0.81,-3.44,0.41,-3.29,-0.15,-2.9,0.38,-1.69,0.97,-0.98,0.79,0.66,1.24,0.67,0.39,0.76,0,0,0,0,0.34,0.41,1.48,1.18,1.09,0.77,0.61,-0.74,-0.22,-2.05,0.42,-1.24,0.56,-0.64,3.42,-1.09,1.73,-1.67,0.02,-1.05]},{"duration":6,"tweenEasing":0,"vertices":[0.32,-1.24,1.84,-5.22,2.67,-7.26,1.88,-7.52,1.15,-6.18,2.07,-4.02,0.97,-0.98,0.79,0.66,1.32,1.97,0.82,1.76,0,0,0,0,0.34,0.41,2.13,1.49,2.23,1.29,1.4,0.17,-0.22,-2.05,1.18,-4.43,1.29,-5.48,3.65,-5.69,2.55,-5.76,1.46,-3.73,0.67,-1.24]},{"duration":6,"tweenEasing":0,"vertices":[0.69,-2.39,1.87,-7.02,2.95,-8.85,2.4,-9.01,1.68,-7.72,2.07,-4.02,0.97,-0.98,0.27,1.9,1.14,3.37,1.23,1.37,0.18,-1.9,0.43,-1.99,0.34,0.41,1.65,2.88,0.86,2.61,-0.32,1.14,-1.67,-1.73,0.16,-3.8,1.29,-5.48,3.65,-5.69,2.55,-5.76,1.46,-3.73,0.67,-1.24]},{"duration":7,"tweenEasing":0,"vertices":[0.32,-1.24,1.84,-5.22,2.67,-7.26,1.88,-7.52,1.15,-6.18,2.07,-4.02,0.97,-0.98,0.79,0.66,1.32,1.97,0.82,1.76,0,0,0,0,0.34,0.41,2.13,1.49,2.23,1.29,1.4,0.17,-0.22,-2.05,1.18,-4.43,1.29,-5.48,3.65,-5.69,2.55,-5.76,1.46,-3.73,0.67,-1.24]},{"duration":8,"tweenEasing":0,"offset":2,"vertices":[1.04,-2.43,0.81,-3.44,0.41,-3.29,-0.15,-2.9,0.38,-1.69,0.97,-0.98,0.79,0.66,1.24,0.67,0.39,0.76,0,0,0,0,0.34,0.41,1.48,1.18,1.09,0.77,0.61,-0.74,-0.22,-2.05,0.42,-1.24,0.56,-0.64,3.42,-1.09,1.73,-1.67,0.02,-1.05]},{"duration":6,"tweenEasing":0,"offset":2,"vertices":[0.58,-1.64,0.28,-1.7,0.22,-1.45,-0.23,-1.15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.51,-0.49,0.25,-0.25,0.61,-0.74,0.12,-1,-0.01,0.3,0.1,0.25,2.76,-0.3,1.17,-1.28,0.02,-1.05]},{"duration":18,"offset":34,"vertices":[-0.01,0.3,0.09,0.75,0.79,0.66]}]},{"name":"蜡烛油冒烟/图层_5","slot":"图层_5","frame":[{"duration":7,"tweenEasing":0,"offset":26,"vertices":[-0.08,-0.21]},{"duration":6,"tweenEasing":0,"offset":2,"vertices":[-0.12,-0.96,0.25,-1.68,0.32,-0.72,0.45,-0.56,0,0,-0.18,0.34,0.18,0.22,0,0,2.1,1.19,2.06,0.58,-0.13,-1.37,-1.39,-0.73,0.02,-0.75,-0.59,-1.31,-0.07,-0.36]},{"duration":9,"tweenEasing":0,"offset":2,"vertices":[-0.01,-2.11,0.39,-2.68,0.65,-1.7,0.45,-0.56,0,0,-0.18,0.34,0.18,0.22,0,0,2.1,1.19,2.06,0.58,-2.16,-1.1,-1.7,-1.76,-0.15,-1.72,-0.34,-1.84,-0.07,-0.36]},{"duration":8,"tweenEasing":0,"offset":2,"vertices":[-0.87,-4.95,0.52,-5.83,1.76,-4.01,1.07,-2.42,1.19,-1.55,0.1,-2.3,2.19,-2.67,1.66,-2.86,2.84,-1.5,2.67,-1.77,-2.88,-4.37,-1.95,-3.49,-0.15,-1.72,-0.34,-1.84,-0.07,-0.36]},{"duration":7,"tweenEasing":0,"offset":2,"vertices":[-0.42,-4.91,-0.32,-5.5,1.2,-3.36,-0.27,-1.43,-0.15,-0.57,-1,-1.14,2.19,-2.67,1.66,-2.86,2.82,0.5,-0.22,0.23,-5.17,-4.02,-1.5,-4.65,0.54,-3.27,-0.18,-1.92,-0.07,-0.36]},{"duration":7,"tweenEasing":0,"offset":2,"vertices":[-0.87,-4.95,0.52,-5.83,1.76,-4.01,1.07,-2.42,1.19,-1.55,0.1,-2.3,2.19,-2.67,1.66,-2.86,2.84,-1.5,2.67,-1.77,-2.88,-4.37,-1.95,-3.49,-0.15,-1.72,-0.34,-1.84,-0.07,-0.36]},{"duration":8,"tweenEasing":0,"offset":2,"vertices":[-0.01,-2.11,0.39,-2.68,0.65,-1.7,0.45,-0.56,0,0,-0.18,0.34,0.18,0.22,0,0,2.1,1.19,2.06,0.58,-2.16,-1.1,-1.7,-1.76,-0.15,-1.72,-0.34,-1.84,-0.07,-0.36]},{"duration":10,"tweenEasing":0,"offset":2,"vertices":[-0.12,-0.96,0.25,-1.68,0.32,-0.72,0.45,-0.56,0,0,-0.18,0.34,0.18,0.22,0,0,2.1,1.19,2.06,0.58,-0.13,-1.37,-1.39,-0.73,0.02,-0.75,-0.59,-1.31,-0.07,-0.36]},{"duration":10,"offset":26,"vertices":[-0.08,-0.21]}]},{"name":"蜡烛油冒烟/图层_4","slot":"图层_4","frame":[{"duration":12,"tweenEasing":0},{"duration":11,"tweenEasing":0,"offset":2,"vertices":[2.21,-3.01,1.92,-3.51,1.25,-2.73,1.24,-2.23,0,0,0.02,-1.2,-0.23,-1.15,-0.11,-1.95,0.46,-3.44,-0.07,-4.5,0.03,-1.85,0,0,0,0,0,0,-0.78,-1.31]},{"duration":12,"tweenEasing":0,"offset":2,"vertices":[3.31,-5.79,3.84,-7.58,3.09,-7.54,2.76,-5.65,0.92,-1.18,0.02,-1.2,-0.23,-1.15,0.91,-0.63,0.28,-1.6,-0.07,-4.5,0.4,0.01,-0.27,1.3,1.43,0.98,0.11,-0.4,-0.99,-3.42,1.49,-1.92,1.08,-1.73,0.73,-1.74,0.42,-1.29]},{"duration":11,"tweenEasing":0,"offset":2,"vertices":[3.31,-5.79,4.29,-10.22,3.56,-11.24,4.01,-8.43,1.78,-4.47,-0.41,0.29,-0.04,2.2,-1.94,2.06,0.28,-1.6,0.56,-8.59,0.02,-1.05,-0.69,4.89,-2.47,6.61,-1.81,3.42,-0.99,-3.42,-0.14,-5.8,0.88,-4.53,-0.47,-4.26,0.42,-1.29,0,0,0.63,3.71]},{"duration":16,"tweenEasing":0,"offset":2,"vertices":[0.84,-10.34,-0.23,-17.21,0.68,-17.59,4.01,-13.83,2.63,-6.7,-1.71,0.57,-0.58,4.29,-1.26,3.28,0.28,-1.6,0.56,-8.59,0.02,-1.05,-0.47,6.44,-1.44,7.57,-2.73,4.2,-0.55,-5.56,1.79,-9.97,2.68,-9.9,1.75,-8.17,2.09,-4.71,0.83,-1.43,0.63,3.71,-0.16,3.2,-0.95,2.78]},{"duration":10,"vertices":[-0.64,-0.56,-1.79,-11.29,-2.85,-18.96,-0.09,-21.96,-0.95,-18.87,2.63,-6.7,-1.71,0.57,-0.58,4.29,-1.26,3.28,0.28,-1.6,0.56,-8.59,0.02,-1.05,0.16,7.65,-0.77,9.04,-2.73,4.2,-0.55,-5.56,1.28,-12.08,3.21,-14.19,1.54,-12.92,0.08,-9.45,0.83,-1.43,1.23,6.22,-1.19,7.53,-1.66,5.77]}]}]}],"defaultActions":[{"gotoAndPlay":"newAnimation"}],"canvas":{"width":120,"height":240}},{"type":"MovieClip","frameRate":24,"name":"MovieClip","bone":[{"name":"root"}],"defaultActions":[{}]}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "2c131bc5-fea8-45d0-9f6e-6e685ec98447",
"subMetas": {}
}
\ No newline at end of file
{"name":"cake_timeout","SubTexture":[{"name":"蜡烛油冒烟/烛芯","x":21,"height":20,"y":103,"width":9},{"name":"蜡烛油冒烟/图层_5","x":21,"height":42,"y":59,"width":8},{"name":"蜡烛油冒烟/图层_4","x":1,"height":137,"y":1,"width":18},{"name":"蜡烛油冒烟/图层_3","x":21,"height":56,"y":1,"width":8}],"height":256,"imagePath":"cake_timeout_tex.png","width":32}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "9cf2af37-a846-4831-86e2-2c7df0ba182c",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e10a6c24-356c-4409-b7a5-3ed7559a57cf",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 32,
"height": 256,
"platformSettings": {},
"subMetas": {
"cake_timeout_tex": {
"ver": "1.0.4",
"uuid": "1a4c6ae8-8836-46cb-ab86-94131785f7e1",
"rawTextureUuid": "e10a6c24-356c-4409-b7a5-3ed7559a57cf",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 58.5,
"trimX": 1,
"trimY": 1,
"width": 29,
"height": 137,
"rawWidth": 32,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "07f557a9-a076-4165-8dc1-d60572c9fd3e",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{"frameRate":24,"name":"蜡烛落下","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-96.5,"y":-87.55,"width":194,"height":88},"bone":[{"name":"root","transform":{"y":0.15}},{"length":60,"name":"蜡烛1","parent":"root","transform":{"x":-77.5,"y":-10.7,"skX":-103.4587,"skY":-103.4587}},{"length":62,"name":"蜡烛2","parent":"root","transform":{"x":-34.5,"y":-18.2,"skX":-101.5806,"skY":-101.5806}},{"length":66,"name":"蜡烛3","parent":"root","transform":{"x":12.5,"y":-10.2,"skX":-103.4124,"skY":-103.4124}},{"length":63,"name":"蜡烛4","parent":"root","transform":{"x":35.5,"y":-9.2,"skX":-82.7058,"skY":-82.7058}},{"length":60,"name":"蜡烛5","parent":"root","transform":{"x":70.5,"y":-14.7,"skX":-69.3339,"skY":-69.3339}}],"slot":[{"name":"蜡烛4","parent":"蜡烛4"},{"name":"蜡烛2","parent":"蜡烛2"},{"name":"蜡烛5","parent":"蜡烛5"},{"name":"蜡烛3","parent":"蜡烛3"},{"name":"蜡烛1","parent":"蜡烛1"}],"skin":[{"slot":[{"name":"蜡烛3","display":[{"name":"蜡烛落下/蜡烛3","transform":{"x":30.97,"y":3.79,"skX":103.41,"skY":103.41}}]},{"name":"蜡烛2","display":[{"name":"蜡烛落下/蜡烛2","transform":{"x":30.58,"y":2.69,"skX":101.58,"skY":101.58}}]},{"name":"蜡烛5","display":[{"name":"蜡烛落下/蜡烛5","transform":{"x":28.15,"y":-0.46,"skX":69.33,"skY":69.33}}]},{"name":"蜡烛4","display":[{"name":"蜡烛落下/蜡烛4","transform":{"x":30.82,"y":0.59,"skX":82.71,"skY":82.71}}]},{"name":"蜡烛1","display":[{"name":"蜡烛落下/蜡烛1","transform":{"x":30.48,"y":3.69,"skX":103.46,"skY":103.46}}]}]}],"animation":[{"duration":14,"playTimes":0,"name":"newAnimation","bone":[{"name":"蜡烛1","translateFrame":[{"duration":14,"tweenEasing":0,"y":-123.16},{"duration":0}],"rotateFrame":[{"duration":12,"tweenEasing":0,"rotate":10.95},{"duration":2,"tweenEasing":0,"rotate":10.95},{"duration":0,"rotate":-0.05}]},{"name":"蜡烛2","translateFrame":[{"duration":8,"tweenEasing":0,"x":5.72,"y":-122.84},{"duration":6,"tweenEasing":0,"x":5.72,"y":-122.84},{"duration":0}],"rotateFrame":[{"duration":14,"rotate":-0.05}]},{"name":"蜡烛3","translateFrame":[{"duration":10,"tweenEasing":0,"y":-138.3},{"duration":4}],"rotateFrame":[{"duration":14,"rotate":-0.05}]},{"name":"蜡烛4","translateFrame":[{"duration":13,"tweenEasing":0,"y":-160.26},{}],"rotateFrame":[{"duration":14,"rotate":-0.05}]},{"name":"蜡烛5","translateFrame":[{"duration":4,"tweenEasing":0,"y":-119.89},{"duration":10}],"rotateFrame":[{"duration":4,"tweenEasing":0,"rotate":-17.05},{"duration":2,"tweenEasing":0,"rotate":-17.05},{"duration":8,"rotate":-0.05}]}]}],"defaultActions":[{"gotoAndPlay":"newAnimation"}],"canvas":{"y":-127,"width":240,"height":254}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "760307cc-8ed9-4c7f-8609-a25ab403f868",
"subMetas": {}
}
\ No newline at end of file
{"name":"蜡烛落下","SubTexture":[{"name":"蜡烛落下/蜡烛4","x":135,"height":80,"y":1,"width":27},{"name":"蜡烛落下/蜡烛2","x":104,"height":78,"y":1,"width":29},{"name":"蜡烛落下/蜡烛5","x":1,"height":77,"y":1,"width":35},{"name":"蜡烛落下/蜡烛3","x":38,"height":77,"y":1,"width":31},{"name":"蜡烛落下/蜡烛1","x":71,"height":77,"y":1,"width":31}],"height":128,"imagePath":"蜡烛落下_tex.png","width":256}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "e48b9f5d-2f7f-4dd8-a5e3-f224eceddfd6",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "88a6677c-d0e2-4077-857b-276522fff926",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 256,
"height": 128,
"platformSettings": {},
"subMetas": {
"蜡烛落下_tex": {
"ver": "1.0.4",
"uuid": "d484b048-bf7a-4abd-b4a3-34729a4a39a0",
"rawTextureUuid": "88a6677c-d0e2-4077-857b-276522fff926",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -46.5,
"offsetY": 23,
"trimX": 1,
"trimY": 1,
"width": 161,
"height": 80,
"rawWidth": 256,
"rawHeight": 128,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "9b9bd860-b629-4d50-9fe0-9ffe03e36393",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{"name":"right","version":"5.5","armature":[{"name":"Armature","defaultActions":[{"gotoAndPlay":"newAnimation"}],"bone":[{"name":"root","transform":{}},{"name":"1","transform":{"x":0.5052,"y":-0.1067},"parent":"root"},{"name":"十字架","transform":{"x":0.9,"skY":90,"y":-14.4,"skX":90},"parent":"root"},{"name":"盾","transform":{"x":0.6,"skY":-90.2848,"y":-0.9,"skX":-90.2848},"length":60,"parent":"root"},{"name":"星4","transform":{"x":-89.75,"y":-67.25},"parent":"root"},{"name":"星2","transform":{"x":56.45,"skY":90,"y":-88.55,"skX":90},"parent":"root"},{"name":"星3","transform":{"x":86.8,"y":48.35},"parent":"root"},{"name":"星1","transform":{"x":-45.6,"skY":45,"y":41.45,"skX":45},"parent":"root"}],"aabb":{"x":-194,"height":294,"y":-128.60037857684097,"width":384},"ik":[],"slot":[{"name":"1","color":{},"displayIndex":5,"parent":"1"},{"name":"盾","color":{},"z":1,"parent":"盾"},{"name":"十字架","color":{},"z":2,"parent":"十字架"},{"name":"星4","color":{},"z":3,"parent":"星4"},{"name":"星3","color":{},"z":4,"parent":"星3"},{"name":"星2","color":{},"z":5,"parent":"星2"},{"name":"星1","color":{},"z":6,"parent":"星1"}],"skin":[{"name":"","slot":[{"name":"星2","display":[{"name":"1/星2","transform":{"x":-0.45,"skY":-90,"y":-2.05,"skX":-90},"type":"image","path":"1/星2"}]},{"name":"1","display":[{"name":"1/1","transform":{"x":-1.0052,"y":-18.9937},"type":"image","path":"1/1"},{"name":"1/2","transform":{"x":5.4948,"y":-18.4937},"type":"image","path":"1/2"},{"name":"1/3","transform":{"x":-0.5052,"y":-15.4937},"type":"image","path":"1/3"},{"name":"1/4","transform":{"x":-3.5052,"y":-7.9937},"type":"image","path":"1/4"},{"name":"1/5","transform":{"x":-2.0052,"y":-3.9937},"type":"image","path":"1/5"},{"name":"1/6","transform":{"x":-2.5052,"y":18.5063},"type":"image","path":"1/6"}]},{"name":"盾","display":[{"name":"1/盾","transform":{"x":9.088,"skY":90.2848,"y":2.4452,"skX":90.2848},"type":"image","path":"1/盾"}]},{"name":"星1","display":[{"name":"1/星1","transform":{"x":0.1061,"skY":-45,"y":-2.1567,"skX":-45},"type":"image","path":"1/星1"}]},{"name":"十字架","display":[{"name":"1/十字架","transform":{"x":-0.1,"skY":-90,"y":-1.6,"skX":-90},"type":"image","path":"1/十字架"}]},{"name":"星4","display":[{"name":"1/星4","transform":{"x":1.75,"y":-0.75},"type":"image","path":"1/星4"}]},{"name":"星3","display":[{"name":"1/星3","transform":{"x":2.2,"y":-0.85},"type":"image","path":"1/星3"}]}]}],"frameRate":24,"type":"Armature","animation":[{"name":"newAnimation","frame":[],"bone":[{"name":"root","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"1","rotateFrame":[],"translateFrame":[{"duration":5},{"tweenEasing":0,"duration":5},{"y":48.6907,"duration":8}],"scaleFrame":[{"duration":5},{"tweenEasing":0,"duration":5},{"x":0.85,"y":0.9,"duration":8}]},{"name":"十字架","rotateFrame":[],"translateFrame":[],"scaleFrame":[{"duration":7},{"tweenEasing":0,"x":1.7,"y":1.7,"duration":3},{"duration":8}]},{"name":"盾","rotateFrame":[],"translateFrame":[],"scaleFrame":[{"duration":4},{"tweenEasing":0,"x":2.33,"y":2.33,"duration":4},{"duration":10}]},{"name":"星4","rotateFrame":[{"duration":8},{"duration":3,"tweenEasing":0},{"duration":7,"rotate":78.8649}],"translateFrame":[{"duration":8},{"tweenEasing":0,"x":46.0909,"y":26.7655,"duration":3},{"x":8.8272,"y":-5.6116,"duration":7}],"scaleFrame":[{"duration":8},{"tweenEasing":0,"x":0.55,"y":0.55,"duration":3},{"duration":7}]},{"name":"星2","rotateFrame":[{"duration":8},{"duration":3,"tweenEasing":0},{"duration":7,"rotate":-264.8158}],"translateFrame":[{"duration":8},{"tweenEasing":0,"x":-13.2109,"y":35.1361,"duration":3},{"x":29.3149,"y":10.1086,"duration":7}],"scaleFrame":[]},{"name":"星3","rotateFrame":[{"duration":8},{"duration":3,"tweenEasing":0},{"duration":7,"rotate":-99.3708}],"translateFrame":[{"duration":8},{"tweenEasing":0,"x":-56.2596,"y":-29.4195,"duration":3},{"x":-14.0823,"y":-7.1109,"duration":7}],"scaleFrame":[]},{"name":"星1","rotateFrame":[{"duration":8},{"duration":3,"tweenEasing":0},{"duration":7,"rotate":-84.1009}],"translateFrame":[{"duration":8},{"tweenEasing":0,"x":19.1715,"y":-13.9429,"duration":3},{"x":-11.224,"y":12.5835,"duration":7}],"scaleFrame":[]}],"playTimes":0,"ffd":[],"ik":[],"slot":[{"name":"1","displayFrame":[{"duration":1},{"duration":1,"value":1},{"duration":1,"value":2},{"duration":1,"value":3},{"duration":1,"value":4},{"duration":13,"value":5}],"colorFrame":[{"duration":5},{"duration":1,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":8,"color":{"aM":0}}]},{"name":"盾","displayFrame":[{"duration":4,"value":-1},{"duration":14}],"colorFrame":[{"duration":4},{"duration":4,"color":{"aM":13},"tweenEasing":0},{"duration":8,"tweenEasing":0},{"duration":2,"color":{"aM":0}}]},{"name":"十字架","displayFrame":[{"duration":7,"value":-1},{"duration":3},{"duration":8}],"colorFrame":[{"duration":7},{"duration":3,"color":{"aM":35},"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":2,"color":{"aM":0}}]},{"name":"星4","displayFrame":[{"duration":8,"value":-1},{"duration":10}],"colorFrame":[{"duration":8},{"duration":3,"color":{"aM":28},"tweenEasing":0},{"duration":7,"tweenEasing":0},{"duration":0,"color":{"aM":0}}]},{"name":"星3","displayFrame":[{"duration":8,"value":-1},{"duration":10}],"colorFrame":[{"duration":8},{"duration":3,"color":{"aM":26},"tweenEasing":0},{"duration":7,"tweenEasing":0},{"duration":0,"color":{"aM":0}}]},{"name":"星2","displayFrame":[{"duration":8,"value":-1},{"duration":10}],"colorFrame":[{"duration":8},{"duration":3,"color":{"aM":18},"tweenEasing":0},{"duration":7,"tweenEasing":0},{"duration":0,"color":{"aM":0}}]},{"name":"星1","displayFrame":[{"duration":8,"value":-1},{"duration":10}],"colorFrame":[{"duration":8},{"duration":3,"color":{"aM":28},"tweenEasing":0},{"duration":7,"tweenEasing":0},{"duration":0,"color":{"aM":0}}]}],"duration":18}]}],"frameRate":24,"isGlobal":0}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "cd299fb5-2f69-46ae-900d-be7d1c6b10c5",
"subMetas": {}
}
\ No newline at end of file
{"name":"right","imagePath":"right_tex.png","SubTexture":[{"name":"1/5","x":405,"height":291,"y":1,"width":399},{"name":"1/2","x":387,"height":282,"y":583,"width":364},{"name":"1/1","x":1,"height":233,"y":601,"width":301},{"name":"1/3","x":1,"height":302,"y":1,"width":402},{"name":"1/6","x":1,"height":294,"y":305,"width":384},{"name":"1/4","x":405,"height":287,"y":294,"width":396},{"name":"1/盾","x":1,"height":126,"y":836,"width":126},{"name":"1/十字架","x":304,"height":79,"y":601,"width":79},{"name":"1/星4","x":304,"height":48,"y":682,"width":48},{"name":"1/星3","x":304,"height":39,"y":778,"width":40},{"name":"1/星2","x":304,"height":44,"y":732,"width":45},{"name":"1/星1","x":346,"height":34,"y":778,"width":36}],"height":1024,"width":1024}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "335175a4-cffd-42bf-8f84-f3ded52fa911",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "107c78e3-a7ea-454e-a140-089c38d411bf",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 1024,
"platformSettings": {},
"subMetas": {
"right_tex": {
"ver": "1.0.4",
"uuid": "c795351d-a144-4ee8-9eb9-df5e02481b3d",
"rawTextureUuid": "107c78e3-a7ea-454e-a140-089c38d411bf",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -109.5,
"offsetY": 30.5,
"trimX": 1,
"trimY": 1,
"width": 803,
"height": 961,
"rawWidth": 1024,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
...@@ -54,13 +54,14 @@ export class MyCocosSceneComponent extends cc.Component { ...@@ -54,13 +54,14 @@ export class MyCocosSceneComponent extends cc.Component {
start() { start() {
if (window && (<any>window).courseware && (<any>window).courseware.getData) { if (window && (<any>window).courseware && (<any>window).courseware.getData) {
(<any>window).courseware.getData((data) => { (<any>window).courseware.getData((data) => {
this.log('data:' + data); this.log('data server:' + data);
this.data = data || this.getDefaultData(); this.data = data || this.getDefaultData();
this.data = JSON.parse(JSON.stringify(this.data)); this.data = JSON.parse(JSON.stringify(this.data));
this.preloadItem(); this.preloadItem();
}) })
} else { } else {
this.data = this.getDefaultData(); this.data = this.getDefaultData();
this.data = JSON.parse(JSON.stringify(this.data));
this.preloadItem(); this.preloadItem();
} }
} }
...@@ -170,4 +171,126 @@ export class MyCocosSceneComponent extends cc.Component { ...@@ -170,4 +171,126 @@ export class MyCocosSceneComponent extends cc.Component {
cb && cb(); cb && cb();
} }
} }
getRomoteDragon(parent:cc.Node){
// let bone = {
// bone_ske: "https://wxmini-resource.hortorgames.com/images/20180919/20180919164706/box_anim_ske.json",
// bone_tex :"https://wxmini-resource.hortorgames.com/images/20180919/20180919164709/box_anim_tex.json",
// bone_tex_img:"https://wxmini-resource.hortorgames.com/images/20180919/20180919164704/box_anim_tex.png"
// };
let bone = this.data.questions[0].dragonBoneData;
// cc.loader.load([bone.skeJsonData.url, bone.texJsonData.url, bone.texPngData.url], function(err, results) {
// let node = new cc.Node();
// let dragonBonesNode = node.addComponent(dragonBones.ArmatureDisplay);
// let _dragonAsset = new dragonBones.DragonBonesAsset();
// _dragonAsset.dragonBonesJson = JSON.stringify(results.getContent(bone.skeJsonData.url));
// let _dragonAtlasAsset = new dragonBones.DragonBonesAtlasAsset();
// _dragonAtlasAsset.atlasJson = JSON.stringify(results.getContent(bone.texJsonData.url));
// _dragonAtlasAsset.texture = results.getContent(bone.texPngData.url);
// dragonBonesNode.dragonAsset = _dragonAsset;
// dragonBonesNode.dragonAtlasAsset = _dragonAtlasAsset;
// dragonBonesNode.buildArmature('right',node);
// dragonBonesNode.playAnimation('right',0);
// parent.addChild(node);
// }.bind(this));
cc.assetManager.loadRemote(bone.texPngData.url, (error, texture) => {
cc.assetManager.loadRemote(bone.texJsonData.url, (error, atlasJson) => {
cc.assetManager.loadRemote(bone.skeJsonData.url, (error, dragonBonesJson) => {
let node = new cc.Node();
let dragonBonesNode = parent.addComponent(dragonBones.ArmatureDisplay);
var atlas = new dragonBones.DragonBonesAtlasAsset();
atlas.atlasJson = JSON.stringify(atlasJson);
atlas.texture = texture;
var asset = new dragonBones.DragonBonesAsset();
asset.dragonBonesJson = JSON.stringify(dragonBonesJson);
dragonBonesNode.dragonAtlasAsset = atlas;
dragonBonesNode.dragonAsset = asset;
// console.log(atlas);
// console.log(asset);
// console.log(dragonBonesNode);
// dragonBonesNode.armatureName = 'newAnimation';
// let armatureNames = dragonBonesJson.armature.map(data => data.name);
// if (armatureNames.length > 0) {
// // dragonBonesNode.armatureName = ;
// // dragonBonesNode.playAnimation('newAnimation',0);
// dragonBonesNode.buildArmature(armatureNames[0],node);
// dragonBonesNode.playAnimation('newAnimation',0);
// }
dragonBonesNode.buildArmature("armature",node);
dragonBonesNode.playAnimation('newAnimation',0);
parent.addChild(node);
// // var atlas = new dragonBones.DragonBonesAtlasAsset();
// var atlas = dragonBonesNode.dragonAtlasAsset;
// atlas.atlasJson = JSON.stringify(atlasJson);
// atlas.texture = texture;
// // var asset = new dragonBones.DragonBonesAsset();
// var asset = dragonBonesNode.dragonAsset;
// asset.dragonBonesJson = JSON.stringify(dragonBonesJson);
// // dragonBonesNode.dragonAtlasAsset = atlas;
// // dragonBonesNode.dragonAsset = asset;
// // console.log(atlas);
// // console.log(asset);
// // console.log(dragonBonesNode);
// // dragonBonesNode.armatureName = 'newAnimation';
// dragonBonesNode.buildArmature('newAnimation',parent);
// dragonBonesNode.playAnimation('newAnimation',0);
// // parent.addChild(node);
});
});
});
}
getLoaclDragon(parent:cc.Node,name:string){
let bone = {
bone_ske: "assets/NEXT_test001/dragonBones/" + name + "/" + name + "_ske.json",
bone_tex :"assets/NEXT_test001/dragonBones/" + name + "/" + name + "_tex.json",
bone_tex_img:"assets/NEXT_test001/dragonBones/" + name + "/" + name + "_tex.png"
};
// let bone = this.data.questions[0].dragonBoneData;
// self.crossNode.removeAllChildren();
cc.resources.load([bone.bone_ske, bone.bone_tex, bone.bone_tex_img], function(err, results) {
let node = new cc.Node();
let dragonBonesNode = node.addComponent(dragonBones.ArmatureDisplay);
let _dragonAsset = new dragonBones.DragonBonesAsset();
_dragonAsset.dragonBonesJson = JSON.stringify(results.getContent(bone.bone_ske));
let _dragonAtlasAsset = new dragonBones.DragonBonesAtlasAsset();
_dragonAtlasAsset.atlasJson = JSON.stringify(results.getContent(bone.bone_tex));
_dragonAtlasAsset.texture = results.getContent(bone.bone_tex_img);
dragonBonesNode.dragonAsset = _dragonAsset;
dragonBonesNode.dragonAtlasAsset = _dragonAtlasAsset;
dragonBonesNode.buildArmature(name,node);
dragonBonesNode.playAnimation(name,0);
parent.addChild(node);
}.bind(this));
}
} }
export const defaultData = { // export const defaultData = {
"pic_url": "http://staging-teach.cdn.ireadabc.com/ed94332a503c31e0908bd4c6923a2665.png", // "pic_url": "http://staging-teach.cdn.ireadabc.com/ed94332a503c31e0908bd4c6923a2665.png",
"pic_url_2": "http://staging-teach.cdn.ireadabc.com/5fb60317ade0195d35ad8034d5370a7f.png", // "pic_url_2": "http://staging-teach.cdn.ireadabc.com/5fb60317ade0195d35ad8034d5370a7f.png",
"text": "This is a test label.", // "text": "This is a test label.",
"audio_url": "http://staging-teach.cdn.ireadabc.com/f47f1d7b5c160fe1c59500d180346240.mp3", // "audio_url": "http://staging-teach.cdn.ireadabc.com/f47f1d7b5c160fe1c59500d180346240.mp3",
// "title_text" : "Find the missing piece of the cake",
// "timu_arr": ["the","that","where","is","okok"],
// "timu_right_arr":["h","a","e","i","k"],
// "timu_wrong_arr":["m","m","m","m","m"],
"title_text" : "Find the missing piece of the cake", // }
"timu_arr": ["the","that","where","is","okok"],
"timu_right_arr":["h","a","e","i","k"], //https://www.bejson.com/
"timu_wrong_arr":["m","m","m","m","m"], export const defaultData = {
"questions": [{//完
"text": "dog",//完
"audio": "http://staging-teach.cdn.ireadabc.com/dfb27b510e121a1045a3b7613a530e43.mp3",//完
"dragonBoneData": {//完
"skeJsonData": {
"url": "http://staging-teach.cdn.ireadabc.com/19d1a7f807cb34e8706d2d3b0324278b.json",
"name": "right_ske.json"
},
"texJsonData": {
"url": "http://staging-teach.cdn.ireadabc.com/8593091ce08cf9fd7c2d86f332b6cd6c.json",
"name": "right_tex.json"
},
"texPngData": {
"url": "http://staging-teach.cdn.ireadabc.com/d623e6d625ef102dbc5420b2f37fa52f.png",
"name": "right_tex.png"
}
},
"waitTime": 12,
"choosewaitTime": 5,//完
"testWaitTime": 3,
"rightLetter": "d",//完
"wrongLetter": "b"//完
}, {
"text": "apple",
"audio": "http://staging-teach.cdn.ireadabc.com/7c18e0838dcf0707f885842ed09e1579.mp3",
"dragonBoneData": {
"skeJsonData": {
"url": "http://staging-teach.cdn.ireadabc.com/703a41d6c7afe6fe653014d585ef0d58.json",
"name": "d1_ske.json"
},
"texJsonData": {
"url": "http://staging-teach.cdn.ireadabc.com/02bbebdc4a9f4a35d9ec285f61fca19c.json",
"name": "d1_tex.json"
},
"texPngData": {
"url": "http://staging-teach.cdn.ireadabc.com/ba2041fb4f69c37be52b76f5fb274c09.png",
"name": "d1_tex.png"
}
},
"choosewaitTime": 5,
"testWaitTime": 3,
"rightLetter": "a",
"wrongLetter": "e"
}],
"title": "asdf asdf fds saa",//完
"guideAudio": "http://staging-teach.cdn.ireadabc.com/40468ef6d120d03f83541b9344c6f9ea.mp3"//完
} }
\ No newline at end of file
export async function asyncLoadDragonBoneAnime(node, skeJsonDataUrl, texJsonDataUrl, texPngDataUrl,times:number = 0) {
if (!texPngDataUrl || !texJsonDataUrl || !texPngDataUrl
|| texPngDataUrl == '' || texJsonDataUrl == '' || texPngDataUrl == '') {
return;
}
return new Promise((resolve, reject) => {
if (node.animaNode) {
node.animaNode.removeFromParent();
}
const animaNode = new cc.Node();
animaNode.name = 'animaNode';
animaNode.parent = node;
animaNode.active = true;
node.animaNode = animaNode;
const dragonDisplay = animaNode.addComponent(dragonBones.ArmatureDisplay);
const loadTexture = new Promise((resolve, reject) => {
cc.assetManager.loadRemote(texPngDataUrl, (error, texture) => {
if (error) {
reject(error);
}
resolve(texture);
});
});
const loadTexJsonData = new Promise((resolve, reject) => {
cc.assetManager.loadAny({ url: texJsonDataUrl }, (error, atlasJson) => {
if (error) {
reject(error);
}
resolve(atlasJson);
});
});
const loadSkeJsonData = new Promise((resolve, reject) => {
cc.assetManager.loadAny({ url: skeJsonDataUrl }, (error, dragonBonesJson) => {
if (error) {
reject(error);
}
resolve(dragonBonesJson);
});
});
Promise.all([loadTexture, loadTexJsonData, loadSkeJsonData]).then(([texture, atlasJson, dragonBonesJson]) => {
const atlas = new dragonBones.DragonBonesAtlasAsset();
atlas.atlasJson = JSON.stringify(atlasJson);
atlas.texture = texture;
const asset = new dragonBones.DragonBonesAsset();
asset.dragonBonesJson = JSON.stringify(dragonBonesJson);
dragonDisplay.dragonAtlasAsset = atlas;
dragonDisplay.dragonAsset = asset;
let armatureNames = dragonBonesJson.armature.map(data => data.name);
if (armatureNames.length > 0) {
dragonDisplay.armatureName = armatureNames[0];
dragonDisplay.playAnimation('newAnimation',times);
}
resolve(animaNode);
});
});
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "fffc4385-40c7-4261-b7a3-b06cfd1177be",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
// Learn life-cycle callbacks: // Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
import SceneComponent, { SOUND_NAME } from "../scene/NEXT_test001";
const {ccclass, property} = cc._decorator; const {ccclass, property} = cc._decorator;
@ccclass @ccclass
...@@ -35,6 +37,8 @@ export default class timuPrefab extends cc.Component { ...@@ -35,6 +37,8 @@ export default class timuPrefab extends cc.Component {
@property(cc.Node) @property(cc.Node)
private cake_right_2:cc.Node; private cake_right_2:cc.Node;
private sceneComponent:SceneComponent;
start () { start () {
} }
...@@ -48,7 +52,8 @@ export default class timuPrefab extends cc.Component { ...@@ -48,7 +52,8 @@ export default class timuPrefab extends cc.Component {
} }
} }
setString(str:string,right:string,wrong:string){ setString(str:string,right:string,wrong:string,sceneComponent:SceneComponent){
this.sceneComponent = sceneComponent;
this.str = str; this.str = str;
this.right = right; this.right = right;
this.wrong = wrong; this.wrong = wrong;
...@@ -80,7 +85,8 @@ export default class timuPrefab extends cc.Component { ...@@ -80,7 +85,8 @@ export default class timuPrefab extends cc.Component {
this.cake_right_1.getChildByName("lab_text").getComponent(cc.Label).string = this.right; this.cake_right_1.getChildByName("lab_text").getComponent(cc.Label).string = this.right;
this.cake_right_2.getChildByName("lab_text").getComponent(cc.Label).string = this.wrong; this.cake_right_2.getChildByName("lab_text").getComponent(cc.Label).string = this.wrong;
if(Math.random() * 100 < 50){ let randomValue = Math.random() * 100;
if(randomValue < 50){
this.cake_right_1.y = 120; this.cake_right_1.y = 120;
this.cake_right_2.y = -81; this.cake_right_2.y = -81;
} }
...@@ -89,30 +95,81 @@ export default class timuPrefab extends cc.Component { ...@@ -89,30 +95,81 @@ export default class timuPrefab extends cc.Component {
this.cake_right_2.y = 120; this.cake_right_2.y = 120;
} }
let lf = this;
this.cake_right_1.on('click', () => { this.cake_right_1.on('click', () => {
this.log("right"); lf.log("right");
//right
lf.cake_right_1.getChildByName("cake3_k").active = true;
let pos = lf.cakeNodes[lf.index].position;
lf.sceneComponent.judge(true);
cc.tween(lf.cake_right_1)
.to(1, { x: pos.x ,y:pos.y}, { easing: 'cubicInOut' })
.call(() => {
for(var i = 0;i < lf.cakeNodes.length;i++){
if(str[i] != null && str[i] != undefined){
lf.cakeNodes[i].active = true;
lf.cakeNodes[i].getChildByName("lab_text").getComponent(cc.Label).string = str[i];
}
else{
lf.cakeNodes[i].active = false;
}
}
lf.cake_right_1.active = false;
lf.cakeNodes[str.length - 1].getChildByName("spinecake").active = true;
lf.sceneComponent.playLocalAudio(SOUND_NAME.RIGHT);
lf.sceneComponent.hideVoice();
lf.sceneComponent.hideBlueLaZhu();
lf.hideCakeRight2();
lf.scheduleOnce(function(){
lf.sceneComponent.pinceBgLuoXia(function(){
lf.lab_bottom.node.active = false;
});
},0.5);
})
.start();
}) })
this.cake_right_2.on('click', () => { this.cake_right_2.on('click', () => {
this.log("wrong"); this.log("wrong");
this.sceneComponent.judge(false);
}) })
this.cake_right_1.getChildByName("cake3_k").active = false;
this.cake_right_2.getChildByName("cake3_k").active = false;
} }
moveLeft(){ hideCakeRight2(){
cc.tween(this.cake_right_2)
.to(0.5, { x: this.cake_right_2.x + 400 }, { easing: 'cubicInOut' })
.call(() => {
})
.start();
}
moveLeft(fun:Function = null){
this.node.x = cc.winSize.width/2 + 310/2; this.node.x = cc.winSize.width/2 + 310/2;
cc.tween(this.node) cc.tween(this.node)
.to(1, { x: 0 }, { easing: 'cubicInOut' }) .to(1, { x: 0 }, { easing: 'cubicInOut' })
.call(() => { .call(() => {
fun && fun();
}) })
.start(); .start();
} }
moveRight(){ moveRight(fun:Function = null){
cc.tween(this.node) cc.tween(this.node)
.to(1, { x: cc.winSize.width/2 + 310/2 }, { easing: 'cubicInOut' }) .to(1, { x: cc.winSize.width/2 + 310/2 }, { easing: 'cubicInOut' })
.call(() => { .call(() => {
fun && fun();
this.node.destroy(); this.node.destroy();
}) })
.start(); .start();
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment