Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cc_mz_007
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
cc_mz_007
Commits
3e88d95c
Commit
3e88d95c
authored
Sep 28, 2020
by
Li Mingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: git status
parent
768e1b3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
109 additions
and
17 deletions
+109
-17
scene.fire
play/assets/mz_007/scene/scene.fire
+96
-13
scene.js
play/assets/mz_007/script/scene.js
+13
-4
No files found.
play/assets/mz_007/scene/scene.fire
View file @
3e88d95c
...
...
@@ -90,13 +90,13 @@
"_active": true,
"_components": [
{
"__id__":
99
"__id__":
101
},
{
"__id__": 10
0
"__id__": 10
2
},
{
"__id__": 10
1
"__id__": 10
3
}
],
"_prefab": null,
...
...
@@ -4257,6 +4257,9 @@
},
{
"__id__": 97
},
{
"__id__": 99
}
],
"_active": true,
...
...
@@ -4311,7 +4314,7 @@
},
{
"__type__": "cc.Node",
"_name": "
down
",
"_name": "
good_job
",
"_objFlags": 0,
"_parent": {
"__id__": 88
...
...
@@ -4369,7 +4372,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
f0x5ckidJP5KWgxP+TVQyF
"
"_id": "
0fPKnYMXNNC56vZoweMREW
"
},
{
"__type__": "cc.AudioSource",
...
...
@@ -4379,6 +4382,86 @@
"__id__": 89
},
"_enabled": true,
"_clip": {
"__uuid__": "2538c0da-c920-4b9d-b410-fbb5c25065a9"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"playOnLoad": false,
"preload": false,
"_id": "d4vFHBRrZKbZcEOhrGGJj6"
},
{
"__type__": "cc.Node",
"_name": "down",
"_objFlags": 0,
"_parent": {
"__id__": 88
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 92
}
],
"_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": [
0,
0,
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": "f0x5ckidJP5KWgxP+TVQyF"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
},
"_enabled": true,
"_clip": {
"__uuid__": "78a668b5-2bbb-4e9c-a2eb-35416737679b"
},
...
...
@@ -4400,7 +4483,7 @@
"_active": true,
"_components": [
{
"__id__": 9
2
"__id__": 9
4
}
],
"_prefab": null,
...
...
@@ -4456,7 +4539,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
1
"__id__": 9
3
},
"_enabled": true,
"_clip": {
...
...
@@ -4480,7 +4563,7 @@
"_active": true,
"_components": [
{
"__id__": 9
4
"__id__": 9
6
}
],
"_prefab": null,
...
...
@@ -4536,7 +4619,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
3
"__id__": 9
5
},
"_enabled": true,
"_clip": {
...
...
@@ -4560,7 +4643,7 @@
"_active": true,
"_components": [
{
"__id__": 9
6
"__id__": 9
8
}
],
"_prefab": null,
...
...
@@ -4616,7 +4699,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
5
"__id__": 9
7
},
"_enabled": true,
"_clip": {
...
...
@@ -4640,7 +4723,7 @@
"_active": true,
"_components": [
{
"__id__":
98
"__id__":
100
}
],
"_prefab": null,
...
...
@@ -4696,7 +4779,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
7
"__id__": 9
9
},
"_enabled": true,
"_clip": {
...
...
play/assets/mz_007/script/scene.js
View file @
3e88d95c
...
...
@@ -218,6 +218,7 @@ cc.Class({
audioWrong
:
null
,
audioUp
:
null
,
audioDown
:
null
,
audioGb
:
null
,
initAudio
()
{
const
audioNode
=
cc
.
find
(
'
Canvas/res/audio
'
);
...
...
@@ -229,6 +230,7 @@ cc.Class({
this
.
audioWrong
=
getAudioByResName
(
'
wrong
'
);
this
.
audioUp
=
getAudioByResName
(
'
up
'
);
this
.
audioDown
=
getAudioByResName
(
'
down
'
);
this
.
audioGb
=
getAudioByResName
(
'
good_job
'
);
// cc.audioEngine.play(this.audioBgm.clip, true, 0.1)
...
...
@@ -242,7 +244,7 @@ cc.Class({
this
.
groupIdx
=
0
;
this
.
curGroup
=
this
.
data
.
groupArr
[
this
.
groupIdx
];
this
.
_cantouch
=
tru
e
;
this
.
_cantouch
=
fals
e
;
this
.
isShowRightAnima
=
false
;
},
...
...
@@ -378,6 +380,9 @@ cc.Class({
const
touchCircle
=
()
=>
{
console
.
log
(
'
circle data:
'
,
circle
.
parent
.
data
)
if
(
!
this
.
_cantouch
)
{
return
;
}
if
(
circlePosNode
.
isClicked
||
this
.
isShowRightAnima
)
{
return
;
...
...
@@ -493,7 +498,9 @@ cc.Class({
this
.
curRightDragonDisplay
.
playAnimation
(
this
.
curRightDragonDisplay
.
curName
,
-
1
);
this
.
curRightDragonDisplay
.
timeScale
=
1
;
this
.
showRightBubbleSound
();
this
.
showRightBubbleSound
(()
=>
{
cc
.
audioEngine
.
play
(
this
.
audioGb
.
clip
,
false
,
0.2
)
});
})
.
start
();
...
...
@@ -501,8 +508,8 @@ cc.Class({
},
showRightBubbleSound
()
{
playAudioByUrl
(
this
.
rightBubble
.
data
.
audio_url
);
showRightBubbleSound
(
cb
=
null
)
{
playAudioByUrl
(
this
.
rightBubble
.
data
.
audio_url
,
cb
);
},
...
...
@@ -844,9 +851,11 @@ cc.Class({
},
resetBubble
()
{
this
.
bubble
.
scale
=
1
;
this
.
bubbleJump
(
this
.
bubble
);
this
.
_cantouch
=
true
;
},
showMaskLayer
(
cb
)
{
...
...
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