Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MRBR02
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
MRBR02
Commits
043de7f2
Commit
043de7f2
authored
Apr 25, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
音频顺序修改
parent
b321010c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
201 additions
and
107 deletions
+201
-107
layout_mouse.ts
assets/MRBR02/mouse/small/layout_mouse.ts
+1
-1
MRBR02.fire
assets/MRBR02/scene/MRBR02.fire
+189
-105
MRBR02.ts
assets/MRBR02/scene/MRBR02.ts
+2
-1
pg.ts
assets/MRBR02/scene/pg.ts
+9
-0
No files found.
assets/MRBR02/mouse/small/layout_mouse.ts
View file @
043de7f2
...
...
@@ -138,7 +138,7 @@ export default class NewClass extends cc.Component {
.
to
(
0.8
,
{
scale
:
0
},
{
easing
:
'
quadOut
'
})
.
call
(()
=>
{
pg
.
event
.
emit
(
"
mouse_num_game_end
"
)
this
.
playAudio
(
this
.
starCountClip
);
//
this.playAudio(this.starCountClip);
})
.
start
();
...
...
assets/MRBR02/scene/MRBR02.fire
View file @
043de7f2
...
...
@@ -81,28 +81,28 @@
"__id__": 73
},
{
"__id__": 9
6
"__id__": 9
8
},
{
"__id__": 10
1
"__id__": 10
3
},
{
"__id__": 11
5
"__id__": 11
7
},
{
"__id__": 12
7
"__id__": 12
9
}
],
"_active": true,
"_components": [
{
"__id__": 1
48
"__id__": 1
50
},
{
"__id__": 1
49
"__id__": 1
51
},
{
"__id__": 15
0
"__id__": 15
2
}
],
"_prefab": null,
...
...
@@ -3672,7 +3672,7 @@
"_active": false,
"_components": [
{
"__id__": 9
5
"__id__": 9
7
}
],
"_prefab": null,
...
...
@@ -4397,6 +4397,9 @@
},
{
"__id__": 93
},
{
"__id__": 95
}
],
"_active": true,
...
...
@@ -4731,6 +4734,87 @@
"_atlas": null,
"_id": "fabnnS+spBUqA/e8sAfdmJ"
},
{
"__type__": "cc.Node",
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 88
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 96
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-3.753,
9.381,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "b3yCZ4yH5FMoOFwwI1mNuP"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 95
},
"_enabled": true,
"_clip": {
"__uuid__": "b6c10896-d58d-47bc-88a9-c289d884c621"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "03YI0C/llETovJWsE2pOcl"
},
{
"__type__": "cc.Button",
"_name": "",
...
...
@@ -4810,13 +4894,13 @@
},
"_children": [
{
"__id__": 9
7
"__id__": 9
9
}
],
"_active": false,
"_components": [],
"_prefab": {
"__id__": 10
0
"__id__": 10
2
},
"_opacity": 255,
"_color": {
...
...
@@ -4870,17 +4954,17 @@
"_name": "particle_star",
"_objFlags": 0,
"_parent": {
"__id__": 9
6
"__id__": 9
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
98
"__id__":
100
}
],
"_prefab": {
"__id__":
99
"__id__":
101
},
"_opacity": 255,
"_color": {
...
...
@@ -4934,7 +5018,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
7
"__id__": 9
9
},
"_enabled": true,
"_materials": [
...
...
@@ -5035,7 +5119,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 9
6
"__id__": 9
8
},
"asset": {
"__uuid__": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2"
...
...
@@ -5046,7 +5130,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 9
6
"__id__": 9
8
},
"asset": {
"__uuid__": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2"
...
...
@@ -5063,17 +5147,17 @@
},
"_children": [
{
"__id__": 10
2
"__id__": 10
4
}
],
"_active": true,
"_components": [
{
"__id__": 11
3
"__id__": 11
5
}
],
"_prefab": {
"__id__": 11
4
"__id__": 11
6
},
"_opacity": 255,
"_color": {
...
...
@@ -5127,23 +5211,23 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 10
1
"__id__": 10
3
},
"_children": [
{
"__id__": 10
3
"__id__": 10
5
},
{
"__id__": 10
6
"__id__": 10
8
},
{
"__id__": 1
09
"__id__": 1
11
}
],
"_active": false,
"_components": [],
"_prefab": {
"__id__": 11
2
"__id__": 11
4
},
"_opacity": 255,
"_color": {
...
...
@@ -5197,17 +5281,17 @@
"_name": "star_bg",
"_objFlags": 0,
"_parent": {
"__id__": 10
2
"__id__": 10
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
4
"__id__": 10
6
}
],
"_prefab": {
"__id__": 10
5
"__id__": 10
7
},
"_opacity": 255,
"_color": {
...
...
@@ -5261,7 +5345,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
3
"__id__": 10
5
},
"_enabled": true,
"_materials": [
...
...
@@ -5291,7 +5375,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 10
1
"__id__": 10
3
},
"asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
...
...
@@ -5304,17 +5388,17 @@
"_name": "star",
"_objFlags": 0,
"_parent": {
"__id__": 10
2
"__id__": 10
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
7
"__id__": 10
9
}
],
"_prefab": {
"__id__": 1
08
"__id__": 1
10
},
"_opacity": 255,
"_color": {
...
...
@@ -5368,7 +5452,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
6
"__id__": 10
8
},
"_enabled": true,
"_materials": [
...
...
@@ -5398,7 +5482,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 10
1
"__id__": 10
3
},
"asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
...
...
@@ -5411,17 +5495,17 @@
"_name": "icon_bigstar",
"_objFlags": 0,
"_parent": {
"__id__": 10
2
"__id__": 10
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
0
"__id__": 11
2
}
],
"_prefab": {
"__id__": 11
1
"__id__": 11
3
},
"_opacity": 255,
"_color": {
...
...
@@ -5475,7 +5559,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
09
"__id__": 1
11
},
"_enabled": true,
"_materials": [
...
...
@@ -5505,7 +5589,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 10
1
"__id__": 10
3
},
"asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
...
...
@@ -5516,7 +5600,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 10
1
"__id__": 10
3
},
"asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
...
...
@@ -5529,7 +5613,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
1
"__id__": 10
3
},
"_enabled": true,
"position": {
...
...
@@ -5548,7 +5632,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 10
1
"__id__": 10
3
},
"asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
...
...
@@ -5565,23 +5649,23 @@
},
"_children": [
{
"__id__": 11
6
"__id__": 11
8
},
{
"__id__": 1
19
"__id__": 1
21
},
{
"__id__": 12
2
"__id__": 12
4
}
],
"_active": false,
"_components": [
{
"__id__": 12
5
"__id__": 12
7
}
],
"_prefab": {
"__id__": 12
6
"__id__": 12
8
},
"_opacity": 255,
"_color": {
...
...
@@ -5635,17 +5719,17 @@
"_name": "ske_candy",
"_objFlags": 0,
"_parent": {
"__id__": 11
5
"__id__": 11
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
7
"__id__": 11
9
}
],
"_prefab": {
"__id__": 1
18
"__id__": 1
20
},
"_opacity": 255,
"_color": {
...
...
@@ -5699,7 +5783,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
6
"__id__": 11
8
},
"_enabled": true,
"_materials": [
...
...
@@ -5737,7 +5821,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 11
5
"__id__": 11
7
},
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
...
...
@@ -5750,17 +5834,17 @@
"_name": "ske",
"_objFlags": 0,
"_parent": {
"__id__": 11
5
"__id__": 11
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
0
"__id__": 12
2
}
],
"_prefab": {
"__id__": 12
1
"__id__": 12
3
},
"_opacity": 255,
"_color": {
...
...
@@ -5814,7 +5898,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
19
"__id__": 1
21
},
"_enabled": true,
"_materials": [
...
...
@@ -5852,7 +5936,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 11
5
"__id__": 11
7
},
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
...
...
@@ -5865,17 +5949,17 @@
"_name": "block",
"_objFlags": 0,
"_parent": {
"__id__": 11
5
"__id__": 11
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
3
"__id__": 12
5
}
],
"_prefab": {
"__id__": 12
4
"__id__": 12
6
},
"_opacity": 255,
"_color": {
...
...
@@ -5929,7 +6013,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
2
"__id__": 12
4
},
"_enabled": true,
"_id": "614Ol/VeZKyIbzJ5WMNHfT"
...
...
@@ -5937,7 +6021,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 11
5
"__id__": 11
7
},
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
...
...
@@ -5950,7 +6034,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
5
"__id__": 11
7
},
"_enabled": true,
"startPosition": {
...
...
@@ -5969,7 +6053,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 11
5
"__id__": 11
7
},
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
...
...
@@ -5986,26 +6070,26 @@
},
"_children": [
{
"__id__": 1
28
"__id__": 1
30
},
{
"__id__": 13
1
"__id__": 13
3
},
{
"__id__": 13
4
"__id__": 13
6
},
{
"__id__": 1
38
"__id__": 1
40
}
],
"_active": true,
"_components": [
{
"__id__": 14
6
"__id__": 14
8
}
],
"_prefab": {
"__id__": 14
7
"__id__": 14
9
},
"_opacity": 255,
"_color": {
...
...
@@ -6059,17 +6143,17 @@
"_name": "shadow",
"_objFlags": 0,
"_parent": {
"__id__": 12
7
"__id__": 12
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
29
"__id__": 1
31
}
],
"_prefab": {
"__id__": 13
0
"__id__": 13
2
},
"_opacity": 255,
"_color": {
...
...
@@ -6123,7 +6207,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
28
"__id__": 1
30
},
"_enabled": true,
"_materials": [
...
...
@@ -6153,7 +6237,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 12
7
"__id__": 12
9
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...
...
@@ -6166,17 +6250,17 @@
"_name": "ske",
"_objFlags": 0,
"_parent": {
"__id__": 12
7
"__id__": 12
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
2
"__id__": 13
4
}
],
"_prefab": {
"__id__": 13
3
"__id__": 13
5
},
"_opacity": 255,
"_color": {
...
...
@@ -6230,7 +6314,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
1
"__id__": 13
3
},
"_enabled": true,
"_materials": [
...
...
@@ -6268,7 +6352,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 12
7
"__id__": 12
9
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...
...
@@ -6281,20 +6365,20 @@
"_name": "block",
"_objFlags": 512,
"_parent": {
"__id__": 12
7
"__id__": 12
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
5
"__id__": 13
7
},
{
"__id__": 13
6
"__id__": 13
8
}
],
"_prefab": {
"__id__": 13
7
"__id__": 13
9
},
"_opacity": 100,
"_color": {
...
...
@@ -6348,7 +6432,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
4
"__id__": 13
6
},
"_enabled": true,
"_id": "9e5NQLsFlN9YT5gPreIgpl"
...
...
@@ -6358,7 +6442,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
4
"__id__": 13
6
},
"_enabled": false,
"_materials": [
...
...
@@ -6388,7 +6472,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 12
7
"__id__": 12
9
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...
...
@@ -6401,20 +6485,20 @@
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 12
7
"__id__": 12
9
},
"_children": [
{
"__id__": 1
39
"__id__": 1
41
},
{
"__id__": 14
2
"__id__": 14
4
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 14
5
"__id__": 14
7
},
"_opacity": 255,
"_color": {
...
...
@@ -6468,17 +6552,17 @@
"_name": "enter",
"_objFlags": 0,
"_parent": {
"__id__": 1
38
"__id__": 1
40
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
0
"__id__": 14
2
}
],
"_prefab": {
"__id__": 14
1
"__id__": 14
3
},
"_opacity": 255,
"_color": {
...
...
@@ -6532,7 +6616,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
39
"__id__": 1
41
},
"_enabled": true,
"_clip": {
...
...
@@ -6549,7 +6633,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 12
7
"__id__": 12
9
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...
...
@@ -6562,17 +6646,17 @@
"_name": "leave",
"_objFlags": 0,
"_parent": {
"__id__": 1
38
"__id__": 1
40
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
3
"__id__": 14
5
}
],
"_prefab": {
"__id__": 14
4
"__id__": 14
6
},
"_opacity": 255,
"_color": {
...
...
@@ -6626,7 +6710,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
2
"__id__": 14
4
},
"_enabled": true,
"_clip": {
...
...
@@ -6643,7 +6727,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 12
7
"__id__": 12
9
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...
...
@@ -6654,7 +6738,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 12
7
"__id__": 12
9
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...
...
@@ -6667,7 +6751,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
7
"__id__": 12
9
},
"_enabled": true,
"startPosition": {
...
...
@@ -6686,7 +6770,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 12
7
"__id__": 12
9
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...
...
@@ -6747,7 +6831,7 @@
},
"_enabled": true,
"ani_flower": {
"__id__": 9
6
"__id__": 9
8
},
"layout_card": {
"__id__": 35
...
...
assets/MRBR02/scene/MRBR02.ts
View file @
043de7f2
...
...
@@ -278,7 +278,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
this
.
onTouchCheckCantouch
=
false
;
})
},
5
00
);
},
20
00
);
}
updateCardResult
()
{
return
new
Promise
((
res
,
rej
)
=>
{
...
...
@@ -346,6 +346,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
progressbar_highlight
'
).
active
=
false
;
let
texts
=
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
texts
'
)
pg
.
audio
.
playAudioByNode
(
pg
.
view
.
find
(
texts
,
'
audio
'
))
texts
.
active
=
true
;
let
complate
=
texts
.
getChildByName
(
"
complate
"
);
...
...
assets/MRBR02/scene/pg.ts
View file @
043de7f2
...
...
@@ -481,6 +481,15 @@ let pg = {
});
});
},
playAudioByNode
(
node
)
{
const
audio
=
node
.
getComponent
(
cc
.
AudioSource
);
return
new
Promise
((
resolve
,
reject
)
=>
{
const
id
=
cc
.
audioEngine
.
playEffect
(
audio
.
clip
,
false
);
cc
.
audioEngine
.
setFinishCallback
(
id
,
()
=>
{
resolve
(
id
);
});
})
},
stopAudio
(
audioId
)
{
if
(
!
audioId
)
return
;
cc
.
audioEngine
.
stopEffect
(
audioId
);
...
...
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