Commit e5db7421 authored by 智慧's avatar 智慧

style:添加设计好的龙骨动画,修改所有龙骨动画的坐标

parent 32309014
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "b62bb48d-e454-4681-9382-a16f684e61c2",
"subMetas": {}
}
\ No newline at end of file
{"imagePath":"gretting_tex.png","width":1024,"height":1024,"name":"gretting","SubTexture":[{"width":276,"y":156,"height":150,"name":"1/烟雾100","x":680},{"width":291,"y":1,"height":153,"name":"1/烟雾101","x":680},{"width":330,"y":790,"height":157,"name":"1/烟雾102","x":680},{"width":345,"y":631,"height":157,"name":"1/烟雾103","x":363},{"width":352,"y":470,"height":159,"name":"1/烟雾104","x":326},{"width":360,"y":745,"height":164,"name":"1/烟雾105","x":1},{"width":67,"y":476,"height":87,"name":"右腿","x":680},{"width":148,"y":152,"height":82,"name":"尾巴","x":453},{"width":115,"y":1,"height":135,"name":"db45a0e0aaadcc90fe2cf0d28babdbc","x":453},{"width":80,"y":345,"height":103,"name":"右胳膊","x":578},{"width":80,"y":236,"height":107,"name":"左胳膊","x":578},{"width":61,"y":949,"height":34,"name":"右脚","x":749},{"width":67,"y":565,"height":86,"name":"左腿","x":710},{"width":61,"y":957,"height":34,"name":"左脚_","x":525},{"width":69,"y":152,"height":53,"name":"裤线","x":603},{"width":450,"y":1,"height":467,"name":"头发","x":1},{"width":323,"y":470,"height":273,"name":"脸","x":1},{"width":67,"y":957,"height":54,"name":"闭嘴","x":456},{"width":91,"y":308,"height":82,"name":"睁右眼","x":660},{"width":91,"y":392,"height":82,"name":"睁左眼","x":680},{"width":107,"y":308,"height":66,"name":"右眼睛","x":753},{"width":18,"y":408,"height":14,"name":"右眉毛","x":660},{"width":108,"y":949,"height":64,"name":"右眯眼","x":639},{"width":343,"y":911,"height":108,"name":"闭嘴_0","x":1},{"width":18,"y":392,"height":14,"name":"左眉毛","x":660},{"width":107,"y":236,"height":66,"name":"左眼睛","x":453},{"width":108,"y":957,"height":64,"name":"左眯眼","x":346},{"width":274,"y":790,"height":165,"name":"微信图片_20210225222225","x":363},{"width":36,"y":957,"height":44,"name":"左手","x":588},{"width":36,"y":790,"height":44,"name":"右手","x":639},{"width":123,"y":308,"height":136,"name":"1/右挥手","x":453},{"width":96,"y":1,"height":149,"name":"1/左挥手","x":570}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "73b0a2de-0b3d-4d45-a4f4-6676c0d25b72",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5cf24291-6d5f-46c2-b0c3-76bbbdfc762e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 1024,
"platformSettings": {},
"subMetas": {
"gretting_tex": {
"ver": "1.0.4",
"uuid": "4bcce56f-92b8-4656-967f-37e39f7a96fb",
"rawTextureUuid": "5cf24291-6d5f-46c2-b0c3-76bbbdfc762e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -6.5,
"offsetY": 1,
"trimX": 1,
"trimY": 1,
"width": 1009,
"height": 1020,
"rawWidth": 1024,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
...@@ -137,8 +137,8 @@ ...@@ -137,8 +137,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 960, "width": 1280,
"height": 640 "height": 720
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -149,8 +149,8 @@ ...@@ -149,8 +149,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
480, 640,
320, 360,
0, 0,
0, 0,
0, 0,
...@@ -213,7 +213,7 @@ ...@@ -213,7 +213,7 @@
"array": [ "array": [
0, 0,
0, 0,
478.37078241542935, 478.04602288901015,
0, 0,
0, 0,
0, 0,
...@@ -307,8 +307,8 @@ ...@@ -307,8 +307,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 960, "width": 1280,
"height": 640 "height": 720
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -384,8 +384,8 @@ ...@@ -384,8 +384,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-334, -494,
51.5, 11.5,
0, 0,
0, 0,
0, 0,
...@@ -496,7 +496,7 @@ ...@@ -496,7 +496,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 960, "width": 1280,
"height": 403 "height": 403
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -509,7 +509,7 @@ ...@@ -509,7 +509,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-118.5, -158.5,
0, 0,
0, 0,
0, 0,
...@@ -676,8 +676,8 @@ ...@@ -676,8 +676,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 428.7715313805704, "width": 0,
"height": 326.19707804377583 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -689,7 +689,7 @@ ...@@ -689,7 +689,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-750, -750,
-13.051, 0,
0, 0,
0, 0,
0, 0,
...@@ -726,13 +726,13 @@ ...@@ -726,13 +726,13 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
} }
], ],
"_armatureName": "Armature", "_armatureName": "armatureName",
"_animationName": "finishdragon", "_animationName": "newAnimation",
"_preCacheMode": 0, "_preCacheMode": 0,
"_cacheMode": 0, "_cacheMode": 0,
"playTimes": 1, "playTimes": 1,
"premultipliedAlpha": false, "premultipliedAlpha": false,
"_armatureKey": "e5113a64-f76c-4d4f-a04d-f45ceb42c0be#1a65d967-5f21-47a9-9791-5df3e1da7041", "_armatureKey": "b62bb48d-e454-4681-9382-a16f684e61c2#73b0a2de-0b3d-4d45-a4f4-6676c0d25b72",
"_accTime": 0, "_accTime": 0,
"_playCount": 0, "_playCount": 0,
"_frameCache": null, "_frameCache": null,
...@@ -740,10 +740,10 @@ ...@@ -740,10 +740,10 @@
"_playing": false, "_playing": false,
"_armatureCache": null, "_armatureCache": null,
"_N$dragonAsset": { "_N$dragonAsset": {
"__uuid__": "e5113a64-f76c-4d4f-a04d-f45ceb42c0be" "__uuid__": "b62bb48d-e454-4681-9382-a16f684e61c2"
}, },
"_N$dragonAtlasAsset": { "_N$dragonAtlasAsset": {
"__uuid__": "1a65d967-5f21-47a9-9791-5df3e1da7041" "__uuid__": "73b0a2de-0b3d-4d45-a4f4-6676c0d25b72"
}, },
"_N$_defaultArmatureIndex": 0, "_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1, "_N$_animationIndex": 1,
...@@ -778,8 +778,8 @@ ...@@ -778,8 +778,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 77, "width": 0,
"height": 74 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -791,7 +791,7 @@ ...@@ -791,7 +791,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-750, -750,
-13.051, 0,
0, 0,
0, 0,
0, 0,
...@@ -880,8 +880,8 @@ ...@@ -880,8 +880,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 428.7715313805704, "width": 0,
"height": 326.19707804377583 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -893,7 +893,7 @@ ...@@ -893,7 +893,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-750, -750,
-13.051, 0,
0, 0,
0, 0,
0, 0,
...@@ -982,8 +982,8 @@ ...@@ -982,8 +982,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 428.7715313805704, "width": 0,
"height": 326.19707804377583 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -995,7 +995,7 @@ ...@@ -995,7 +995,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-750, -750,
-13.051, 0,
0, 0,
0, 0,
0, 0,
...@@ -1084,8 +1084,8 @@ ...@@ -1084,8 +1084,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 428.7715313805704, "width": 0,
"height": 326.19707804377583 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1097,7 +1097,7 @@ ...@@ -1097,7 +1097,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-750, -750,
-13.051, 0,
0, 0,
0, 0,
0, 0,
...@@ -1186,8 +1186,8 @@ ...@@ -1186,8 +1186,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 428.7715313805704, "width": 0,
"height": 326.19707804377583 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1199,7 +1199,7 @@ ...@@ -1199,7 +1199,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-750, -750,
-13.051, 0,
0, 0,
0, 0,
0, 0,
...@@ -1288,8 +1288,8 @@ ...@@ -1288,8 +1288,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 428.7715313805704, "width": 0,
"height": 326.19707804377583 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1301,7 +1301,7 @@ ...@@ -1301,7 +1301,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-750, -750,
-13.051, 0,
0, 0,
0, 0,
0, 0,
...@@ -1390,8 +1390,8 @@ ...@@ -1390,8 +1390,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 428.7715313805704, "width": 0,
"height": 326.19707804377583 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1403,7 +1403,7 @@ ...@@ -1403,7 +1403,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-750, -750,
-13.051, 0,
0, 0,
0, 0,
0, 0,
...@@ -1492,8 +1492,8 @@ ...@@ -1492,8 +1492,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 428.7715313805704, "width": 0,
"height": 326.19707804377583 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1505,7 +1505,7 @@ ...@@ -1505,7 +1505,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-750, -750,
-13.051, 0,
0, 0,
0, 0,
0, 0,
...@@ -1594,8 +1594,8 @@ ...@@ -1594,8 +1594,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 428.7715313805704, "width": 0,
"height": 326.19707804377583 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1607,7 +1607,7 @@ ...@@ -1607,7 +1607,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-750, -750,
-13.051, 0,
0, 0,
0, 0,
0, 0,
...@@ -1696,8 +1696,8 @@ ...@@ -1696,8 +1696,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 428.7715313805704, "width": 0,
"height": 326.19707804377583 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1709,7 +1709,7 @@ ...@@ -1709,7 +1709,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-750, -750,
-13.051, 0,
0, 0,
0, 0,
0, 0,
...@@ -1798,8 +1798,8 @@ ...@@ -1798,8 +1798,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 428.7715313805704, "width": 0,
"height": 326.19707804377583 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1811,7 +1811,7 @@ ...@@ -1811,7 +1811,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-750, -750,
-13.051, 0,
0, 0,
0, 0,
0, 0,
...@@ -1900,8 +1900,8 @@ ...@@ -1900,8 +1900,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 428.7715313805704, "width": 0,
"height": 326.19707804377583 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1913,7 +1913,7 @@ ...@@ -1913,7 +1913,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-750, -750,
-13.051, 0,
0, 0,
0, 0,
0, 0,
...@@ -1987,8 +1987,8 @@ ...@@ -1987,8 +1987,8 @@
"_enabled": true, "_enabled": true,
"_designResolution": { "_designResolution": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 960, "width": 1280,
"height": 640 "height": 720
}, },
"_fitWidth": false, "_fitWidth": false,
"_fitHeight": true, "_fitHeight": true,
......
...@@ -83,8 +83,8 @@ cc.Class({ ...@@ -83,8 +83,8 @@ cc.Class({
getDefaultData() { getDefaultData() {
// const dataJson = '{"animationName":"Greetings"}' const dataJson = '{"animationName":"Greetings"}'
const dataJson = '{"animationName":"WarmUp"}' // const dataJson = '{"animationName":"WarmUp"}'
const data = JSON.parse(dataJson); const data = JSON.parse(dataJson);
return data; return data;
}, },
...@@ -174,7 +174,8 @@ cc.Class({ ...@@ -174,7 +174,8 @@ cc.Class({
async showDragon() { async showDragon() {
const nodeName = 'Canvas/' + this.data.animationName; const nodeName = 'Canvas/' + this.data.animationName;
const animationNode = cc.find(nodeName); const animationNode = cc.find(nodeName);
animationNode.x = this._frameSize.width; animationNode.x = cc.find('Canvas').width;
animationNode.active = true; animationNode.active = true;
animationNode.scale = this._mapScaleMin; animationNode.scale = this._mapScaleMin;
await asyncTweenTo(animationNode, 0.5, { x: 0 }); await asyncTweenTo(animationNode, 0.5, { x: 0 });
......
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