Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP15
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
OP15
Commits
87831504
Commit
87831504
authored
Dec 07, 2021
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
22
parent
31a78b30
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
59 additions
and
3 deletions
+59
-3
苹果_ske.json
play/assets/OP15/dragonBones/cat/苹果_ske.json
+2
-0
苹果_ske.json.meta
play/assets/OP15/dragonBones/cat/苹果_ske.json.meta
+6
-0
苹果_tex.json
play/assets/OP15/dragonBones/cat/苹果_tex.json
+2
-0
苹果_tex.json.meta
play/assets/OP15/dragonBones/cat/苹果_tex.json.meta
+6
-0
苹果_tex.png
play/assets/OP15/dragonBones/cat/苹果_tex.png
+0
-0
苹果_tex.png.meta
play/assets/OP15/dragonBones/cat/苹果_tex.png.meta
+37
-0
OP15.js
play/assets/OP15/scene/OP15.js
+6
-3
No files found.
play/assets/OP15/dragonBones/cat/苹果_ske.json
0 → 100644
View file @
87831504
{
"frameRate"
:
24
,
"name"
:
"苹果"
,
"version"
:
"5.5"
,
"compatibleVersion"
:
"5.5"
,
"armature"
:[{
"type"
:
"Armature"
,
"frameRate"
:
24
,
"name"
:
"Armature"
,
"aabb"
:{
"x"
:
-1246
,
"y"
:
-903
,
"width"
:
799
,
"height"
:
565
},
"bone"
:[{
"name"
:
"root"
},{
"length"
:
97
,
"name"
:
"Apple_02"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
-1109.05
,
"y"
:
-858.75
,
"skX"
:
81.8908
,
"skY"
:
81.8908
}},{
"length"
:
107
,
"name"
:
"Apple_021"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
-658.05
,
"y"
:
-883.05
,
"skX"
:
80.3575
,
"skY"
:
80.3575
}},{
"length"
:
102
,
"name"
:
"Apple_022"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
-887.25
,
"y"
:
-720.35
,
"skX"
:
81.6959
,
"skY"
:
81.6959
}},{
"length"
:
105
,
"name"
:
"Apple_023"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
-576.7
,
"y"
:
-566.15
,
"skX"
:
80.8178
,
"skY"
:
80.8178
}},{
"length"
:
101
,
"name"
:
"Apple_024"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
-1034.05
,
"y"
:
-462.65
,
"skX"
:
81.0523
,
"skY"
:
81.0523
}}],
"slot"
:[{
"name"
:
"Apple_01"
,
"parent"
:
"Apple_02"
},{
"name"
:
"Apple_02"
,
"parent"
:
"Apple_021"
},{
"name"
:
"Apple_03"
,
"parent"
:
"Apple_022"
},{
"name"
:
"Apple_04"
,
"parent"
:
"Apple_024"
},{
"name"
:
"Apple_05"
,
"parent"
:
"Apple_023"
}],
"skin"
:[{
"slot"
:[{
"name"
:
"Apple_04"
,
"display"
:[{
"name"
:
"五个苹果左右晃动三次/Apple_04"
,
"transform"
:{
"x"
:
-113.39
,
"y"
:
-185.44
,
"skX"
:
-81.05
,
"skY"
:
-81.05
}}]},{
"name"
:
"Apple_05"
,
"display"
:[{
"name"
:
"五个苹果左右晃动三次/Apple_05"
,
"transform"
:{
"x"
:
-81.41
,
"y"
:
260.14
,
"skX"
:
-80.82
,
"skY"
:
-80.82
}}]},{
"name"
:
"Apple_01"
,
"display"
:[{
"name"
:
"五个苹果左右晃动三次/Apple_01"
,
"transform"
:{
"x"
:
259.34
,
"y"
:
-194.92
,
"skX"
:
-81.89
,
"skY"
:
-81.89
}}]},{
"name"
:
"Apple_02"
,
"display"
:[{
"name"
:
"五个苹果左右晃动三次/Apple_02"
,
"transform"
:{
"x"
:
216.34
,
"y"
:
282.17
,
"skX"
:
-80.36
,
"skY"
:
-80.36
}}]},{
"name"
:
"Apple_03"
,
"display"
:[{
"name"
:
"五个苹果左右晃动三次/Apple_03"
,
"transform"
:{
"x"
:
111.86
,
"y"
:
-12.73
,
"skX"
:
-81.7
,
"skY"
:
-81.7
}}]}]}],
"animation"
:[{
"duration"
:
120
,
"playTimes"
:
0
,
"name"
:
"normal"
,
"bone"
:[{
"name"
:
"Apple_02"
,
"rotateFrame"
:[{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-15.29
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-17.58
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-16.02
},{
"duration"
:
72
}]},{
"name"
:
"Apple_021"
,
"rotateFrame"
:[{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-15.29
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-17.58
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-16.02
},{
"duration"
:
72
}]},{
"name"
:
"Apple_022"
,
"rotateFrame"
:[{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-15.29
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-17.58
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-16.02
},{
"duration"
:
72
}]},{
"name"
:
"Apple_023"
,
"rotateFrame"
:[{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-15.29
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-17.58
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-16.02
},{
"duration"
:
72
}]},{
"name"
:
"Apple_024"
,
"rotateFrame"
:[{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-15.29
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-17.58
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-16.02
},{
"duration"
:
72
}]}]},{
"duration"
:
40
,
"playTimes"
:
0
,
"name"
:
"enlarge"
,
"bone"
:[{
"name"
:
"Apple_02"
,
"rotateFrame"
:[{
"duration"
:
9
,
"tweenEasing"
:
0
},{
"duration"
:
7
,
"tweenEasing"
:
0
,
"rotate"
:
-15.29
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-17.58
},{
"duration"
:
8
}],
"scaleFrame"
:[{
"duration"
:
9
,
"tweenEasing"
:
0
},{
"duration"
:
7
,
"tweenEasing"
:
0
,
"x"
:
1.72
,
"y"
:
1.72
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"x"
:
1.49
,
"y"
:
1.49
},{
"duration"
:
8
}]},{
"name"
:
"Apple_021"
,
"rotateFrame"
:[{
"duration"
:
9
,
"tweenEasing"
:
0
},{
"duration"
:
7
,
"tweenEasing"
:
0
,
"rotate"
:
-15.29
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-17.58
},{
"duration"
:
8
}],
"scaleFrame"
:[{
"duration"
:
9
,
"tweenEasing"
:
0
},{
"duration"
:
7
,
"tweenEasing"
:
0
,
"x"
:
1.5
,
"y"
:
1.5
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"x"
:
1.52
,
"y"
:
1.52
},{
"duration"
:
8
}]},{
"name"
:
"Apple_022"
,
"rotateFrame"
:[{
"duration"
:
9
,
"tweenEasing"
:
0
},{
"duration"
:
7
,
"tweenEasing"
:
0
,
"rotate"
:
-15.29
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-17.58
},{
"duration"
:
8
}],
"scaleFrame"
:[{
"duration"
:
9
,
"tweenEasing"
:
0
},{
"duration"
:
7
,
"tweenEasing"
:
0
,
"x"
:
1.52
,
"y"
:
1.52
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"x"
:
1.43
,
"y"
:
1.43
},{
"duration"
:
8
}]},{
"name"
:
"Apple_023"
,
"rotateFrame"
:[{
"duration"
:
9
,
"tweenEasing"
:
0
},{
"duration"
:
7
,
"tweenEasing"
:
0
,
"rotate"
:
-15.29
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-17.58
},{
"duration"
:
8
}],
"scaleFrame"
:[{
"duration"
:
9
,
"tweenEasing"
:
0
},{
"duration"
:
7
,
"tweenEasing"
:
0
,
"x"
:
1.45
,
"y"
:
1.45
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"x"
:
1.31
,
"y"
:
1.31
},{
"duration"
:
8
}]},{
"name"
:
"Apple_024"
,
"rotateFrame"
:[{
"duration"
:
9
,
"tweenEasing"
:
0
},{
"duration"
:
7
,
"tweenEasing"
:
0
,
"rotate"
:
-15.29
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"rotate"
:
-17.58
},{
"duration"
:
8
}],
"scaleFrame"
:[{
"duration"
:
9
,
"tweenEasing"
:
0
},{
"duration"
:
7
,
"tweenEasing"
:
0
,
"x"
:
1.39
,
"y"
:
1.39
},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"x"
:
1.42
,
"y"
:
1.42
},{
"duration"
:
8
}]}]}],
"defaultActions"
:[{
"gotoAndPlay"
:
"normal"
}],
"canvas"
:{
"width"
:
2492
,
"height"
:
3308
}}]}
\ No newline at end of file
play/assets/OP15/dragonBones/cat/苹果_ske.json.meta
0 → 100644
View file @
87831504
{
"ver": "1.0.1",
"uuid": "ff020f6d-a4b6-4baf-bcad-94ae605c2977",
"subMetas": {}
}
\ No newline at end of file
play/assets/OP15/dragonBones/cat/苹果_tex.json
0 → 100644
View file @
87831504
{
"name"
:
"苹果"
,
"imagePath"
:
"苹果_tex.png"
,
"SubTexture"
:[{
"name"
:
"五个苹果左右晃动三次/Apple_01"
,
"x"
:
1
,
"height"
:
427
,
"frameY"
:
0
,
"y"
:
1068
,
"frameHeight"
:
547
,
"frameX"
:
-24
,
"frameWidth"
:
733
,
"width"
:
709
},{
"name"
:
"五个苹果左右晃动三次/Apple_02"
,
"x"
:
685
,
"height"
:
185
,
"frameY"
:
0
,
"y"
:
1497
,
"frameHeight"
:
561
,
"frameX"
:
-491
,
"frameWidth"
:
692
,
"width"
:
201
},{
"name"
:
"五个苹果左右晃动三次/Apple_03"
,
"x"
:
1
,
"height"
:
427
,
"frameY"
:
0
,
"y"
:
1497
,
"frameHeight"
:
505
,
"frameX"
:
-93
,
"frameWidth"
:
775
,
"width"
:
682
},{
"name"
:
"五个苹果左右晃动三次/Apple_04"
,
"x"
:
1
,
"height"
:
531
,
"frameY"
:
0
,
"y"
:
535
,
"frameHeight"
:
531
,
"frameX"
:
-98
,
"frameWidth"
:
755
,
"width"
:
657
},{
"name"
:
"五个苹果左右晃动三次/Apple_05"
,
"x"
:
1
,
"height"
:
532
,
"frameY"
:
0
,
"y"
:
1
,
"frameHeight"
:
532
,
"frameX"
:
-112
,
"frameWidth"
:
799
,
"width"
:
687
}],
"height"
:
2048
,
"width"
:
1024
}
\ No newline at end of file
play/assets/OP15/dragonBones/cat/苹果_tex.json.meta
0 → 100644
View file @
87831504
{
"ver": "1.0.1",
"uuid": "ac49bcc0-d84e-4dd4-a8e3-7d81d1885337",
"subMetas": {}
}
\ No newline at end of file
play/assets/OP15/dragonBones/cat/苹果_tex.png
0 → 100644
View file @
87831504
531 KB
play/assets/OP15/dragonBones/cat/苹果_tex.png.meta
0 → 100644
View file @
87831504
{
"ver": "2.3.5",
"uuid": "be757ae8-da77-4a47-82c1-cbd9d66dce16",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 2048,
"platformSettings": {},
"subMetas": {
"苹果_tex": {
"ver": "1.0.4",
"uuid": "0ba60b3b-8638-409b-945e-9669d281d014",
"rawTextureUuid": "be757ae8-da77-4a47-82c1-cbd9d66dce16",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -68.5,
"offsetY": 61.5,
"trimX": 1,
"trimY": 1,
"width": 885,
"height": 1923,
"rawWidth": 1024,
"rawHeight": 2048,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
play/assets/OP15/scene/OP15.js
View file @
87831504
...
@@ -443,10 +443,10 @@ cc.Class({
...
@@ -443,10 +443,10 @@ cc.Class({
const
gameMachine
=
createMachine
(
state
);
const
gameMachine
=
createMachine
(
state
);
window
.
gameMachine
=
gameMachine
;
window
.
gameMachine
=
gameMachine
;
const
gameMachineService
=
interpret
(
gameMachine
).
onTransition
((
state
)
=>
{
this
.
gameMachineService
=
interpret
(
gameMachine
).
onTransition
((
state
)
=>
{
// console.log(1, state.value, state.context);
// console.log(1, state.value, state.context);
});
});
gameMachineService
.
start
();
this
.
gameMachineService
.
start
();
window
.
gameMachineService
=
gameMachineService
;
window
.
gameMachineService
=
gameMachineService
;
...
@@ -674,7 +674,10 @@ cc.Class({
...
@@ -674,7 +674,10 @@ cc.Class({
});
});
},
},
onDestroy
(){
this
.
gameMachineService
.
stopChild
();
this
.
gameMachineService
.
stop
();
},
loadEnd
()
{
loadEnd
()
{
if
(
window
&&
window
[
"
air
"
]
&&
window
[
"
air
"
].
hideAirClassLoading
)
{
if
(
window
&&
window
[
"
air
"
]
&&
window
[
"
air
"
].
hideAirClassLoading
)
{
window
[
"
air
"
].
hideAirClassLoading
();
window
[
"
air
"
].
hideAirClassLoading
();
...
...
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