Commit 00466056 authored by Tt's avatar Tt

正确错误完成

parent 8a178f58
{
"ver": "1.1.2",
"uuid": "5fbe351b-8994-4fac-be70-8d1026116380",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "015a528b-23dc-40f4-88ad-1d1997458257",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>angle</key>
<real>17</real>
<key>angleVariance</key>
<real>180</real>
<key>blendFuncDestination</key>
<integer>1</integer>
<key>blendFuncSource</key>
<integer>768</integer>
<key>duration</key>
<real>0.22</real>
<key>emitterType</key>
<real>0</real>
<key>finishColorAlpha</key>
<real>1</real>
<key>finishColorBlue</key>
<real>0</real>
<key>finishColorGreen</key>
<real>0</real>
<key>finishColorRed</key>
<real>0</real>
<key>finishColorVarianceAlpha</key>
<real>0</real>
<key>finishColorVarianceBlue</key>
<real>0</real>
<key>finishColorVarianceGreen</key>
<real>0</real>
<key>finishColorVarianceRed</key>
<real>0</real>
<key>finishParticleSize</key>
<real>-1</real>
<key>finishParticleSizeVariance</key>
<real>0</real>
<key>gravityx</key>
<real>-20</real>
<key>gravityy</key>
<real>420</real>
<key>maxParticles</key>
<real>191</real>
<key>maxRadius</key>
<real>0</real>
<key>maxRadiusVariance</key>
<real>0</real>
<key>minRadius</key>
<real>0</real>
<key>particleLifespan</key>
<real>0.47</real>
<key>particleLifespanVariance</key>
<real>0</real>
<key>radialAccelVariance</key>
<real>0</real>
<key>radialAcceleration</key>
<real>0</real>
<key>rotatePerSecond</key>
<real>0</real>
<key>rotatePerSecondVariance</key>
<real>0</real>
<key>rotationEnd</key>
<real>0</real>
<key>rotationEndVariance</key>
<real>0.0</real>
<key>rotationStart</key>
<real>0</real>
<key>rotationStartVariance</key>
<real>0</real>
<key>sourcePositionVariancex</key>
<real>0</real>
<key>sourcePositionVariancey</key>
<real>0</real>
<key>sourcePositionx</key>
<real>416</real>
<key>sourcePositiony</key>
<real>774</real>
<key>speed</key>
<real>480</real>
<key>speedVariance</key>
<real>20</real>
<key>startColorAlpha</key>
<real>0.89</real>
<key>startColorBlue</key>
<real>0.2</real>
<key>startColorGreen</key>
<real>0.4</real>
<key>startColorRed</key>
<real>1</real>
<key>startColorVarianceAlpha</key>
<real>0</real>
<key>startColorVarianceBlue</key>
<real>0</real>
<key>startColorVarianceGreen</key>
<real>0</real>
<key>startColorVarianceRed</key>
<real>0</real>
<key>startParticleSize</key>
<real>20</real>
<key>startParticleSizeVariance</key>
<real>41</real>
<key>tangentialAccelVariance</key>
<real>0</real>
<key>tangentialAcceleration</key>
<real>-700</real>
<key>textureFileName</key>
<string>particle_star.png</string>
<key>textureImageData</key>
<string></string>
</dict>
</plist>
{
"ver": "2.0.1",
"uuid": "a1f705a9-e753-4699-8894-4363b038f2da",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3814a41a-7cdf-4244-a81b-6918683d6a46",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 46,
"height": 46,
"platformSettings": {},
"subMetas": {
"particle_star": {
"ver": "1.0.4",
"uuid": "247bd8f7-6c0e-46a1-afda-c5eb7e9cc284",
"rawTextureUuid": "3814a41a-7cdf-4244-a81b-6918683d6a46",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 46,
"height": 46,
"rawWidth": 46,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "936b45ab-2b71-4cda-a7c7-ae68ae2fbae7",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "a80e649d-a03b-4765-982c-56931d635a44",
"subMetas": {}
}
\ No newline at end of file
{"SubTexture":[{"width":539,"y":703,"height":546,"name":"老鼠 中间欢呼用 房清(1)/尾巴","x":728},{"width":339,"y":743,"height":420,"name":"老鼠 中间欢呼用 房清(1)/右手","x":1269},{"width":443,"y":1,"height":740,"name":"老鼠 中间欢呼用 房清(1)/圣体","x":1436},{"width":193,"y":1193,"height":745,"name":"老鼠 中间欢呼用 房清(1)/腿2","x":196},{"width":193,"y":1193,"height":746,"name":"老鼠 中间欢呼用 房清(1)/腿","x":1},{"width":725,"y":601,"height":590,"name":"老鼠 中间欢呼用 房清(1)/耳朵","x":1},{"width":640,"y":1,"height":700,"name":"老鼠 中间欢呼用 房清(1)/耳朵2","x":794},{"width":791,"y":1,"height":598,"name":"老鼠 中间欢呼用 房清(1)/头","x":1},{"width":452,"y":1165,"height":281,"name":"老鼠 中间欢呼用 房清(1)/右手(2)","x":1269},{"width":56,"y":601,"height":47,"name":"老鼠 中间欢呼用 房清(1)/鼻子","x":728},{"width":356,"y":900,"height":120,"name":"老鼠 中间欢呼用 房清(1)/图层11","x":1610},{"width":344,"y":743,"height":155,"name":"老鼠 中间欢呼用 房清(1)/眼睛(2)","x":1610},{"width":118,"y":1022,"height":97,"name":"老鼠 中间欢呼用 房清(1)/嘴巴","x":1610}],"width":2048,"height":2048,"name":"老鼠在欢呼","imagePath":"老鼠在欢呼_tex.png"}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "30147f0f-a97b-4f52-9f51-33aa613ada59",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "f2aa6e24-f9a7-4035-b7a1-7ccb45e75f2d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2048,
"height": 2048,
"platformSettings": {},
"subMetas": {
"老鼠在欢呼_tex": {
"ver": "1.0.4",
"uuid": "ad3f7b5a-08ee-4221-912c-14bba09183c5",
"rawTextureUuid": "f2aa6e24-f9a7-4035-b7a1-7ccb45e75f2d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -40.5,
"offsetY": 54,
"trimX": 1,
"trimY": 1,
"width": 1965,
"height": 1938,
"rawWidth": 2048,
"rawHeight": 2048,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "6ac1adf9-b9ed-4cf5-ada2-7dea0da20bb8",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "e6ec02b6-ebbf-4d17-acaf-4945d7fb877f",
"subMetas": {}
}
\ No newline at end of file
{"width":2048,"imagePath":"Img_Dark(1)_tex.png","height":1024,"name":"Img_Dark(1)","SubTexture":[{"width":1668,"y":1,"height":938,"name":"Img_Dark(1)/图层_45","x":1},{"width":111,"y":941,"height":55,"name":"Img_Dark(1)/组_13","x":1},{"width":179,"y":1,"height":176,"name":"Img_Dark(1)/色相_饱和度_1","x":1671},{"width":129,"y":131,"height":145,"name":"Img_Dark(1)/组_14","x":1852},{"width":92,"y":941,"height":61,"name":"Img_Dark(1)/色相_饱和度_3","x":114},{"width":164,"y":1,"height":128,"name":"Img_Dark(1)/色相_饱和度_2","x":1852},{"width":143,"y":278,"height":97,"name":"Img_Dark(1)/色相_饱和度_4","x":1831},{"width":74,"y":941,"height":67,"name":"Img_Dark(1)/组_15","x":208},{"width":51,"y":377,"height":43,"name":"Img_Dark(1)/组_15_拷贝_2","x":1813},{"width":57,"y":131,"height":53,"name":"Img_Dark(1)/组_15_拷贝","x":1983},{"width":158,"y":179,"height":100,"name":"Img_Dark(1)/图层_46","x":1671},{"width":91,"y":340,"height":70,"name":"Img_Dark(1)/图层_56","x":1671},{"width":53,"y":358,"height":48,"name":"Img_Dark(1)/图层_55","x":1976},{"width":48,"y":278,"height":78,"name":"Img_Dark(1)/图层_54","x":1976},{"width":39,"y":412,"height":60,"name":"Img_Dark(1)/图层_53","x":1671},{"width":47,"y":340,"height":84,"name":"Img_Dark(1)/图层_52","x":1764},{"width":55,"y":186,"height":49,"name":"Img_Dark(1)/图层_51","x":1983},{"width":72,"y":941,"height":63,"name":"Img_Dark(1)/图层_50","x":284},{"width":95,"y":941,"height":39,"name":"Img_Dark(1)/图层_49","x":358},{"width":156,"y":281,"height":57,"name":"Img_Dark(1)/图层_48","x":1671},{"width":69,"y":998,"height":25,"name":"Img_Dark(1)/图层_47","x":1}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "5788586f-1aff-4185-b6cc-808408c509f4",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "09b80abc-645e-4784-9b27-5c2c43c40845",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2048,
"height": 1024,
"platformSettings": {},
"subMetas": {
"Img_Dark(1)_tex": {
"ver": "1.0.4",
"uuid": "dce0bcbe-d7e7-41ff-b46f-9782106dd2c4",
"rawTextureUuid": "09b80abc-645e-4784-9b27-5c2c43c40845",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -3.5,
"offsetY": 0,
"trimX": 1,
"trimY": 1,
"width": 2039,
"height": 1022,
"rawWidth": 2048,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "a0b800d7-492c-4110-8652-e6d9f079981e",
"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":-739,"y":-923,"width":1559,"height":1857},"bone":[{"name":"root"},{"length":365,"name":"bone","parent":"root","transform":{"x":-291.1,"y":660.65,"skX":179.0279,"skY":179.0279}},{"length":630,"name":"圣体","parent":"bone","transform":{"x":-19.4394,"y":-192.3575,"skX":101.7321,"skY":101.7321}},{"length":175,"name":"左腿","parent":"bone","transform":{"x":-135.405,"y":-53.9049,"skX":-98.4902,"skY":-98.4902}},{"length":166,"name":"又退","parent":"bone","transform":{"x":79.4041,"y":-58.5113,"skX":-69.4667,"skY":-69.4667}},{"length":420,"name":"右手","parent":"圣体","transform":{"x":591.7977,"y":-148.1413,"skX":-88.2911,"skY":-88.2911}},{"length":590,"name":"头","parent":"圣体","transform":{"x":630.4345,"skX":0.9439,"skY":0.9439}},{"length":125,"name":"左手","parent":"圣体","transform":{"x":608.4231,"y":60.9308,"skX":128.2338,"skY":128.2338}},{"length":268,"name":"尾巴","parent":"圣体","transform":{"x":167.0001,"y":193.168,"skX":77.0316,"skY":77.0316}},{"length":49,"name":"嘴巴","parent":"头","transform":{"x":156.66,"y":53.9934,"skX":170.6652,"skY":170.6652}},{"length":272,"name":"眼睛(3)","parent":"头","transform":{"x":349.5083,"y":-165.1838,"skX":95.9112,"skY":95.9112}},{"length":642,"name":"耳朵2","parent":"头","transform":{"x":490.5538,"y":-145.8945,"skX":-38.0218,"skY":-38.0218}},{"length":644,"name":"耳朵","parent":"头","transform":{"x":334.7626,"y":221.5991,"skX":77.38,"skY":77.38}}],"slot":[{"name":"尾巴","parent":"尾巴"},{"name":"右手","parent":"右手"},{"name":"左手","parent":"左手"},{"name":"圣体","parent":"圣体"},{"name":"又退","parent":"又退"},{"name":"左腿","parent":"左腿"},{"name":"耳朵","parent":"耳朵"},{"name":"耳朵2","parent":"耳朵2"},{"name":"头","parent":"头"},{"displayIndex":1,"name":"眼睛(3)","parent":"眼睛(3)"},{"name":"嘴巴","parent":"嘴巴"}],"skin":[{"slot":[{"name":"圣体","display":[{"name":"老鼠右下角说话用房清1(1)/圣体","transform":{"x":321.89,"y":-53.13,"skX":79.24,"skY":79.24}}]},{"name":"嘴巴","display":[{"name":"老鼠右下角说话用房清1(1)/嘴巴","transform":{"x":39.99,"y":7.3,"skX":-92.37,"skY":-92.37}},{"name":"老鼠右下角说话用房清1(1)/嘴巴(2)","transform":{"x":4.54,"y":9.27,"skX":-92.37,"skY":-92.37}}]},{"name":"又退","display":[{"name":"老鼠右下角说话用房清1(1)/又退","transform":{"x":91.74,"y":129.77,"skX":-109.56,"skY":-109.56}}]},{"name":"右手","display":[{"name":"老鼠右下角说话用房清1(1)/右手","transform":{"x":-100.26,"y":48.9,"skX":167.53,"skY":167.53}}]},{"name":"头","display":[{"name":"老鼠右下角说话用房清1(1)/头","transform":{"x":270.38,"y":-116.06,"skX":78.3,"skY":78.3}}]},{"name":"眼睛(3)","display":[{"name":"老鼠右下角说话用房清1(1)/眼睛(3)","transform":{"x":131.25,"y":1.81,"skX":-17.62,"skY":-17.62}},{"name":"老鼠右下角说话用房清1(1)/眼睛(2)","transform":{"x":129.5,"y":2.9,"skX":-17.62,"skY":-17.62}}]},{"name":"左腿","display":[{"name":"老鼠右下角说话用房清1(1)/左腿","transform":{"x":108.63,"y":-118.05,"skX":-80.54,"skY":-80.54}}]},{"name":"耳朵","display":[{"name":"老鼠右下角说话用房清1(1)/耳朵","transform":{"x":323.38,"y":-2.28,"skX":0.92,"skY":0.92}}]},{"name":"尾巴","display":[{"name":"老鼠右下角说话用房清1(1)/尾巴","transform":{"x":269.22,"y":-209.43,"skX":2.21,"skY":2.21}}]},{"name":"耳朵2","display":[{"name":"老鼠右下角说话用房清1(1)/耳朵2","transform":{"x":342.75,"y":-24.53,"skX":116.32,"skY":116.32}}]},{"name":"左手","display":[{"name":"老鼠右下角说话用房清1(1)/左手","transform":{"x":130.88,"y":15.14,"skX":-48.99,"skY":-48.99}}]}]}],"animation":[{"duration":72,"playTimes":0,"name":"normal","bone":[{"name":"圣体","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":2.39},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":2.39},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":2.39},{"duration":0}]},{"name":"右手","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":14.35},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":14.35},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":14.35},{"duration":0}]},{"name":"头","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-18.81,"y":4.39},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-18.81,"y":4.39},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-18.81,"y":4.39},{"duration":0}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-12},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-12},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-12},{"duration":0}]},{"name":"尾巴","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-14.33},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-14.33},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-14.33},{"duration":0}]},{"name":"耳朵2","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-11.76,"y":34.99},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-11.76,"y":34.99},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-11.76,"y":34.99},{"duration":0}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":11.85},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":11.85},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":11.85},{"duration":0}]},{"name":"耳朵","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-7.07},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-7.07},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-7.07},{"duration":0}]}],"slot":[{"name":"眼睛(3)","displayFrame":[{"duration":4,"value":1},{"duration":4},{"duration":20,"value":1},{"duration":4},{"duration":20,"value":1},{"duration":4},{"duration":16,"value":1}]},{"name":"嘴巴","displayFrame":[{"duration":4},{"duration":4,"value":1},{"duration":4},{"duration":4,"value":1},{"duration":4},{"duration":4,"value":1},{"duration":4},{"duration":4,"value":1},{"duration":4},{"duration":4,"value":1},{"duration":4},{"duration":4,"value":1},{"duration":4},{"duration":4,"value":1},{"duration":4},{"duration":4,"value":1},{"duration":4},{"duration":4,"value":1},{"duration":0}]}]}],"defaultActions":[{"gotoAndPlay":"normal"}],"canvas":{"width":1900,"height":2250}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "12a07322-1e68-4bc7-a4f7-7f90cc762303",
"subMetas": {}
}
\ No newline at end of file
{"SubTexture":[{"width":539,"y":703,"height":546,"name":"老鼠右下角说话用房清1(1)/尾巴","x":728},{"width":1088,"y":1251,"height":195,"name":"老鼠右下角说话用房清1(1)/右手","x":728},{"width":167,"y":901,"height":302,"name":"老鼠右下角说话用房清1(1)/左手","x":1698},{"width":443,"y":1,"height":741,"name":"老鼠右下角说话用房清1(1)/圣体","x":1454},{"width":427,"y":744,"height":267,"name":"老鼠右下角说话用房清1(1)/又退","x":1269},{"width":411,"y":1193,"height":268,"name":"老鼠右下角说话用房清1(1)/左腿","x":1},{"width":725,"y":601,"height":590,"name":"老鼠右下角说话用房清1(1)/耳朵","x":1},{"width":640,"y":1,"height":700,"name":"老鼠右下角说话用房清1(1)/耳朵2","x":812},{"width":809,"y":1,"height":598,"name":"老鼠右下角说话用房清1(1)/头","x":1},{"width":336,"y":1013,"height":128,"name":"老鼠右下角说话用房清1(1)/眼睛(3)","x":1269},{"width":344,"y":744,"height":155,"name":"老鼠右下角说话用房清1(1)/眼睛(2)","x":1698},{"width":109,"y":703,"height":34,"name":"老鼠右下角说话用房清1(1)/嘴巴(2)","x":1269},{"width":118,"y":1143,"height":97,"name":"老鼠右下角说话用房清1(1)/嘴巴","x":1269}],"width":2048,"height":2048,"name":"老鼠在说话","imagePath":"老鼠在说话_tex.png"}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "04a8dfaa-9baf-4407-af0a-2d3a9e89dbd8",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "33de3d7c-9247-496e-aadc-73b4933a86fc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2048,
"height": 2048,
"platformSettings": {},
"subMetas": {
"老鼠在说话_tex": {
"ver": "1.0.4",
"uuid": "6e3bdf9f-10f5-47ec-839b-195bcab4502a",
"rawTextureUuid": "33de3d7c-9247-496e-aadc-73b4933a86fc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -2.5,
"offsetY": 293,
"trimX": 1,
"trimY": 1,
"width": 2041,
"height": 1460,
"rawWidth": 2048,
"rawHeight": 2048,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "1352106d-8338-4015-8cee-7cfc75b38460",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "11361b6c-6556-47e2-9e5c-306f9f77cbc8",
"downloadMode": 0,
"duration": 4.04898,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "b6c10896-d58d-47bc-88a9-c289d884c621",
"downloadMode": 0,
"duration": 5.172245,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "b3d3e0e6-a546-402f-9f78-36dca911638b",
"downloadMode": 0,
"duration": 2.45551,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "24a174f5-9880-4105-8adc-7f96d6be3b3b",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "b9585e9c-f3d9-4249-8265-f5d47e0fc171",
"downloadMode": 0,
"duration": 3.239184,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "710a5c9e-9102-467c-96d1-6038efb4399b",
"downloadMode": 0,
"duration": 2.220417,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "f4464f31-5436-4b91-93de-79224a86e17e",
"downloadMode": 0,
"duration": 0.57475,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "bce3261e-7314-4067-9337-459533b97896",
"downloadMode": 0,
"duration": 1.12325,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "3fa7aab4-b81d-40e6-9691-73935a1d92da",
"downloadMode": 0,
"duration": 1.184417,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "5aed205e-c676-4924-a439-f8d4d2af39aa",
"downloadMode": 0,
"duration": 1.928625,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "0fe75083-57b2-4007-a29c-9bae64d46c03",
"downloadMode": 0,
"duration": 2.319563,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "eec88860-3fa4-4134-8631-2ecd92939054",
"downloadMode": 0,
"duration": 2.032875,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "e641f5b9-fd9f-479a-b367-4f4423a45785",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "4a74f020-e753-4d8e-80bd-241347ac5fdf",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
// Learn cc.Class:
// - https://docs.cocos.com/creator/manual/en/scripting/class.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
cc.Class({
extends: cc.Component,
properties: {
startPosition: cc.Vec2,
voice: cc.AudioClip,
voice2: cc.AudioClip,
},
// LIFE-CYCLE CALLBACKS:
onLoad() {
this.ske = this.node.getChildByName("ske");
this.ske.x = this.startPosition.x;
this.ske.y = this.startPosition.y;
// //动画播放测试
// let db = this.ske.getComponent(dragonBones.ArmatureDisplay)
// db.playAnimation('normal');
// console.log(db.timeScale);
// setTimeout(() => {
// db.timeScale = 0.0001;
// console.log(db.timeScale);
// }, 1000);
// setTimeout(() => {
// db.timeScale = 1;
// console.log(db.timeScale);
// }, 2000);
},
play() {
return new Promise((resolve, reject) => {
this.node.active = true;
cc.audioEngine.playEffect(this.voice, false);
setTimeout(() => {
cc.audioEngine.playEffect(this.voice2, false);
}, 500);
let db = this.ske.getComponent(dragonBones.ArmatureDisplay)
db.playAnimation('normal', 1);
db.addEventListener("loopComplete", () => {
resolve('');
})
});
}
// update (dt) {},
});
{
"ver": "1.0.8",
"uuid": "0e661f2c-092c-4179-8074-d29a2e2e17e7",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "mouse_end",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
},
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_prefab": {
"__id__": 12
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
0.11,
0.11,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "ske_candy",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1668,
"height": 938
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-432.512,
0,
0,
0,
0,
1,
8,
8,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "normal",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": 1,
"premultipliedAlpha": false,
"_armatureKey": "e6ec02b6-ebbf-4d17-acaf-4945d7fb877f#5788586f-1aff-4185-b6cc-808408c509f4",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "e6ec02b6-ebbf-4d17-acaf-4945d7fb877f"
},
"_N$dragonAtlasAsset": {
"__uuid__": "5788586f-1aff-4185-b6cc-808408c509f4"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
},
"fileId": "fcHw9SaDpAK7zwmxUDrLPs",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "ske",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1508,
"height": 2331.53
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-2095.446,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "normal",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": 1,
"premultipliedAlpha": false,
"_armatureKey": "a80e649d-a03b-4765-982c-56931d635a44#30147f0f-a97b-4f52-9f51-33aa613ada59",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "a80e649d-a03b-4765-982c-56931d635a44"
},
"_N$dragonAtlasAsset": {
"__uuid__": "30147f0f-a97b-4f52-9f51-33aa613ada59"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
},
"fileId": "5c1hp2rfRESZM5fPSRCCMq",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "block",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100000,
"height": 100000
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
},
"fileId": "c6mVnUkE5JaYueomXGzBNp",
"sync": false
},
{
"__type__": "0e6618sCSxBeYB00pouLhfn",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"startPosition": {
"__type__": "cc.Vec2",
"x": 0,
"y": -2095.446
},
"voice": {
"__uuid__": "3fa7aab4-b81d-40e6-9691-73935a1d92da"
},
"voice2": {
"__uuid__": "b3d3e0e6-a546-402f-9f78-36dca911638b"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "particle_star",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 5
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-1434.597,
348.594,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "particle_star",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.ParticleSystem",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 768,
"_dstBlendFactor": 1,
"_custom": true,
"_file": {
"__uuid__": "a1f705a9-e753-4699-8894-4363b038f2da"
},
"_spriteFrame": {
"__uuid__": "247bd8f7-6c0e-46a1-afda-c5eb7e9cc284"
},
"_texture": null,
"_stopped": true,
"playOnLoad": true,
"autoRemoveOnFinish": false,
"totalParticles": 191,
"duration": 0.22,
"emissionRate": 406.3829787234043,
"life": 0.3,
"lifeVar": 0,
"_startColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 226
},
"_startColorVar": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 0
},
"_endColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_endColorVar": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 0
},
"angle": 17,
"angleVar": 180,
"startSize": 10,
"startSizeVar": 20,
"endSize": -1,
"endSizeVar": 0,
"startSpin": 0,
"startSpinVar": 0,
"endSpin": 0,
"endSpinVar": 0,
"sourcePos": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"posVar": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_positionType": 1,
"positionType": 1,
"emitterMode": 0,
"gravity": {
"__type__": "cc.Vec2",
"x": -20,
"y": 420
},
"speed": 450,
"speedVar": 20,
"tangentialAccel": -700,
"tangentialAccelVar": 0,
"radialAccel": 0,
"radialAccelVar": 0,
"rotationIsDir": false,
"startRadius": 0,
"startRadiusVar": 0,
"endRadius": 0,
"endRadiusVar": 0,
"rotatePerS": 0,
"rotatePerSVar": 0,
"_N$preview": true,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "fcv3QB7CFM+q6n1fsvkn0z",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "7ccfad51-5bbc-4c49-a5d2-93f15e2cd2b2",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "mouse_start",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
}
],
"_active": true,
"_components": [
{
"__id__": 8
}
],
"_prefab": {
"__id__": 9
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
0.11,
0.11,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "ske",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1559,
"height": 1857
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
4825.941,
-2215.831,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "normal",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "12a07322-1e68-4bc7-a4f7-7f90cc762303#04a8dfaa-9baf-4407-af0a-2d3a9e89dbd8",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "12a07322-1e68-4bc7-a4f7-7f90cc762303"
},
"_N$dragonAtlasAsset": {
"__uuid__": "04a8dfaa-9baf-4407-af0a-2d3a9e89dbd8"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
},
"fileId": "bcXAodm85FgJvr6dZD9yGf",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "block",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100000,
"height": 100000
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
},
"fileId": "efp877hUFLz4dHY4gxxXKw",
"sync": false
},
{
"__type__": "219b1yegNJPW4jalMImtj4z",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"startPosition": {
"__type__": "cc.Vec2",
"x": 14000,
"y": -2215
},
"targetPosition": {
"__type__": "cc.Vec2",
"x": 4825.941,
"y": -2215
},
"moveInTime": 2,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "57753175-db68-4aab-a973-8abce1f1664a",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": 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 Game from "../../scene/Game";
import pg from "../../scene/pg";
const { ccclass, property } = cc._decorator;
@ccclass
export default class MouseStart extends cc.Component {
@property(cc.Vec2)
startPosition: cc.Vec2 = cc.v2(0, 0)
@property(cc.Vec2)
targetPosition: cc.Vec2 = cc.v2(0, 0)
@property(cc.Float)
moveInTime: number = 1;
private ske: cc.Node;
private block: cc.Node;
onLoad() {
//修改ske的信息
this.ske = this.node.getChildByName("ske");
this.block = this.node.getChildByName("block");
this.ske.x = this.startPosition.x;
this.ske.y = this.startPosition.y;
}
play() {
this.moveInTime = Game.getIns().aniEnter.time || 5;
return new Promise((resolve, reject) => {
let isPlaying = true;
pg.load.loadDB(this.ske, { ske: Game.getIns().aniEnter.skeJsonData.url, tex: Game.getIns().aniEnter.texJsonData.url, png: Game.getIns().aniEnter.texPngData.url }).then((animationName) => {
cc.tween(this.ske).to(1.3, { x: this.targetPosition.x, y: this.targetPosition.y }).call(() => {
if (Game.getIns().aniEnter.audioUrl) {
this.playAudioByUrl(Game.getIns().aniEnter.audioUrl, () => {
isPlaying = false;
resolve('');
})
}
let db = this.ske.getComponent(dragonBones.ArmatureDisplay);
db.playAnimation('normal', 1111111);
db.addEventListener("loopComplete", () => {
if (!isPlaying) {
this.block.active = false;
resolve('');
}
})
}).delay(this.moveInTime).call(() => {
this.ske.active = false;
this.node.active = false;
this.block.active = false;
}).start();
})
});
}
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();
}
}
}
{
"ver": "1.0.8",
"uuid": "219b1c9e-80d2-4f5b-88da-94c226b63e33",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
export class Option {
type;
txt;
picUrl;
audioUrl;
public data;
public id: number;
constructor(data, id) {
this.id = id;
this.data = data;
this.type = data.type;
this.txt = data.text;
this.picUrl = data.image;
this.audioUrl = data.optionAudio;
}
}
export class Item {
public page;
public audio;
public image;
public optionList;
constructor(data, page) {
this.audio = data.audio;
this.image = data.image;
let id = 0;
this.optionList = data.optionList.map(o => {
return new Option(o, id++);
})
this.page = page;
}
}
export default class Game {
private static ins: Game;
public static getIns(): Game {
if (!Game.ins) Game.ins = new Game();
return Game.ins;
}
private data: any;
private lists: Array<Item>
constructor() {
//
this.start = false;
this.lists = [];
}
get len() {
return this.lists.length;
}
public aniEnter: any;
public init(data) {
this.start = false;
this.lists = [];
this.data = data.item.questionList;
this.aniEnter = data.aniEnter;
}
public start: boolean;
public page: number;
reset() {
this.page = 1;
this.start = true;
this.lists = [];
for (let i = 0; i < this.data.length; i++) {
let data = this.data[i];
this.lists.push(new Item(data, i + 1));
}
}
checkSuccess(arr: Option[]) {
let data = this.getCurrentPage();
let options = data.optionList;
for (let i = 0; i < options.length; i++) {
if (arr[i] && arr[i].id != options[i].id) {
return false;
}
}
return true;
}
getDataByPage(page): Item {
return this.lists.filter(li => li.page == page)[0]
}
getCurrentPage(): Item {
let page = this.page;
return this.lists.filter(li => li.page == page)[0]
}
getTotalPageNum() {
return this.lists.length;
}
getCurrentPageNum() {
return this.page;
}
addPage() {
return ++this.page
}
get isOver() {
let times = 0;
// this.lists.forEach((li) => {
// times += li.stem.times;
// })
return times == 0;
}
}
let win: any = window;
win.Game = Game;
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "6e2d0913-65ec-4b8a-9f6b-b52ded0447c6",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import { asyncDelay, onHomeworkFinish } from "../script/util";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent";
const { ccclass, property } = cc._decorator;
@ccclass
export default class SceneComponent extends MyCocosSceneComponent {
addPreloadImage() {
// TODO 根据自己的配置预加载图片资源
this._imageResList.push({ url: this.data.pic_url });
this._imageResList.push({ url: this.data.pic_url_2 });
}
addPreloadAudio() {
// TODO 根据自己的配置预加载音频资源
this._audioResList.push({ url: this.data.audio_url });
}
addPreloadAnima() {
}
onLoadEnd() {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this.initData();
this.initView();
this.initEvent();
}
initData() {
}
initView() {
}
initEvent() {
}
playLocalAudio(audioName) {
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
return new Promise((resolve, reject) => {
const id = cc.audioEngine.playEffect(audio.clip, false);
cc.audioEngine.setFinishCallback(id, () => {
resolve(id);
});
})
}
}
import { asyncDelay, onHomeworkFinish } from "../script/util";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent";
import Game, { Item, Option } from "./Game";
import pg from "./pg";
const { ccclass, property } = cc._decorator;
@ccclass
export default class SceneComponent extends MyCocosSceneComponent {
addPreloadImage() {
// TODO 根据自己的配置预加载图片资源
this._imageResList.push({ url: this.data.pic_url });
this._imageResList.push({ url: this.data.pic_url_2 });
}
addPreloadAudio() {
// TODO 根据自己的配置预加载音频资源
this._audioResList.push({ url: this.data.audio_url });
}
addPreloadAnima() {
}
onLoadEnd() {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this.initData();
this.initView();
this.initEvent();
pg.event.emit("startGame");
}
@property(cc.Node)
layout_card: cc.Node = null;
@property(cc.Node)
node_card: cc.Node = null;
@property(cc.Node)
bg_card: cc.Node = null;
initData() {
Game.getIns().init(this.data);
}
initView() {
pg.view.find(this, "mouse_start").getComponent("mstart").play();
}
initEvent() {
pg.view.touchOn(pg.view.find(this, 'bg/bg_card/btn_check'), this.onTouchCheck, this);
pg.event.on("startGame", () => { this.startGame() })
}
//开始游戏
startGame() {
this.cards = [];
this.cardBgs = [];
this.currentCards = [];
Game.getIns().reset();
//自动创建卡片
let data: Item = Game.getIns().getCurrentPage();
console.log("data->" + data);
this.createCrads(data);
}
getCurrentOpSet() {
let op = {
"3": {
x: -260,
y: 160,
y2: -80,
space: 260,
scale: 1,
}
}
let opSet = op[`${Game.getIns().getCurrentPage().optionList.length}`];
return opSet;
}
getPostionById(count) {
let opSet = this.getCurrentOpSet();
let x = opSet.space * count + opSet.x;
let y = opSet.y;
return cc.v2(x, y);
}
getBgPostionById(count) {
let opSet = this.getCurrentOpSet();
let x = opSet.space * count + opSet.x;
let y = opSet.y2;
return cc.v2(x, y);
}
//创建卡片
private cards: cc.Node[];
private cardBgs: cc.Node[];
createCrads(list) {
let count = 0;
list.optionList.forEach(li => {
let opSet = this.getCurrentOpSet();
let posBg = this.getBgPostionById(count);
let card_bg = cc.instantiate(this.bg_card);
card_bg.setPosition(posBg);
card_bg.scale = opSet.scale;
this.layout_card.addChild(card_bg);
this.updateCardBg(card_bg, li);
this.cardBgs.push(card_bg);
count++;
})
count = 0;
list.optionList.forEach(li => {
let opSet = this.getCurrentOpSet();
let pos = this.getPostionById(count);
let card = cc.instantiate(this.node_card);
card.setPosition(pos);
card.scale = opSet.scale;
this.layout_card.addChild(card);
this.updateCard(card, li);
this.cards.push(card);
card.data = li;
count++;
})
}
updateCard(item: cc.Node, data: Option) {
item.active = true;
pg.view.visible(pg.view.find(item, 'text'), false);
pg.view.visible(pg.view.find(item, 'pic'), false);
pg.view.visible(pg.view.find(item, 'picText'), false);
switch (data.type) {
case "text":
pg.view.visible(pg.view.find(item, 'text'), true);
pg.view.setString(pg.view.find(item, 'text/label'), data.txt);
break;
case "pic":
pg.view.visible(pg.view.find(item, 'pic'), true);
pg.view.setNetImg(pg.view.find(item, 'pic/img'), data.picUrl, { w: 140, h: 160 });
break;
case "picText":
pg.view.visible(pg.view.find(item, 'picText'), true);
pg.view.setString(pg.view.find(item, 'pic/label'), data.txt);
pg.view.setNetImg(pg.view.find(item, 'pic/img'), data.picUrl, { w: 140, h: 160 });
break;
}
item.on(cc.Node.EventType.TOUCH_START, this.onItemTouchStart, this);
item.on(cc.Node.EventType.TOUCH_MOVE, this.onItemTouchMove, this);
item.on(cc.Node.EventType.TOUCH_END, this.onItemTouchEnd, this);
item.on(cc.Node.EventType.TOUCH_CANCEL, this.onItemTouchCancel, this);
}
updateCardBg(item, data) {
item.data = data
item.active = true;
}
private currentCards: cc.Node[];
onItemTouchStart(e) {
let target: cc.Node = e.target;
let data = target.data;
console.log(target);
let location = e.getLocation();
let pos = location.sub(cc.v2(1280 / 2, 720 / 2))
e.target.setPosition(pos)
}
onItemTouchMove(e) {
let target: cc.Node = e.target;
console.log(target);
let location = e.getLocation();
let pos = location.sub(cc.v2(1280 / 2, 720 / 2))
e.target.setPosition(pos)
}
onItemTouchEnd(e) {
//
let target: cc.Node = e.target;
let data = target.data;
let rect1 = cc.rect(target.x, target.y, target.width * target.scale, target.height * target.scale);
let itemBg = this.cardBgs.find(bg => {
return rect1.intersects(cc.rect(bg.x, bg.y, bg.width * bg.scale, bg.height * bg.scale));
})
console.log(itemBg);
if (!itemBg || this.currentCards[itemBg.data.id]) {
//回退
target.setPosition(this.getPostionById(data.id))
for (let i = 0; i < this.currentCards.length; i++) {
let cd = this.currentCards[i];
if (cd && cd.data.id == target.data.id) {
this.currentCards.splice(i, 1);
break;
}
}
return;
}
//执行
let pos = this.getBgPostionById(itemBg.data.id);
target.setPosition(pos);
this.currentCards[itemBg.data.id] = target;
this.updateCheckBtn();
}
onItemTouchCancel() {
}
updateCheckBtn() {
let isFull = this.checkFull();
pg.view.visible(pg.view.find(this, 'bg/bg_card/btn_check'), isFull)
pg.view.visible(pg.view.find(this, 'bg/bg_card/btn_check_grey'), !isFull)
}
checkFull() {
if (this.currentCards.length != this.cards.length) return false;
return this.currentCards.every(card => !!card);
}
onTouchCheck() {
let isSuccess = Game.getIns().checkSuccess(this.currentCards.map(cd => cd.data));
alert(isSuccess);
}
playLocalAudio(audioName) {
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
return new Promise((resolve, reject) => {
const id = cc.audioEngine.playEffect(audio.clip, false);
cc.audioEngine.setFinishCallback(id, () => {
resolve(id);
});
})
}
}
This diff is collapsed.
{
"ver": "1.0.8",
"uuid": "f1fd3085-38f0-47f0-a64d-02c25cf3dabd",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
......@@ -6,7 +6,6 @@
"experimentalDecorators": true,
"skipLibCheck": true,
"outDir": "temp/vscode-dist",
"allowJs": true,
"forceConsistentCasingInFileNames": true
},
"exclude": [
......
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