Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dap-hu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Gia Vương
dap-hu
Commits
5165324e
Commit
5165324e
authored
Mar 31, 2025
by
Vũ Gia Vương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update anim the
parent
8b46d24e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
605 additions
and
3 deletions
+605
-3
main.fire
assets/main.fire
+1
-1
The.json
assets/resources/Anim_MB/The.json
+588
-1
BuaController.ts
assets/scripts/GamePlay/BuaController.ts
+2
-1
TheController.ts
assets/scripts/GamePlay/TheController.ts
+14
-0
No files found.
assets/main.fire
View file @
5165324e
...
...
@@ -3187,7 +3187,7 @@
"ctor": "Float64Array",
"array": [
0,
0,
-20
0,
0,
0,
0,
...
...
assets/resources/Anim_MB/The.json
View file @
5165324e
{
"skeleton"
:{
"hash"
:
"eRRGZ0h8EXj0xG4RyO4OdYas99Y"
,
"spine"
:
"3.7.94"
,
"width"
:
1080
,
"height"
:
1393
,
"images"
:
"./Image/"
,
"audio"
:
""
},
"bones"
:[{
"name"
:
"root"
},{
"name"
:
"open/light"
,
"parent"
:
"root"
,
"x"
:
-15.13
,
"y"
:
23.38
},{
"name"
:
"open/Box"
,
"parent"
:
"open/light"
,
"x"
:
20.21
,
"y"
:
-15
},{
"name"
:
"open/the"
,
"parent"
:
"open/Box"
,
"x"
:
-1.81
,
"y"
:
5.42
},{
"name"
:
"open/Star"
,
"parent"
:
"open/Box"
,
"x"
:
-11.4
,
"y"
:
2.85
},{
"name"
:
"open/light3"
,
"parent"
:
"open/light"
,
"x"
:
-7.62
,
"y"
:
-7.96
},{
"name"
:
"open/Star2"
,
"parent"
:
"open/Box"
,
"x"
:
-11.4
,
"y"
:
2.85
},{
"name"
:
"open/Star3"
,
"parent"
:
"open/Box"
,
"x"
:
-11.4
,
"y"
:
2.85
},{
"name"
:
"open/Star4"
,
"parent"
:
"open/Box"
,
"x"
:
-11.4
,
"y"
:
2.85
},{
"name"
:
"open/Star5"
,
"parent"
:
"open/Box"
,
"x"
:
-11.4
,
"y"
:
2.85
}],
"slots"
:[{
"name"
:
"open/light"
,
"bone"
:
"open/light3"
,
"attachment"
:
"open/light"
},{
"name"
:
"open/Box"
,
"bone"
:
"open/Box"
,
"attachment"
:
"open/Box"
},{
"name"
:
"open/the"
,
"bone"
:
"open/the"
,
"attachment"
:
"open/the"
},{
"name"
:
"open/Star"
,
"bone"
:
"open/Star"
,
"attachment"
:
"open/Star"
},{
"name"
:
"open/Star2"
,
"bone"
:
"open/Star2"
,
"attachment"
:
"open/Star"
},{
"name"
:
"open/Star3"
,
"bone"
:
"open/Star3"
,
"attachment"
:
"open/Star"
},{
"name"
:
"open/Star4"
,
"bone"
:
"open/Star4"
,
"attachment"
:
"open/Star"
},{
"name"
:
"open/Star5"
,
"bone"
:
"open/Star5"
,
"attachment"
:
"open/Star"
}],
"skins"
:{
"default"
:{
"open/Box"
:{
"open/Box"
:{
"x"
:
-2.84
,
"y"
:
0.39
,
"width"
:
441
,
"height"
:
421
}},
"open/Star"
:{
"open/Star"
:{
"x"
:
4.55
,
"y"
:
3.22
,
"width"
:
154
,
"height"
:
157
}},
"open/Star2"
:{
"open/Star"
:{
"x"
:
4.55
,
"y"
:
3.22
,
"width"
:
154
,
"height"
:
157
}},
"open/Star3"
:{
"open/Star"
:{
"x"
:
4.55
,
"y"
:
3.22
,
"width"
:
154
,
"height"
:
157
}},
"open/Star4"
:{
"open/Star"
:{
"x"
:
4.55
,
"y"
:
3.22
,
"width"
:
154
,
"height"
:
157
}},
"open/Star5"
:{
"open/Star"
:{
"x"
:
4.55
,
"y"
:
3.22
,
"width"
:
154
,
"height"
:
157
}},
"open/light"
:{
"open/light"
:{
"x"
:
12.96
,
"y"
:
32.52
,
"width"
:
1080
,
"height"
:
1393
}},
"open/the"
:{
"open/the"
:{
"x"
:
0.35
,
"y"
:
-0.92
,
"width"
:
441
,
"height"
:
421
}}}},
"animations"
:{
"Idle"
:{
"bones"
:{
"open/Star"
:{
"translate"
:[{
"time"
:
0
,
"x"
:
-179.33
,
"y"
:
-223.7
},{
"time"
:
0.6667
,
"x"
:
-179.33
,
"y"
:
-209.36
},{
"time"
:
1.4333
,
"x"
:
-179.33
,
"y"
:
-223.7
}],
"scale"
:[{
"time"
:
0
,
"x"
:
0.5
,
"y"
:
0.5
}]},
"open/light3"
:{
"rotate"
:[{
"time"
:
0
,
"angle"
:
0
},{
"time"
:
0.6667
,
"angle"
:
180
},{
"time"
:
1.4333
,
"angle"
:
0
}]},
"root"
:{
"translate"
:[{
"time"
:
0
,
"x"
:
0
,
"y"
:
399.76
}]},
"open/light"
:{
"translate"
:[{
"time"
:
0
,
"x"
:
0
,
"y"
:
0
,
"curve"
:[
0.25
,
0
,
0.75
,
1
]},{
"time"
:
0.6
,
"x"
:
0
,
"y"
:
8.6
,
"curve"
:[
0.25
,
0
,
0.75
,
1
]},{
"time"
:
1.4333
,
"x"
:
0
,
"y"
:
0
}]},
"open/Star2"
:{
"translate"
:[{
"time"
:
0
,
"x"
:
-328.47
,
"y"
:
286.8
,
"curve"
:[
0.25
,
0
,
0.75
,
1
]},{
"time"
:
0.7667
,
"x"
:
-311.26
,
"y"
:
286.8
,
"curve"
:[
0.25
,
0
,
0.75
,
1
]},{
"time"
:
1.4333
,
"x"
:
-328.47
,
"y"
:
286.8
}],
"scale"
:[{
"time"
:
0
,
"x"
:
0.8
,
"y"
:
0.8
}]},
"open/Star3"
:{
"translate"
:[{
"time"
:
0
,
"x"
:
207.85
,
"y"
:
-246.65
,
"curve"
:[
0.25
,
0
,
0.75
,
1
]},{
"time"
:
0.7333
,
"x"
:
227.92
,
"y"
:
-246.65
,
"curve"
:[
0.25
,
0
,
0.75
,
1
]},{
"time"
:
1.4333
,
"x"
:
207.85
,
"y"
:
-246.65
}]},
"open/Star4"
:{
"translate"
:[{
"time"
:
0
,
"x"
:
-380.09
,
"y"
:
25.81
,
"curve"
:[
0.25
,
0
,
0.75
,
1
]},{
"time"
:
0.6667
,
"x"
:
-400.17
,
"y"
:
25.81
,
"curve"
:[
0.25
,
0
,
0.75
,
1
]},{
"time"
:
1.4333
,
"x"
:
-380.09
,
"y"
:
25.81
}]},
"open/Star5"
:{
"translate"
:[{
"time"
:
0
,
"x"
:
316.83
,
"y"
:
232.31
},{
"time"
:
0.7333
,
"x"
:
296.75
,
"y"
:
232.31
},{
"time"
:
1.4333
,
"x"
:
316.83
,
"y"
:
232.31
}]}}},
"Open"
:{
"bones"
:{
"open/Star"
:{
"translate"
:[{
"time"
:
0
,
"x"
:
-179.33
,
"y"
:
-223.7
}],
"scale"
:[{
"time"
:
0
,
"x"
:
0.5
,
"y"
:
0.5
}]},
"open/light3"
:{
"rotate"
:[{
"time"
:
0
,
"angle"
:
0
},{
"time"
:
0.6667
,
"angle"
:
180
},{
"time"
:
1.4333
,
"angle"
:
0
}]},
"root"
:{
"translate"
:[{
"time"
:
0
,
"x"
:
0
,
"y"
:
0
,
"curve"
:[
0.25
,
0
,
0.75
,
1
]},{
"time"
:
0.5667
,
"x"
:
0
,
"y"
:
435.4
,
"curve"
:[
0.25
,
0
,
0.75
,
1
]},{
"time"
:
0.7
,
"x"
:
0
,
"y"
:
464.15
,
"curve"
:[
0.25
,
0
,
0.75
,
1
]},{
"time"
:
0.8667
,
"x"
:
0
,
"y"
:
393.46
,
"curve"
:[
0.25
,
0
,
0.75
,
1
]},{
"time"
:
0.9667
,
"x"
:
0
,
"y"
:
399.76
}],
"scale"
:[{
"time"
:
0
,
"x"
:
0
,
"y"
:
0
,
"curve"
:[
0.25
,
0
,
0.75
,
1
]},{
"time"
:
0.5667
,
"x"
:
1
,
"y"
:
1
}]},
"open/Star2"
:{
"translate"
:[{
"time"
:
0
,
"x"
:
-328.47
,
"y"
:
286.8
},{
"time"
:
0.6667
,
"x"
:
-328.47
,
"y"
:
235.18
},{
"time"
:
1.4333
,
"x"
:
-328.47
,
"y"
:
286.8
}],
"scale"
:[{
"time"
:
0
,
"x"
:
0.8
,
"y"
:
0.8
}]},
"open/Star3"
:{
"translate"
:[{
"time"
:
0
,
"x"
:
207.85
,
"y"
:
-246.65
},{
"time"
:
0.6667
,
"x"
:
179.17
,
"y"
:
-246.65
},{
"time"
:
1.4333
,
"x"
:
207.85
,
"y"
:
-246.65
}],
"scale"
:[{
"time"
:
0
,
"x"
:
0.6
,
"y"
:
0.6
},{
"time"
:
1.4333
,
"x"
:
1
,
"y"
:
1
}]},
"open/Star4"
:{
"translate"
:[{
"time"
:
0
,
"x"
:
-380.09
,
"y"
:
25.81
},{
"time"
:
0.6667
,
"x"
:
-380.09
,
"y"
:
43.02
},{
"time"
:
1.4333
,
"x"
:
-380.09
,
"y"
:
25.81
}]},
"open/Star5"
:{
"translate"
:[{
"time"
:
0
,
"x"
:
316.83
,
"y"
:
232.31
},{
"time"
:
0.6667
,
"x"
:
316.83
,
"y"
:
286.8
},{
"time"
:
1.4333
,
"x"
:
316.83
,
"y"
:
232.31
}]}}}}}
\ No newline at end of file
{
"skeleton"
:
{
"hash"
:
"eRRGZ0h8EXj0xG4RyO4OdYas99Y"
,
"spine"
:
"3.7.94"
,
"width"
:
1080
,
"height"
:
1393
,
"images"
:
"./Image/"
,
"audio"
:
""
},
"bones"
:
[
{
"name"
:
"root"
},
{
"name"
:
"open/light"
,
"parent"
:
"root"
,
"x"
:
-15.13
,
"y"
:
23.38
},
{
"name"
:
"open/Box"
,
"parent"
:
"open/light"
,
"x"
:
20.21
,
"y"
:
-15
},
{
"name"
:
"open/the"
,
"parent"
:
"open/Box"
,
"x"
:
-1.81
,
"y"
:
5.42
},
{
"name"
:
"open/Star"
,
"parent"
:
"open/Box"
,
"x"
:
-11.4
,
"y"
:
2.85
},
{
"name"
:
"open/light3"
,
"parent"
:
"open/light"
,
"x"
:
-7.62
,
"y"
:
-7.96
},
{
"name"
:
"open/Star2"
,
"parent"
:
"open/Box"
,
"x"
:
-11.4
,
"y"
:
2.85
},
{
"name"
:
"open/Star3"
,
"parent"
:
"open/Box"
,
"x"
:
-11.4
,
"y"
:
2.85
},
{
"name"
:
"open/Star4"
,
"parent"
:
"open/Box"
,
"x"
:
-11.4
,
"y"
:
2.85
},
{
"name"
:
"open/Star5"
,
"parent"
:
"open/Box"
,
"x"
:
-11.4
,
"y"
:
2.85
}
],
"slots"
:
[
{
"name"
:
"open/light"
,
"bone"
:
"open/light3"
,
"attachment"
:
"open/light"
},
{
"name"
:
"open/Box"
,
"bone"
:
"open/Box"
,
"attachment"
:
"open/Box"
},
{
"name"
:
"open/the"
,
"bone"
:
"open/the"
,
"attachment"
:
"open/the"
},
{
"name"
:
"open/Star"
,
"bone"
:
"open/Star"
,
"attachment"
:
"open/Star"
},
{
"name"
:
"open/Star2"
,
"bone"
:
"open/Star2"
,
"attachment"
:
"open/Star"
},
{
"name"
:
"open/Star3"
,
"bone"
:
"open/Star3"
,
"attachment"
:
"open/Star"
},
{
"name"
:
"open/Star4"
,
"bone"
:
"open/Star4"
,
"attachment"
:
"open/Star"
},
{
"name"
:
"open/Star5"
,
"bone"
:
"open/Star5"
,
"attachment"
:
"open/Star"
}
],
"skins"
:
{
"default"
:
{
"open/Box"
:
{
"open/Box"
:
{
"x"
:
-2.84
,
"y"
:
0.39
,
"width"
:
441
,
"height"
:
421
}
},
"open/Star"
:
{
"open/Star"
:
{
"x"
:
4.55
,
"y"
:
3.22
,
"width"
:
154
,
"height"
:
157
}
},
"open/Star2"
:
{
"open/Star"
:
{
"x"
:
4.55
,
"y"
:
3.22
,
"width"
:
154
,
"height"
:
157
}
},
"open/Star3"
:
{
"open/Star"
:
{
"x"
:
4.55
,
"y"
:
3.22
,
"width"
:
154
,
"height"
:
157
}
},
"open/Star4"
:
{
"open/Star"
:
{
"x"
:
4.55
,
"y"
:
3.22
,
"width"
:
154
,
"height"
:
157
}
},
"open/Star5"
:
{
"open/Star"
:
{
"x"
:
4.55
,
"y"
:
3.22
,
"width"
:
154
,
"height"
:
157
}
},
"open/light"
:
{
"open/light"
:
{
"x"
:
12.96
,
"y"
:
32.52
,
"width"
:
1080
,
"height"
:
1393
}
},
"open/the"
:
{
"open/the"
:
{
"x"
:
0.35
,
"y"
:
-0.92
,
"width"
:
441
,
"height"
:
421
}
}
}
},
"animations"
:
{
"Idle"
:
{
"bones"
:
{
"open/Star"
:
{
"translate"
:
[
{
"time"
:
0
,
"x"
:
-179.33
,
"y"
:
-223.7
},
{
"time"
:
0.6667
,
"x"
:
-179.33
,
"y"
:
-209.36
},
{
"time"
:
1.4333
,
"x"
:
-179.33
,
"y"
:
-223.7
}
],
"scale"
:
[
{
"time"
:
0
,
"x"
:
0.5
,
"y"
:
0.5
}
]
},
"open/light3"
:
{
"rotate"
:
[
{
"time"
:
0
,
"angle"
:
0
},
{
"time"
:
0.6667
,
"angle"
:
180
},
{
"time"
:
1.4333
,
"angle"
:
0
}
]
},
"root"
:
{
"translate"
:
[
{
"time"
:
0
,
"x"
:
0
,
"y"
:
399.76
}
]
},
"open/light"
:
{
"translate"
:
[
{
"time"
:
0
,
"x"
:
0
,
"y"
:
0
,
"curve"
:
[
0.25
,
0
,
0.75
,
1
]
},
{
"time"
:
0.6
,
"x"
:
0
,
"y"
:
8.6
,
"curve"
:
[
0.25
,
0
,
0.75
,
1
]
},
{
"time"
:
1.4333
,
"x"
:
0
,
"y"
:
0
}
]
},
"open/Star2"
:
{
"translate"
:
[
{
"time"
:
0
,
"x"
:
-328.47
,
"y"
:
286.8
,
"curve"
:
[
0.25
,
0
,
0.75
,
1
]
},
{
"time"
:
0.7667
,
"x"
:
-311.26
,
"y"
:
286.8
,
"curve"
:
[
0.25
,
0
,
0.75
,
1
]
},
{
"time"
:
1.4333
,
"x"
:
-328.47
,
"y"
:
286.8
}
],
"scale"
:
[
{
"time"
:
0
,
"x"
:
0.8
,
"y"
:
0.8
}
]
},
"open/Star3"
:
{
"translate"
:
[
{
"time"
:
0
,
"x"
:
207.85
,
"y"
:
-246.65
,
"curve"
:
[
0.25
,
0
,
0.75
,
1
]
},
{
"time"
:
0.7333
,
"x"
:
227.92
,
"y"
:
-246.65
,
"curve"
:
[
0.25
,
0
,
0.75
,
1
]
},
{
"time"
:
1.4333
,
"x"
:
207.85
,
"y"
:
-246.65
}
]
},
"open/Star4"
:
{
"translate"
:
[
{
"time"
:
0
,
"x"
:
-380.09
,
"y"
:
25.81
,
"curve"
:
[
0.25
,
0
,
0.75
,
1
]
},
{
"time"
:
0.6667
,
"x"
:
-400.17
,
"y"
:
25.81
,
"curve"
:
[
0.25
,
0
,
0.75
,
1
]
},
{
"time"
:
1.4333
,
"x"
:
-380.09
,
"y"
:
25.81
}
]
},
"open/Star5"
:
{
"translate"
:
[
{
"time"
:
0
,
"x"
:
316.83
,
"y"
:
232.31
},
{
"time"
:
0.7333
,
"x"
:
296.75
,
"y"
:
232.31
},
{
"time"
:
1.4333
,
"x"
:
316.83
,
"y"
:
232.31
}
]
}
}
},
"Open"
:
{
"bones"
:
{
"open/Star"
:
{
"translate"
:
[
{
"time"
:
0
,
"x"
:
-179.33
,
"y"
:
-223.7
}
],
"scale"
:
[
{
"time"
:
0
,
"x"
:
0.5
,
"y"
:
0.5
}
]
},
"open/light3"
:
{
"rotate"
:
[
{
"time"
:
0
,
"angle"
:
0
},
{
"time"
:
0.6667
,
"angle"
:
180
},
{
"time"
:
1.4333
,
"angle"
:
0
}
]
},
"root"
:
{
"translate"
:
[
{
"time"
:
0
,
"x"
:
0
,
"y"
:
0
,
"curve"
:
[
0.25
,
0
,
0.75
,
1
]
},
{
"time"
:
0.5667
,
"x"
:
0
,
"y"
:
435.4
,
"curve"
:
[
0.25
,
0
,
0.75
,
1
]
},
{
"time"
:
0.7
,
"x"
:
0
,
"y"
:
464.15
,
"curve"
:
[
0.25
,
0
,
0.75
,
1
]
},
{
"time"
:
0.8667
,
"x"
:
0
,
"y"
:
393.46
,
"curve"
:
[
0.25
,
0
,
0.75
,
1
]
},
{
"time"
:
0.9667
,
"x"
:
0
,
"y"
:
399.76
}
],
"scale"
:
[
{
"time"
:
0
,
"x"
:
0
,
"y"
:
0
,
"curve"
:
[
0.25
,
0
,
0.75
,
1
]
},
{
"time"
:
0.5667
,
"x"
:
1
,
"y"
:
1
}
]
},
"open/Star2"
:
{
"translate"
:
[
{
"time"
:
0
,
"x"
:
-328.47
,
"y"
:
286.8
},
{
"time"
:
0.6667
,
"x"
:
-328.47
,
"y"
:
235.18
},
{
"time"
:
1.4333
,
"x"
:
-328.47
,
"y"
:
286.8
}
],
"scale"
:
[
{
"time"
:
0
,
"x"
:
0.8
,
"y"
:
0.8
}
]
},
"open/Star3"
:
{
"translate"
:
[
{
"time"
:
0
,
"x"
:
207.85
,
"y"
:
-246.65
},
{
"time"
:
0.6667
,
"x"
:
179.17
,
"y"
:
-246.65
},
{
"time"
:
1.4333
,
"x"
:
207.85
,
"y"
:
-246.65
}
],
"scale"
:
[
{
"time"
:
0
,
"x"
:
0.6
,
"y"
:
0.6
},
{
"time"
:
1.4333
,
"x"
:
1
,
"y"
:
1
}
]
},
"open/Star4"
:
{
"translate"
:
[
{
"time"
:
0
,
"x"
:
-380.09
,
"y"
:
25.81
},
{
"time"
:
0.6667
,
"x"
:
-380.09
,
"y"
:
43.02
},
{
"time"
:
1.4333
,
"x"
:
-380.09
,
"y"
:
25.81
}
]
},
"open/Star5"
:
{
"translate"
:
[
{
"time"
:
0
,
"x"
:
316.83
,
"y"
:
232.31
},
{
"time"
:
0.6667
,
"x"
:
316.83
,
"y"
:
286.8
},
{
"time"
:
1.4333
,
"x"
:
316.83
,
"y"
:
232.31
}
]
}
}
}
}
}
\ No newline at end of file
assets/scripts/GamePlay/BuaController.ts
View file @
5165324e
...
...
@@ -67,10 +67,11 @@ export default class BuaController extends cc.Component {
},
0.2
)
cc
.
tween
(
this
.
node
)
.
by
(
0.5
,
{
position
:
cc
.
v3
(
1000
,)
}
)
.
delay
(
0.5
)
.
call
(()
=>
{
eventTarget
.
emit
(
SHOW_CARD_POPUP
);
})
.
by
(
0.5
,
{
position
:
cc
.
v3
(
1000
,)
})
.
start
();
}
...
...
assets/scripts/GamePlay/TheController.ts
View file @
5165324e
...
...
@@ -5,4 +5,18 @@ const { ccclass, property } = cc._decorator;
@
ccclass
export
default
class
TheController
extends
cc
.
Component
{
private
_spine
:
sp
.
Skeleton
=
null
;
protected
onLoad
():
void
{
this
.
_spine
=
this
.
node
.
getComponent
(
sp
.
Skeleton
);
this
.
_spine
.
setCompleteListener
((
trackEntry
)
=>
{
if
(
trackEntry
.
animation
.
name
==
'Open'
)
{
this
.
_spine
.
setAnimation
(
0
,
'Idle'
,
true
);
console
.
log
(
'Idle'
,
)
}
})
}
protected
onEnable
():
void
{
this
.
_spine
.
setAnimation
(
0
,
'Open'
,
false
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment