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
6bf0994a
Commit
6bf0994a
authored
Apr 23, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mrbr02增加棒棒糖效果 打乱
parent
fabbf024
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
472 additions
and
473 deletions
+472
-473
mstart.ts
assets/cocos_generator/mouse/start/mstart.ts
+9
-17
Game.ts
assets/cocos_generator/scene/Game.ts
+12
-1
mrbr02.fire
assets/cocos_generator/scene/mrbr02.fire
+360
-442
mrbr02.ts
assets/cocos_generator/scene/mrbr02.ts
+89
-12
defaultData.ts
assets/cocos_generator/script/defaultData.ts
+2
-1
No files found.
assets/cocos_generator/mouse/start/mstart.ts
View file @
6bf0994a
...
@@ -28,14 +28,20 @@ export default class MouseStart extends cc.Component {
...
@@ -28,14 +28,20 @@ export default class MouseStart extends cc.Component {
this
.
ske
.
x
=
this
.
startPosition
.
x
;
this
.
ske
.
x
=
this
.
startPosition
.
x
;
this
.
ske
.
y
=
this
.
startPosition
.
y
;
this
.
ske
.
y
=
this
.
startPosition
.
y
;
}
}
play
()
{
play
(
audioUrl
?:
string
)
{
this
.
moveInTime
=
Game
.
getIns
().
aniEnter
.
time
||
5
;
this
.
moveInTime
=
Game
.
getIns
().
aniEnter
.
time
||
5
;
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
isPlaying
=
true
;
let
isPlaying
=
true
;
this
.
ske
.
x
=
this
.
startPosition
.
x
;
this
.
ske
.
y
=
this
.
startPosition
.
y
;
this
.
ske
.
active
=
true
;
this
.
node
.
active
=
true
;
this
.
block
.
active
=
true
;
pg
.
load
.
loadDB
(
this
.
ske
,
{
ske
:
Game
.
getIns
().
aniEnter
.
skeJsonData
.
url
,
tex
:
Game
.
getIns
().
aniEnter
.
texJsonData
.
url
,
png
:
Game
.
getIns
().
aniEnter
.
texPngData
.
url
}).
then
((
animationName
)
=>
{
pg
.
load
.
loadDB
(
this
.
ske
,
{
ske
:
Game
.
getIns
().
aniEnter
.
skeJsonData
.
url
,
tex
:
Game
.
getIns
().
aniEnter
.
texJsonData
.
url
,
png
:
Game
.
getIns
().
aniEnter
.
texPngData
.
url
}).
then
((
animationName
)
=>
{
cc
.
tween
(
this
.
ske
).
to
(
1.3
,
{
x
:
this
.
targetPosition
.
x
,
y
:
this
.
targetPosition
.
y
}).
call
(()
=>
{
cc
.
tween
(
this
.
ske
).
to
(
1.3
,
{
x
:
this
.
targetPosition
.
x
,
y
:
this
.
targetPosition
.
y
}).
call
(()
=>
{
if
(
Game
.
getIns
().
aniEnter
.
audioUrl
)
{
audioUrl
=
audioUrl
?
audioUrl
:
Game
.
getIns
().
aniEnter
.
audioUrl
;
this
.
playAudioByUrl
(
Game
.
getIns
().
aniEnter
.
audioUrl
,
()
=>
{
if
(
audioUrl
)
{
pg
.
audio
.
playAudioByUrl
(
audioUrl
).
then
(()
=>
{
isPlaying
=
false
;
isPlaying
=
false
;
resolve
(
''
);
resolve
(
''
);
})
})
...
@@ -56,18 +62,4 @@ export default class MouseStart extends cc.Component {
...
@@ -56,18 +62,4 @@ export default class MouseStart extends cc.Component {
})
})
});
});
}
}
playAudioByUrl
(
audio_url
,
cb
=
null
)
{
if
(
audio_url
)
{
cc
.
assetManager
.
loadRemote
(
audio_url
,
(
err
,
audioClip
)
=>
{
const
audioId
=
cc
.
audioEngine
.
play
(
audioClip
,
false
,
0.8
);
if
(
cb
)
{
cc
.
audioEngine
.
setFinishCallback
(
audioId
,
()
=>
{
cb
();
});
}
});
}
else
{
cb
&&
cb
();
}
}
}
}
assets/cocos_generator/scene/Game.ts
View file @
6bf0994a
...
@@ -5,6 +5,7 @@ export class Option {
...
@@ -5,6 +5,7 @@ export class Option {
audioUrl
;
audioUrl
;
public
data
;
public
data
;
public
id
:
number
;
public
id
:
number
;
public
count
:
number
;
constructor
(
data
,
id
)
{
constructor
(
data
,
id
)
{
this
.
id
=
id
;
this
.
id
=
id
;
this
.
data
=
data
;
this
.
data
=
data
;
...
@@ -23,9 +24,18 @@ export class Item {
...
@@ -23,9 +24,18 @@ export class Item {
this
.
audio
=
data
.
audio
;
this
.
audio
=
data
.
audio
;
this
.
image
=
data
.
image
;
this
.
image
=
data
.
image
;
let
id
=
0
;
let
id
=
0
;
this
.
optionList
=
data
.
optionList
.
map
(
o
=>
{
this
.
optionList
=
data
.
optionList
.
map
(
o
=>
{
return
new
Option
(
o
,
id
++
);
return
new
Option
(
o
,
id
++
);
})
})
this
.
optionList
.
sort
(
function
()
{
return
(
0.5
-
Math
.
random
());
});
for
(
let
i
=
0
;
i
<
this
.
optionList
.
length
;
i
++
)
{
this
.
optionList
[
i
].
count
=
i
;
}
this
.
page
=
page
;
this
.
page
=
page
;
}
}
}
}
...
@@ -65,7 +75,8 @@ export default class Game {
...
@@ -65,7 +75,8 @@ export default class Game {
}
}
checkSuccess
(
arr
:
Option
[])
{
checkSuccess
(
arr
:
Option
[])
{
let
data
=
this
.
getCurrentPage
();
let
data
=
this
.
getCurrentPage
();
let
options
=
data
.
optionList
;
let
options
=
data
.
optionList
.
concat
();
options
.
sort
((
A
,
B
)
=>
A
.
id
-
B
.
id
)
for
(
let
i
=
0
;
i
<
options
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
options
.
length
;
i
++
)
{
if
(
arr
[
i
]
&&
arr
[
i
].
id
!=
options
[
i
].
id
)
{
if
(
arr
[
i
]
&&
arr
[
i
].
id
!=
options
[
i
].
id
)
{
return
false
;
return
false
;
...
...
assets/cocos_generator/scene/mrbr02.fire
View file @
6bf0994a
...
@@ -78,25 +78,28 @@
...
@@ -78,25 +78,28 @@
"__id__": 15
"__id__": 15
},
},
{
{
"__id__":
95
"__id__":
70
},
},
{
{
"__id__":
100
"__id__":
93
},
},
{
{
"__id__": 109
"__id__": 98
},
{
"__id__": 107
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
21
"__id__": 1
19
},
},
{
{
"__id__": 12
2
"__id__": 12
0
},
},
{
{
"__id__": 12
3
"__id__": 12
1
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -786,10 +789,10 @@
...
@@ -786,10 +789,10 @@
"__id__": 18
"__id__": 18
},
},
{
{
"__id__":
91
"__id__":
66
},
},
{
{
"__id__":
93
"__id__":
68
}
}
],
],
"_active": true,
"_active": true,
...
@@ -969,22 +972,13 @@
...
@@ -969,22 +972,13 @@
"__id__": 61
"__id__": 61
},
},
{
{
"__id__": 70
"__id__": 63
},
{
"__id__": 79
},
{
"__id__": 86
},
{
"__id__": 88
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
90
"__id__":
65
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3095,87 +3089,16 @@
...
@@ -3095,87 +3089,16 @@
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
voice
",
"_name": "
btn_check_grey
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 18
"__id__": 18
},
},
"_children": [
{
"__id__": 62
},
{
"__id__": 64
},
{
"__id__": 66
},
{
"__id__": 68
}
],
"_active": false,
"_components": [],
"_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": "91JQKY5+FOerm0a0ticHc4"
},
{
"__type__": "cc.Node",
"_name": "microphone1",
"_objFlags": 0,
"_parent": {
"__id__": 61
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 6
3
"__id__": 6
2
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3189,8 +3112,8 @@
...
@@ -3189,8 +3112,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
80
,
"width":
184
,
"height":
90
"height":
76
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -3201,8 +3124,8 @@
...
@@ -3201,8 +3124,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0.695
,
-1.877
,
180.625
,
-238.281
,
0,
0,
0,
0,
0,
0,
...
@@ -3224,14 +3147,14 @@
...
@@ -3224,14 +3147,14 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
e3emrWk5lLxa2hz+O0IMZe
"
"_id": "
3agSeCaxBGa6VSjIboN/MN
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
2
"__id__": 6
1
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3242,10 +3165,10 @@
...
@@ -3242,10 +3165,10 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
f923bd6f-6476-4152-86ce-303cbe1b1a1f
"
"__uuid__": "
675b6abc-93d9-4775-b522-f33bcfb9432b
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode":
0
,
"_sizeMode":
1
,
"_fillType": 0,
"_fillType": 0,
"_fillCenter": {
"_fillCenter": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -3256,20 +3179,20 @@
...
@@ -3256,20 +3179,20 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "
acKRfn1l5NMLSvUzvpIfmv
"
"_id": "
88wIkQOO9LvLCS8q6WgZsA
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
voice_in
",
"_name": "
btn_check
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
61
"__id__":
18
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 6
5
"__id__": 6
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3283,8 +3206,8 @@
...
@@ -3283,8 +3206,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1
53
,
"width": 1
84
,
"height":
153
"height":
76
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -3295,8 +3218,8 @@
...
@@ -3295,8 +3218,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-1.
529
,
-1.
877
,
182.848
,
-238.281
,
0,
0,
0,
0,
0,
0,
...
@@ -3318,14 +3241,14 @@
...
@@ -3318,14 +3241,14 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
91+7mh8nZLx5/HGJUwCczE
"
"_id": "
65wAAKUmRD4boh5iJpBKgv
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
4
"__id__": 6
3
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3336,7 +3259,7 @@
...
@@ -3336,7 +3259,7 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
c75f3857-f1f1-4167-9074-42caa4c3363b
"
"__uuid__": "
0c9c162f-cca3-4dd9-8d8a-72097d5d3526
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 1,
...
@@ -3350,14 +3273,46 @@
...
@@ -3350,14 +3273,46 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "d16B5B2BhGQI9eECFXu6Za"
"_id": "8cgmUtWktFToaCUGWxM4/g"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d9ada80a-9887-4a02-9b74-addf0a0968a0"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "6coYpCxHNEjY31GJbAN6NZ"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
voice_middle
",
"_name": "
bg_flower_left
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
61
"__id__":
15
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
...
@@ -3377,8 +3332,8 @@
...
@@ -3377,8 +3332,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
213
,
"width":
377
,
"height": 2
13
"height": 2
38
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -3389,8 +3344,8 @@
...
@@ -3389,8 +3344,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-
1.529
,
-
447.593
,
180.624
,
-239.307
,
0,
0,
0,
0,
0,
0,
...
@@ -3412,7 +3367,7 @@
...
@@ -3412,7 +3367,7 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
79xyOgh/dAorq7NxxKd/lt
"
"_id": "
1c0XDQD7dAnqdjXtE3jkHW
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -3430,7 +3385,7 @@
...
@@ -3430,7 +3385,7 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
55016163-5965-48d1-8dc9-e52588cff17a
"
"__uuid__": "
8fae886a-4a22-407c-92e7-3b595b16776d
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 1,
...
@@ -3444,14 +3399,14 @@
...
@@ -3444,14 +3399,14 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "
ffZctXVkVG26+h3Nrc6XCx
"
"_id": "
dfa7HV0HFGW44fqmG9IPPi
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
voice_ou
t",
"_name": "
bg_flower_righ
t",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
61
"__id__":
15
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
...
@@ -3471,8 +3426,8 @@
...
@@ -3471,8 +3426,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
273
,
"width":
531
,
"height": 2
73
"height": 2
46
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -3483,8 +3438,8 @@
...
@@ -3483,8 +3438,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-3.753
,
373.02
,
180.624
,
-234.937
,
0,
0,
0,
0,
0,
0,
...
@@ -3506,7 +3461,7 @@
...
@@ -3506,7 +3461,7 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "0
4unt62yxE/optmgWcpkU4
"
"_id": "0
8WeoKPxBBIJPZrgbC072w
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -3524,7 +3479,7 @@
...
@@ -3524,7 +3479,7 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
2af72d99-ca76-45f5-a07f-6ac5d6eb9c4a
"
"__uuid__": "
f860edbb-8083-456a-b74d-8cd5197d539e
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 1,
...
@@ -3538,14 +3493,14 @@
...
@@ -3538,14 +3493,14 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "
4410mnEu5HHJt+ceEIRbyx
"
"_id": "
ba+1O9NGtAl4sw5FX4lRO6
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
progress_bar
",
"_name": "
layout_lollipop
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
18
"__id__":
2
},
},
"_children": [
"_children": [
{
{
...
@@ -3559,10 +3514,26 @@
...
@@ -3559,10 +3514,26 @@
},
},
{
{
"__id__": 77
"__id__": 77
},
{
"__id__": 79
},
{
"__id__": 81
},
{
"__id__": 83
},
{
"__id__": 85
}
],
"_active": true,
"_components": [
{
"__id__": 92
}
}
],
],
"_active": false,
"_components": [],
"_prefab": null,
"_prefab": null,
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -3574,8 +3545,8 @@
...
@@ -3574,8 +3545,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 0,
"width":
128
0,
"height": 0
"height":
72
0
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -3613,13 +3584,13 @@
...
@@ -3613,13 +3584,13 @@
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
microphone2
",
"_name": "
v1
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 70
"__id__": 70
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 72
"__id__": 72
...
@@ -3636,8 +3607,8 @@
...
@@ -3636,8 +3607,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1
29
,
"width": 1
53
,
"height": 1
48
"height": 1
53
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -3648,15 +3619,15 @@
...
@@ -3648,15 +3619,15 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0.695
,
-1.529
,
1
69.505
,
1
82.848
,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
.5
,
1,
1
.5
,
1
1
]
]
},
},
...
@@ -3671,7 +3642,7 @@
...
@@ -3671,7 +3642,7 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
a7+S2A6B5FP5JuYSXB+w/x
"
"_id": "
91+7mh8nZLx5/HGJUwCczE
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -3689,7 +3660,7 @@
...
@@ -3689,7 +3660,7 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
f923bd6f-6476-4152-86ce-303cbe1b1a1f
"
"__uuid__": "
c75f3857-f1f1-4167-9074-42caa4c3363b
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 1,
...
@@ -3703,17 +3674,17 @@
...
@@ -3703,17 +3674,17 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "
17M3SfWABLRrG3Rz6oD2GS
"
"_id": "
d16B5B2BhGQI9eECFXu6Za
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
progressbar_grey
",
"_name": "
v2
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 70
"__id__": 70
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 74
"__id__": 74
...
@@ -3730,8 +3701,8 @@
...
@@ -3730,8 +3701,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 2
34
,
"width": 2
13
,
"height": 2
39
"height": 2
13
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -3742,15 +3713,15 @@
...
@@ -3742,15 +3713,15 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-
4.305
,
-
1.529
,
1
68.81
,
1
80.624
,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
.3
,
1,
1
.3
,
1
1
]
]
},
},
...
@@ -3765,7 +3736,7 @@
...
@@ -3765,7 +3736,7 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
9aNHlKyHlFTplaR9OtBYi9
"
"_id": "
79xyOgh/dAorq7NxxKd/lt
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -3783,7 +3754,7 @@
...
@@ -3783,7 +3754,7 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
c6ecc786-a1b3-4f5f-bcfa-bd37e1a05980
"
"__uuid__": "
55016163-5965-48d1-8dc9-e52588cff17a
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 1,
...
@@ -3797,17 +3768,17 @@
...
@@ -3797,17 +3768,17 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "
cfl+n3oodFgbM5eYorsdZA
"
"_id": "
ffZctXVkVG26+h3Nrc6XCx
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
progressbar_red
",
"_name": "
v3
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 70
"__id__": 70
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 76
"__id__": 76
...
@@ -3824,8 +3795,8 @@
...
@@ -3824,8 +3795,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 2
34
,
"width": 2
73
,
"height": 2
39
"height": 2
73
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -3837,14 +3808,14 @@
...
@@ -3837,14 +3808,14 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-3.753,
-3.753,
1
69.505
,
1
80.624
,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
.2
,
1,
1
.2
,
1
1
]
]
},
},
...
@@ -3859,7 +3830,7 @@
...
@@ -3859,7 +3830,7 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
2d5A51MNtOmKntf1ISHCVJ
"
"_id": "
04unt62yxE/optmgWcpkU4
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -3877,7 +3848,7 @@
...
@@ -3877,7 +3848,7 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
e8ef275d-acde-450e-9963-219e9d82a229
"
"__uuid__": "
2af72d99-ca76-45f5-a07f-6ac5d6eb9c4a
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 1,
...
@@ -3891,11 +3862,11 @@
...
@@ -3891,11 +3862,11 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "
34oChjpwRGqa1x4G3ztkmJ
"
"_id": "
4410mnEu5HHJt+ceEIRbyx
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
progressbar_highlight
",
"_name": "
icon
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 70
"__id__": 70
...
@@ -3918,8 +3889,8 @@
...
@@ -3918,8 +3889,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
272
,
"width":
129
,
"height":
277
"height":
148
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -3930,7 +3901,7 @@
...
@@ -3930,7 +3901,7 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-3.753
,
0.695
,
169.505,
169.505,
0,
0,
0,
0,
...
@@ -3953,7 +3924,7 @@
...
@@ -3953,7 +3924,7 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
6a7+jKpx5Hnpig9UcC72UU
"
"_id": "
a7+S2A6B5FP5JuYSXB+w/x
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -3971,7 +3942,7 @@
...
@@ -3971,7 +3942,7 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
c816fad3-2f41-4ed3-9144-44f82ca40034
"
"__uuid__": "
f923bd6f-6476-4152-86ce-303cbe1b1a1f
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 1,
...
@@ -3985,88 +3956,20 @@
...
@@ -3985,88 +3956,20 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "1bmyGFn7tIxLEO2XhvGi5T"
"_id": "17M3SfWABLRrG3Rz6oD2GS"
},
{
"__type__": "cc.Node",
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 18
},
"_children": [
{
"__id__": 80
},
{
"__id__": 82
},
{
"__id__": 84
}
],
"_active": false,
"_components": [],
"_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": "f4IdlcOrdAhL1LY6vy61CY"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
text_up
",
"_name": "
progressbar_grey
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 7
9
"__id__": 7
0
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 8
1
"__id__": 8
0
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4080,8 +3983,8 @@
...
@@ -4080,8 +3983,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
615
,
"width":
234
,
"height":
121
"height":
239
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -4092,8 +3995,8 @@
...
@@ -4092,8 +3995,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-
6.26
5,
-
4.30
5,
1
77.432
,
1
68.81
,
0,
0,
0,
0,
0,
0,
...
@@ -4115,14 +4018,14 @@
...
@@ -4115,14 +4018,14 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
c0IsaH1shD8bzElUf2RcKs
"
"_id": "
9aNHlKyHlFTplaR9OtBYi9
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
80
"__id__":
79
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4133,7 +4036,7 @@
...
@@ -4133,7 +4036,7 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
b66f1580-a612-48d2-a981-7d80a0c72882
"
"__uuid__": "
c6ecc786-a1b3-4f5f-bcfa-bd37e1a05980
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 1,
...
@@ -4147,20 +4050,20 @@
...
@@ -4147,20 +4050,20 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "
6dhwt7WehONbr/RKwSSfsv
"
"_id": "
cfl+n3oodFgbM5eYorsdZA
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
text_middle
",
"_name": "
progressbar_red
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 7
9
"__id__": 7
0
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 8
3
"__id__": 8
2
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4174,8 +4077,8 @@
...
@@ -4174,8 +4077,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
676
,
"width":
234
,
"height":
11
9
"height":
23
9
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -4187,7 +4090,7 @@
...
@@ -4187,7 +4090,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-3.753,
-3.753,
28.816
,
169.505
,
0,
0,
0,
0,
0,
0,
...
@@ -4209,14 +4112,14 @@
...
@@ -4209,14 +4112,14 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
5bbgJ+UAtKjq2ZOexCOtmi
"
"_id": "
2d5A51MNtOmKntf1ISHCVJ
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 8
2
"__id__": 8
1
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4227,34 +4130,34 @@
...
@@ -4227,34 +4130,34 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
4cc9a8f2-78c0-4073-baf0-23606542ce38
"
"__uuid__": "
e8ef275d-acde-450e-9963-219e9d82a229
"
},
},
"_type":
0
,
"_type":
3
,
"_sizeMode": 1,
"_sizeMode": 1,
"_fillType":
0
,
"_fillType":
2
,
"_fillCenter": {
"_fillCenter": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
"x": 0,
"x": 0
.5
,
"y": 0
"y": 0
.5
},
},
"_fillStart": 0,
"_fillStart": 0
.25
,
"_fillRange":
0
,
"_fillRange":
1
,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "
fbXo5PJlBH4bVZASTtI54w
"
"_id": "
34oChjpwRGqa1x4G3ztkmJ
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
text_down
",
"_name": "
progressbar_highlight
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 7
9
"__id__": 7
0
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 8
5
"__id__": 8
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4268,8 +4171,8 @@
...
@@ -4268,8 +4171,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
605
,
"width":
272
,
"height":
146
"height":
277
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -4280,8 +4183,8 @@
...
@@ -4280,8 +4183,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-
4.834
,
-
3.753
,
-132.951
,
169.505
,
0,
0,
0,
0,
0,
0,
...
@@ -4303,14 +4206,14 @@
...
@@ -4303,14 +4206,14 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
86oWWsKsZFC7PJSgtIxLg7
"
"_id": "
6a7+jKpx5Hnpig9UcC72UU
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 8
4
"__id__": 8
3
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4321,7 +4224,7 @@
...
@@ -4321,7 +4224,7 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "c
79d201e-7d72-4fa0-aea1-10ab95daf7cd
"
"__uuid__": "c
816fad3-2f41-4ed3-9144-44f82ca40034
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 1,
...
@@ -4335,22 +4238,28 @@
...
@@ -4335,22 +4238,28 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "
fabnnS+spBUqA/e8sAfdmJ
"
"_id": "
1bmyGFn7tIxLEO2XhvGi5T
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
btn_check_grey
",
"_name": "
texts
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
18
"__id__":
70
},
},
"_children": [],
"_children": [
"_active": true,
"_components": [
{
{
"__id__": 87
"__id__": 86
},
{
"__id__": 88
},
{
"__id__": 90
}
}
],
],
"_active": true,
"_components": [],
"_prefab": null,
"_prefab": null,
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -4362,8 +4271,8 @@
...
@@ -4362,8 +4271,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
184
,
"width":
0
,
"height":
76
"height":
0
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -4374,8 +4283,8 @@
...
@@ -4374,8 +4283,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-1.877
,
3.753
,
-
238.2
81,
-
9.3
81,
0,
0,
0,
0,
0,
0,
...
@@ -4397,52 +4306,20 @@
...
@@ -4397,52 +4306,20 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "3agSeCaxBGa6VSjIboN/MN"
"_id": "f4IdlcOrdAhL1LY6vy61CY"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 86
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "675b6abc-93d9-4775-b522-f33bcfb9432b"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "88wIkQOO9LvLCS8q6WgZsA"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
btn_check
",
"_name": "
complate
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
18
"__id__":
85
},
},
"_children": [],
"_children": [],
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 8
9
"__id__": 8
7
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4456,8 +4333,8 @@
...
@@ -4456,8 +4333,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
184
,
"width":
615
,
"height":
76
"height":
121
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -4468,8 +4345,8 @@
...
@@ -4468,8 +4345,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-
1.877
,
-
6.265
,
-238.281
,
35.713
,
0,
0,
0,
0,
0,
0,
...
@@ -4491,46 +4368,14 @@
...
@@ -4491,46 +4368,14 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "65wAAKUmRD4boh5iJpBKgv"
"_id": "c0IsaH1shD8bzElUf2RcKs"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 88
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "0c9c162f-cca3-4dd9-8d8a-72097d5d3526"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "8cgmUtWktFToaCUGWxM4/g"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
18
"__id__":
86
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4541,7 +4386,7 @@
...
@@ -4541,7 +4386,7 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
d9ada80a-9887-4a02-9b74-addf0a0968a0
"
"__uuid__": "
b66f1580-a612-48d2-a981-7d80a0c72882
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 1,
...
@@ -4555,20 +4400,20 @@
...
@@ -4555,20 +4400,20 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "6
coYpCxHNEjY31GJbAN6NZ
"
"_id": "6
dhwt7WehONbr/RKwSSfsv
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
bg_flower_left
",
"_name": "
well
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
1
5
"__id__":
8
5
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__":
92
"__id__":
89
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4582,8 +4427,8 @@
...
@@ -4582,8 +4427,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
377
,
"width":
676
,
"height":
238
"height":
119
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -4594,8 +4439,8 @@
...
@@ -4594,8 +4439,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-
447.59
3,
-
3.75
3,
-239.307
,
28.816
,
0,
0,
0,
0,
0,
0,
...
@@ -4617,14 +4462,14 @@
...
@@ -4617,14 +4462,14 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
1c0XDQD7dAnqdjXtE3jkHW
"
"_id": "
5bbgJ+UAtKjq2ZOexCOtmi
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
91
"__id__":
88
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4635,7 +4480,7 @@
...
@@ -4635,7 +4480,7 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
8fae886a-4a22-407c-92e7-3b595b16776d
"
"__uuid__": "
4cc9a8f2-78c0-4073-baf0-23606542ce38
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 1,
...
@@ -4649,20 +4494,20 @@
...
@@ -4649,20 +4494,20 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "
dfa7HV0HFGW44fqmG9IPPi
"
"_id": "
fbXo5PJlBH4bVZASTtI54w
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
bg_flower_right
",
"_name": "
good
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
1
5
"__id__":
8
5
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 9
4
"__id__": 9
1
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4676,8 +4521,8 @@
...
@@ -4676,8 +4521,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
531
,
"width":
605
,
"height":
2
46
"height":
1
46
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -4688,8 +4533,8 @@
...
@@ -4688,8 +4533,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
373.02
,
-4.834
,
-234.937
,
26.483
,
0,
0,
0,
0,
0,
0,
...
@@ -4711,14 +4556,14 @@
...
@@ -4711,14 +4556,14 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
08WeoKPxBBIJPZrgbC072w
"
"_id": "
86oWWsKsZFC7PJSgtIxLg7
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 9
3
"__id__": 9
0
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4729,7 +4574,7 @@
...
@@ -4729,7 +4574,7 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
f860edbb-8083-456a-b74d-8cd5197d539e
"
"__uuid__": "
c79d201e-7d72-4fa0-aea1-10ab95daf7cd
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 1,
...
@@ -4743,7 +4588,77 @@
...
@@ -4743,7 +4588,77 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "ba+1O9NGtAl4sw5FX4lRO6"
"_id": "fabnnS+spBUqA/e8sAfdmJ"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 70
},
"_id": "72jfuMRoNA7oChyfiuRALY"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
...
@@ -4754,13 +4669,13 @@
...
@@ -4754,13 +4669,13 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 9
6
"__id__": 9
4
}
}
],
],
"_active": false,
"_active": false,
"_components": [],
"_components": [],
"_prefab": {
"_prefab": {
"__id__": 9
9
"__id__": 9
7
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -4814,17 +4729,17 @@
...
@@ -4814,17 +4729,17 @@
"_name": "particle_star",
"_name": "particle_star",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 9
5
"__id__": 9
3
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 9
7
"__id__": 9
5
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 9
8
"__id__": 9
6
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -4878,7 +4793,7 @@
...
@@ -4878,7 +4793,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 9
6
"__id__": 9
4
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4979,7 +4894,7 @@
...
@@ -4979,7 +4894,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 9
5
"__id__": 9
3
},
},
"asset": {
"asset": {
"__uuid__": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2"
"__uuid__": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2"
...
@@ -4990,7 +4905,7 @@
...
@@ -4990,7 +4905,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 9
5
"__id__": 9
3
},
},
"asset": {
"asset": {
"__uuid__": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2"
"__uuid__": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2"
...
@@ -5007,20 +4922,20 @@
...
@@ -5007,20 +4922,20 @@
},
},
"_children": [
"_children": [
{
{
"__id__":
101
"__id__":
99
},
},
{
{
"__id__": 10
4
"__id__": 10
2
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 10
7
"__id__": 10
5
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 10
8
"__id__": 10
6
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -5074,17 +4989,17 @@
...
@@ -5074,17 +4989,17 @@
"_name": "ske",
"_name": "ske",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
100
"__id__":
98
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 10
2
"__id__": 10
0
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 10
3
"__id__": 10
1
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -5138,7 +5053,7 @@
...
@@ -5138,7 +5053,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
101
"__id__":
99
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5176,7 +5091,7 @@
...
@@ -5176,7 +5091,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__":
100
"__id__":
98
},
},
"asset": {
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...
@@ -5189,17 +5104,17 @@
...
@@ -5189,17 +5104,17 @@
"_name": "block",
"_name": "block",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
100
"__id__":
98
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 10
5
"__id__": 10
3
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 10
6
"__id__": 10
4
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -5253,7 +5168,7 @@
...
@@ -5253,7 +5168,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 10
4
"__id__": 10
2
},
},
"_enabled": true,
"_enabled": true,
"_id": "0efpWUJrZGxq5KGX62q1NU"
"_id": "0efpWUJrZGxq5KGX62q1NU"
...
@@ -5261,7 +5176,7 @@
...
@@ -5261,7 +5176,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__":
100
"__id__":
98
},
},
"asset": {
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...
@@ -5274,7 +5189,7 @@
...
@@ -5274,7 +5189,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
100
"__id__":
98
},
},
"_enabled": true,
"_enabled": true,
"startPosition": {
"startPosition": {
...
@@ -5293,7 +5208,7 @@
...
@@ -5293,7 +5208,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__":
100
"__id__":
98
},
},
"asset": {
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...
@@ -5310,23 +5225,23 @@
...
@@ -5310,23 +5225,23 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 1
10
"__id__": 1
08
},
},
{
{
"__id__": 11
3
"__id__": 11
1
},
},
{
{
"__id__": 11
6
"__id__": 11
4
}
}
],
],
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 11
9
"__id__": 11
7
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 1
20
"__id__": 1
18
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -5380,17 +5295,17 @@
...
@@ -5380,17 +5295,17 @@
"_name": "ske_candy",
"_name": "ske_candy",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 10
9
"__id__": 10
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
11
"__id__": 1
09
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 11
2
"__id__": 11
0
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -5444,7 +5359,7 @@
...
@@ -5444,7 +5359,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
10
"__id__": 1
08
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5482,7 +5397,7 @@
...
@@ -5482,7 +5397,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 10
9
"__id__": 10
7
},
},
"asset": {
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
...
@@ -5495,17 +5410,17 @@
...
@@ -5495,17 +5410,17 @@
"_name": "ske",
"_name": "ske",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 10
9
"__id__": 10
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 11
4
"__id__": 11
2
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 11
5
"__id__": 11
3
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -5559,7 +5474,7 @@
...
@@ -5559,7 +5474,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 11
3
"__id__": 11
1
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5597,7 +5512,7 @@
...
@@ -5597,7 +5512,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 10
9
"__id__": 10
7
},
},
"asset": {
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
...
@@ -5610,17 +5525,17 @@
...
@@ -5610,17 +5525,17 @@
"_name": "block",
"_name": "block",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 10
9
"__id__": 10
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 11
7
"__id__": 11
5
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 11
8
"__id__": 11
6
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -5674,7 +5589,7 @@
...
@@ -5674,7 +5589,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 11
6
"__id__": 11
4
},
},
"_enabled": true,
"_enabled": true,
"_id": "614Ol/VeZKyIbzJ5WMNHfT"
"_id": "614Ol/VeZKyIbzJ5WMNHfT"
...
@@ -5682,7 +5597,7 @@
...
@@ -5682,7 +5597,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 10
9
"__id__": 10
7
},
},
"asset": {
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
...
@@ -5695,7 +5610,7 @@
...
@@ -5695,7 +5610,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 10
9
"__id__": 10
7
},
},
"_enabled": true,
"_enabled": true,
"startPosition": {
"startPosition": {
...
@@ -5714,7 +5629,7 @@
...
@@ -5714,7 +5629,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 10
9
"__id__": 10
7
},
},
"asset": {
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
...
@@ -5775,7 +5690,7 @@
...
@@ -5775,7 +5690,7 @@
},
},
"_enabled": true,
"_enabled": true,
"ani_flower": {
"ani_flower": {
"__id__": 9
5
"__id__": 9
3
},
},
"layout_card": {
"layout_card": {
"__id__": 32
"__id__": 32
...
@@ -5789,6 +5704,9 @@
...
@@ -5789,6 +5704,9 @@
"bg_card": {
"bg_card": {
"__id__": 55
"__id__": 55
},
},
"layout_lollipop": {
"__id__": 70
},
"_id": "eaTVUpqahPfZeO9+sUI7RP"
"_id": "eaTVUpqahPfZeO9+sUI7RP"
}
}
]
]
\ No newline at end of file
assets/cocos_generator/scene/mrbr02.ts
View file @
6bf0994a
...
@@ -44,6 +44,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -44,6 +44,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
@
property
(
cc
.
Node
)
@
property
(
cc
.
Node
)
bg_card
:
cc
.
Node
=
null
;
bg_card
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
layout_lollipop
:
cc
.
Node
=
null
;
initData
()
{
initData
()
{
Game
.
getIns
().
init
(
this
.
data
);
Game
.
getIns
().
init
(
this
.
data
);
}
}
...
@@ -58,6 +61,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -58,6 +61,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg
.
event
.
on
(
"
gameOver
"
,
()
=>
{
this
.
gameOver
()
})
pg
.
event
.
on
(
"
gameOver
"
,
()
=>
{
this
.
gameOver
()
})
}
}
private
currentCards
:
cc
.
Node
[];
//开始游戏
//开始游戏
startGame
()
{
startGame
()
{
Game
.
getIns
().
reset
();
Game
.
getIns
().
reset
();
...
@@ -71,6 +75,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -71,6 +75,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
//自动创建卡片
//自动创建卡片
this
.
layout_card
.
active
=
true
;
this
.
layout_card
.
active
=
true
;
this
.
layout_card_result
.
active
=
false
;
this
.
layout_card_result
.
active
=
false
;
this
.
layout_lollipop
.
active
=
false
;
this
.
createCrads
(
data
);
this
.
createCrads
(
data
);
}
}
getCurrentOpSet
()
{
getCurrentOpSet
()
{
...
@@ -126,6 +131,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -126,6 +131,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private
cardBgs
:
cc
.
Node
[];
private
cardBgs
:
cc
.
Node
[];
createCrads
(
list
)
{
createCrads
(
list
)
{
this
.
layout_card
.
removeAllChildren
();
this
.
layout_card
.
removeAllChildren
();
let
count
=
0
;
let
count
=
0
;
list
.
optionList
.
forEach
(
li
=>
{
list
.
optionList
.
forEach
(
li
=>
{
let
opSet
=
this
.
getCurrentOpSet
();
let
opSet
=
this
.
getCurrentOpSet
();
...
@@ -182,7 +188,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -182,7 +188,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
item
.
data
=
data
item
.
data
=
data
item
.
active
=
true
;
item
.
active
=
true
;
}
}
private
currentCards
:
cc
.
Node
[];
onItemTouchStart
(
e
)
{
onItemTouchStart
(
e
)
{
let
target
:
cc
.
Node
=
e
.
target
;
let
target
:
cc
.
Node
=
e
.
target
;
let
data
=
target
.
data
;
let
data
=
target
.
data
;
...
@@ -204,9 +209,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -204,9 +209,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
itemBg
=
this
.
cardBgs
.
find
(
bg
=>
{
let
itemBg
=
this
.
cardBgs
.
find
(
bg
=>
{
return
rect1
.
intersects
(
cc
.
rect
(
bg
.
x
,
bg
.
y
,
bg
.
width
*
bg
.
scale
,
bg
.
height
*
bg
.
scale
));
return
rect1
.
intersects
(
cc
.
rect
(
bg
.
x
,
bg
.
y
,
bg
.
width
*
bg
.
scale
,
bg
.
height
*
bg
.
scale
));
})
})
if
(
!
itemBg
||
this
.
currentCards
[
itemBg
.
data
.
id
])
{
if
(
!
itemBg
||
this
.
currentCards
[
itemBg
.
data
.
count
])
{
//回退
//回退
target
.
setPosition
(
this
.
getPostionById
(
data
.
id
))
target
.
setPosition
(
this
.
getPostionById
(
data
.
count
))
for
(
let
i
=
0
;
i
<
this
.
currentCards
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
currentCards
.
length
;
i
++
)
{
let
cd
=
this
.
currentCards
[
i
];
let
cd
=
this
.
currentCards
[
i
];
if
(
cd
&&
cd
.
data
.
id
==
target
.
data
.
id
)
{
if
(
cd
&&
cd
.
data
.
id
==
target
.
data
.
id
)
{
...
@@ -217,9 +222,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -217,9 +222,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
return
;
return
;
}
}
//执行
//执行
let
pos
=
this
.
getBgPostionById
(
itemBg
.
data
.
id
);
let
pos
=
this
.
getBgPostionById
(
itemBg
.
data
.
count
);
target
.
setPosition
(
pos
);
target
.
setPosition
(
pos
);
this
.
currentCards
[
itemBg
.
data
.
id
]
=
target
;
this
.
currentCards
[
itemBg
.
data
.
count
]
=
target
;
let
ani_flower
=
cc
.
instantiate
(
this
.
ani_flower
);
let
ani_flower
=
cc
.
instantiate
(
this
.
ani_flower
);
ani_flower
.
active
=
true
;
ani_flower
.
active
=
true
;
...
@@ -236,6 +241,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -236,6 +241,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
bg/bg_card/btn_check_grey
'
),
!
isFull
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
bg/bg_card/btn_check_grey
'
),
!
isFull
)
}
}
checkFull
()
{
checkFull
()
{
if
(
!
this
.
currentCards
)
return
;
if
(
!
this
.
cards
)
return
;
if
(
this
.
currentCards
.
length
!=
this
.
cards
.
length
)
return
false
;
if
(
this
.
currentCards
.
length
!=
this
.
cards
.
length
)
return
false
;
return
this
.
currentCards
.
every
(
card
=>
!!
card
);
return
this
.
currentCards
.
every
(
card
=>
!!
card
);
}
}
...
@@ -245,17 +252,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -245,17 +252,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
isSuccess
=
Game
.
getIns
().
checkSuccess
(
this
.
currentCards
.
map
(
cd
=>
cd
.
data
));
let
isSuccess
=
Game
.
getIns
().
checkSuccess
(
this
.
currentCards
.
map
(
cd
=>
cd
.
data
));
if
(
!
isSuccess
)
{
if
(
!
isSuccess
)
{
this
.
currentCards
.
forEach
(
card
=>
{
this
.
currentCards
.
forEach
(
card
=>
{
cc
.
tween
(
card
).
to
(
0.3
,
{
x
:
this
.
getPostionById
(
card
.
data
.
id
).
x
,
y
:
this
.
getPostionById
(
card
.
data
.
id
).
y
}).
start
();
cc
.
tween
(
card
).
to
(
0.3
,
{
x
:
this
.
getPostionById
(
card
.
data
.
count
).
x
,
y
:
this
.
getPostionById
(
card
.
data
.
count
).
y
}).
start
();
})
})
this
.
currentCards
.
length
=
0
;
this
.
currentCards
.
length
=
0
;
return
;
return
;
}
}
this
.
onTouchCheckCantouch
=
true
;
this
.
onTouchCheckCantouch
=
true
;
//成功更新小老鼠进度
//显示全部图片效果。
//显示棒棒糖
pg
.
event
.
emit
(
"
mouse_add
"
);
pg
.
event
.
emit
(
"
mouse_add
"
);
this
.
updateCardResult
().
then
(()
=>
{
this
.
updateCardResult
().
then
(
this
.
updateLollipop
.
bind
(
this
)).
then
(
()
=>
{
Game
.
getIns
().
addPage
();
Game
.
getIns
().
addPage
();
if
(
Game
.
getIns
().
isOver
)
{
if
(
Game
.
getIns
().
isOver
)
{
pg
.
event
.
emit
(
"
gameOver
"
)
pg
.
event
.
emit
(
"
gameOver
"
)
...
@@ -268,10 +272,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -268,10 +272,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
updateCardResult
()
{
updateCardResult
()
{
return
new
Promise
((
res
,
rej
)
=>
{
return
new
Promise
((
res
,
rej
)
=>
{
let
page
=
Game
.
getIns
().
getCurrentPage
();
let
page
=
Game
.
getIns
().
getCurrentPage
();
//显示小老鼠
if
(
page
.
audio
)
{
if
(
page
.
audio
)
{
pg
.
audio
.
playAudioByUrl
(
page
.
audio
).
then
(()
=>
{
pg
.
view
.
find
(
this
,
"
mouse_start
"
).
getComponent
(
"
mstart
"
).
play
(
page
.
audio
).
then
(()
=>
{
res
(
true
);
res
(
true
);
})
})
;
}
else
{
}
else
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
res
(
true
);
res
(
true
);
...
@@ -286,6 +292,77 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -286,6 +292,77 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
})
})
}
}
updateLollipop
()
{
return
new
Promise
((
res
,
rej
)
=>
{
//出现棒棒糖的部分。
//1.波浪。
//2.倒计时转圈
//3.弹出goodJob
//4.resolve
this
.
layout_lollipop
.
active
=
true
;
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
icon
'
).
active
=
true
;
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
texts
'
).
active
=
false
;
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
progressbar_red
'
).
active
=
false
;
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
progressbar_grey
'
).
active
=
false
;
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
progressbar_highlight
'
).
active
=
false
;
let
vs
=
[
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
v1
'
),
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
v2
'
),
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
v3
'
)]
//出现波浪
let
count
=
0
;
let
i1
=
setInterval
(()
=>
{
count
++
;
let
max
=
count
%
(
vs
.
length
+
2
);
vs
[
0
].
active
=
1
<
max
;
vs
[
1
].
active
=
2
<
max
;
vs
[
2
].
active
=
3
<
max
;
},
200
)
let
lolliTouch
=
()
=>
{
clearInterval
(
i1
);
vs
[
0
].
active
=
false
;
vs
[
1
].
active
=
false
;
vs
[
2
].
active
=
false
;
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
progressbar_red
'
).
active
=
true
;
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
progressbar_grey
'
).
active
=
true
;
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
progressbar_highlight
'
).
active
=
true
;
pg
.
view
.
touchOff
(
this
.
layout_lollipop
,
lolliTouch
,
this
);
let
progressbar_red
=
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
progressbar_red
'
);
let
sprite
=
progressbar_red
.
getComponent
(
cc
.
Sprite
);
sprite
.
fillRange
=
1
;
let
i2
=
setInterval
(()
=>
{
sprite
.
fillRange
-=
0.005
;
},
30
)
setTimeout
(()
=>
{
clearInterval
(
i2
);
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
icon
'
).
active
=
false
;
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
progressbar_red
'
).
active
=
false
;
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
progressbar_grey
'
).
active
=
false
;
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
progressbar_highlight
'
).
active
=
false
;
let
texts
=
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
texts
'
)
texts
.
active
=
true
;
let
complate
=
texts
.
getChildByName
(
"
complate
"
);
let
well
=
texts
.
getChildByName
(
"
well
"
);
let
good
=
texts
.
getChildByName
(
"
good
"
);
complate
.
active
=
false
;
well
.
active
=
false
;
good
.
active
=
false
;
let
words
=
[
complate
,
well
,
good
];
let
item
=
words
[
Math
.
floor
(
Math
.
random
()
*
words
.
length
)];
item
.
active
=
true
;
item
.
opacity
=
0
;
item
.
scale
=
0.1
;
cc
.
tween
(
item
).
to
(
0.2
,
{
scale
:
1.1
,
opacity
:
255
}).
to
(
0.1
,
{
scale
:
1
}).
delay
(
0.5
).
to
(
0.1
,
{
opacity
:
0
,
scale
:
0
}).
call
(()
=>
{
this
.
layout_lollipop
.
active
=
false
;
res
(
true
);
}).
start
();
},
3000
);
}
pg
.
view
.
touchOn
(
this
.
layout_lollipop
,
lolliTouch
,
this
);
})
}
update
()
{
update
()
{
this
.
updateCheckBtn
();
this
.
updateCheckBtn
();
...
...
assets/cocos_generator/script/defaultData.ts
View file @
6bf0994a
...
@@ -5,7 +5,8 @@ export const defaultData = {
...
@@ -5,7 +5,8 @@ export const defaultData = {
"
item
"
:
{
"
item
"
:
{
"
questionList
"
:
[
"
questionList
"
:
[
{
{
"
audio
"
:
""
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/a5b6943a004bc48b07220f832853bd46.png
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/116fb7accb5428361836fbc46287f769.mp3
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/a5b6943a004bc48b07220f832853bd46.png
"
,
"
optionList
"
:
[
"
optionList
"
:
[
{
{
"
type
"
:
"
picText
"
,
"
type
"
:
"
picText
"
,
...
...
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