Commit e969b063 authored by test's avatar test

test

parent 3b680f1f
{
"ver": "1.1.2",
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "cb9fa4ea-66ca-45af-ad31-e445c7b0ef32",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "090a7a0e-a88e-4cfc-bef0-c34b2b230b18",
"downloadMode": 0,
"duration": 2.324917,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "f0680ae0-c079-45ef-abd7-9e63d90b982b",
"downloadMode": 0,
"duration": 0.130612,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "e8f9627a-f0ef-4f6b-9b2d-58518b0e701e",
"downloadMode": 0,
"duration": 3.761633,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "11b780d3-4491-4f17-ab3d-a58660c33d54",
"downloadMode": 0,
"duration": 0.2642,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "c27333fd-f475-49cb-a93e-e2922b26126d",
"downloadMode": 0,
"duration": 3.3701,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "b0d58aca-f46b-4a27-8029-d94d58b4b885",
"downloadMode": 0,
"duration": 1.8137,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "92184e20-fd70-49a8-bc4b-32324e9dae6f",
"downloadMode": 0,
"duration": 1.022583,
"subMetas": {}
}
\ No newline at end of file
{
"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": "2.0.1",
"uuid": "ba574cdd-e311-46c4-8633-011d36e0ea25",
"downloadMode": 0,
"duration": 0.1859,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "0853721c-3f55-4eb2-873d-e3081cfadd4b",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "aa663ebc-aacf-4569-bd9c-53d8e0bed13d",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "bdf7d0f6-dbb8-4154-90f6-7ecb6e10690a",
"subMetas": {}
}
\ No newline at end of file
{"width":512,"imagePath":"WL01-flower(1)_tex.png","height":512,"name":"WL01-flower(1)","SubTexture":[{"width":210,"y":1,"height":198,"name":"WL01-flower(1)/矢量智能对象_17","x":1},{"width":79,"y":348,"height":74,"name":"WL01-flower(1)/矢量智能对象_16","x":1},{"width":47,"y":406,"height":44,"name":"WL01-flower(1)/矢量智能对象_15","x":82},{"width":157,"y":150,"height":147,"name":"WL01-flower(1)/矢量智能对象_14","x":213},{"width":58,"y":342,"height":54,"name":"WL01-flower(1)/矢量智能对象_13","x":329},{"width":120,"y":124,"height":113,"name":"WL01-flower(1)/矢量智能对象_12","x":372},{"width":157,"y":1,"height":147,"name":"WL01-flower(1)/矢量智能对象_11","x":213},{"width":89,"y":299,"height":84,"name":"WL01-flower(1)/矢量智能对象_10","x":157},{"width":154,"y":201,"height":145,"name":"WL01-flower(1)/矢量智能对象_9","x":1},{"width":128,"y":1,"height":121,"name":"WL01-flower(1)/矢量智能对象_8","x":372},{"width":60,"y":348,"height":56,"name":"WL01-flower(1)/矢量智能对象_7","x":82},{"width":47,"y":247,"height":44,"name":"WL01-flower(1)/矢量智能对象_6","x":157},{"width":79,"y":299,"height":74,"name":"WL01-flower(1)/矢量智能对象_5","x":248},{"width":47,"y":201,"height":44,"name":"WL01-flower(1)/矢量智能对象_4","x":157},{"width":45,"y":342,"height":42,"name":"WL01-flower(1)/矢量智能对象_3","x":389},{"width":45,"y":424,"height":42,"name":"WL01-flower(1)/矢量智能对象_2","x":1},{"width":58,"y":375,"height":54,"name":"WL01-flower(1)/矢量智能对象_1","x":248},{"width":107,"y":239,"height":101,"name":"WL01-flower(1)/矢量智能对象_0","x":372},{"width":58,"y":385,"height":54,"name":"WL01-flower(1)/矢量智能对象","x":144}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "71adc0df-0e7a-467b-abaf-a26079ab136e",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e87ecab4-ea06-432f-9bc8-d0757065bc3c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 512,
"platformSettings": {},
"subMetas": {
"WL01-flower(1)_tex": {
"ver": "1.0.4",
"uuid": "96624ba0-5016-4d3c-9ae7-a7ebf86eca26",
"rawTextureUuid": "e87ecab4-ea06-432f-9bc8-d0757065bc3c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -5.5,
"offsetY": 22.5,
"trimX": 1,
"trimY": 1,
"width": 499,
"height": 465,
"rawWidth": 512,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"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": "62b59861-0baf-4ecb-a6b5-1ea52f7d8437",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{"frameRate":24,"name":"excellent","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-365,"y":-232,"width":713,"height":487},"bone":[{"name":"root"},{"name":"橘色花3","parent":"root","transform":{"x":-347.1,"y":-1.3,"skX":45,"skY":45}},{"length":2,"name":"黄色花_拷贝","parent":"root","transform":{"x":-209.05,"y":-18.9,"skX":-14.0362,"skY":-14.0362}},{"length":1,"name":"黄色花2","parent":"root","transform":{"x":-221.4,"y":-179.05,"skX":-26.5651,"skY":-26.5651}},{"name":"蓝花","parent":"root","transform":{"x":-249.4,"y":98.95,"skX":90,"skY":90}},{"name":"橘色花2","parent":"root","transform":{"x":-173.2,"y":240.9,"skX":45,"skY":45}},{"length":1,"name":"绿色花","parent":"root","transform":{"x":61.85,"y":194.05,"skX":-26.5651,"skY":-26.5651}},{"length":1,"name":"绿色花_拷贝","parent":"root","transform":{"x":-76.2,"y":-163.45}},{"name":"橘色花","parent":"root","transform":{"x":81.35,"y":-209.65,"skX":90,"skY":90}},{"name":"黄色花","parent":"root","transform":{"x":237,"y":-101.6,"skX":135,"skY":135}},{"name":"蓝色花2","parent":"root","transform":{"x":257.2,"y":83.35,"skX":180,"skY":180}},{"name":"橘色花2_拷贝","parent":"root","transform":{"x":335.3,"y":7.8,"skX":90,"skY":90}},{"length":1,"name":"图层_0","parent":"root","transform":{"x":-0.65,"y":-10.4,"skX":26.5651,"skY":26.5651}}],"slot":[{"name":"图层_0","parent":"图层_0"},{"name":"蓝花","parent":"蓝花"},{"name":"橘色花","parent":"橘色花"},{"name":"黄色花","parent":"黄色花"},{"name":"黄色花_拷贝","parent":"黄色花_拷贝"},{"name":"蓝色花2","parent":"蓝色花2"},{"name":"绿色花","parent":"绿色花"},{"name":"绿色花_拷贝","parent":"绿色花_拷贝"},{"name":"橘色花2","parent":"橘色花2"},{"name":"橘色花2_拷贝","parent":"橘色花2_拷贝"},{"name":"黄色花2","parent":"黄色花2"},{"name":"橘色花3","parent":"橘色花3"}],"skin":[{"slot":[{"name":"图层_0","display":[{"name":"excellent/图层_0","transform":{"x":5.23,"y":9.01,"skX":-26.57,"skY":-26.57}}]},{"name":"蓝花","display":[{"name":"excellent/蓝花","transform":{"x":-0.95,"y":-3.4,"skX":-90,"skY":-90}}]},{"name":"橘色花","display":[{"name":"excellent/橘色花","transform":{"x":5.65,"y":0.35,"skX":-90,"skY":-90}}]},{"name":"黄色花","display":[{"name":"excellent/黄色花","transform":{"x":-2.76,"y":-3.61,"skX":-135,"skY":-135}}]},{"name":"黄色花_拷贝","display":[{"name":"excellent/黄色花_拷贝","transform":{"x":0.8,"y":-3,"skX":14.04,"skY":14.04}}]},{"name":"蓝色花2","display":[{"name":"excellent/蓝色花2","transform":{"x":3.7,"y":-1.65,"skX":180,"skY":180}}]},{"name":"绿色花","display":[{"name":"excellent/绿色花","transform":{"x":3.06,"y":-0.2,"skX":26.57,"skY":26.57}}]},{"name":"绿色花_拷贝","display":[{"name":"excellent/绿色花_拷贝","transform":{"x":0.7,"y":0.95}}]},{"name":"橘色花2","display":[{"name":"excellent/橘色花2","transform":{"x":0.21,"y":1.34,"skX":-45,"skY":-45}}]},{"name":"橘色花2_拷贝","display":[{"name":"excellent/橘色花2_拷贝","transform":{"x":0.2,"y":1.3,"skX":-90,"skY":-90}}]},{"name":"黄色花2","display":[{"name":"excellent/黄色花2","transform":{"x":3.02,"y":3.8,"skX":26.57,"skY":26.57}}]},{"name":"橘色花3","display":[{"name":"excellent/橘色花3","transform":{"x":4.17,"y":-2.33,"skX":-45,"skY":-45}}]}]}],"animation":[{"duration":30,"playTimes":0,"name":"newAnimation","bone":[{"name":"橘色花3","translateFrame":[{"duration":6,"tweenEasing":0,"x":308.63,"y":-9.83},{"duration":13,"tweenEasing":0,"x":308.63,"y":-9.83},{"duration":11}],"scaleFrame":[{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":13,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":5,"tweenEasing":0},{"duration":6,"x":0.01,"y":0.01}]},{"name":"黄色花_拷贝","translateFrame":[{"duration":12,"tweenEasing":0,"x":132},{"duration":4,"tweenEasing":0,"x":132},{"duration":14}],"scaleFrame":[{"duration":16,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":4,"x":0.01,"y":0.01}]},{"name":"黄色花2","translateFrame":[{"duration":6,"tweenEasing":0,"x":207.06,"y":174.44},{"duration":5,"tweenEasing":0,"x":207.06,"y":174.44},{"duration":19}],"scaleFrame":[{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":5,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":11,"tweenEasing":0},{"duration":8,"x":0.01,"y":0.01}]},{"name":"蓝花","translateFrame":[{"duration":6,"tweenEasing":0,"x":212.27,"y":-89.14},{"duration":10,"tweenEasing":0,"x":212.27,"y":-89.14},{"duration":14}],"scaleFrame":[{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":10,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":8,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"x":0.01,"y":0.01}]},{"name":"橘色花2","translateFrame":[{"duration":6,"tweenEasing":0,"x":157.37,"y":-217.17},{"duration":10,"tweenEasing":0,"x":157.37,"y":-217.17},{"duration":14}],"scaleFrame":[{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":10,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":5,"tweenEasing":0},{"duration":9,"x":0.01,"y":0.01}]},{"name":"绿色花","translateFrame":[{"duration":6,"tweenEasing":0,"x":-69.08,"y":-178.88},{"duration":11,"tweenEasing":0,"x":-69.08,"y":-178.88},{"duration":13}],"scaleFrame":[{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":11,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":7,"tweenEasing":0},{"duration":6,"x":0.01,"y":0.01}]},{"name":"绿色花_拷贝","translateFrame":[{"duration":6,"tweenEasing":0,"x":48.29,"y":169.54},{"duration":10,"tweenEasing":0,"x":48.29,"y":169.54},{"duration":14}],"scaleFrame":[{"duration":16,"tweenEasing":0},{"duration":8,"tweenEasing":0},{"duration":6,"x":0.01,"y":0.01}]},{"name":"橘色花","translateFrame":[{"duration":6,"tweenEasing":0,"x":-89.41,"y":228.88},{"duration":10,"tweenEasing":0,"x":-89.41,"y":228.88},{"duration":14}],"scaleFrame":[{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":10,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":8,"tweenEasing":0},{"duration":6,"x":0.01,"y":0.01}]},{"name":"黄色花","translateFrame":[{"duration":6,"tweenEasing":0,"x":-227.76,"y":111.71},{"duration":14,"tweenEasing":0,"x":-227.76,"y":111.71},{"duration":10}],"scaleFrame":[{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":14,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":8,"tweenEasing":0},{"duration":2,"x":0.01,"y":0.01}]},{"name":"蓝色花2","translateFrame":[{"duration":6,"tweenEasing":0,"x":-220.99,"y":-64.87},{"duration":16,"tweenEasing":0,"x":-220.99,"y":-64.87},{"duration":8}],"scaleFrame":[{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":16,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":8,"tweenEasing":0},{"duration":0,"x":0.01,"y":0.01}]},{"name":"橘色花2_拷贝","translateFrame":[{"duration":3,"tweenEasing":0,"x":-315.53,"y":15.92},{"duration":10,"tweenEasing":0,"x":-315.53,"y":15.92},{"duration":17}],"scaleFrame":[{"duration":3,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":10,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":14,"tweenEasing":0},{"duration":3,"x":0.01,"y":0.01}]},{"name":"图层_0","scaleFrame":[{"duration":10,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":4,"tweenEasing":0,"x":1.2,"y":1.2},{"duration":16}]}],"slot":[{"name":"图层_0","colorFrame":[{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":26}]},{"name":"蓝花","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":2,"tweenEasing":0,"value":{"aM":0}},{"duration":22}]},{"name":"橘色花","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":20}]},{"name":"黄色花","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":3,"tweenEasing":0,"value":{"aM":0}},{"duration":21}]},{"name":"黄色花_拷贝","colorFrame":[{"duration":12,"tweenEasing":0,"value":{"aM":0}},{"tweenEasing":0,"value":{"aM":0}},{"duration":17}]},{"name":"蓝色花2","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":5,"tweenEasing":0,"value":{"aM":0}},{"duration":19}]},{"name":"绿色花","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":20}]},{"name":"绿色花_拷贝","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":20}]},{"name":"橘色花2","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"tweenEasing":0,"value":{"aM":0}},{"duration":23}]},{"name":"橘色花2_拷贝","colorFrame":[{"duration":3,"tweenEasing":0,"value":{"aM":0}},{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":23}]},{"name":"黄色花2","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":3,"tweenEasing":0,"value":{"aM":0}},{"duration":21}]},{"name":"橘色花3","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":3,"tweenEasing":0,"value":{"aM":0}},{"duration":21}]}],"zOrder":{"frame":[{"duration":6},{"duration":24,"zOrder":[0,11]}]}}],"defaultActions":[{"gotoAndPlay":"newAnimation"}]},{"type":"MovieClip","frameRate":24,"name":"MovieClip","bone":[{"name":"root"}],"defaultActions":[{}]},{"type":"Sheet","frameRate":24,"name":"Sprite","bone":[{"name":"root"}],"defaultActions":[{}]}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "8a026f05-505c-4445-8449-ca6425d41a99",
"subMetas": {}
}
\ No newline at end of file
{"name":"excellent","SubTexture":[{"name":"excellent/图层_0","x":1,"height":270,"y":1,"width":376},{"name":"excellent/蓝花","x":426,"height":26,"y":131,"width":28},{"name":"excellent/橘色花","x":379,"height":56,"y":1,"width":60},{"name":"excellent/黄色花","x":441,"height":44,"y":57,"width":47},{"name":"excellent/黄色花_拷贝","x":426,"height":26,"y":103,"width":28},{"name":"excellent/蓝色花2","x":379,"height":42,"y":103,"width":45},{"name":"excellent/绿色花","x":456,"height":25,"y":131,"width":27},{"name":"excellent/绿色花_拷贝","x":456,"height":25,"y":158,"width":27},{"name":"excellent/橘色花2","x":456,"height":26,"y":103,"width":28},{"name":"excellent/橘色花2_拷贝","x":379,"height":26,"y":147,"width":28},{"name":"excellent/黄色花2","x":441,"height":54,"y":1,"width":58},{"name":"excellent/橘色花3","x":379,"height":42,"y":59,"width":45}],"height":512,"imagePath":"excellent_tex.png","width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "9123505c-9a06-44bc-9a89-70374b1691ad",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "7436ef34-4f73-490d-b999-5b4d209ec918",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 512,
"platformSettings": {},
"subMetas": {
"excellent_tex": {
"ver": "1.0.4",
"uuid": "4c858f28-ea29-4251-bafb-e51a0c0e905b",
"rawTextureUuid": "7436ef34-4f73-490d-b999-5b4d209ec918",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -6,
"offsetY": 120,
"trimX": 1,
"trimY": 1,
"width": 498,
"height": 270,
"rawWidth": 512,
"rawHeight": 512,
"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
{
"ver": "1.1.2",
"uuid": "20185448-a1ca-4de2-8b37-7bf6cdfccbae",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "c551970e-b095-45f3-9f1d-25cde8b8deb1",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "d81ea52c-6b20-4a64-9d55-ed33de516387",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "98c45dc8-c06c-4823-a47e-b284276aa115",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "e8bd16b0-3804-45a9-a8ca-f52c02224f55",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.2.9",
"uuid": "b3bcbdf8-105f-4f25-8dd5-2ba6e558ac1c",
"asyncLoadAssets": false,
"autoReleaseAssets": true,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.8",
"uuid": "e344fefe-0131-4c90-8577-84eb0229d4c4",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "b0c008bc-cf92-463b-8360-0984e13c2e4d",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
import { defaultData } from "../script/defaultData";
export class MyCocosSceneComponent extends cc.Component {
// 生命周期 onLoad
onLoad() {
this.initSceneData();
this.initSize();
}
_imageResList = null;
_audioResList = null;
_animaResList = null;
initSceneData() {
this._imageResList = [];
this._audioResList = [];
this._animaResList = [];
}
_designSize = null; // 设计分辨率
_frameSize = null; // 屏幕分辨率
_mapScaleMin = null; // 场景中常用缩放(取大值)
_mapScaleMax = null; // 场景中常用缩放(取小值)
_cocosScale = null; // cocos 自缩放 (较少用到)
initSize() {
// 注意cc.winSize只有在适配后(修改fitHeight/fitWidth后)才能获取到正确的值,因此使用cc.getFrameSize()来获取初始的屏幕大小
let screen_size = cc.view.getFrameSize().width / cc.view.getFrameSize().height
let design_size = cc.Canvas.instance.designResolution.width / cc.Canvas.instance.designResolution.height
let f = screen_size >= design_size
cc.Canvas.instance.fitHeight = f
cc.Canvas.instance.fitWidth = !f
const frameSize = cc.view.getFrameSize();
this._frameSize = frameSize;
this._designSize = cc.view.getDesignResolutionSize();
let sx = cc.winSize.width / frameSize.width;
let sy = cc.winSize.height / frameSize.height;
this._cocosScale = Math.min(sx, sy);
sx = frameSize.width / this._designSize.width;
sy = frameSize.height / this._designSize.height;
this._mapScaleMin = Math.min(sx, sy) * this._cocosScale;//其他
this._mapScaleMax = Math.max(sx, sy) * this._cocosScale;//背景
cc.director['_scene'].width = frameSize.width;
cc.director['_scene'].height = frameSize.height;
}
data = null;
// 生命周期 start
start() {
if (window && (<any>window).courseware && (<any>window).courseware.getData) {
(<any>window).courseware.getData((data) => {
this.log('data server:' + data);
this.data = data || this.getDefaultData();
this.data = JSON.parse(JSON.stringify(this.data));
this.preloadItem();
})
} else {
this.data = this.getDefaultData();
this.data = JSON.parse(JSON.stringify(this.data));
this.preloadItem();
}
}
getDefaultData() {
return defaultData;
}
preloadItem() {
this.addPreloadImage();
this.addPreloadAudio();
this.addPreloadAnima();
this.preload();
}
addPreloadImage() {
}
addPreloadAudio() {
}
addPreloadAnima() {
}
preload() {
const preloadArr = this._imageResList.concat(this._audioResList).concat(this._animaResList);
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => {
if (window && window["air"]) {
// window["air"].onCourseInScreen = (next) => {
// window["air"].isCourseInScreen = true;
// this.onLoadEnd();
// next();
// };
this.onLoadEnd();
window["air"].hideAirClassLoading();
} else {
this.onLoadEnd();
}
cc.debug.setDisplayStats(false);
});
}
log (str) {
const node = cc.find('middleLayer');
if(node){
node.getComponent('middleLayer').log(str);
}else{
cc.log(str);
}
}
onLoadEnd() {
}
// ------------------------------------------------
getSprNode(resName) {
const sf = cc.find('Canvas/res/img/' + resName).getComponent(cc.Sprite).spriteFrame;
const node = new cc.Node();
node.addComponent(cc.Sprite).spriteFrame = sf;
return node;
}
getSpriteFrimeByUrl(url, cb) {
cc.loader.load({ url }, (err, img) => {
const spriteFrame = new cc.SpriteFrame(img)
if (cb) {
cb(spriteFrame);
}
})
}
getSprNodeByUrl(url, cb) {
const node = new cc.Node();
const spr = node.addComponent(cc.Sprite);
this.getSpriteFrimeByUrl(url, (sf) => {
spr.spriteFrame = sf;
if (cb) {
cb(node);
}
})
}
playAudioByUrl(audio_url, cb = null) {
if (audio_url) {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
});
}
});
}else{
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));
}
}
{
"ver": "1.0.8",
"uuid": "f8b451ff-857c-4ca8-9870-866bc5154a29",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
// export const defaultData = {
// "pic_url": "http://staging-teach.cdn.ireadabc.com/ed94332a503c31e0908bd4c6923a2665.png",
// "pic_url_2": "http://staging-teach.cdn.ireadabc.com/5fb60317ade0195d35ad8034d5370a7f.png",
// "text": "This is a test label.",
// "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"],
// }
//https://www.bejson.com/
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": "xxx",
"guideAudio": "http://staging-teach.cdn.ireadabc.com/40468ef6d120d03f83541b9344c6f9ea.mp3"
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "c41b0e51-55d7-443c-af3a-b22c3dd9b9e5",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ 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
This diff is collapsed.
{
"ver": "1.0.8",
"uuid": "b54300af-b8e5-4b4e-aa2f-9ac1cef7b598",
"isPlugin": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - 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;
@ccclass
export default class timuPrefab extends cc.Component {
@property(cc.Label)
lab_bottom: cc.Label = null;
// @property(cc.Node)
// root: cc.Node = null;
// @property
// text: string = 'hello';
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
private cakeNodes:Array<cc.Node> = [];
private str:string;
private right:string;
private wrong:string;
//第几个位置
private index:number = 0;
@property(cc.Node)
private cake_right_1:cc.Node;
@property(cc.Node)
private cake_right_2:cc.Node;
private sceneComponent:SceneComponent;
private click:boolean = false;
start () {
}
// update (dt) {}
public initUI(){
for(var i = 0;i < 5;i++){
let id = i + 1;
this.cakeNodes.push(this.node.getChildByName("cake" + id));
}
}
setString(str:string,right:string,wrong:string,sceneComponent:SceneComponent){
this.sceneComponent = sceneComponent;
this.str = str;
this.right = right;
this.wrong = wrong;
this.lab_bottom.string = str;
let newStr:string = "";
for(var i = 0;i < str.length;i++){
if(str[i] == this.right){
this.index = i;
}
else{
newStr = newStr + str[i];
}
}
for(var i = 0;i < this.cakeNodes.length;i++){
if(newStr[i] != null && newStr[i] != undefined){
this.cakeNodes[i].active = true;
this.cakeNodes[i].getChildByName("lab_text").getComponent(cc.Label).string = newStr[i];
}
else{
this.cakeNodes[i].active = false;
}
}
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;
let randomValue = Math.random() * 100;
if(randomValue < 50){
this.cake_right_1.y = 120;
this.cake_right_2.y = -81;
}
else{
this.cake_right_1.y = -81;
this.cake_right_2.y = 120;
}
let lf = this;
this.cake_right_1.on('click', () => {
if(lf.sceneComponent.startBlue == false) return;
lf.cake_right_1.getComponent(cc.Button).enabled = false;
lf.cake_right_2.getComponent(cc.Button).enabled = false;
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', () => {
if(lf.sceneComponent.startBlue == false) return;
lf.cake_right_1.getComponent(cc.Button).enabled = false;
lf.cake_right_2.getComponent(cc.Button).enabled = false;
lf.log("wrong");
lf.sceneComponent.judge(false);
cc.tween(lf.cake_right_1)
.to(0.5, { y: lf.sceneComponent.zhazha_node.y }, { easing: 'cubicInOut' })
.call(() => {
})
.start();
cc.tween(lf.cake_right_2)
.to(0.5, { y: lf.sceneComponent.zhazha_node.y }, { easing: 'cubicInOut' })
.call(() => {
lf.hide();
lf.sceneComponent.playLocalAudio(SOUND_NAME.WRONG);
lf.sceneComponent.zhazha_node.active = true;
lf.sceneComponent.hideVoice();
lf.sceneComponent.hideBlueLaZhu();
lf.sceneComponent.chooseWrong();
lf.scheduleOnce(function(){
lf.sceneComponent.next();
},0.5);//延迟时间
})
.start();
})
this.cake_right_1.getChildByName("cake3_k").active = false;
this.cake_right_2.getChildByName("cake3_k").active = false;
}
hide(){
this.cake_right_1.active = false;
this.cake_right_2.active = false;
}
hideCakeRight2(){
cc.tween(this.cake_right_2)
.to(0.5, { x: this.cake_right_2.x + cc.winSize.width }, { easing: 'cubicInOut' })
.call(() => {
})
.start();
}
moveLeft(fun:Function = null){
this.node.x = cc.winSize.width/2 + 310/2;
cc.tween(this.node)
.to(1, { x: 0 }, { easing: 'cubicInOut' })
.call(() => {
fun && fun();
})
.start();
}
moveRight(fun:Function = null){
cc.tween(this.node)
.to(1, { x: cc.winSize.width/2 + 310/2 }, { easing: 'cubicInOut' })
.call(() => {
fun && fun();
this.node.destroy();
})
.start();
}
log (str) {
const node = cc.find('middleLayer');
if(node){
node.getComponent('middleLayer').log(str);
}else{
cc.log(str);
}
}
}
{
"ver": "1.0.8",
"uuid": "d6fa384f-3473-4b4c-b398-ad41f65a860e",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
export function getPosByAngle(angle, len) {
const radian = angle * Math.PI / 180;
const x = Math.sin(radian) * len;
const y = Math.cos(radian) * len;
return { x, y };
}
export function getAngleByPos(px, py, mx, my) {
const x = Math.abs(px - mx);
const y = Math.abs(py - my);
const z = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
const cos = y / z;
const radina = Math.acos(cos); // 用反三角函数求弧度
let angle = Math.floor(180 / (Math.PI / radina) * 100) / 100; // 将弧度转换成角度
if (mx > px && my > py) {// 鼠标在第四象限
angle = 180 - angle;
}
if (mx === px && my > py) {// 鼠标在y轴负方向上
angle = 180;
}
if (mx > px && my === py) {// 鼠标在x轴正方向上
angle = 90;
}
if (mx < px && my > py) {// 鼠标在第三象限
angle = 180 + angle;
}
if (mx < px && my === py) {// 鼠标在x轴负方向
angle = 270;
}
if (mx < px && my < py) {// 鼠标在第二象限
angle = 360 - angle;
}
// console.log('angle: ', angle);
return angle;
}
export function exchangeNodePos(baseNode, targetNode) {
return baseNode.convertToNodeSpaceAR(targetNode._parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y)));
}
export function RandomInt(a, b = 0) {
let max = Math.max(a, b);
let min = Math.min(a, b);
return Math.floor(Math.random() * (max - min) + min);
}
export function randomSortByArr(arr) {
const newArr = [];
const tmpArr = arr.concat();
while (tmpArr.length > 0) {
const randomIndex = Math.floor(tmpArr.length * Math.random());
newArr.push(tmpArr[randomIndex]);
tmpArr.splice(randomIndex, 1);
}
return newArr;
}
export function setSprNodeMaxLen(sprNode, maxW, maxH) {
const sx = maxW / sprNode.width;
const sy = maxH / sprNode.height;
const s = Math.min(sx, sy);
sprNode.scale = Math.round(s * 1000) / 1000;
}
export function localPosTolocalPos(baseNode, targetNode) {
const worldPos = targetNode.parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y));
const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y));
return localPos;
}
export function worldPosToLocalPos(worldPos, baseNode) {
const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y));
return localPos;
}
export function getScaleRateBy2Node(baseNode, targetNode, maxFlag = true) {
const worldRect1 = targetNode.getBoundingBoxToWorld();
const worldRect2 = baseNode.getBoundingBoxToWorld();
const sx = worldRect1.width / worldRect2.width;
const sy = worldRect1.height / worldRect2.height;
if (maxFlag) {
return Math.max(sx, sy);
} else {
return Math.min(sx, sy);
}
}
export function getDistance (start, end){
var pos = cc.v2(start.x - end.x, start.y - end.y);
var dis = Math.sqrt(pos.x*pos.x + pos.y*pos.y);
return dis;
}
export function playAudioByUrl(audio_url, cb=null) {
if (audio_url) {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
});
}
});
}
}
export function btnClickAnima(btn, time=0.15, rate=1.05) {
btn.tmpScale = btn.scale;
btn.on(cc.Node.EventType.TOUCH_START, () => {
cc.tween(btn)
.to(time / 2, {scale: btn.scale * rate})
.start()
})
btn.on(cc.Node.EventType.TOUCH_CANCEL, () => {
cc.tween(btn)
.to(time / 2, {scale: btn.tmpScale})
.start()
})
btn.on(cc.Node.EventType.TOUCH_END, () => {
cc.tween(btn)
.to(time / 2, {scale: btn.tmpScale})
.start()
})
}
export function getSpriteFrimeByUrl(url, cb) {
cc.loader.load({ url }, (err, img) => {
const spriteFrame = new cc.SpriteFrame(img)
if (cb) {
cb(spriteFrame);
}
})
}
export function getSprNode(resName) {
const sf = cc.find('Canvas/res/img/' + resName).getComponent(cc.Sprite).spriteFrame;
const node = new cc.Node();
node.addComponent(cc.Sprite).spriteFrame = sf;
return node;
}
export function getSprNodeByUrl(url, cb) {
const node = new cc.Node();
const spr = node.addComponent(cc.Sprite);
getSpriteFrimeByUrl(url, (sf) => {
spr.spriteFrame = sf;
if (cb) {
cb(spr);
}
})
}
export function playAudio(audioClip, cb = null) {
if (audioClip) {
const audioId = cc.audioEngine.playEffect(audioClip, false);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
});
}
}
}
export async function asyncDelay(time) {
return new Promise((resolve, reject) => {
try {
cc.tween(cc.find('Canvas'))
.delay(time)
.call(()=>{
resolve(null);
})
.start();
} catch (e) {
reject(e);
}
})
}
export class FireworkSettings {
baseNode; // 父节点
nodeList; // 火花节点的array
pos; // 发射点
side; // 发射方向
range; // 扩散范围
number; // 发射数量
scalseRange; // 缩放范围
constructor(baseNode, nodeList,
pos = cc.v2(0, 0),
side = cc.v2(0, 100),
range = 50,
number = 100,
scalseRange = 0
) {
this.baseNode = baseNode;
this.nodeList = nodeList;
this.pos = pos;
this.side = side;
this.range = range;
this.number = number;
this.scalseRange = scalseRange;
}
static copy(firework) {
return new FireworkSettings(
firework.baseNode,
firework.nodeList,
firework.pos,
firework.side,
firework.range,
firework.number,
);
}
}
export async function showFireworks(fireworkSettings) {
const { baseNode, nodeList, pos, side, range, number, scalseRange } = fireworkSettings;
new Array(number).fill(' ').forEach(async (_, i) => {
let rabbonNode = new cc.Node();
rabbonNode.parent = baseNode;
rabbonNode.x = pos.x;
rabbonNode.y = pos.y;
rabbonNode.angle = 60 * Math.random() - 30;
let node = cc.instantiate(nodeList[RandomInt(nodeList.length)]);
node.parent = rabbonNode;
node.active = true;
node.x = 0;
node.y = 0;
node.angle = 0;
node.scale = (Math.random() - 0.5) * scalseRange + 1;
const rate = Math.random();
const angle = Math.PI * (Math.random() * 2 - 1);
await asyncTweenBy(rabbonNode, 0.3, {
x: side.x * rate + Math.cos(angle) * range * rate,
y: side.y * rate + Math.sin(angle) * range * rate
}, {
easing: 'quadIn'
});
cc.tween(rabbonNode)
.by(8, { y: -2000 })
.start();
cc.tween(rabbonNode)
.to(5, { scale: (Math.random() - 0.5) * scalseRange + 1 })
.start();
rabbonFall(rabbonNode);
await asyncDelay(Math.random());
cc.tween(node)
.by(0.15, { x: -10, angle: -10 })
.by(0.3, { x: 20, angle: 20 })
.by(0.15, { x: -10, angle: -10 })
.union()
.repeatForever()
.start();
cc.tween(rabbonNode)
.delay(5)
.to(0.3, { opacity: 0 })
.call(() => {
node.stopAllActions();
node.active = false;
node.parent = null;
node = null;
})
.start();
});
}
async function rabbonFall(node) {
const time = 1 + Math.random();
const offsetX = RandomInt(-200, 200) * time;
await asyncTweenBy(node, time, { x: offsetX, angle: offsetX * 60 / 200 });
rabbonFall(node);
}
export async function asyncTweenTo(node, duration, obj, ease = undefined) {
return new Promise((resolve, reject) => {
try {
cc.tween(node)
.to(duration, obj, ease)
.call(() => {
resolve(null);
})
.start();
} catch (e) {
reject(e);
}
});
}
export async function asyncTweenBy(node, duration, obj, ease = undefined) {
return new Promise((resolve, reject) => {
try {
cc.tween(node)
.by(duration, obj, ease)
.call(() => {
resolve(null);
})
.start();
} catch (e) {
reject(e);
}
});
}
export function showTrebleFirework(baseNode, rabbonList) {
const middle = new FireworkSettings(baseNode, rabbonList);
middle.pos = cc.v2(0, -400);
middle.side = cc.v2(0, 1000);
middle.range = 200;
middle.number = 100;
middle.scalseRange = 0.4;
const left = FireworkSettings.copy(middle);
left.pos = cc.v2(-600, -400);
left.side = cc.v2(200, 1000);
const right = FireworkSettings.copy(middle);
right.pos = cc.v2(600, -400);
right.side = cc.v2(-200, 1000);
showFireworks(middle);
showFireworks(left);
showFireworks(right);
}
export function onHomeworkFinish() {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
if (middleLayerComponent.role == 'student') {
middleLayerComponent.onHomeworkFinish(() => { });
}
} else {
console.log('onHomeworkFinish');
}
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "ade7af40-d56d-4087-bbc6-2888fef55353",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "8ba21262-178f-4fa5-afc9-2c1dd50ba3ab",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 366,
"height": 336,
"platformSettings": {},
"subMetas": {
"1orange": {
"ver": "1.0.4",
"uuid": "43d1e79d-6de8-4dcb-b8ce-d767df7913aa",
"rawTextureUuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 0,
"trimY": 1,
"width": 366,
"height": 335,
"rawWidth": 366,
"rawHeight": 336,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e1b4d971-9876-4832-803a-5a321964a78b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "8288e3d4-4c75-4b27-8f01-f7014417f4dd",
"rawTextureUuid": "e1b4d971-9876-4832-803a-5a321964a78b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 720,
"rawWidth": 1280,
"rawHeight": 720,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "9a79969a-0506-48d4-bc98-3c05d109b027",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 61,
"height": 67,
"platformSettings": {},
"subMetas": {
"btn_left": {
"ver": "1.0.4",
"uuid": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5",
"rawTextureUuid": "9a79969a-0506-48d4-bc98-3c05d109b027",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 61,
"height": 67,
"rawWidth": 61,
"rawHeight": 67,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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.
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.
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.
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.
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.
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.
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.
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