Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WL02
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
WL02
Commits
4350d553
Commit
4350d553
authored
Jul 20, 2021
by
linzhiguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ 增加苍蝇拍动画
+ 声音按钮动画 + 统一字体大小
parent
862bac56
Changes
20
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
667 additions
and
807 deletions
+667
-807
WL01-flower(1)_ske.json
play/assets/WL02/dragonBones/WL01-flower(1)_ske.json
+1
-1
WL01-flower(1)_tex.json
play/assets/WL02/dragonBones/WL01-flower(1)_tex.json
+1
-1
sound.anim
play/assets/WL02/dragonBones/sound.anim
+75
-0
sound.anim.meta
play/assets/WL02/dragonBones/sound.anim.meta
+5
-0
苍蝇拍灰尘_ske.json
play/assets/WL02/dragonBones/苍蝇拍灰尘_ske.json
+2
-0
苍蝇拍灰尘_ske.json.meta
play/assets/WL02/dragonBones/苍蝇拍灰尘_ske.json.meta
+6
-0
苍蝇拍灰尘_tex.json
play/assets/WL02/dragonBones/苍蝇拍灰尘_tex.json
+2
-0
苍蝇拍灰尘_tex.json.meta
play/assets/WL02/dragonBones/苍蝇拍灰尘_tex.json.meta
+6
-0
苍蝇拍灰尘_tex.png
play/assets/WL02/dragonBones/苍蝇拍灰尘_tex.png
+0
-0
苍蝇拍灰尘_tex.png.meta
play/assets/WL02/dragonBones/苍蝇拍灰尘_tex.png.meta
+15
-15
WL02.fire
play/assets/WL02/scene/WL02.fire
+421
-749
WL02.js
play/assets/WL02/scene/WL02.js
+90
-22
defaultData.js
play/assets/WL02/script/defaultData.js
+4
-4
util.js
play/assets/WL02/script/util.js
+24
-0
bg.png
play/assets/WL02/textures/bg.png
+0
-0
bg1.png
play/assets/WL02/textures/bg1.png
+0
-0
bg2.png
play/assets/WL02/textures/bg2.png
+0
-0
sound.png.meta
play/assets/WL02/textures/sound.png.meta
+3
-3
sound1.png
play/assets/WL02/textures/sound1.png
+0
-0
sound1.png.meta
play/assets/WL02/textures/sound1.png.meta
+12
-12
No files found.
play/assets/WL02/dragonBones/WL01-flower(1)_ske.json
View file @
4350d553
This diff is collapsed.
Click to expand it.
play/assets/WL02/dragonBones/WL01-flower(1)_tex.json
View file @
4350d553
{
"width"
:
512
,
"SubTexture"
:[{
"width"
:
210
,
"y"
:
1
,
"height"
:
198
,
"name"
:
"WL01-flower(1)/矢量智能对象_17"
,
"x"
:
1
},{
"width"
:
79
,
"y"
:
299
,
"height"
:
74
,
"name"
:
"WL01-flower(1)/矢量智能对象_16"
,
"x"
:
248
},{
"width"
:
47
,
"y"
:
201
,
"height"
:
44
,
"name"
:
"WL01-flower(1)/矢量智能对象_15"
,
"x"
:
157
},{
"width"
:
157
,
"y"
:
1
,
"height"
:
147
,
"name"
:
"WL01-flower(1)/矢量智能对象_14"
,
"x"
:
213
},{
"width"
:
58
,
"y"
:
385
,
"height"
:
54
,
"name"
:
"WL01-flower(1)/矢量智能对象_13"
,
"x"
:
144
},{
"width"
:
120
,
"y"
:
124
,
"height"
:
113
,
"name"
:
"WL01-flower(1)/矢量智能对象_12"
,
"x"
:
372
},{
"width"
:
157
,
"y"
:
150
,
"height"
:
147
,
"name"
:
"WL01-flower(1)/矢量智能对象_11"
,
"x"
:
213
},{
"width"
:
89
,
"y"
:
299
,
"height"
:
84
,
"name"
:
"WL01-flower(1)/矢量智能对象_10"
,
"x"
:
157
},{
"width"
:
154
,
"y"
:
201
,
"height"
:
145
,
"name"
:
"WL01-flower(1)/矢量智能对象_9"
,
"x"
:
1
},{
"width"
:
128
,
"y"
:
1
,
"height"
:
121
,
"name"
:
"WL01-flower(1)/矢量智能对象_8"
,
"x"
:
372
},{
"width"
:
60
,
"y"
:
348
,
"height"
:
56
,
"name"
:
"WL01-flower(1)/矢量智能对象_7"
,
"x"
:
82
},{
"width"
:
47
,
"y"
:
406
,
"height"
:
44
,
"name"
:
"WL01-flower(1)/矢量智能对象_6"
,
"x"
:
82
},{
"width"
:
79
,
"y"
:
348
,
"height"
:
74
,
"name"
:
"WL01-flower(1)/矢量智能对象_5"
,
"x"
:
1
},{
"width"
:
47
,
"y"
:
247
,
"height"
:
44
,
"name"
:
"WL01-flower(1)/矢量智能对象_4"
,
"x"
:
157
},{
"width"
:
45
,
"y"
:
424
,
"height"
:
42
,
"name"
:
"WL01-flower(1)/矢量智能对象_3"
,
"x"
:
1
},{
"width"
:
45
,
"y"
:
342
,
"height"
:
42
,
"name"
:
"WL01-flower(1)/矢量智能对象_2"
,
"x"
:
389
},{
"width"
:
58
,
"y"
:
342
,
"height"
:
54
,
"name"
:
"WL01-flower(1)/矢量智能对象_1"
,
"x"
:
329
},{
"width"
:
107
,
"y"
:
239
,
"height"
:
101
,
"name"
:
"WL01-flower(1)/矢量智能对象_0"
,
"x"
:
372
},{
"width"
:
58
,
"y"
:
375
,
"height"
:
54
,
"name"
:
"WL01-flower(1)/矢量智能对象"
,
"x"
:
248
}],
"height"
:
512
,
"name"
:
"WL01-flower(1)"
,
"imagePath"
:
"WL01-flower(1)_tex.png"
}
\ No newline at end of file
{
"width"
:
512
,
"imagePath"
:
"WL01-flower(1)_tex.png"
,
"height"
:
512
,
"name"
:
"WL01-flower(1)"
,
"SubTexture"
:[{
"width"
:
210
,
"y"
:
1
,
"height"
:
198
,
"name"
:
"WL01-flower(1)/矢量智能对象_17"
,
"x"
:
1
},{
"width"
:
79
,
"y"
:
348
,
"height"
:
74
,
"name"
:
"WL01-flower(1)/矢量智能对象_16"
,
"x"
:
1
},{
"width"
:
47
,
"y"
:
406
,
"height"
:
44
,
"name"
:
"WL01-flower(1)/矢量智能对象_15"
,
"x"
:
82
},{
"width"
:
157
,
"y"
:
150
,
"height"
:
147
,
"name"
:
"WL01-flower(1)/矢量智能对象_14"
,
"x"
:
213
},{
"width"
:
58
,
"y"
:
342
,
"height"
:
54
,
"name"
:
"WL01-flower(1)/矢量智能对象_13"
,
"x"
:
329
},{
"width"
:
120
,
"y"
:
124
,
"height"
:
113
,
"name"
:
"WL01-flower(1)/矢量智能对象_12"
,
"x"
:
372
},{
"width"
:
157
,
"y"
:
1
,
"height"
:
147
,
"name"
:
"WL01-flower(1)/矢量智能对象_11"
,
"x"
:
213
},{
"width"
:
89
,
"y"
:
299
,
"height"
:
84
,
"name"
:
"WL01-flower(1)/矢量智能对象_10"
,
"x"
:
157
},{
"width"
:
154
,
"y"
:
201
,
"height"
:
145
,
"name"
:
"WL01-flower(1)/矢量智能对象_9"
,
"x"
:
1
},{
"width"
:
128
,
"y"
:
1
,
"height"
:
121
,
"name"
:
"WL01-flower(1)/矢量智能对象_8"
,
"x"
:
372
},{
"width"
:
60
,
"y"
:
348
,
"height"
:
56
,
"name"
:
"WL01-flower(1)/矢量智能对象_7"
,
"x"
:
82
},{
"width"
:
47
,
"y"
:
247
,
"height"
:
44
,
"name"
:
"WL01-flower(1)/矢量智能对象_6"
,
"x"
:
157
},{
"width"
:
79
,
"y"
:
299
,
"height"
:
74
,
"name"
:
"WL01-flower(1)/矢量智能对象_5"
,
"x"
:
248
},{
"width"
:
47
,
"y"
:
201
,
"height"
:
44
,
"name"
:
"WL01-flower(1)/矢量智能对象_4"
,
"x"
:
157
},{
"width"
:
45
,
"y"
:
342
,
"height"
:
42
,
"name"
:
"WL01-flower(1)/矢量智能对象_3"
,
"x"
:
389
},{
"width"
:
45
,
"y"
:
424
,
"height"
:
42
,
"name"
:
"WL01-flower(1)/矢量智能对象_2"
,
"x"
:
1
},{
"width"
:
58
,
"y"
:
375
,
"height"
:
54
,
"name"
:
"WL01-flower(1)/矢量智能对象_1"
,
"x"
:
248
},{
"width"
:
107
,
"y"
:
239
,
"height"
:
101
,
"name"
:
"WL01-flower(1)/矢量智能对象_0"
,
"x"
:
372
},{
"width"
:
58
,
"y"
:
385
,
"height"
:
54
,
"name"
:
"WL01-flower(1)/矢量智能对象"
,
"x"
:
144
}]}
\ No newline at end of file
play/assets/WL02/dragonBones/sound.anim
0 → 100644
View file @
4350d553
{
"__type__": "cc.AnimationClip",
"_name": "sound",
"_objFlags": 0,
"_native": "",
"_duration": 0.25,
"sample": 60,
"speed": 1,
"wrapMode": 2,
"curveData": {
"paths": {
"sound": {
"props": {
"active": [
{
"frame": 0,
"value": true
},
{
"frame": 0.05,
"value": false
},
{
"frame": 0.1,
"value": true
},
{
"frame": 0.15,
"value": false
},
{
"frame": 0.2,
"value": true
},
{
"frame": 0.25,
"value": false
}
]
}
},
"sound1": {
"props": {
"active": [
{
"frame": 0,
"value": false
},
{
"frame": 0.05,
"value": true
},
{
"frame": 0.1,
"value": false
},
{
"frame": 0.15,
"value": true
},
{
"frame": 0.2,
"value": false
},
{
"frame": 0.25,
"value": true
}
]
}
}
}
},
"events": []
}
\ No newline at end of file
play/assets/WL02/dragonBones/sound.anim.meta
0 → 100644
View file @
4350d553
{
"ver": "2.1.0",
"uuid": "264c55c1-d582-4791-adc1-56e17e70e764",
"subMetas": {}
}
\ No newline at end of file
play/assets/WL02/dragonBones/苍蝇拍灰尘_ske.json
0 → 100644
View file @
4350d553
{
"frameRate"
:
24
,
"name"
:
"苍蝇拍灰尘"
,
"version"
:
"5.5"
,
"compatibleVersion"
:
"5.5"
,
"armature"
:[{
"type"
:
"Armature"
,
"frameRate"
:
24
,
"name"
:
"Armature"
,
"aabb"
:{
"x"
:
-293.5
,
"y"
:
-232
,
"width"
:
568
,
"height"
:
441.83
},
"bone"
:[{
"name"
:
"root"
},{
"length"
:
102
,
"name"
:
"图层_0"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
263.25
,
"y"
:
194.3
,
"skX"
:
-164.6204
,
"skY"
:
-164.6204
}},{
"name"
:
"粉末2"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
-133.15
,
"y"
:
4.75
}},{
"name"
:
"粉末1"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
-233.6
,
"y"
:
-43.4
}},{
"name"
:
"粉末1_拷贝"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
206.8
,
"y"
:
-156.35
}},{
"name"
:
"粉末2_拷贝"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
126
,
"y"
:
-76.1
}},{
"length"
:
92
,
"name"
:
"图层_01"
,
"parent"
:
"图层_0"
,
"transform"
:{
"x"
:
102.9362
,
"skX"
:
26.534
,
"skY"
:
26.534
}},{
"length"
:
54
,
"name"
:
"图层_02"
,
"parent"
:
"图层_01"
,
"transform"
:{
"x"
:
92.5885
,
"skX"
:
11.4361
,
"skY"
:
11.4361
}},{
"length"
:
84
,
"name"
:
"图层_03"
,
"parent"
:
"图层_02"
,
"transform"
:{
"x"
:
54.7804
,
"skX"
:
1.7224
,
"skY"
:
1.7224
}},{
"length"
:
89
,
"name"
:
"图层_04"
,
"parent"
:
"图层_03"
,
"transform"
:{
"x"
:
84.0983
,
"skX"
:
4.623
,
"skY"
:
4.623
}}],
"slot"
:[{
"name"
:
"图层_0"
,
"parent"
:
"图层_04"
},{
"name"
:
"粉末2"
,
"parent"
:
"粉末2"
},{
"name"
:
"粉末1"
,
"parent"
:
"粉末1"
},{
"name"
:
"粉末2_拷贝"
,
"parent"
:
"粉末2_拷贝"
},{
"name"
:
"粉末1_拷贝"
,
"parent"
:
"粉末1_拷贝"
}],
"skin"
:[{
"slot"
:[{
"name"
:
"粉末2"
,
"display"
:[{
"name"
:
"苍蝇拍灰尘/粉末2"
,
"transform"
:{
"x"
:
-5.35
,
"y"
:
2.75
}}]},{
"name"
:
"粉末1"
,
"display"
:[{
"name"
:
"苍蝇拍灰尘/粉末1"
,
"transform"
:{
"x"
:
-1.4
,
"y"
:
1.9
}}]},{
"name"
:
"粉末2_拷贝"
,
"display"
:[{
"name"
:
"苍蝇拍灰尘/粉末2_拷贝"
,
"transform"
:{
"x"
:
6
,
"y"
:
5.1
}}]},{
"name"
:
"粉末1_拷贝"
,
"display"
:[{
"name"
:
"苍蝇拍灰尘/粉末1_拷贝"
,
"transform"
:{
"x"
:
9.2
,
"y"
:
4.85
}}]},{
"name"
:
"图层_0"
,
"display"
:[{
"type"
:
"mesh"
,
"name"
:
"苍蝇拍灰尘/图层_0"
,
"width"
:
364
,
"height"
:
308
,
"vertices"
:[
230.9
,
213.95
,
274.5
,
213.95
,
274.5
,
165.8
,
179.15
,
143.8
,
128.2
,
102.5
,
88.25
,
61.7
,
110.75
,
32.3
,
108
,
-17.2
,
91.5
,
-43.9
,
53.9
,
-94
,
27.3
,
-94
,
-42.5
,
-80.1
,
-89.5
,
-49.8
,
-89.5
,
-18.6
,
-72.8
,
24.5
,
-46.1
,
68.1
,
-8.95
,
93.75
,
47.45
,
80.05
,
91
,
131.35
,
150.7
,
182.35
],
"uvs"
:[
0.88022
,
0.99984
,
1
,
0.99984
,
1
,
0.84351
,
0.73805
,
0.77208
,
0.59808
,
0.63799
,
0.48832
,
0.50552
,
0.55014
,
0.41006
,
0.54258
,
0.24935
,
0.49725
,
0.16266
,
0.39396
,
0
,
0.32088
,
0
,
0.12912
,
0.04513
,
0
,
0.14351
,
0
,
0.24481
,
0.04588
,
0.38474
,
0.11923
,
0.5263
,
0.22129
,
0.60958
,
0.37624
,
0.5651
,
0.49588
,
0.73166
,
0.65989
,
0.89724
],
"triangles"
:[
3
,
0
,
2
,
2
,
0
,
1
,
3
,
19
,
0
,
4
,
19
,
3
,
4
,
18
,
19
,
5
,
18
,
4
,
5
,
17
,
18
,
8
,
17
,
7
,
17
,
5
,
7
,
7
,
5
,
6
,
11
,
14
,
10
,
14
,
15
,
17
,
14
,
17
,
8
,
10
,
14
,
8
,
9
,
10
,
8
,
15
,
16
,
17
,
13
,
14
,
11
,
12
,
13
,
11
],
"weights"
:[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
4
,
1
,
0.489266
,
6
,
0.454272
,
7
,
0.039806
,
8
,
0.016656
,
4
,
1
,
0.060634
,
6
,
0.579101
,
7
,
0.304613
,
8
,
0.055652
,
4
,
7
,
0.532725
,
8
,
0.332979
,
6
,
0.112683
,
9
,
0.021612
,
4
,
7
,
0.35226
,
8
,
0.348685
,
6
,
0.197706
,
9
,
0.101349
,
4
,
8
,
0.330643
,
7
,
0.270231
,
9
,
0.252086
,
6
,
0.147039
,
4
,
8
,
0.347796
,
9
,
0.337617
,
7
,
0.204699
,
6
,
0.109888
,
1
,
9
,
1
,
1
,
9
,
1
,
1
,
9
,
1
,
1
,
9
,
1
,
1
,
9
,
1
,
4
,
9
,
0.380061
,
8
,
0.368457
,
7
,
0.160466
,
6
,
0.091016
,
4
,
8
,
0.328359
,
9
,
0.30167
,
7
,
0.237918
,
6
,
0.132053
,
4
,
8
,
0.327847
,
7
,
0.315801
,
9
,
0.179936
,
6
,
0.176416
,
4
,
7
,
0.459272
,
8
,
0.42878
,
6
,
0.083781
,
9
,
0.028168
,
4
,
1
,
0.039327
,
6
,
0.536927
,
7
,
0.377489
,
8
,
0.046257
,
4
,
1
,
0.47428
,
6
,
0.49413
,
7
,
0.02252
,
8
,
0.00907
],
"slotPose"
:[
1
,
0
,
0
,
1
,
0
,
0
],
"bonePose"
:[
1
,
-0.96419
,
-0.265213
,
0.265213
,
-0.96419
,
263.25
,
194.3
,
6
,
-0.744153
,
-0.668009
,
0.668009
,
-0.744153
,
164
,
167
,
7
,
-0.596929
,
-0.802294
,
0.802294
,
-0.596929
,
95.1
,
105.15
,
8
,
-0.572544
,
-0.819874
,
0.819874
,
-0.572544
,
62.4
,
61.2
,
9
,
-0.5046
,
-0.863353
,
0.863353
,
-0.5046
,
14.25
,
-7.75
],
"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
,
18
,
18
,
19
,
19
,
0
],
"userEdges"
:[]}]}]}],
"animation"
:[{
"duration"
:
8
,
"playTimes"
:
0
,
"name"
:
"normal"
,
"bone"
:[{
"name"
:
"图层_0"
,
"translateFrame"
:[{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
44.07
,
"y"
:
-78.34
},{
"duration"
:
4
}],
"rotateFrame"
:[{
"duration"
:
4
,
"tweenEasing"
:
0
,
"rotate"
:
41.03
},{
"duration"
:
4
}]},{
"name"
:
"粉末2"
,
"translateFrame"
:[{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
128.42
,
"y"
:
-1.89
},{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
128.42
,
"y"
:
-1.89
},{
"duration"
:
0
}],
"scaleFrame"
:[{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
0.01
,
"y"
:
0.01
},{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
0.01
,
"y"
:
0.01
},{
"duration"
:
0
}]},{
"name"
:
"粉末1"
,
"translateFrame"
:[{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
230.14
,
"y"
:
40.87
},{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
230.14
,
"y"
:
40.87
},{
"duration"
:
0
}],
"scaleFrame"
:[{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
0.01
,
"y"
:
0.01
},{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
0.01
,
"y"
:
0.01
},{
"duration"
:
0
}]},{
"name"
:
"粉末1_拷贝"
,
"translateFrame"
:[{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
-197.57
,
"y"
:
147.24
},{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
-197.57
,
"y"
:
147.24
},{
"duration"
:
0
}],
"scaleFrame"
:[{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
0.01
,
"y"
:
0.01
},{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
0.01
,
"y"
:
0.01
},{
"duration"
:
0
}]},{
"name"
:
"粉末2_拷贝"
,
"translateFrame"
:[{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
-121.25
,
"y"
:
73.56
},{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
-121.25
,
"y"
:
73.56
},{
"duration"
:
0
}],
"scaleFrame"
:[{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
0.01
,
"y"
:
0.01
},{
"duration"
:
4
,
"tweenEasing"
:
0
,
"x"
:
0.01
,
"y"
:
0.01
},{
"duration"
:
0
}]},{
"name"
:
"图层_01"
,
"rotateFrame"
:[{
"duration"
:
4
,
"tweenEasing"
:
0
,
"rotate"
:
-10.48
},{
"duration"
:
2
,
"tweenEasing"
:
0
},{
"duration"
:
2
,
"tweenEasing"
:
0
,
"rotate"
:
-2.54
},{
"duration"
:
0
}]},{
"name"
:
"图层_02"
,
"rotateFrame"
:[{
"duration"
:
2
,
"tweenEasing"
:
0
,
"rotate"
:
-7.34
},{
"duration"
:
2
,
"tweenEasing"
:
0
,
"rotate"
:
11.46
},{
"duration"
:
2
,
"tweenEasing"
:
0
},{
"duration"
:
2
,
"tweenEasing"
:
0
,
"rotate"
:
-2.33
},{
"duration"
:
0
}]},{
"name"
:
"图层_03"
,
"rotateFrame"
:[{
"duration"
:
2
,
"tweenEasing"
:
0
,
"rotate"
:
-3.22
},{
"duration"
:
2
,
"tweenEasing"
:
0
,
"rotate"
:
8.81
},{
"duration"
:
2
,
"tweenEasing"
:
0
},{
"duration"
:
2
,
"tweenEasing"
:
0
,
"rotate"
:
-4.21
},{
"duration"
:
0
}]},{
"name"
:
"图层_04"
,
"rotateFrame"
:[{
"duration"
:
2
,
"tweenEasing"
:
0
,
"rotate"
:
1.37
},{
"duration"
:
2
,
"tweenEasing"
:
0
,
"rotate"
:
7.92
},{
"duration"
:
2
,
"tweenEasing"
:
0
},{
"duration"
:
2
,
"tweenEasing"
:
0
,
"rotate"
:
-4.55
},{
"duration"
:
0
}]}]}],
"defaultActions"
:[{
"gotoAndPlay"
:
"normal"
}]}]}
\ No newline at end of file
play/assets/WL02/dragonBones/苍蝇拍灰尘_ske.json.meta
0 → 100644
View file @
4350d553
{
"ver": "1.0.1",
"uuid": "6d78146c-bb3d-4a77-9af6-1cdca5b015ae",
"subMetas": {}
}
\ No newline at end of file
play/assets/WL02/dragonBones/苍蝇拍灰尘_tex.json
0 → 100644
View file @
4350d553
{
"width"
:
512
,
"imagePath"
:
"苍蝇拍灰尘_tex.png"
,
"height"
:
512
,
"name"
:
"苍蝇拍灰尘"
,
"SubTexture"
:[{
"width"
:
364
,
"y"
:
1
,
"height"
:
308
,
"name"
:
"苍蝇拍灰尘/图层_0"
,
"x"
:
1
},{
"width"
:
66
,
"y"
:
311
,
"height"
:
105
,
"name"
:
"苍蝇拍灰尘/粉末2"
,
"x"
:
82
},{
"width"
:
117
,
"y"
:
164
,
"height"
:
161
,
"name"
:
"苍蝇拍灰尘/粉末1"
,
"x"
:
367
},{
"width"
:
79
,
"y"
:
311
,
"height"
:
102
,
"name"
:
"苍蝇拍灰尘/粉末2_拷贝"
,
"x"
:
1
},{
"width"
:
117
,
"y"
:
1
,
"height"
:
161
,
"name"
:
"苍蝇拍灰尘/粉末1_拷贝"
,
"x"
:
367
}]}
\ No newline at end of file
play/assets/WL02/dragonBones/苍蝇拍灰尘_tex.json.meta
0 → 100644
View file @
4350d553
{
"ver": "1.0.1",
"uuid": "135511a5-8a89-4b35-bd9c-53b001b7fb59",
"subMetas": {}
}
\ No newline at end of file
play/assets/WL02/dragonBones/苍蝇拍灰尘_tex.png
0 → 100644
View file @
4350d553
138 KB
play/assets/WL02/
textures/bg2
.png.meta
→
play/assets/WL02/
dragonBones/苍蝇拍灰尘_tex
.png.meta
View file @
4350d553
{
"ver": "2.3.5",
"uuid": "
db64fd99-728b-49ba-99cc-9f5b3314a455
",
"uuid": "
7d17d49f-da42-4da2-be7c-ae9aa5d0ce90
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha":
fals
e,
"premultiplyAlpha":
tru
e,
"genMipmaps": false,
"packable": true,
"width":
1280
,
"height":
720
,
"width":
512
,
"height":
512
,
"platformSettings": {},
"subMetas": {
"
bg2
": {
"
苍蝇拍灰尘_tex
": {
"ver": "1.0.4",
"uuid": "4
46c3c6b-3ad5-43d0-bae5-27a215f3a281
",
"rawTextureUuid": "
db64fd99-728b-49ba-99cc-9f5b3314a455
",
"uuid": "4
67592e4-2b3c-4a0b-892a-6f30ec3aecde
",
"rawTextureUuid": "
7d17d49f-da42-4da2-be7c-ae9aa5d0ce90
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX":
0
,
"offsetY":
0
,
"trimX":
0
,
"trimY":
0
,
"width":
1280
,
"height":
720
,
"rawWidth":
1280
,
"rawHeight":
720
,
"offsetX":
-13.5
,
"offsetY":
47.5
,
"trimX":
1
,
"trimY":
1
,
"width":
483
,
"height":
415
,
"rawWidth":
512
,
"rawHeight":
512
,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
...
...
play/assets/WL02/scene/WL02.fire
View file @
4350d553
This diff is collapsed.
Click to expand it.
play/assets/WL02/scene/WL02.js
View file @
4350d553
import
{
onHomeworkFinish
,
RandomInt
,
playAudio
,
playAudioByUrl
,
playDragonBoneAnimation
}
from
"
../script/util
"
;
import
{
onHomeworkFinish
,
RandomInt
,
playAudio
,
playAudioByUrl
,
playDragonBoneAnimation
,
playAudioByUrlSync
}
from
"
../script/util
"
;
import
{
defaultData
}
from
"
../script/defaultData
"
;
cc
.
Class
({
...
...
@@ -110,13 +110,11 @@ cc.Class({
console
.
log
(
btn
.
_sprite
);
btn
.
_sprite
.
active
=
false
;
btn
.
on
(
'
click
'
,
()
=>
{
btn
.
on
(
'
click
'
,
async
()
=>
{
if
(
this
.
_sound_button
.
active
==
false
)
return
;
let
item
=
this
.
data
[
this
.
_index
];
if
(
item
.
audio_url
&&
item
.
audio_url
!=
""
){
playAudioByUrl
(
item
.
audio_url
);
}
await
this
.
playAudioSync
(
this
.
data
[
this
.
_index
].
audio_url
);
});
this
.
_sound_button
=
btn
;
...
...
@@ -258,26 +256,38 @@ cc.Class({
for
(
let
i
=
0
;
i
<
2
;
i
++
){
item
=
this
.
flys
[
i
];
if
(
cc
.
rect
(
item
.
getBoundingBoxToWorld
()).
contains
(
event
.
touch
.
_point
)){
this
.
cleanTimer
();
this
.
_flyswatter
.
x
=
pos
.
x
;
this
.
_flyswatter
.
y
=
pos
.
y
;
this
.
_touched
=
false
;
playDragonBoneAnimation
(
this
.
_flyswatter
.
children
[
0
],
'
normal
'
);
cc
.
tween
(
this
.
_flyswatter
)
.
delay
(
0.5
)
.
delay
(
0.2
)
.
call
(()
=>
{
if
(
i
!=
this
.
_correct_index
){
playDragonBoneAnimation
(
item
,
'
dizzy
'
,
1
,
()
=>
{
this
.
setTimer
();
playDragonBoneAnimation
(
item
,
'
normal
'
,
-
1
);
});
// cc.tween(this._time_node)
// .delay(1)
// .call(()=>{
// })
// .start();
}
else
{
this
.
fallCare
();
}
})
.
delay
(
0.1
)
.
call
(()
=>
{
this
.
_flyswatter
.
y
=
-
10000
;
// cc.tween(this._flyswatter)
// .to(0.2, {x: this._frameSize.width * 2, y: this._frameSize.height*4})
// .start();
})
.
start
();
this
.
cleanTimer
();
if
(
i
!=
this
.
_correct_index
){
playDragonBoneAnimation
(
item
,
'
dizzy
'
,
1
,
()
=>
{
this
.
setTimer
();
playDragonBoneAnimation
(
item
,
'
nomral
'
,
-
1
);
});
}
else
{
this
.
fallCare
();
}
return
;
}
}
...
...
@@ -288,9 +298,13 @@ cc.Class({
playGame
(){
this
.
_sound_button
.
_sprite
.
active
=
true
;
let
item
=
this
.
data
[
this
.
_index
];
if
(
item
.
audio_url
&&
item
.
audio_url
!=
""
){
playAudioByUrl
(
item
.
audio_url
);
}
cc
.
tween
(
this
.
_time_node
)
.
delay
(
0.8
)
.
call
(
async
()
=>
{
await
this
.
playAudioSync
(
item
.
audio_url
);
})
.
start
();
this
.
flyIn
(()
=>
{
this
.
setTimer
();
});
...
...
@@ -307,7 +321,7 @@ cc.Class({
for
(
let
i
=
0
;
i
<
2
;
i
++
){
this
.
flys
[
i
].
_move_to_cup
=
cc
.
tween
(
this
.
flys
[
i
])
.
to
(
this
.
_current_time
,
{
y
:
this
.
flys
[
i
].
_y
-
1
2
0
})
.
to
(
this
.
_current_time
,
{
y
:
this
.
flys
[
i
].
_y
-
1
1
0
})
.
start
();
}
},
...
...
@@ -363,8 +377,28 @@ cc.Class({
for
(
let
i
=
0
;
i
<
2
;
i
++
){
this
.
flyVirus
[
i
].
_text
.
string
=
idxs
[
i
];
this
.
flyVirus
[
i
].
_text
.
fontSize
=
64
;
this
.
virusOks
[
i
].
_text
.
string
=
idxs
[
i
];
this
.
virusOks
[
i
].
_text
.
fontSize
=
64
;
}
},
unitedFontSize
(
arr
,
width
,
size
){
let
len
=
arr
.
length
;
let
maxw
=
0
;
for
(
let
i
=
0
;
i
<
len
;
i
++
){
maxw
=
Math
.
max
(
arr
[
i
].
_text
.
node
.
width
,
maxw
);
}
maxw
=
Math
.
max
(
width
,
maxw
);
let
nsize
=
size
*
(
width
/
maxw
);
for
(
let
i
=
0
;
i
<
len
;
i
++
){
arr
[
i
].
_text
.
fontSize
=
nsize
;
}
return
nsize
;
},
updateFlag
(){
...
...
@@ -408,6 +442,13 @@ cc.Class({
this
.
flyVirus
[
0
].
active
=
true
;
this
.
flyVirus
[
1
].
active
=
true
;
this
.
unitedFontSize
(
this
.
flyVirus
,
240
,
64
);
for
(
let
i
=
0
;
i
<
2
;
i
++
){
this
.
virusOks
[
i
].
active
=
true
;
this
.
unitedFontSize
(
this
.
virusOks
,
240
,
64
);
this
.
virusOks
[
i
].
active
=
false
;
}
cc
.
tween
(
this
.
flys
[
0
])
.
to
(
0.8
,
{
x
:
this
.
flys
[
0
].
_x
})
.
start
();
...
...
@@ -473,7 +514,7 @@ cc.Class({
.
call
(()
=>
{
playDragonBoneAnimation
(
this
.
flys
[
0
],
'
normal
'
,
-
1
);
playDragonBoneAnimation
(
this
.
flys
[
1
],
'
normal
'
,
-
1
);
this
.
cupMoveDown
();
this
.
tryFinish
();
})
.
start
();
},
...
...
@@ -500,8 +541,35 @@ cc.Class({
.
start
();
},
allWrong
(){
let
item
,
len
=
this
.
_area
.
childrenCount
;
for
(
let
i
=
0
;
i
<
len
;
i
++
){
item
=
this
.
_area
[
i
];
if
(
item
.
children
[
0
].
active
==
true
)
return
false
;
}
return
true
;
},
async
playAudioSync
(
audio_url
){
if
(
audio_url
&&
audio_url
!=
""
){
this
.
soundAnimationPlay
();
await
playAudioByUrlSync
(
audio_url
);
this
.
soundAnimationStop
();
}
},
soundAnimationPlay
(){
this
.
_sound_button
.
getComponent
(
cc
.
Animation
).
play
();
},
soundAnimationStop
(){
let
btn
=
this
.
_sound_button
;
btn
.
getComponent
(
cc
.
Animation
).
stop
();
btn
.
children
[
1
].
active
=
true
;
btn
.
children
[
0
].
active
=
false
;
},
// ------------------------------------------
...
...
play/assets/WL02/script/defaultData.js
View file @
4350d553
...
...
@@ -2,14 +2,14 @@ export const defaultData =
{
"
sitems
"
:
[
{
"
correct
"
:
"
a
"
,
"
incorrect
"
:
"
the
"
,
"
correct
"
:
"
a
eee
"
,
"
incorrect
"
:
"
the
eeeee
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/dd360bbbcf5817eea26ac5fa3341ef5d.mp3
"
},
{
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/738ef124b1882d10b31d59fb2fbd7eb7.mp3
"
,
"
correct
"
:
"
b
"
,
"
incorrect
"
:
"
eee
"
"
incorrect
"
:
"
eee
eeeeeeeee
"
},
{
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/a812f773f22fdb5fa0de04bc7979f6d7.mp3
"
,
...
...
@@ -17,7 +17,7 @@ export const defaultData =
"
incorrect
"
:
"
ddd
"
}
],
"
time
"
:
"
3
"
,
"
time
"
:
"
10
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/a812f773f22fdb5fa0de04bc7979f6d7.mp3
"
,
"
title
"
:
"
woijsjifwoiejf
"
}
...
...
play/assets/WL02/script/util.js
View file @
4350d553
export
function
playAudioByUrlSync
(
audio_url
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
try
{
if
(
!
audio_url
)
{
resolve
();
return
;
}
cc
.
assetManager
.
loadRemote
(
audio_url
,
(
err
,
audioClip
)
=>
{
if
(
err
)
{
reject
(
err
);
return
;
}
const
audioId
=
cc
.
audioEngine
.
play
(
audioClip
,
false
,
0.8
);
cc
.
audioEngine
.
setFinishCallback
(
audioId
,
()
=>
{
resolve
();
});
});
}
catch
(
e
)
{
reject
(
e
);
}
});
}
export
function
playDragonBoneAnimation
(
node
,
animationName
,
time
=
1
,
onFinish
=
null
,
onFrameEvent
=
null
)
{
const
armatureDisplay
=
node
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
armatureDisplay
.
once
(
dragonBones
.
EventObject
.
COMPLETE
,
()
=>
{
...
...
play/assets/WL02/textures/bg.png
View replaced file @
862bac56
View file @
4350d553
162 KB
|
W:
|
H:
90.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
play/assets/WL02/textures/bg1.png
deleted
100644 → 0
View file @
862bac56
472 KB
play/assets/WL02/textures/bg2.png
deleted
100644 → 0
View file @
862bac56
90.9 KB
play/assets/WL02/textures/sound.png.meta
View file @
4350d553
{
"ver": "2.3.5",
"uuid": "
584dd5ec-79b4-4106-ae28-e9badda3bb74
",
"uuid": "
f4ddfeac-55e6-483c-bc5f-dcaf9d62b049
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"sound": {
"ver": "1.0.4",
"uuid": "
7f0c4726-754e-436f-b9ed-9320bbd0edb9
",
"rawTextureUuid": "
584dd5ec-79b4-4106-ae28-e9badda3bb74
",
"uuid": "
67305c3b-6f6c-4603-85fd-83883e41884a
",
"rawTextureUuid": "
f4ddfeac-55e6-483c-bc5f-dcaf9d62b049
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
play/assets/WL02/textures/sound1.png
0 → 100644
View file @
4350d553
531 Bytes
play/assets/WL02/textures/
bg
1.png.meta
→
play/assets/WL02/textures/
sound
1.png.meta
View file @
4350d553
{
"ver": "2.3.5",
"uuid": "
1276353c-1214-4193-8668-ee0f2ad2fd65
",
"uuid": "
cbc2ef05-37ea-4a53-9c0e-90766434de82
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha":
fals
e,
"premultiplyAlpha":
tru
e,
"genMipmaps": false,
"packable": true,
"width":
1280
,
"height":
720
,
"width":
48
,
"height":
46
,
"platformSettings": {},
"subMetas": {
"
bg
1": {
"
sound
1": {
"ver": "1.0.4",
"uuid": "
dedb0572-e58c-4703-b5b0-57a90f0d6d60
",
"rawTextureUuid": "
1276353c-1214-4193-8668-ee0f2ad2fd65
",
"uuid": "
e24bb3c9-8ed9-4f0e-8df8-72fc6a012b12
",
"rawTextureUuid": "
cbc2ef05-37ea-4a53-9c0e-90766434de82
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"offsetY": 0
.5
,
"trimX": 0,
"trimY": 0,
"width":
1280
,
"height":
720
,
"rawWidth":
1280
,
"rawHeight":
720
,
"width":
48
,
"height":
45
,
"rawWidth":
48
,
"rawHeight":
46
,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
...
...
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