Fixes for KnifeGirl anim.

This commit is contained in:
genxium 2023-01-02 12:23:15 +08:00
parent 4c64c1984c
commit 915bbcae3d
13 changed files with 984 additions and 885 deletions

View File

@ -14,3 +14,10 @@ ffmpeg -vsync vfr -i input.gif output%d.png
``` ```
The `-vsync vfr` tells ffmpeg to disrespect the original delays set within the GIF file, otherwise many duplicate frame will be extracted by the default 60FPS. The `-vsync vfr` tells ffmpeg to disrespect the original delays set within the GIF file, otherwise many duplicate frame will be extracted by the default 60FPS.
More complicated transparent padding example (used when alignment in image source is much more preferred than aligning in codes)
```
ffmpeg -vsync vfr -i LayDown1.gif -vf "scale=iw:188:force_original_aspect_ratio=decrease,pad=iw:188:0:(oh-ih):color=#00000000,format=rgba" pngs/LayDown1_%d.png
```
The command above uses same input-output width, but pads the output height with a top transparent section such that the output height is fixed to 188px.

View File

@ -3,7 +3,7 @@
"_name": "Atk3", "_name": "Atk3",
"_objFlags": 0, "_objFlags": 0,
"_native": "", "_native": "",
"_duration": 1.0333333333333334, "_duration": 1.0166666666666666,
"sample": 60, "sample": 60,
"speed": 1, "speed": 1,
"wrapMode": 1, "wrapMode": 1,
@ -13,81 +13,63 @@
"spriteFrame": [ "spriteFrame": [
{ {
"frame": 0, "frame": 0,
"value": {
"__uuid__": "98276733-6f8d-4cac-8a7e-31883834c240"
}
},
{
"frame": 0.06666666666666667,
"value": { "value": {
"__uuid__": "51ab185b-2271-48b5-a897-af79721d566c" "__uuid__": "51ab185b-2271-48b5-a897-af79721d566c"
} }
}, },
{ {
"frame": 0.15, "frame": 0.05,
"value": { "value": {
"__uuid__": "c29fd95d-7467-4138-9e01-6421af63dd68" "__uuid__": "c29fd95d-7467-4138-9e01-6421af63dd68"
} }
}, },
{ {
"frame": 0.21666666666666667, "frame": 0.1,
"value": { "value": {
"__uuid__": "3285b5eb-c6be-4cb9-ac60-c506645fee4b" "__uuid__": "3285b5eb-c6be-4cb9-ac60-c506645fee4b"
} }
}, },
{ {
"frame": 0.3, "frame": 0.16666666666666666,
"value": { "value": {
"__uuid__": "13fd4a87-71f4-4b69-a5b3-413d564c35e6" "__uuid__": "13fd4a87-71f4-4b69-a5b3-413d564c35e6"
} }
}, },
{ {
"frame": 0.38333333333333336, "frame": 0.25,
"value": { "value": {
"__uuid__": "7189e229-00d6-427a-8ea1-d05fbd97824f" "__uuid__": "7189e229-00d6-427a-8ea1-d05fbd97824f"
} }
}, },
{ {
"frame": 0.4666666666666667, "frame": 0.45,
"value": { "value": {
"__uuid__": "d9ccfe33-3db7-4b3a-807c-adb2121fb7c7" "__uuid__": "d9ccfe33-3db7-4b3a-807c-adb2121fb7c7"
} }
}, },
{ {
"frame": 0.55, "frame": 0.6833333333333333,
"value": { "value": {
"__uuid__": "a51cbc29-0826-46f7-a38b-8b0f996fbace" "__uuid__": "a51cbc29-0826-46f7-a38b-8b0f996fbace"
} }
}, },
{ {
"frame": 0.65, "frame": 0.8833333333333333,
"value": { "value": {
"__uuid__": "7e9f3a24-6abc-4b49-a5c5-a0c100865ffc" "__uuid__": "7e9f3a24-6abc-4b49-a5c5-a0c100865ffc"
} }
}, },
{ {
"frame": 0.7333333333333333, "frame": 0.95,
"value": { "value": {
"__uuid__": "ecbaeb43-1118-483a-91c9-ff1ff01b7b33" "__uuid__": "ecbaeb43-1118-483a-91c9-ff1ff01b7b33"
} }
}, },
{ {
"frame": 0.8166666666666667, "frame": 1,
"value": { "value": {
"__uuid__": "58afa365-a916-4ec6-aab3-1c87f5332b12" "__uuid__": "58afa365-a916-4ec6-aab3-1c87f5332b12"
} }
},
{
"frame": 0.9166666666666666,
"value": {
"__uuid__": "7ada26fa-c72d-46f6-9b3a-ae9d7ba5eaf4"
}
},
{
"frame": 1.0166666666666666,
"value": {
"__uuid__": "ee5e4a85-6dda-4d1e-a469-5be1db6a8913"
}
} }
] ]
} }

View File

@ -3,7 +3,7 @@
"_name": "BlownUp1", "_name": "BlownUp1",
"_objFlags": 0, "_objFlags": 0,
"_native": "", "_native": "",
"_duration": 0.45, "_duration": 0.4166666666666667,
"sample": 60, "sample": 60,
"speed": 1, "speed": 1,
"wrapMode": 2, "wrapMode": 2,
@ -13,27 +13,27 @@
"spriteFrame": [ "spriteFrame": [
{ {
"frame": 0, "frame": 0,
"value": {
"__uuid__": "8e2e03e0-7e2f-4bbb-b039-e232ef586232"
}
},
{
"frame": 0.15,
"value": { "value": {
"__uuid__": "0ea84f61-4a2f-4ca2-a0b8-b580e027c142" "__uuid__": "0ea84f61-4a2f-4ca2-a0b8-b580e027c142"
} }
}, },
{ {
"frame": 0.3, "frame": 0.11666666666666667,
"value": { "value": {
"__uuid__": "a3a31fcd-a162-456a-9c26-1f32413f87f3" "__uuid__": "a3a31fcd-a162-456a-9c26-1f32413f87f3"
} }
}, },
{ {
"frame": 0.43333333333333335, "frame": 0.25,
"value": { "value": {
"__uuid__": "da4ee0a0-ba66-455c-99d3-9c803a3d0f17" "__uuid__": "da4ee0a0-ba66-455c-99d3-9c803a3d0f17"
} }
},
{
"frame": 0.4,
"value": {
"__uuid__": "4c058d60-e727-4438-b058-6e51969df458"
}
} }
] ]
} }

View File

@ -13,33 +13,45 @@
"spriteFrame": [ "spriteFrame": [
{ {
"frame": 0, "frame": 0,
"value": {
"__uuid__": "57640cd8-17eb-4279-a118-1ea40174da3c"
}
},
{
"frame": 0.15,
"value": {
"__uuid__": "d08a4f50-8707-4da2-8b12-83d1bf4fa2ca"
}
},
{
"frame": 0.3,
"value": { "value": {
"__uuid__": "3f26b0a4-db13-4a14-b885-5a812073eccf" "__uuid__": "3f26b0a4-db13-4a14-b885-5a812073eccf"
} }
}, },
{ {
"frame": 0.4, "frame": 0.08333333333333333,
"value": { "value": {
"__uuid__": "23eb42d6-52a2-458d-98a3-2f692dd79398" "__uuid__": "23eb42d6-52a2-458d-98a3-2f692dd79398"
} }
}, },
{ {
"frame": 0.5, "frame": 0.16666666666666666,
"value": { "value": {
"__uuid__": "7bd4428c-44f9-4ff8-8d00-d3448a27a0c4" "__uuid__": "7bd4428c-44f9-4ff8-8d00-d3448a27a0c4"
} }
},
{
"frame": 0.25,
"value": {
"__uuid__": "57640cd8-17eb-4279-a118-1ea40174da3c"
}
},
{
"frame": 0.35,
"value": {
"__uuid__": "56a2c954-6d04-433c-8ae4-f1bc7a0e9469"
}
},
{
"frame": 0.43333333333333335,
"value": {
"__uuid__": "b4dc81a3-eb90-4722-9296-5158f004fd4c"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "c156fa2c-0c4e-4413-80c1-accf8fea4779"
}
} }
] ]
} }

View File

@ -14,68 +14,92 @@
{ {
"frame": 0, "frame": 0,
"value": { "value": {
"__uuid__": "9ecbf97e-34bc-4c5e-b9e8-4d885a02e0d3" "__uuid__": "51ede1f1-5e65-4b69-8fbc-5b7df2a7c90f"
} }
}, },
{ {
"frame": 0.21666666666666667, "frame": 0.11666666666666667,
"value": {
"__uuid__": "92852885-b66d-42fe-a8e0-153e6c494bd2"
}
},
{
"frame": 0.4166666666666667,
"value": { "value": {
"__uuid__": "b0f1ecf7-be41-46a8-bccb-92ee53b4ef88" "__uuid__": "b0f1ecf7-be41-46a8-bccb-92ee53b4ef88"
} }
}, },
{ {
"frame": 0.6166666666666667, "frame": 0.21666666666666667,
"value": { "value": {
"__uuid__": "944adaee-5e11-4c55-9573-1d529f21ed4b" "__uuid__": "944adaee-5e11-4c55-9573-1d529f21ed4b"
} }
}, },
{ {
"frame": 0.8, "frame": 0.31666666666666665,
"value": { "value": {
"__uuid__": "ede36130-8312-46a2-abe5-ba102bc97822" "__uuid__": "ede36130-8312-46a2-abe5-ba102bc97822"
} }
}, },
{ {
"frame": 1.0166666666666666, "frame": 0.45,
"value": { "value": {
"__uuid__": "32dbb977-301c-4fbd-a19c-14a5ce0e2f5b" "__uuid__": "32dbb977-301c-4fbd-a19c-14a5ce0e2f5b"
} }
}, },
{ {
"frame": 1.2, "frame": 0.6,
"value": { "value": {
"__uuid__": "581c7ab1-451d-46b0-9eeb-24cf3b898924" "__uuid__": "581c7ab1-451d-46b0-9eeb-24cf3b898924"
} }
}, },
{ {
"frame": 1.4, "frame": 0.7666666666666667,
"value": { "value": {
"__uuid__": "27005132-eda8-4c3f-9f4a-3a6004245e9f" "__uuid__": "27005132-eda8-4c3f-9f4a-3a6004245e9f"
} }
}, },
{ {
"frame": 1.5833333333333333, "frame": 0.9166666666666666,
"value": { "value": {
"__uuid__": "2b339657-aa80-4ab6-a4dd-83e9c12b6a54" "__uuid__": "2b339657-aa80-4ab6-a4dd-83e9c12b6a54"
} }
}, },
{ {
"frame": 1.7833333333333334, "frame": 1.0666666666666667,
"value": { "value": {
"__uuid__": "08e25a99-158d-4159-8152-6c9047fe9d54" "__uuid__": "08e25a99-158d-4159-8152-6c9047fe9d54"
} }
}, },
{ {
"frame": 2, "frame": 1.2166666666666666,
"value": { "value": {
"__uuid__": "ab739541-39b5-4758-9b93-6681d6038730" "__uuid__": "ab739541-39b5-4758-9b93-6681d6038730"
} }
},
{
"frame": 1.3833333333333333,
"value": {
"__uuid__": "9ecbf97e-34bc-4c5e-b9e8-4d885a02e0d3"
}
},
{
"frame": 1.5333333333333334,
"value": {
"__uuid__": "e7d9a7c9-47ec-4335-97c9-19ed6ee3d9ce"
}
},
{
"frame": 1.7,
"value": {
"__uuid__": "cf258753-3900-4de4-a0bb-09158500fd9a"
}
},
{
"frame": 1.85,
"value": {
"__uuid__": "be7bedfe-7054-4092-89fc-ca397460f140"
}
},
{
"frame": 2,
"value": {
"__uuid__": "b1b467dd-1757-4ff1-9909-3449f74463d8"
}
} }
] ]
} }

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 107 KiB

View File

@ -3,7 +3,7 @@
"_name": "LayDown1", "_name": "LayDown1",
"_objFlags": 0, "_objFlags": 0,
"_native": "", "_native": "",
"_duration": 0.25, "_duration": 0.06666666666666667,
"sample": 60, "sample": 60,
"speed": 1, "speed": 1,
"wrapMode": 1, "wrapMode": 1,
@ -13,21 +13,21 @@
"spriteFrame": [ "spriteFrame": [
{ {
"frame": 0, "frame": 0,
"value": {
"__uuid__": "7effc101-0b6c-4399-beea-7c9ef6e9df7e"
}
},
{
"frame": 0.11666666666666667,
"value": { "value": {
"__uuid__": "4e8a4f3c-5406-4700-9230-b2abc29a1093" "__uuid__": "4e8a4f3c-5406-4700-9230-b2abc29a1093"
} }
}, },
{ {
"frame": 0.23333333333333334, "frame": 0.03333333333333333,
"value": { "value": {
"__uuid__": "1ae5e6f6-ba82-485d-b3c7-59fd16ece3d5" "__uuid__": "1ae5e6f6-ba82-485d-b3c7-59fd16ece3d5"
} }
},
{
"frame": 0.05,
"value": {
"__uuid__": "4e8a4f3c-5406-4700-9230-b2abc29a1093"
}
} }
] ]
} }

View File

@ -3,7 +3,7 @@
"_name": "Walking", "_name": "Walking",
"_objFlags": 0, "_objFlags": 0,
"_native": "", "_native": "",
"_duration": 1.1166666666666667, "_duration": 1.5166666666666666,
"sample": 60, "sample": 60,
"speed": 1.2, "speed": 1.2,
"wrapMode": 2, "wrapMode": 2,
@ -14,80 +14,80 @@
{ {
"frame": 0, "frame": 0,
"value": { "value": {
"__uuid__": "30546064-1a11-499e-8523-a82c83951c73" "__uuid__": "c3b14ecc-a6d9-4cb3-8637-ca7b407a0f5c"
} }
}, },
{ {
"frame": 0.08333333333333333, "frame": 0.08333333333333333,
"value": {
"__uuid__": "cbbd2ddc-9ed3-40bf-ab87-2f9d26c2dd85"
}
},
{
"frame": 0.16666666666666666,
"value": { "value": {
"__uuid__": "9435195e-4560-495e-b1ae-083c0c87e8a0" "__uuid__": "9435195e-4560-495e-b1ae-083c0c87e8a0"
} }
}, },
{ {
"frame": 0.25, "frame": 0.18333333333333332,
"value": { "value": {
"__uuid__": "ec048360-7a17-4f22-ba52-eb86ec1acae8" "__uuid__": "ec048360-7a17-4f22-ba52-eb86ec1acae8"
} }
}, },
{ {
"frame": 0.3333333333333333, "frame": 0.2833333333333333,
"value": { "value": {
"__uuid__": "82bb81e3-667c-4280-8710-211f4904ef2f" "__uuid__": "82bb81e3-667c-4280-8710-211f4904ef2f"
} }
}, },
{ {
"frame": 0.4166666666666667, "frame": 0.4,
"value": {
"__uuid__": "c3b14ecc-a6d9-4cb3-8637-ca7b407a0f5c"
}
},
{
"frame": 0.5166666666666667,
"value": { "value": {
"__uuid__": "f958fb7f-ef5a-4918-81f3-564004572f45" "__uuid__": "f958fb7f-ef5a-4918-81f3-564004572f45"
} }
}, },
{ {
"frame": 0.6166666666666667, "frame": 0.5333333333333333,
"value": { "value": {
"__uuid__": "8a0ecf92-db26-4206-9a80-20e749055def" "__uuid__": "8a0ecf92-db26-4206-9a80-20e749055def"
} }
}, },
{ {
"frame": 0.7333333333333333, "frame": 0.65,
"value": { "value": {
"__uuid__": "942f2e02-a700-4fbf-877e-08c93e4d4010" "__uuid__": "942f2e02-a700-4fbf-877e-08c93e4d4010"
} }
}, },
{ {
"frame": 0.8333333333333334, "frame": 0.7666666666666667,
"value": {
"__uuid__": "30546064-1a11-499e-8523-a82c83951c73"
}
},
{
"frame": 0.9,
"value": { "value": {
"__uuid__": "515bb75f-7a1f-4500-8aa9-c895915ce19f" "__uuid__": "515bb75f-7a1f-4500-8aa9-c895915ce19f"
} }
}, },
{ {
"frame": 0.9166666666666666, "frame": 1.0333333333333334,
"value": { "value": {
"__uuid__": "9100da6b-7582-4afb-9698-3d67d3b2012d" "__uuid__": "9100da6b-7582-4afb-9698-3d67d3b2012d"
} }
}, },
{ {
"frame": 1.0166666666666666, "frame": 1.2166666666666666,
"value": { "value": {
"__uuid__": "1257f72d-0cb3-4750-ae70-13c2d8eb2269" "__uuid__": "1257f72d-0cb3-4750-ae70-13c2d8eb2269"
} }
}, },
{ {
"frame": 1.1, "frame": 1.3833333333333333,
"value": { "value": {
"__uuid__": "1d34b6db-27ba-4e26-864d-0f00d501765e" "__uuid__": "1d34b6db-27ba-4e26-864d-0f00d501765e"
} }
},
{
"frame": 1.5,
"value": {
"__uuid__": "c317a75a-52c0-4c38-9300-a064cbf4efb3"
}
} }
] ]
} }

View File

@ -594,7 +594,7 @@
0, 0,
1, 1,
0.7, 0.7,
0.7, 0.6,
1 1
] ]
}, },
@ -750,14 +750,14 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, 5,
0, 0,
0, 0,
0, 0,
0, 0,
1, 1,
0.7, 0.7,
0.7, 0.5,
1 1
] ]
}, },

View File

@ -461,7 +461,7 @@
"array": [ "array": [
0, 0,
0, 0,
216.05530045313827, 210.4441731196186,
0, 0,
0, 0,
0, 0,

View File

@ -161,7 +161,7 @@ cc.Class({
inAir: true, inAir: true,
}), }),
], ],
speciesIdList: [1, 0], speciesIdList: [0, 1],
}); });
self.selfPlayerInfo = { self.selfPlayerInfo = {