Commit 97f694ef authored by 李维's avatar 李维

dev commot

parent 3f6c5725
{"frameRate":24,"name":"狮子","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-48,"y":-48,"width":88,"height":124},"bone":[{"name":"root"},{"length":57.5,"name":"bone","parent":"root","transform":{"x":3.45,"y":27.125}},{"length":37,"name":"椭圆_725","parent":"bone","transform":{"x":-1.55,"y":15.225,"skX":-89.1871,"skY":-89.1871}},{"length":47.5,"name":"形状_627","parent":"椭圆_725","transform":{"x":39.081,"y":0.14555,"skX":-2.254,"skY":-2.254}},{"length":23.5,"name":"图层_1","parent":"椭圆_725","transform":{"x":25.74645,"y":17.18645,"skX":127.6311,"skY":127.6311}},{"length":26.5,"name":"形状_686_拷贝","parent":"椭圆_725","transform":{"x":22.97295,"y":-17.92775,"skX":-56.9168,"skY":-56.9168}},{"length":15.5,"name":"形状_726_拷贝","parent":"椭圆_725","transform":{"x":-5.3047,"y":13.80165,"skX":178.0031,"skY":178.0031}},{"length":21.5,"name":"形状_726","parent":"椭圆_725","transform":{"x":3.68185,"y":-15.4038,"skX":-148.1449,"skY":-148.1449}},{"length":20.5,"name":"闭眼","parent":"形状_627","transform":{"x":22.0941,"y":-6.4464,"skX":92.3417,"skY":92.3417}},{"length":19.5,"name":"形状_687_拷贝_5","parent":"形状_627","transform":{"x":8.35475,"y":0.9104,"skX":-102.5951,"skY":-102.5951}},{"length":8,"name":"形状_644","parent":"形状_627","transform":{"x":28.51395,"y":17.6977,"skX":50.8212,"skY":50.8212}},{"length":16,"name":"形状_631","parent":"形状_627","transform":{"x":17.0666,"y":-4.4222,"skX":91.4411,"skY":91.4411}},{"length":8.5,"name":"形状_644_拷贝","parent":"形状_627","transform":{"x":28.60995,"y":-12.9596,"skX":-52.9092,"skY":-52.9092}},{"length":27,"name":"形状_674","parent":"形状_726_拷贝","transform":{"x":15.72835,"skX":76.6138,"skY":76.6138}},{"name":"椭圆_635","parent":"形状_627","transform":{"x":9.4027,"y":3.98775,"skX":-88.5589,"skY":-88.5589}},{"length":23.5,"name":"形状_676","parent":"形状_726","transform":{"x":21.7685,"skX":95.9637,"skY":95.9637}},{"length":31.5,"name":"形状_687_拷贝_51","parent":"形状_687_拷贝_5","transform":{"x":19.706,"y":0.0303,"skX":64.807,"skY":64.807}}],"slot":[{"name":"形状_676","parent":"形状_676"},{"name":"形状_674","parent":"形状_674"},{"name":"形状_726_拷贝","parent":"形状_726_拷贝"},{"name":"形状_726","parent":"形状_726"},{"name":"图层_1","parent":"图层_1"},{"name":"形状_686_拷贝","parent":"形状_686_拷贝"},{"name":"椭圆_725","parent":"椭圆_725"},{"name":"形状_627","parent":"形状_627"},{"name":"形状_644","parent":"形状_644"},{"name":"形状_644_拷贝","parent":"形状_644_拷贝"},{"name":"椭圆_635","parent":"椭圆_635"},{"name":"形状_687_拷贝_5","parent":"形状_687_拷贝_51"},{"name":"形状_631","parent":"形状_631"},{"name":"闭眼","parent":"闭眼"}],"skin":[{"slot":[{"name":"形状_726_拷贝","display":[{"name":"狮子素材/形状_726_拷贝","transform":{"x":4.66,"y":-0.28,"skX":-88.82,"skY":-88.82}}]},{"name":"闭眼","display":[{"name":"狮子素材/闭眼","transform":{"x":9.66,"y":0.5,"skX":-0.9,"skY":-0.9}},{"name":"狮子素材/睁眼","transform":{"x":9.66,"y":0.5,"skX":-0.9,"skY":-0.9}}]},{"name":"形状_676","display":[{"name":"狮子素材/形状_676","transform":{"x":10.83,"y":-0.94,"skX":141.37,"skY":141.37}}]},{"name":"图层_1","display":[{"name":"狮子素材/图层_1","transform":{"x":9.94,"y":-1.63,"skX":-38.44,"skY":-38.44}}]},{"name":"形状_644_拷贝","display":[{"name":"狮子素材/形状_644_拷贝","transform":{"x":3.75,"y":-0.23,"skX":144.35,"skY":144.35}}]},{"name":"形状_644","display":[{"name":"狮子素材/形状_644","transform":{"x":3.73,"y":0.14,"skX":40.62,"skY":40.62}}]},{"name":"形状_627","display":[{"name":"狮子素材/形状_627","transform":{"x":22.24,"y":1.71,"skX":91.44,"skY":91.44}}]},{"name":"椭圆_725","display":[{"name":"狮子素材/椭圆_725","transform":{"x":16.15,"y":3.62,"skX":89.19,"skY":89.19}}]},{"name":"椭圆_635","display":[{"name":"狮子素材/椭圆_635","transform":{"x":0.85,"y":-0.47,"skX":180,"skY":180}}]},{"name":"形状_631","display":[{"name":"狮子素材/形状_631","transform":{"x":8.25,"y":-2.08}}]},{"name":"形状_686_拷贝","display":[{"name":"狮子素材/形状_686_拷贝","transform":{"x":11.19,"y":-4.96,"skX":146.1,"skY":146.1}}]},{"name":"形状_674","display":[{"name":"狮子素材/形状_674","transform":{"x":14.32,"y":-1.63,"skX":-165.43,"skY":-165.43}}]},{"name":"形状_726","display":[{"name":"狮子素材/形状_726","transform":{"x":8.87,"y":0.31,"skX":-122.67,"skY":-122.67}}]},{"name":"形状_687_拷贝_5","display":[{"type":"mesh","name":"狮子素材/形状_687_拷贝_5","width":43,"height":28,"vertices":[6,-9.07,6,-2.7,-2.33,0.05,-10.65,1.5,-16.68,1.5,-22.18,-0.05,-28.1,-7.65,-34.2,-17.48,-37,-24.3,-37,-26.5,-34.65,-26.5,-32.7,-25.73,-27.75,-17.75,-22.63,-9.53,-19.15,-5,-16.78,-3.15,-11.73,-2.7,-3.93,-5.45],"uvs":[1,0.62232,1,0.85,0.8064,0.94821,0.61279,1,0.47267,1,0.34477,0.94464,0.20698,0.67321,0.06512,0.32232,0,0.07857,0,0,0.05465,0,0.1,0.02768,0.21512,0.3125,0.3343,0.60625,0.41512,0.76786,0.47035,0.83393,0.58779,0.85,0.76919,0.75179],"triangles":[17,2,1,17,1,0,16,3,17,17,3,2,16,4,3,15,4,16,14,5,15,15,5,4,6,5,14,13,6,14,12,6,13,11,7,12,12,7,6,8,7,11,10,8,11,9,8,10],"weights":[1,9,1,1,9,1,1,9,1,1,9,1,2,9,0.473082,16,0.526918,1,16,1,1,16,1,1,16,1,1,16,1,1,16,1,1,16,1,1,16,1,1,16,1,2,9,0.00215,16,0.99785,2,9,0.003917,16,0.996083,2,9,0.10567,16,0.89433,1,9,1,1,9,1],"slotPose":[1,0,0,1,0,0],"bonePose":[9,-0.970143,0.242536,-0.242536,-0.970143,3.3,-5.1,16,-0.632425,-0.774622,0.774622,-0.632425,-15.825,-0.35],"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,0],"userEdges":[]}]}]}],"animation":[{"duration":192,"playTimes":0,"name":"normal","bone":[{"name":"bone","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-16.81,"y":-14.76},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":18.82,"y":-14.76},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"y":-16.89},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"y":-16.89},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"y":-1.96},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"y":-1.96},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-16.81,"y":-14.76},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":18.82,"y":-14.76},{"duration":0}]},{"name":"形状_627","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":5.35},{"duration":24,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-8.61},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-8.61},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":2.91},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":2.91},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":5.35},{"duration":24}]},{"name":"图层_1","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-17.01},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-17.26},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-21.13},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-21.13},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":7.17},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":7.17},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-17.01},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-17.26},{"duration":0}]},{"name":"形状_686_拷贝","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-19.47},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-32.42},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-26.72},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-26.72},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-13.07},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-13.07},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-19.47},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-32.42},{"duration":0}]},{"name":"形状_726_拷贝","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-13.43},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":12.18},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-16.2},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-16.2},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-10.3},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-10.3},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-13.43},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":12.18},{"duration":0}]},{"name":"形状_726","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":0.02,"y":1.19},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-1.18,"y":1.41},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":0.03,"y":2.05},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":0.03,"y":2.05},{"duration":48,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":0.02,"y":1.19},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-1.18,"y":1.41},{"duration":0}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-16.66},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-12.43},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-26.65},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-26.65},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-7.9},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-7.9},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-16.66},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-12.43},{"duration":0}]},{"name":"形状_687_拷贝_5","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":7.5},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":11.26},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":15.58},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":15.58},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":4.91},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":4.91},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":7.5},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":11.26},{"duration":0}]},{"name":"形状_644","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-13.27},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-29.92},{"duration":6,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":25.59},{"duration":6,"tweenEasing":0,"rotate":-9.48},{"duration":6,"tweenEasing":0,"rotate":25.59},{"duration":6,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":25.59},{"duration":6,"tweenEasing":0,"rotate":-9.48},{"duration":6,"tweenEasing":0,"rotate":25.59},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-5.48},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-5.48},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-13.27},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-29.92},{"duration":0}]},{"name":"形状_644_拷贝","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":11.95},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":15.35},{"duration":6,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-15.33},{"duration":6,"tweenEasing":0,"rotate":9.15},{"duration":6,"tweenEasing":0,"rotate":-15.33},{"duration":6,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-15.33},{"duration":6,"tweenEasing":0,"rotate":9.15},{"duration":6,"tweenEasing":0,"rotate":-15.33},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":2.85},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":2.85},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":11.95},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":15.35},{"duration":0}]},{"name":"形状_674","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-2.03,"y":0.74},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-1.5,"y":1.71},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-0.61,"y":1.95},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-0.61,"y":1.95},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-0.84,"y":1.08},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-0.84,"y":1.08},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-2.03,"y":0.74},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-1.5,"y":1.71},{"duration":0}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-35.88},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-53.03},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-57.15},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-57.15},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-15.79},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-15.79},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-35.88},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-53.03},{"duration":0}]},{"name":"形状_676","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":0.26,"y":1.53},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-0.68,"y":0.46},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":0.1,"y":0.9},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":0.1,"y":0.9},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-0.19,"y":0.09},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-0.19,"y":0.09},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":0.26,"y":1.53},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-0.68,"y":0.46},{"duration":0}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-82.58},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-48.51},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-53.52},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-53.52},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-20.97},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-20.97},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-82.58},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-48.51},{"duration":0}]}],"slot":[{"name":"闭眼","displayFrame":[{"duration":50,"value":1},{"duration":2},{"duration":22,"value":1},{"duration":2},{"duration":116,"value":1}]}]},{"duration":72,"playTimes":0,"name":"play","bone":[{"name":"椭圆_725","translateFrame":[{"duration":24,"tweenEasing":0},{"duration":12,"tweenEasing":0,"y":-7.56},{"duration":12,"tweenEasing":0,"x":-0.57,"y":-7.56},{"duration":24,"y":-7.56}],"rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":4.31},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-12.05},{"duration":0}]},{"name":"形状_627","translateFrame":[{"duration":24,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-1.06,"y":0.02},{"duration":24}],"rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":7.95},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-11.29},{"duration":0}],"scaleFrame":[{"duration":24,"tweenEasing":0,"x":0.9,"y":0.9},{"duration":48}]},{"name":"图层_1","translateFrame":[{"duration":24,"tweenEasing":0},{"duration":48,"x":-0.02,"y":-1.23}],"rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":10.78},{"duration":12,"tweenEasing":0,"rotate":0.66},{"duration":12,"tweenEasing":0,"rotate":10.78},{"duration":12,"tweenEasing":0,"rotate":2.82},{"duration":0,"rotate":10.78}]},{"name":"形状_686_拷贝","translateFrame":[{"duration":48,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":0.04,"y":2.7},{"duration":0}],"rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-18.26},{"duration":12,"tweenEasing":0,"rotate":7.57},{"duration":12,"tweenEasing":0,"rotate":-18.26},{"duration":12,"tweenEasing":0,"rotate":-40.86},{"duration":0,"rotate":-18.26}]},{"name":"形状_726_拷贝","translateFrame":[{"duration":24,"tweenEasing":0,"x":5.63,"y":-0.08},{"duration":48,"x":-1.73,"y":0.02}],"rotateFrame":[{"duration":24,"tweenEasing":0,"rotate":-4.96},{"duration":12,"tweenEasing":0,"rotate":-4.96},{"duration":12,"tweenEasing":0,"rotate":-9.01},{"duration":12,"tweenEasing":0,"rotate":-4.96},{"duration":12,"tweenEasing":0,"rotate":-34.78},{"duration":0,"rotate":-4.96}]},{"name":"形状_726","translateFrame":[{"duration":24,"tweenEasing":0,"x":1.76,"y":5.2},{"duration":12,"tweenEasing":0,"x":-5.6,"y":5.3},{"duration":12,"tweenEasing":0,"x":-2.89,"y":5.26},{"duration":24,"x":-5.6,"y":5.3}],"rotateFrame":[{"duration":24,"tweenEasing":0,"rotate":-28.42},{"duration":12,"tweenEasing":0,"rotate":-28.42},{"duration":12,"tweenEasing":0,"rotate":7.5},{"duration":12,"tweenEasing":0,"rotate":-28.42},{"duration":12,"tweenEasing":0,"rotate":-16.78},{"duration":0,"rotate":-28.42}]},{"name":"形状_687_拷贝_5","rotateFrame":[{"duration":24,"tweenEasing":0,"rotate":5.72},{"duration":12,"tweenEasing":0,"rotate":5.72},{"duration":12,"tweenEasing":0,"rotate":13.99},{"duration":12,"tweenEasing":0,"rotate":5.72},{"duration":12,"tweenEasing":0,"rotate":17.14},{"duration":0,"rotate":5.72}],"scaleFrame":[{"duration":24,"tweenEasing":0,"x":0.7,"y":0.7},{"duration":48}]},{"name":"形状_644","translateFrame":[{"duration":24,"tweenEasing":0,"x":-2.92,"y":-1.76},{"duration":12,"tweenEasing":0,"x":-1.53,"y":-0.29},{"duration":12,"tweenEasing":0,"x":-2.89,"y":-0.14},{"duration":24,"x":-1.53,"y":-0.29}],"rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-29.1},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-17.8},{"duration":0}]},{"name":"形状_644_拷贝","translateFrame":[{"duration":24,"tweenEasing":0,"x":-2.85,"y":2.99},{"duration":12,"tweenEasing":0,"x":-0.8,"y":2.64},{"duration":12,"tweenEasing":0,"x":-1.7,"y":2.74},{"duration":24,"x":-0.8,"y":2.64}],"rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":20.69},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":11.72},{"duration":0}]},{"name":"形状_674","translateFrame":[{"duration":48,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":-1.05,"y":-0.09},{"duration":0}],"rotateFrame":[{"duration":48,"tweenEasing":0,"rotate":11.9},{"duration":12,"tweenEasing":0,"rotate":11.9},{"duration":12,"tweenEasing":0,"rotate":-10.92},{"duration":0,"rotate":11.9}]},{"name":"椭圆_635","scaleFrame":[{"duration":24,"tweenEasing":0,"y":0.2},{"duration":48}]},{"name":"形状_676","rotateFrame":[{"duration":24,"tweenEasing":0,"rotate":-14.96},{"duration":12,"tweenEasing":0,"rotate":-14.96},{"duration":12,"tweenEasing":0,"rotate":-39.11},{"duration":24,"rotate":-14.96}]},{"name":"形状_687_拷贝_51","rotateFrame":[{"duration":24,"tweenEasing":0,"rotate":-17.62},{"duration":48,"rotate":-41.12}]}]}],"defaultActions":[{"gotoAndPlay":"normal"}],"canvas":{"width":188,"height":171}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "e3d39ead-9ae5-45df-a908-d9fee96d1c97",
"subMetas": {}
}
\ No newline at end of file
{"width":128,"imagePath":"狮子_tex.png","height":256,"name":"狮子","SubTexture":[{"width":28,"y":91,"height":28,"name":"狮子素材/形状_676","x":1},{"width":35,"y":107,"height":15,"name":"狮子素材/形状_674","x":77},{"width":12,"y":79,"height":23,"name":"狮子素材/形状_726_拷贝","x":103},{"width":16,"y":111,"height":28,"name":"狮子素材/形状_726","x":31},{"width":24,"y":79,"height":26,"name":"狮子素材/图层_1","x":77},{"width":29,"y":79,"height":30,"name":"狮子素材/形状_686_拷贝","x":46},{"width":48,"y":1,"height":50,"name":"狮子素材/椭圆_725","x":76},{"width":73,"y":1,"height":58,"name":"狮子素材/形状_627","x":1},{"width":10,"y":68,"height":9,"name":"狮子素材/形状_644","x":46},{"width":11,"y":91,"height":9,"name":"狮子素材/形状_644_拷贝","x":31},{"width":10,"y":102,"height":7,"name":"狮子素材/椭圆_635","x":31},{"width":43,"y":61,"height":28,"name":"狮子素材/形状_687_拷贝_5","x":1},{"width":50,"y":53,"height":24,"name":"狮子素材/形状_631","x":76},{"width":24,"y":61,"height":5,"name":"狮子素材/睁眼","x":46},{"width":24,"y":121,"height":2,"name":"狮子素材/闭眼","x":1}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "8b7f8e75-240d-4acb-9738-aa9bcc9e582e",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "31e3a09b-75b0-4ed4-9962-6d74c5823986",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 128,
"height": 256,
"platformSettings": {},
"subMetas": {
"狮子_tex": {
"ver": "1.0.4",
"uuid": "699fb9ac-13b4-40dd-a557-77fc0f4686c4",
"rawTextureUuid": "31e3a09b-75b0-4ed4-9962-6d74c5823986",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 58,
"trimX": 1,
"trimY": 1,
"width": 125,
"height": 138,
"rawWidth": 128,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
...@@ -75,22 +75,34 @@ ...@@ -75,22 +75,34 @@
"__id__": 5 "__id__": 5
}, },
{ {
"__id__": 7 "__id__": 8
},
{
"__id__": 11
}, },
{ {
"__id__": 14 "__id__": 14
},
{
"__id__": 17
},
{
"__id__": 20
},
{
"__id__": 30
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 24 "__id__": 35
}, },
{ {
"__id__": 25 "__id__": 36
}, },
{ {
"__id__": 26 "__id__": 37
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -166,8 +178,8 @@ ...@@ -166,8 +178,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1280, "width": 0,
"height": 720 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -180,7 +192,7 @@ ...@@ -180,7 +192,7 @@
"array": [ "array": [
0, 0,
0, 0,
362.85545494732423, 412.2280922013928,
0, 0,
0, 0,
0, 0,
...@@ -201,7 +213,7 @@ ...@@ -201,7 +213,7 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "e1WoFrQ79G7r4ZuQE3HlNb" "_id": "55OBd4kNVC9ZNPXj2q6BO8"
}, },
{ {
"__type__": "cc.Camera", "__type__": "cc.Camera",
...@@ -237,20 +249,82 @@ ...@@ -237,20 +249,82 @@
}, },
"_renderStages": 1, "_renderStages": 1,
"_alignWithScreen": true, "_alignWithScreen": true,
"_id": "81GN3uXINKVLeW4+iKSlim" "_id": "bakjwEY3xNz6uBY4nto/Gf"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "bg", "_name": "background",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [
{
"__id__": 6
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_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": "feyMRDeGBEsI2oUu9P8Djw"
},
{
"__type__": "cc.Node",
"_name": "background",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 6 "__id__": 7
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -299,14 +373,14 @@ ...@@ -299,14 +373,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "32MJMZ2HRGF4BOf533Avyi" "_id": "66MncjDrVKVaONzU28Iye3"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 5 "__id__": 6
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -317,7 +391,7 @@ ...@@ -317,7 +391,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "8288e3d4-4c75-4b27-8f01-f7014417f4dd" "__uuid__": "4ada9e6e-a172-451e-b68c-d86fa6cf018e"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -331,21 +405,18 @@ ...@@ -331,21 +405,18 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "97/S6HDq9MeqgmV1Zwnhbb" "_id": "57JlrMYVRMcbYg/DJ40Ck4"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "bottomPart", "_name": "lion",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [ "_children": [
{ {
"__id__": 8 "__id__": 9
},
{
"__id__": 11
} }
], ],
"_active": true, "_active": true,
...@@ -361,8 +432,8 @@ ...@@ -361,8 +432,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 185,
"height": 0 "height": 250
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -373,15 +444,15 @@ ...@@ -373,15 +444,15 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
635.132, 482.232,
-356.326, -174.139,
0, 0,
0, 0,
0, 0,
0, 0,
1, 1,
1, 2,
1, 2,
1 1
] ]
}, },
...@@ -396,21 +467,18 @@ ...@@ -396,21 +467,18 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "8c7k8ep/ZFNpO263+1QHz9" "_id": "a4zkSwDZhA0rpZkFm17Xu/"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn_left", "_name": "DB",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 7 "__id__": 8
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 9
},
{ {
"__id__": 10 "__id__": 10
} }
...@@ -426,8 +494,8 @@ ...@@ -426,8 +494,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 61, "width": 88,
"height": 67 "height": 124
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -438,8 +506,8 @@ ...@@ -438,8 +506,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-148.464, 0,
34, 0,
0, 0,
0, 0,
0, 0,
...@@ -461,14 +529,14 @@ ...@@ -461,14 +529,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "5ad2wLQLxIN5Eg7OHecSH6" "_id": "dfQ2KA3otMMrcg2K/F/nPQ"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "dragonBones.ArmatureDisplay",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 8 "__id__": 9
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -476,106 +544,105 @@ ...@@ -476,106 +544,105 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
} }
], ],
"_srcBlendFactor": 770, "_armatureName": "Armature",
"_dstBlendFactor": 771, "_animationName": "",
"_spriteFrame": { "_preCacheMode": 0,
"__uuid__": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5" "_cacheMode": 0,
}, "playTimes": -1,
"_type": 0, "premultipliedAlpha": false,
"_sizeMode": 1, "_armatureKey": "e3d39ead-9ae5-45df-a908-d9fee96d1c97#8b7f8e75-240d-4acb-9738-aa9bcc9e582e",
"_fillType": 0, "_accTime": 0,
"_fillCenter": { "_playCount": 0,
"__type__": "cc.Vec2", "_frameCache": null,
"x": 0, "_curFrame": null,
"y": 0 "_playing": false,
}, "_armatureCache": null,
"_fillStart": 0, "_N$dragonAsset": {
"_fillRange": 0, "__uuid__": "e3d39ead-9ae5-45df-a908-d9fee96d1c97"
"_isTrimmedMode": true, },
"_atlas": null, "_N$dragonAtlasAsset": {
"_id": "84mqOgJ3JNqZrYVTEU8CjE" "__uuid__": "8b7f8e75-240d-4acb-9738-aa9bcc9e582e"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "d6RTur8sxIiIEt1xWB4Q0S"
}, },
{ {
"__type__": "cc.Button", "__type__": "cc.Node",
"_name": "", "_name": "speaker",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 8 "__id__": 2
}, },
"_enabled": true, "_children": [
"_normalMaterial": null, {
"_grayMaterial": null, "__id__": 12
"duration": 0.1, }
"zoomScale": 1.2, ],
"clickEvents": [], "_active": true,
"_N$interactable": true, "_components": [],
"_N$enableAutoGrayEffect": false, "_prefab": null,
"_N$transition": 0, "_opacity": 255,
"transition": 0, "_color": {
"_N$normalColor": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
"g": 255, "g": 255,
"b": 255, "b": 255,
"a": 255 "a": 255
}, },
"_N$pressedColor": { "_contentSize": {
"__type__": "cc.Color", "__type__": "cc.Size",
"r": 211, "width": 95,
"g": 211, "height": 101
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
}, },
"_N$hoverColor": { "_anchorPoint": {
"__type__": "cc.Color", "__type__": "cc.Vec2",
"r": 255, "x": 0.5,
"g": 255, "y": 0.5
"b": 255,
"a": 255
}, },
"hoverColor": { "_trs": {
"__type__": "cc.Color", "__type__": "TypedArray",
"r": 255, "ctor": "Float64Array",
"g": 255, "array": [
"b": 255, -544.314,
"a": 255 -262.9,
0,
0,
0,
0,
1,
1,
1,
1
]
}, },
"_N$disabledColor": { "_eulerAngles": {
"__type__": "cc.Color", "__type__": "cc.Vec3",
"r": 124, "x": 0,
"g": 124, "y": 0,
"b": 124, "z": 0
"a": 255
}, },
"_N$normalSprite": null, "_skewX": 0,
"_N$pressedSprite": null, "_skewY": 0,
"pressedSprite": null, "_is3DNode": false,
"_N$hoverSprite": null, "_groupIndex": 0,
"hoverSprite": null, "groupIndex": 0,
"_N$disabledSprite": null, "_id": "fdpwKL+4RHXqeqoKpNvnSO"
"_N$target": null,
"_id": "bcYN/4EKBJhbIAfovo9Ah1"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn_right", "_name": "speaker_1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 7 "__id__": 11
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 12
},
{ {
"__id__": 13 "__id__": 13
} }
...@@ -591,8 +658,8 @@ ...@@ -591,8 +658,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 60, "width": 95,
"height": 66 "height": 101
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -603,8 +670,8 @@ ...@@ -603,8 +670,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-47.164, 0,
34, 0,
0, 0,
0, 0,
0, 0,
...@@ -626,14 +693,14 @@ ...@@ -626,14 +693,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "46i3stdzpHX6zQHTGnRsNE" "_id": "27jdUeSaxEYKgtd09CyQGQ"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 12
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -644,7 +711,7 @@ ...@@ -644,7 +711,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "e5a2dbaa-a677-4a32-90d7-a1b057d7fb59" "__uuid__": "570d2e53-3fbf-4959-9333-0d2a16b136db"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -658,79 +725,11 @@ ...@@ -658,79 +725,11 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "42Sh8QS/BHn4WiGyPQPKPt" "_id": "51bEV4gBJCSKFOzH4S+tEC"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "1aj32fYY1IxLesa77E70Qu"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "res", "_name": "btn_restart",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
...@@ -738,12 +737,6 @@ ...@@ -738,12 +737,6 @@
"_children": [ "_children": [
{ {
"__id__": 15 "__id__": 15
},
{
"__id__": 18
},
{
"__id__": 21
} }
], ],
"_active": false, "_active": false,
...@@ -759,8 +752,8 @@ ...@@ -759,8 +752,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 366,
"height": 0 "height": 256
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -772,7 +765,7 @@ ...@@ -772,7 +765,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, 46.761,
0, 0,
0, 0,
0, 0,
...@@ -794,22 +787,22 @@ ...@@ -794,22 +787,22 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "0aAzbH6R1E+6AmGRrkKa5O" "_id": "a2fz/1YOBJTZ1OkZFqez6/"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "font", "_name": "btn_start",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 14
}, },
"_children": [ "_children": [],
"_active": true,
"_components": [
{ {
"__id__": 16 "__id__": 16
} }
], ],
"_active": true,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -821,8 +814,8 @@ ...@@ -821,8 +814,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 366,
"height": 0 "height": 256
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -856,23 +849,341 @@ ...@@ -856,23 +849,341 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "9bLfcYeeNKrr524vzWchiM" "_id": "79ijcN3CJHyJNwMMxbhJms"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Sprite",
"_name": "BRLNSDB", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "node": {
"__id__": 15 "__id__": 15
}, },
"_children": [], "_enabled": true,
"_active": true, "_materials": [
"_components": [
{ {
"__id__": 17 "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
} }
], ],
"_prefab": null, "_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "0ddfe260-a85c-425a-9cca-5e6e5c516d31"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "7bL+rdwa9DbYCZEydqi0T+"
},
{
"__type__": "cc.Node",
"_name": "btn_back",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 18
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 73,
"height": 77
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-579.157,
306.802,
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": "5cAnBTFXhPU7oIB44aVStp"
},
{
"__type__": "cc.Node",
"_name": "btn_back",
"_objFlags": 0,
"_parent": {
"__id__": 17
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 19
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 73,
"height": 77
},
"_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": "d7XCBOEh9L4Y4YJkiLgTb6"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "eb12dc27-5940-4032-990f-25286dd0a8e0"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "07xz/l54xOPJlrregfnv2w"
},
{
"__type__": "cc.Node",
"_name": "res",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 21
},
{
"__id__": 24
},
{
"__id__": 27
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_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": "0aAzbH6R1E+6AmGRrkKa5O"
},
{
"__type__": "cc.Node",
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 20
},
"_children": [
{
"__id__": 22
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_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": "9bLfcYeeNKrr524vzWchiM"
},
{
"__type__": "cc.Node",
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 21
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
}
],
"_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -925,7 +1236,7 @@ ...@@ -925,7 +1236,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 16 "__id__": 22
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
...@@ -957,11 +1268,11 @@ ...@@ -957,11 +1268,11 @@
"_name": "img", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 20
}, },
"_children": [ "_children": [
{ {
"__id__": 19 "__id__": 25
} }
], ],
"_active": true, "_active": true,
...@@ -1019,13 +1330,13 @@ ...@@ -1019,13 +1330,13 @@
"_name": "icon", "_name": "icon",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 18 "__id__": 24
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 20 "__id__": 26
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1081,7 +1392,7 @@ ...@@ -1081,7 +1392,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 19 "__id__": 25
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
...@@ -1109,11 +1420,11 @@ ...@@ -1109,11 +1420,11 @@
"_name": "audio", "_name": "audio",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 20
}, },
"_children": [ "_children": [
{ {
"__id__": 22 "__id__": 28
} }
], ],
"_active": true, "_active": true,
...@@ -1171,13 +1482,13 @@ ...@@ -1171,13 +1482,13 @@
"_name": "btn", "_name": "btn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 21 "__id__": 27
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 23 "__id__": 29
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1233,7 +1544,7 @@ ...@@ -1233,7 +1544,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 22 "__id__": 28
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1246,6 +1557,259 @@ ...@@ -1246,6 +1557,259 @@
"preload": false, "preload": false,
"_id": "0adN50f61DlbmppsPkOnjX" "_id": "0adN50f61DlbmppsPkOnjX"
}, },
{
"__type__": "cc.Node",
"_name": "bubble_group",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 31
},
{
"__id__": 33
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_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": "46xoK5kedLqrzwmjoCmiDn"
},
{
"__type__": "cc.Node",
"_name": "bubble_1",
"_objFlags": 0,
"_parent": {
"__id__": 30
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 32
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 189,
"height": 186
},
"_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": "desslHQPdJlo29poPy5pSe"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "09ab21ca-576e-4e62-8b62-b936e450892a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "1d5UrkEstOMIbhPP+Hm98d"
},
{
"__type__": "cc.Node",
"_name": "bubble_2",
"_objFlags": 0,
"_parent": {
"__id__": 30
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 34
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 189,
"height": 186
},
"_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": "8d0mlm3xVOGIGMK7yel5SO"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "09ab21ca-576e-4e62-8b62-b936e450892a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "bfzZF8IN9LeZitxOzS0dnn"
},
{ {
"__type__": "cc.Canvas", "__type__": "cc.Canvas",
"_name": "", "_name": "",
......
import { getDistance } from "./util";
export default class Cartoon {
elements = {
}
touchEventCallback = {
}
dragEventCallback = {
}
audioCallback = {
}
constructor() {
}
audios = {}
audioIDs = {}
_curDragItem = null;
initCartoonElement(key, node) {
if(!node) {
console.error("Can not find node for key:[" + key + "]")
}
this.elements[key] = {};
this.elements[key].key = key;
this.elements[key].node = node;
this.elements[key].node.key = key;
this.elements[key].initX = node.x;
this.elements[key].initY = node.y;
this.elements[key].initScaleX = node.scaleX;
this.elements[key].initScaleY = node.scaleY;
this.elements[key].dragonBones = new DragonBones(node);
this.elements[key]["setLocation"] = (x, y) => {
if(x) {
this.elements[key].initX = x
this.elements[key].node.x = x
}
if(y) {
this.elements[key].initY = y
this.elements[key].node.y = y
}
}
return this.elements[key]
}
getCartoonElement(key) {
let node = this.elements[key]
if(!node) {
console.error("Can't find '" + key + "' node.")
}
return node
}
setCartoonElement(key, node) {
this.elements[key] = node;
this.elements[key].node.key = key;
}
getSpritNode(nodeName, nameSpace = "") {
let node = cc.find(`${nameSpace}${nodeName}`)
return node?node:null
}
getNodeByName(nodeName, parentNodeName) {
let node = null
if(parentNodeName) {
node = this.getSpritNode(parentNodeName).getChildByName(nodeName)
} else {
node = this.getSpritNode(nodeName)
}
return node?node:null
}
getNodeByPath(path) {
let node = cc.find(path)
if(!node) {
console.warn("Can not fount node.(PATH:" + path + ")")
}
return node?node:null
}
getColor(hex) {
let color = new cc.color()
color.fromHEX(hex);
return color
}
getFontFamily(fontName) {
let font = cc.find(`Canvas/res/font/${fontName}`).getComponent('cc.Label').font;
return font
}
newLabelNode(text, fontFamily, fontSize, color) {
const labelNode = new cc.Node();
labelNode.color = this.getColor(color);
const label = labelNode.addComponent(cc.Label);
label.string = text;
label.fontSize = fontSize;
label.lineHeight = fontSize;
label.font = this.getFontFamily(fontFamily);
return labelNode
}
creatSpritNode(name, spriteFrame, parentNode) {
if(!name) {
name = new Date().toString();
}
var node = new cc.Node(name + "");
var sp = node.addComponent(cc.Sprite);
sp.spriteFrame = spriteFrame;
node.parent = parentNode
return node
}
createFrameAni(imagePath, len) {
let frameAni = new cc.Sprite(imagePath.replace(/_NUM_/g, 1));
frameAni.setPosition(cc.p(cc.winSize.width*0.3, cc.winSize.height/2));
this.addChild(frameAni);
//创建帧动画序列,名词形式
var animation = new cc.Animation();
for (var i = 1; i <= len; i++) {
animation.addSpriteFrameWithFile(imagePath.replace(/_NUM_/g, i));
}
//设置帧动画属性
animation.setDelayPerUnit(2.0 / 4); //每一帧停留的时间
animation.setRestoreOriginalFrame(true); //播放完后回到第一帧
var animate = new cc.Animate(animation);
frameAni.run = () => {
frameAni.runAction(new cc.RepeatForever(animate));
}
}
cloneNode(targetNode) {
var node = cc.instantiate(targetNode);
return node
}
subscribeTouchEvent(key, callBack) {
if(!this.touchEventCallback[key]) {
this.touchEventCallback[key] = callBack
this.elements[key].node.off(cc.Node.EventType.TOUCH_START)
this.elements[key].node.on(cc.Node.EventType.TOUCH_START, ()=>{
if(this.touchEventCallback[key]) {
this.touchEventCallback[key]()
}
})
} else {
this.touchEventCallback[key] = callBack
}
}
subscribeDragEvent(key, triggerCallback, moveCallback, releaseCallback) {
this.dragEventCallback[key] = {}
this.dragEventCallback[key].triggerCallback = triggerCallback;
this.dragEventCallback[key].moveCallback = moveCallback;
this.dragEventCallback[key].releaseCallback = releaseCallback;
this.elements[key].node.off(cc.Node.EventType.TOUCH_START)
this.elements[key].node.on(cc.Node.EventType.TOUCH_START, ()=>{
if(this.dragEventCallback[key].triggerCallback && !this.dragEventCallback[key].triggerCallback()) {
this._curDragItem = this.elements[key].node;
}
})
}
initDragEvent() {
const canvas = cc.find('Canvas');
canvas.width = cc.winSize.width;
canvas.height = cc.winSize.height;
if (canvas.hasEventListener(cc.Node.EventType.TOUCH_MOVE)) {
return;
}
canvas.on(cc.Node.EventType.TOUCH_MOVE, (e) => {
this.canvasTouchMove(e)
},)
canvas.on(cc.Node.EventType.TOUCH_CANCEL, (e) => {
this.canvasTouchEnd(e);
})
canvas.on(cc.Node.EventType.TOUCH_END, (e) => {
this.canvasTouchEnd(e);
})
}
canvasTouchMove(e) {
if (!this._curDragItem) {
return;
}
if(this.dragEventCallback[this._curDragItem.key].moveCallback && !this.dragEventCallback[this._curDragItem.key].moveCallback(e)) {
const pos = e.getLocation();
const worldPos = e.currentTarget.parent.convertToWorldSpaceAR(cc.v2(pos.x, pos.y));
const localPos = this._curDragItem.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y));
this._curDragItem.x = localPos.x;
this._curDragItem.y = localPos.y;
}
}
canvasTouchEnd(e) {
if (!this._curDragItem) {
return;
}
if(this.dragEventCallback[this._curDragItem.key].releaseCallback) {
this.dragEventCallback[this._curDragItem.key].releaseCallback(e, this.checkOnTargetBox(e))
}
this._curDragItem = null;
}
checkOnTargetBox(e) {
const checkLen = 50 // * this._cocosScale;
let minLen = checkLen, curBox;
let targetNodes = []
for(var key in this.elements) {
const worldStartPos = this._curDragItem.parent.convertToWorldSpaceAR(this._curDragItem);
const tmpP = cc.v2(this.elements[key].node.x, this.elements[key].node.y)
const worldEndPos = this.elements[key].node.parent.convertToWorldSpaceAR(tmpP);
const tmpLen = getDistance(worldStartPos, worldEndPos)
if(
worldStartPos.x <= (worldEndPos.x + this.elements[key].node.width / 2) &&
worldStartPos.x >= (worldEndPos.x - this.elements[key].node.width / 2) &&
worldStartPos.y <= (worldEndPos.y + this.elements[key].node.height / 2) &&
worldStartPos.y >= (worldEndPos.y - this.elements[key].node.height / 2)
){
curBox = key;
minLen = tmpLen;
targetNodes.push({
key: key,
minLen: tmpLen
})
}
}
targetNodes = targetNodes.sort((a, b)=>{
return a.minLen - b.minLen
})
return targetNodes
}
initLocalAudios(audioNames = []) {
const audioNode = cc.find('Canvas/res/audio');
const getAudioByResName = (resName) => {
return audioNode.getChildByName(resName).getComponent(cc.AudioSource);
}
audioNames.forEach(audioName=>{
this.audios[audioName] = getAudioByResName(audioName);
})
}
playLocalAudio(audioName, cb) {
let audio = cc.audioEngine.play(this.audios[audioName].clip, false, 0.2)
if (cb) {
this.audioCallback[audio_url] = cb
cc.audioEngine.setFinishCallback(audio, () => {
delete this.audioCallback[audio_url]
cb();
});
}
}
// 挂载精灵帧到节点
mountRemoteImageToNode(url, node, width, height, fillType) {
// console.log(`Get remote image from [${url}]`)
return new Promise((resovle, reject) => {
this.getSpriteFrimeByUrl(url).then((fr)=>{
let sx = width / fr.getRect().width;
let sy = height / fr.getRect().height;
let s = 1;
if(fillType) {
s = Math.max(sx, sy)
} else {
s = Math.min(sx, sy)
}
node.setScale(s)
// fr.width = s * fr.getRect().width;
// fr.height = s * fr.getRect().height;
node.getComponent(cc.Sprite).spriteFrame = fr;
resovle()
})
})
}
mountLocalImageToNode(name, node, width, height, fillType) {
// console.log(`Get local image from [Canvas/res/img/${name}]`)
if(name) {
const sf = cc.find('Canvas/res/img/' + name).getComponent(cc.Sprite).spriteFrame;
let sx = width / sf.getRect().width;
let sy = height / sf.getRect().height;
let s = 1;
if(fillType) {
s = Math.max(sx, sy)
} else {
s = Math.min(sx, sy)
}
node.setScale(s)
node.getComponent(cc.Sprite).spriteFrame = sf;
}
return node;
}
mountImageToNode(url, node, width, height, fillType) {
var urlreg=/^(?=^.{3,255}$)(http(s)?:\/\/)?(www\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\d+)*(\/\w+\.\w+)*([\?&]\w+=\w*)*$/
if(urlreg.test(url)) {
return this.mountRemoteImageToNode(url, node, width, height, fillType)
} else {
this.mountLocalImageToNode(url, node, width, height, fillType)
return new Promise((resolve, reject)=>{
resolve()
})
}
}
getSpriteFrimeByUrl(url) {
return new Promise((resolve, reject) => {
if(!url) {
reject()
} else {
cc.assetManager.loadRemote(url, (err, img) => {
if(err) {
reject(err)
} else {
const spriteFrame = new cc.SpriteFrame(img)
resolve(spriteFrame)
}
})
}
})
}
getSpriteFrimeByResName(name) {
const sf = cc.find('Canvas/res/img/' + name).getComponent(cc.Sprite).spriteFrame;
return sf;
}
// Video
getVideo(video_url){
return new Promise((resolve, reject)=>{
cc.assetManager.loadRemote(video_url, (err, videoClip) => {
resolve(videoClip)
});
})
}
stopVideo(videoPlayer) {
if(videoPlayer.clip && videoPlayer.clip.loaded) {
videoPlayer.stop()
}
}
playVideo(videoPlayer, callback) {
if(videoPlayer && videoPlayer.isPlaying) {
videoPlayer.stop()
}
if(videoPlayer) {
setTimeout(()=>{
videoPlayer.play()
videoPlayer.node.off("completed")
videoPlayer.node.on("completed", ()=>{
if(callback) {
callback()
}
})
}, 50)
}
}
// Audio
playAudio(audio_url, cb = null) {
return new Promise((resolve, reject)=>{
if (audio_url) {
var urlreg=/^(?=^.{3,255}$)(http(s)?:\/\/)?(www\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\d+)*(\/\w+\.\w+)*([\?&]\w+=\w*)*$/
if(urlreg.test(audio_url)) {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
if(cb) {
this.audioCallback[audio_url] = cb
}
const audioId = cc.audioEngine.play(audioClip, false, 1);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
delete this.audioCallback[audio_url]
cb();
});
}
this.audioIDs[audio_url] = audioId
resolve(audioId)
});
} else {
const audioNode = cc.find('Canvas/res/audio').getChildByName(audio_url).getComponent(cc.AudioSource);
let audioId = cc.audioEngine.play(audioNode.clip, false, 1)
if (cb) {
this.audioCallback[audio_url] = cb
cc.audioEngine.setFinishCallback(audioId, () => {
delete this.audioCallback[audio_url]
cb();
});
}
this.audioIDs[audio_url] = audioId
resolve(audioId)
}
} else{
return new Promise((resolve, reject)=>{
cb()
resolve()
})
}
})
}
stopAllAudio(exceptUrls = []) {
for(let key in this.audioIDs) {
if(exceptUrls.indexOf(key) == -1) {
if(this.audioCallback[key]) {
this.audioCallback[key]()
}
if(this.audioIDs[key]) {
cc.audioEngine.stop(this.audioIDs[key])
delete this.audioIDs[key];
}
}
}
}
// Tweenchange
tweenChange(item, obj, time = 0.8, callBack = null, easing = null, update = null) {
const tween = cc.tween(item).to(time, obj).call(()=>{
if(callBack) {
callBack()
}
});
easing && tween.easing(easing);
update && tween.onUpdate((a, b) => { update(a, b); });
tween.start();
return tween;
}
// Common Ani
creatSpeaker(parentNode, nodeName1, nodeName2) {
const sprNode = this.cloneNode(this.getNodeByPath(`Canvas/res/img/${nodeName1}`));
sprNode.parent = parentNode;
sprNode.x = 0;
sprNode.y = 0;
sprNode.zIndex = 2;
parentNode.icon = sprNode;
const sprNode2 = this.cloneNode(this.getNodeByPath(`Canvas/res/img/${nodeName2}`));
sprNode2.parent = sprNode.parent;
sprNode2.x = sprNode.x;
sprNode2.y = sprNode.y;
sprNode2.opacity = 0;
sprNode.spr2 = sprNode2;
// sprNode.addComponent(cc.Button)
// sprNode.on('click', () => {
// this.showSoundAnima(sprNode);
// if(clickCB) {
// clickCB(this)
// }
// playAudioByUrl( item.data.audio_url , () => {
// this.stopSoundAnima(sprNode);
// });
// });
return sprNode
}
showSoundAnima(iconNode, time = 0.4) {
iconNode.isRunAnima = true;
iconNode.spr2.opacity = 255;
iconNode.opacity = 0;
cc.tween(iconNode)
.delay(time / 2)
.call(() => {
iconNode.spr2.opacity = 0;
iconNode.opacity = 255;
})
.delay(time / 2)
.call(() => {
if (iconNode.isRunAnima) {
this.showSoundAnima(iconNode);
}
})
.start()
}
stopSoundAnima(iconNode) {
iconNode.isRunAnima = false;
}
}
class DragonBones {
parentNode = null
_animationLoaded = null
constructor(parentNode) {
this.parentNode = parentNode
}
resetDragonBones() {
const picNode = this.parentNode
if (picNode.animaNode) {
picNode.animaNode.removeFromParent();
this._animationLoaded = null
}
}
setDragonBones(dragonBonesConfig, armatureName, callback, onClickCB) {
const parentNode = this.parentNode
if (parentNode.animaNode) {
parentNode.animaNode.removeFromParent();
}
const animaNode = new cc.Node();
animaNode.parent = parentNode;
parentNode.animaNode = animaNode;
const dragonDisplay = animaNode.addComponent(dragonBones.ArmatureDisplay);
this._animationLoaded = dragonDisplay;
// const image = "http://staging-teach.cdn.ireadabc.com/5a0c5af3e952acd0ac83a6e5c6f03ff1.png";
// const ske = "http://staging-teach.cdn.ireadabc.com/bd825dcceea298d1146be8067ae3d17f.json";
// const atlas = "http://staging-teach.cdn.ireadabc.com/246f8991b729fa3e5a7f4802de828efa.json";
const image = dragonBonesConfig.texPngData.url
const ske = dragonBonesConfig.skeJsonData.url
const atlas = dragonBonesConfig.texJsonData.url
cc.loader.load(image, (error, texture) => {
cc.loader.load({url: atlas, type: 'txt'}, (error, atlasJson) => {
cc.loader.load({url: ske, type: 'txt'}, (error, dragonBonesJson) => {
const atlas = new dragonBones.DragonBonesAtlasAsset();
atlas.atlasJson = (atlasJson);
atlas.texture = texture;
const asset = new dragonBones.DragonBonesAsset();
asset.dragonBonesJson = (dragonBonesJson);
dragonDisplay.dragonAtlasAsset = atlas;
dragonDisplay.dragonAsset = asset;
let json = JSON.parse(asset.dragonBonesJson);
let armatures = json["armature"];
let armatureNames = [];
for (let i = 0; i < armatures.length; i++) {
armatureNames.push(armatures[i].name);
}
let armatureNameIndex = armatureNames.indexOf(armatureName)
if(armatureNameIndex == -1) {
armatureNameIndex = 0;
}
if (armatureNames.length > 0) {
let defaultArmatureName = armatureNames[armatureNameIndex];
dragonDisplay.armatureName = defaultArmatureName;
let defaultArmature = armatures[armatureNameIndex];
let animations = defaultArmature.animation;
let animationNames = [];
for (let i = 0; i < animations.length; i++) {
animationNames.push(animations[i].name);
}
dragonDisplay.animaNames = animationNames;
animaNode.addComponent(cc.Button)
animaNode.on('click', ()=>{
if(onClickCB) {
onClickCB(this)
}
})
}
let sx = parentNode.width / animaNode.width;
let sy = parentNode.height / animaNode.height;
animaNode.setScale(Math.min(sx, sy));
if(callback) {
callback(this)
}
});
});
});
}
deleteDragonBones() {
const parentNode = this.parentNode
if (parentNode.animaNode) {
parentNode.animaNode.removeFromParent();
}
}
stopDragonBones() {
if(this._animationLoaded) {
this._animationLoaded.armature().animation.stop();
}
}
showDragonBones(times = 1, animaName, callBack) {
let animaNameIndex = this._animationLoaded.animaNames.indexOf(animaName)
if (this._animationLoaded && this._animationLoaded.animaNames.length > 0) {
if(!animaName || animaNameIndex==-1) {
this._animationLoaded.playAnimation(this._animationLoaded.animaNames[0], times);
} else {
this._animationLoaded.playAnimation(animaName, times);
}
// this._animationLoaded.on(this._animationLoaded.EventObject.COMPLETE, callback)
}
}
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "aca5ddcb-63a5-4237-9c6f-ef3b202fc387",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import Cartoon from "./Cartoon"
import defaultData from "./defaultData"
import { jelly, randomSortByArr } from "./utils"
export default class GameLogic {
g_cartoon = null;
g_formData = null
g_enableClick = true;
g_canvas = null;
g_systemOption = null;
g_useDefaultData = false;
g_curDragonDisplay = null;
g_imageResList = [];
g_audioResList = [];
g_animaResList = [];
g_properties = {};
m_currentQuestion = -1;
m_gameEnd = false;
m_firstEnter = true;
m_options = []
m_avaliableAI = 0;
m_curLeftAnswerPoi = 0;
m_curMiddleAnswerPoi = 0;
m_curRightAnswerPoi = 0;
constructor(formData, systemOption) {
this.g_systemOption = systemOption;
this.g_imageResList = this.g_systemOption.imageResList;
this.g_audioResList = this.g_systemOption.audioResList;
this.g_animaResList = this.g_systemOption.animaResList;
this.g_properties = this.g_systemOption.properties;
this.g_canvas = cc.find('Canvas');
this.g_cartoon = new Cartoon(cc);
// if(!formData.contentObj.options || formData.contentObj.options.length == 0) {
this.g_useDefaultData = true;
this.g_formData = defaultData
console.warn("User default data =>", this.g_formData)
// } else {
// this.g_formData = formData.contentObj;
// console.log("User saved data =>", this.g_formData)
// }
this.disableClick("Sysyem_init")
this.g_cartoon.initLocalAudios([])
// this.initMaskLayer();
this.initNodes();
this.initBg();
this.resetPosition();
this.initBubbles();
this.g_cartoon.initDragEvent()
this.enableClick("Sysyem_init");
this.hideAir();
this.systemTick();
setTimeout(() => {
this.releaseBubbles()
}, 500);
cc.view.setResizeCallback(() => {
this.initBg();
this.resetPosition();
});
}
systemTick() {
let maxNum = this.bubblesAll.length;
let maxX = cc.winSize.width / 2;
let maxY = cc.winSize.height / 2;
setInterval(()=>{
this.bubblesAll.forEach((bubble, index_x)=>{
if(bubble.move.enable && !bubble.move.fix) {
bubble.move.x += bubble.move.vX
bubble.move.y += bubble.move.vY
if(bubble.move.scale<1) {
bubble.move.scale += 0.01;
} else {
bubble.move.scale = 1
}
bubble.node.scaleX = bubble.move.scale;
bubble.node.scaleY = bubble.move.scale;
if (bubble.move.x >= maxX - bubble.move.r * bubble.move.scale) {
bubble.move.x = maxX - bubble.move.r;
bubble.move.vX = -bubble.move.vX;
}
if (bubble.move.x <= -maxX + bubble.move.r * bubble.move.scale) {
bubble.move.x = -maxX + bubble.move.r;
bubble.move.vX = -bubble.move.vX;
}
if (bubble.move.y >= maxY - bubble.move.r * bubble.move.scale) {
bubble.move.y = maxY - bubble.move.r;
bubble.move.vY = -bubble.move.vY;
}
if (bubble.move.y <= -maxY + bubble.move.r * bubble.move.scale) {
bubble.move.y = -maxY + bubble.move.r;
bubble.move.vY = - bubble.move.vY;
}
bubble.node.x = bubble.move.x
bubble.node.y = bubble.move.y
for (var j = 0; j < maxNum; j++) {
if (j !== index_x) {
if (Math.round(Math.pow(this.bubblesAll[index_x].node.x - this.bubblesAll[j].node.x, 2) +
Math.pow(this.bubblesAll[index_x].node.y - this.bubblesAll[j].node.y, 2)) <=
Math.round(Math.pow(this.bubblesAll[index_x].move.r * this.bubblesAll[index_x].move.scale + this.bubblesAll[j].move.r * this.bubblesAll[j].move.scale, 2))) {
var tempX = this.bubblesAll[index_x].move.vX;
var tempY = this.bubblesAll[index_x].move.vY;
if(this.bubblesAll[j].move.fix) {
this.bubblesAll[index_x].move.vX = -this.bubblesAll[index_x].move.vX;
this.bubblesAll[index_x].move.vY = -this.bubblesAll[index_x].move.vY;
} else {
this.bubblesAll[index_x].move.vX = this.bubblesAll[j].move.vX;
this.bubblesAll[j].move.vX = tempX;
this.bubblesAll[index_x].move.vY = this.bubblesAll[j].move.vY;
this.bubblesAll[j].move.vY = tempY;
}
}
}
}
}
})
}, 20)
}
initNodes() {
this.g_cartoon.initCartoonElement("background", this.g_cartoon.getNodeByPath(`Canvas/background/background`));
this.g_cartoon.initCartoonElement("lion", this.g_cartoon.getNodeByPath(`Canvas/lion`));
for(let i=1; i<=7; i++) {
this.g_cartoon.initCartoonElement(`bubble_${i}`, this.g_cartoon.getNodeByPath(`Canvas/bubble_group/bubble_${i}`));
}
}
initBg() {
const bgMain = this.g_cartoon.getCartoonElement("background")
// if(this.g_formData.bg.type == "custome" && this.g_formData.bg.image_url) {
// this.g_cartoon.mountImageToNode(this.g_formData.bg.image_url, bgMain.node, cc.winSize.width, cc.winSize.height, true);
// } else {
bgMain.node.width = cc.winSize.width
bgMain.node.height = cc.winSize.height
// }
}
bubblesAll = []
initBubbles() {
for(let i=1; i<=7; i++) {
const bubble = this.g_cartoon.getCartoonElement(`bubble_${i}`)
bubble.move = {
r: 90, x: 0, y: 0, vX: 1, vY: 1.3, enable: false, fix: false, scale: 0
}
bubble.node.scaleX = 0;
bubble.node.scaleY = 0;
bubble.node.x = 0;
bubble.node.y = -2000;
this.bubblesAll.push(bubble)
}
}
resetPosition() {
let node = this.g_cartoon.getNodeByPath(`Canvas/speaker`)
node.x = -cc.winSize.width / 2 + 100
node.y = -cc.winSize.height / 2 + 100
this.bubblesAll.push({node: node, move: {
r: 50, x: node.x, y: node.y, vX: 0, vY: 0, enable: true, fix: true, scale: 1
}})
node = this.g_cartoon.getNodeByPath(`Canvas/btn_back`)
node.x = -cc.winSize.width / 2 + 60
node.y = cc.winSize.height / 2 - 50
this.bubblesAll.push({node: node, move: {
r: 40, x: node.x, y: node.y, vX: 0, vY: 0, enable: true, fix: true, scale: 1
}})
node = this.g_cartoon.getNodeByPath(`Canvas/btn_restart`)
node.x = 0
node.y = 20
// this.bubblesAll.push({node: node, move: {
// r: 90, x: node.x, y: node.y, vX: 0, vY: 0, enable: true, fix: true, scale: 1
// }})
node = this.g_cartoon.getNodeByPath(`Canvas/lion`)
node.x = cc.winSize.width / 2 - 150
node.y = -cc.winSize.height / 2 + 170
this.bubblesAll.push({node: node, move: {
r: 90, x: node.x, y: node.y, vX: 0, vY: 0, enable: true, fix: true, scale: 1
}})
}
releaseBubbles() {
let startx = cc.winSize.width / 2 - 300
let starty = -cc.winSize.height / 2 + 200
this.bubblesAll.forEach((bubble, index) => {
setTimeout(() => {
if(!bubble.move.fix) {
bubble.node.x = startx
bubble.node.y = starty
bubble.move.x = startx
bubble.move.y = starty
bubble.move.vX = -1 * (Math.ceil(Math.random()*10)/10 + 2)
bubble.move.vY = 1 * (Math.ceil(Math.random()*10)/10 + 1.5)
bubble.move.scale = 0.2;
bubble.node.scaleX = bubble.move.scale;
bubble.node.scaleY = bubble.move.scale;
console.log(bubble.move.vX, bubble.move.vY)
bubble.move.enable = true;
}
}, 1500 * index);
})
}
// Common function
maskLayer = null;
initMaskLayer() {
const parentNode = this.g_cartoon.getNodeByPath("MaskLayer")
parentNode.x = cc.winSize.width / 2
parentNode.y = cc.winSize.height / 2
const bNode = this.getSprNodeByResName('black');
bNode.scaleX = cc.winSize.width / bNode.width;
bNode.scaleY = cc.winSize.height / bNode.height;
bNode.x = 0
bNode.y = 0
parentNode.setSiblingIndex(255)
bNode.parent = cc.find('MaskLayer');
bNode.active = false;
this.maskLayer = bNode;
}
showMaskLayer(cb) {
this.maskLayer.opacity = 0;
this.maskLayer.active = true;
cc.tween(this.maskLayer)
.to(0.5, {opacity: 255}, {easing: 'sineOut'})
.call(() => {
cb()
})
.start()
}
hideMaskLayer(cb = null) {
this.maskLayer.opacity = 255;
cc.tween(this.maskLayer)
.to(0.5, {opacity: 0}, {easing: 'sineIn'})
.call(() => {
this.maskLayer.active = false;
if (cb) {
cb()
}
})
.start()
}
startTwinkleAnime(speakerBase, path, len, speed = 0.2) {
const speakers = [];
for (let index = 0; index < len; index++) {
const node = cc.find(`${path}_${index}`);
speakers.push(node);
}
let currentIdx = 0;
cc.tween(speakerBase)
.call(() => {
speakers.forEach(node => node.active = false);
speakers[currentIdx % speakers.length].active = true;
currentIdx++;
})
.delay(speed)
.union()
.repeatForever()
.start();
}
stopTwinkleAnime(speakerBase, path, len) {
speakerBase.stopAllActions();
for (let index = 0; index < len; index++) {
const node = cc.find(`${path}_${index}`);
node.active = false;
}
const node0 = cc.find(`${path}_0`);
node0.active = true;
}
// Common API
getSprNodeByUrl(resName) {
return new Promise((resolve, reject) => {
cc.assetManager.loadRemote(url, (err, img) => {
const node = new cc.Node();
const spriteFrame = new cc.SpriteFrame(img)
node.addComponent(cc.Sprite).spriteFrame = sf;
resolve(node)
})
})
}
getSprNodeByResName(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;
}
// Sysyem function
hideAir() {
if (window && window["air"]) {
window["air"].hideAirClassLoading();
}
cc.debug.setDisplayStats(false);
}
checkClickEnable(eventName) {
if(this.g_enableClick) {
return true;
} else {
// console.log(`Click disabled by event [${this.g_disableClickEventName}]!`)
return false;
}
}
disableClick(eventName) {
this.g_enableClick = false;
this.g_disableClickEventName = eventName
// console.log(`Click disabled! [${eventName}]`)
}
enableClick(eventName) {
this.g_enableClick = true;
this.g_disableClickEventName = ""
// console.log(`Click enabled! [${eventName}]`)
}
}
{
"ver": "1.0.8",
"uuid": "f8d13f5b-4497-4be3-8f1d-761f4b9be6db",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// Learn life-cycle callbacks: // Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
import GameLogic from "./GameLogic"
cc.Class({ cc.Class({
...@@ -14,6 +14,8 @@ cc.Class({ ...@@ -14,6 +14,8 @@ cc.Class({
properties: { properties: {
}, },
gameLogic: null,
// 生命周期 onLoad // 生命周期 onLoad
onLoad() { onLoad() {
this.initSceneData(); this.initSceneData();
...@@ -70,7 +72,22 @@ cc.Class({ ...@@ -70,7 +72,22 @@ cc.Class({
console.log('data:', data); console.log('data:', data);
this.data = data || this.getDefaultData(); this.data = data || this.getDefaultData();
this.data = JSON.parse(JSON.stringify(this.data)) this.data = JSON.parse(JSON.stringify(this.data))
this.preloadItem() this.preloadItem(_=>{
this.gameLogic = new GameLogic(this.data, {
designSize: this._designSize,
frameSize: this._frameSize,
mapScaleMin: this._mapScaleMin,
mapScaleMax: this._mapScaleMax,
cocosScale: this._cocosScale,
imageResList: this._imageResList,
audioResList: this._audioResList,
animaResList: this._animaResList,
properties: {
option: this.option,
empty: this.empty
}
})
})
}) })
}, },
...@@ -85,11 +102,11 @@ cc.Class({ ...@@ -85,11 +102,11 @@ cc.Class({
return data; return data;
}, },
preloadItem() { preloadItem(callback) {
this.addPreloadImage(); this.addPreloadImage();
this.addPreloadAudio(); this.addPreloadAudio();
this.addPreloadAnima(); this.addPreloadAnima();
this.preload(); this.preload(()=>{if(callback) callback()});
}, },
...@@ -108,7 +125,7 @@ cc.Class({ ...@@ -108,7 +125,7 @@ cc.Class({
}, },
preload() { preload(callback) {
const preloadArr = this._imageResList.concat(this._audioResList).concat(this._animaResList); const preloadArr = this._imageResList.concat(this._audioResList).concat(this._animaResList);
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => { cc.assetManager.loadAny(preloadArr, null, null, (err, data) => {
...@@ -117,7 +134,9 @@ cc.Class({ ...@@ -117,7 +134,9 @@ cc.Class({
if (window && window["air"]) { if (window && window["air"]) {
window["air"].hideAirClassLoading(); window["air"].hideAirClassLoading();
} }
if(callback) {
callback();
}
cc.debug.setDisplayStats(false); cc.debug.setDisplayStats(false);
}); });
}, },
...@@ -150,11 +169,10 @@ cc.Class({ ...@@ -150,11 +169,10 @@ cc.Class({
initView() { initView() {
// this.initBg();
this.initBg(); // this.initPic();
this.initPic(); // this.initBtn();
this.initBtn(); // this.initIcon();
this.initIcon();
}, },
initBg() { initBg() {
......
export default {
"version": "1.0",
"key": "DataKey_WW-BubbleMap",
"title_text": "Winter is coming",
"question": {
"type_left": "text",
"text_left": "Home",
"type_right": "text",
"text_right": "School",
"image_url_left": "",
"image_url_right": "",
},
"bg": {
"type": "default",
"image_url": ""
},
"options": [
{
"type": "text",
"image_url": "DEMO_Option_1",
"text": "DEMO_Option_1",
"side": "left"
},
{
"type": "image",
"image_url": "DEMO_Option_2",
"text": "",
"side": "left"
},
{
"type": "image",
"image_url": "DEMO_Option_3",
"text": "",
"side": "middle"
},
{
"type": "image",
"image_url": "DEMO_Option_4",
"text": "",
"side": "middle"
},
{
"type": "image",
"image_url": "DEMO_Option_5",
"text": "",
"side": "right"
},
{
"type": "image",
"image_url": "DEMO_Option_6",
"text": "",
"side": "right"
}
]
};
{
"ver": "1.0.8",
"uuid": "098a17f0-8d67-4467-905e-5a22cd99c9fd",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2398e34f-9837-44e1-88da-e1d185d16654",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"background": {
"ver": "1.0.4",
"uuid": "4ada9e6e-a172-451e-b68c-d86fa6cf018e",
"rawTextureUuid": "2398e34f-9837-44e1-88da-e1d185d16654",
"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": "c94c545c-fdf4-45c3-95bb-cdefd7c9c71c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 73,
"height": 77,
"platformSettings": {},
"subMetas": {
"btn_back": {
"ver": "1.0.4",
"uuid": "eb12dc27-5940-4032-990f-25286dd0a8e0",
"rawTextureUuid": "c94c545c-fdf4-45c3-95bb-cdefd7c9c71c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 73,
"height": 77,
"rawWidth": 73,
"rawHeight": 77,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ca43fc24-49b6-4641-bcb1-3eb5142eaaf1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 366,
"height": 256,
"platformSettings": {},
"subMetas": {
"btn_start": {
"ver": "1.0.4",
"uuid": "0ddfe260-a85c-425a-9cca-5e6e5c516d31",
"rawTextureUuid": "ca43fc24-49b6-4641-bcb1-3eb5142eaaf1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 366,
"height": 256,
"rawWidth": 366,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5db76180-bed5-45f9-9d2a-d25b87c3ff58",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 189,
"height": 186,
"platformSettings": {},
"subMetas": {
"bubble_test": {
"ver": "1.0.4",
"uuid": "09ab21ca-576e-4e62-8b62-b936e450892a",
"rawTextureUuid": "5db76180-bed5-45f9-9d2a-d25b87c3ff58",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 189,
"height": 186,
"rawWidth": 189,
"rawHeight": 186,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a0fb37da-d793-4eb6-80e4-ccec20a63bbb",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 95,
"height": 101,
"platformSettings": {},
"subMetas": {
"speaker": {
"ver": "1.0.4",
"uuid": "570d2e53-3fbf-4959-9333-0d2a16b136db",
"rawTextureUuid": "a0fb37da-d793-4eb6-80e4-ccec20a63bbb",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 95,
"height": 101,
"rawWidth": 95,
"rawHeight": 101,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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