Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
comparetree
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
comparetree
Commits
5d8be12b
Commit
5d8be12b
authored
Jun 13, 2021
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加正确错误音效
parent
a4336c82
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
13 additions
and
376 deletions
+13
-376
bigStar.mp3
play/assets/scene/audios/bigStar.mp3
+0
-0
bigStar.mp3.meta
play/assets/scene/audios/bigStar.mp3.meta
+0
-7
btn.mp3
play/assets/scene/audios/btn.mp3
+0
-0
btn.mp3.meta
play/assets/scene/audios/btn.mp3.meta
+0
-7
choice.mp3
play/assets/scene/audios/choice.mp3
+0
-0
choice.mp3.meta
play/assets/scene/audios/choice.mp3.meta
+0
-7
error.mp3
play/assets/scene/audios/error.mp3
+0
-0
error.mp3.meta
play/assets/scene/audios/error.mp3.meta
+1
-1
right.mp3
play/assets/scene/audios/right.mp3
+0
-0
right.mp3.meta
play/assets/scene/audios/right.mp3.meta
+1
-1
sahua.mp3
play/assets/scene/audios/sahua.mp3
+0
-0
sahua.mp3.meta
play/assets/scene/audios/sahua.mp3.meta
+1
-1
tishu.mp3
play/assets/scene/audios/tishu.mp3
+0
-0
tishu.mp3.meta
play/assets/scene/audios/tishu.mp3.meta
+0
-7
scene.fire
play/assets/scene/scene/scene.fire
+7
-343
scene.js
play/assets/scene/scene/scene.js
+3
-2
No files found.
play/assets/scene/audios/bigStar.mp3
deleted
100644 → 0
View file @
a4336c82
File deleted
play/assets/scene/audios/bigStar.mp3.meta
deleted
100644 → 0
View file @
a4336c82
{
"ver": "2.0.1",
"uuid": "a3f6fefb-abb7-418b-9726-ebea06068962",
"downloadMode": 0,
"duration": 1.776327,
"subMetas": {}
}
\ No newline at end of file
play/assets/scene/audios/btn.mp3
deleted
100644 → 0
View file @
a4336c82
File deleted
play/assets/scene/audios/btn.mp3.meta
deleted
100644 → 0
View file @
a4336c82
{
"ver": "2.0.1",
"uuid": "f0680ae0-c079-45ef-abd7-9e63d90b982b",
"downloadMode": 0,
"duration": 0.130612,
"subMetas": {}
}
\ No newline at end of file
play/assets/scene/audios/choice.mp3
deleted
100644 → 0
View file @
a4336c82
File deleted
play/assets/scene/audios/choice.mp3.meta
deleted
100644 → 0
View file @
a4336c82
{
"ver": "2.0.1",
"uuid": "88e389ad-cdd7-4d2b-8900-19bbb61c340a",
"downloadMode": 0,
"duration": 0.173333,
"subMetas": {}
}
\ No newline at end of file
play/assets/scene/audios/error.mp3
View file @
5d8be12b
No preview for this file type
play/assets/scene/audios/error.mp3.meta
View file @
5d8be12b
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
"ver": "2.0.1",
"ver": "2.0.1",
"uuid": "665e544c-fe92-4f24-bdcc-9475a763ff0c",
"uuid": "665e544c-fe92-4f24-bdcc-9475a763ff0c",
"downloadMode": 0,
"downloadMode": 0,
"duration": 0.
264
,
"duration": 0.
556563
,
"subMetas": {}
"subMetas": {}
}
}
\ No newline at end of file
play/assets/scene/audios/right.mp3
View file @
5d8be12b
No preview for this file type
play/assets/scene/audios/right.mp3.meta
View file @
5d8be12b
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
"ver": "2.0.1",
"ver": "2.0.1",
"uuid": "342d6b41-d606-43d5-9676-7b67f03d236f",
"uuid": "342d6b41-d606-43d5-9676-7b67f03d236f",
"downloadMode": 0,
"downloadMode": 0,
"duration": 0.
653061
,
"duration": 0.
938688
,
"subMetas": {}
"subMetas": {}
}
}
\ No newline at end of file
play/assets/scene/audios/sahua.mp3
View file @
5d8be12b
No preview for this file type
play/assets/scene/audios/sahua.mp3.meta
View file @
5d8be12b
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
"ver": "2.0.1",
"ver": "2.0.1",
"uuid": "16a0bc5d-fd4e-443e-aeb0-80139b29574d",
"uuid": "16a0bc5d-fd4e-443e-aeb0-80139b29574d",
"downloadMode": 0,
"downloadMode": 0,
"duration":
4.04898
,
"duration":
3.787755
,
"subMetas": {}
"subMetas": {}
}
}
\ No newline at end of file
play/assets/scene/audios/tishu.mp3
deleted
100644 → 0
View file @
a4336c82
File deleted
play/assets/scene/audios/tishu.mp3.meta
deleted
100644 → 0
View file @
a4336c82
{
"ver": "2.0.1",
"uuid": "e3803979-40c9-4b6c-9f51-39781cec1d1b",
"downloadMode": 0,
"duration": 2.115917,
"subMetas": {}
}
\ No newline at end of file
play/assets/scene/scene/scene.fire
View file @
5d8be12b
...
@@ -121,30 +121,18 @@
...
@@ -121,30 +121,18 @@
},
},
{
{
"__id__": 157
"__id__": 157
},
{
"__id__": 159
},
{
"__id__": 161
},
{
"__id__": 163
},
{
"__id__": 165
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
67
"__id__": 1
59
},
},
{
{
"__id__": 16
8
"__id__": 16
0
},
},
{
{
"__id__": 16
9
"__id__": 16
1
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -7679,249 +7667,6 @@
...
@@ -7679,249 +7667,6 @@
"preload": false,
"preload": false,
"_id": "afm7ZF5ftIkrEouzD71LCM"
"_id": "afm7ZF5ftIkrEouzD71LCM"
},
},
{
"__type__": "cc.Node",
"_name": "audio_bigStar",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 156
}
],
"_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": [
-640,
-360,
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": "5f1KAX/A9L+Z8K+JnCuIqo"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 155
},
"_enabled": true,
"_clip": {
"__uuid__": "a3f6fefb-abb7-418b-9726-ebea06068962"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "37gOE8YVlCGKbWeE1S3Bo0"
},
{
"__type__": "cc.Node",
"_name": "audio_btn",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 158
}
],
"_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": [
-640,
-360,
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": "89rYX7EglC+Kabra9cCS6V"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 157
},
"_enabled": true,
"_clip": {
"__uuid__": "f0680ae0-c079-45ef-abd7-9e63d90b982b"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "11R1xh1E5ORp0maU353nQi"
},
{
"__type__": "cc.Node",
"_name": "audio_choice",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 160
}
],
"_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": [
-640,
-360,
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": "a0SL0b0xlHzoG3VMjlh6de"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 159
},
"_enabled": true,
"_clip": {
"__uuid__": "88e389ad-cdd7-4d2b-8900-19bbb61c340a"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "9dpxg+SnxL6L7KsYEW4GbB"
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "audio_error",
"_name": "audio_error",
...
@@ -7933,7 +7678,7 @@
...
@@ -7933,7 +7678,7 @@
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
62
"__id__": 1
56
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -7989,7 +7734,7 @@
...
@@ -7989,7 +7734,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
61
"__id__": 1
55
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -8014,7 +7759,7 @@
...
@@ -8014,7 +7759,7 @@
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
64
"__id__": 1
58
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -8070,7 +7815,7 @@
...
@@ -8070,7 +7815,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
63
"__id__": 1
57
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -8084,87 +7829,6 @@
...
@@ -8084,87 +7829,6 @@
"preload": false,
"preload": false,
"_id": "82oUh6W0VHw6rGLaMd5mFF"
"_id": "82oUh6W0VHw6rGLaMd5mFF"
},
},
{
"__type__": "cc.Node",
"_name": "audio_tishu",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 166
}
],
"_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": [
-640,
-360,
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": "1c83PcFaVNb6s174FhuFAs"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 165
},
"_enabled": true,
"_clip": {
"__uuid__": "e3803979-40c9-4b6c-9f51-39781cec1d1b"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "d5kSalW1hFrZFC/n4/ImJJ"
},
{
{
"__type__": "cc.Canvas",
"__type__": "cc.Canvas",
"_name": "",
"_name": "",
...
...
play/assets/scene/scene/scene.js
View file @
5d8be12b
...
@@ -427,17 +427,18 @@ cc.Class({
...
@@ -427,17 +427,18 @@ cc.Class({
let
successed
=
box
.
data
.
child
.
some
(
dt
=>
dt
.
cardId
==
item
.
data
.
cardId
);
let
successed
=
box
.
data
.
child
.
some
(
dt
=>
dt
.
cardId
==
item
.
data
.
cardId
);
if
(
successed
)
{
if
(
successed
)
{
this
.
createRightAni
(
cc
.
v2
(
item
.
x
,
item
.
y
));
this
.
createRightAni
(
cc
.
v2
(
item
.
x
,
item
.
y
));
setTimeout
(()
=>
{
this
.
playSFX
(
"
audio_right
"
).
then
(()
=>
{
//检测是否全部完成
//检测是否全部完成
item
.
moveState
=
2
;
item
.
moveState
=
2
;
this
.
updateItem
(
item
);
this
.
updateItem
(
item
);
box
.
data
.
success
.
push
(
item
);
box
.
data
.
success
.
push
(
item
);
this
.
setSuccessItemPos
(
box
,
item
);
this
.
setSuccessItemPos
(
box
,
item
);
}
,
300
);
}
)
}
else
{
}
else
{
item
.
moveState
=
3
;
item
.
moveState
=
3
;
this
.
updateItem
(
item
);
this
.
updateItem
(
item
);
//碰撞失败退回原位置
//碰撞失败退回原位置
this
.
playSFX
(
"
audio_error
"
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
backItem
(
item
,
this
.
_startPos
);
this
.
backItem
(
item
,
this
.
_startPos
);
},
300
);
},
300
);
...
...
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