Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
ns16_mole
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
ns16_mole
Commits
0184c1c6
Commit
0184c1c6
authored
Oct 17, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改完成
parent
abe78598
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
899 additions
and
420 deletions
+899
-420
layout_info_ns16.ts
assets/ns16_mole/scene/game/layout_info_ns16.ts
+20
-0
layout_mole.ts
assets/ns16_mole/scene/game/layout_mole.ts
+54
-21
ns16_mole.fire
assets/ns16_mole/scene/ns16_mole.fire
+768
-374
ns16_mole.ts
assets/ns16_mole/scene/ns16_mole.ts
+18
-21
GameNS16.ts
assets/ns16_mole/scene/tool/GameNS16.ts
+14
-1
pg.ts
assets/ns16_mole/scene/tool/pg.ts
+9
-0
defaultData.ts
assets/ns16_mole/script/defaultData.ts
+10
-3
round.ttf
assets/ns16_mole/字体/round.ttf
+0
-0
round.ttf.meta
assets/ns16_mole/字体/round.ttf.meta
+6
-0
No files found.
assets/ns16_mole/scene/game/layout_info_ns16.ts
View file @
0184c1c6
...
...
@@ -24,7 +24,9 @@ export default class NewClass extends cc.Component {
// LIFE-CYCLE CALLBACKS:
playBgm
:
boolean
;
onLoad
()
{
this
.
playBgm
=
true
;
this
.
initView
();
this
.
initEvent
();
}
...
...
@@ -44,14 +46,20 @@ export default class NewClass extends cc.Component {
this
.
playLaba
();
});
this
.
btn_laba
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
playLaba
,
this
);
this
.
btn_music
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onTouchMusic
,
this
);
}
private
gameStart
()
{
if
(
this
.
playBgm
)
{
pg
.
audio
.
playBgmByUrl
(
Game
.
getIns
().
bgm
);
}
this
.
countDown
=
Game
.
getIns
().
getCurrentPage
().
duration
;
}
private
bg_round
:
cc
.
Node
;
private
btn_music
:
cc
.
Node
;
private
initView
()
{
this
.
btn_laba
=
cc
.
find
(
"
btn_laba
"
,
this
.
node
);
this
.
bg_round
=
cc
.
find
(
"
bg_round
"
,
this
.
node
);
this
.
btn_music
=
pg
.
view
.
find
(
this
,
'
btn_music
'
);
}
private
showRound
()
{
pg
.
view
.
visible
(
this
.
bg_round
,
true
);
...
...
@@ -62,6 +70,18 @@ export default class NewClass extends cc.Component {
.
call
(()
=>
{
pg
.
event
.
emit
(
"
game_start
"
);
})
.
start
();
}
onTouchMusic
()
{
if
(
cc
.
audioEngine
.
isMusicPlaying
())
{
cc
.
audioEngine
.
pauseMusic
();
this
.
playBgm
=
false
;
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
btn_music
,
'
off
'
),
true
);
}
else
{
this
.
playBgm
=
true
;
cc
.
audioEngine
.
resumeMusic
();
pg
.
audio
.
playBgmByUrl
(
Game
.
getIns
().
bgm
);
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
btn_music
,
'
off
'
),
false
);
}
}
private
intervalId
;
private
playing
:
boolean
;
...
...
assets/ns16_mole/scene/game/layout_mole.ts
View file @
0184c1c6
...
...
@@ -46,9 +46,11 @@ export default class NewClass extends cc.Component {
private
list
:
Option
[];
private
fishs
:
cc
.
Node
[];
private
holes
:
Array
<
any
>
;
private
right
:
Array
<
Option
>
;
gameStart
()
{
//游戏开始。允许出鱼
let
page
=
Game
.
getIns
().
getCurrentPage
();
this
.
right
=
[];
this
.
data
=
page
;
let
list
=
page
.
optionList
.
concat
();
list
=
JSON
.
parse
(
JSON
.
stringify
(
list
));
...
...
@@ -169,6 +171,7 @@ export default class NewClass extends cc.Component {
mouse_right
.
active
=
false
;
mouse_wrong
.
active
=
false
;
this
.
playLocalAudio
(
'
out
'
);
cc
.
Tween
.
stopAllByTarget
(
mouse_normal
);
cc
.
tween
(
mouse_normal
).
to
(
1
,
{
y
:
endPos
.
y
}).
delay
(
3
).
to
(
1
,
{
y
:
startPos
.
y
}).
call
(()
=>
{
item
.
data
=
null
}).
start
();
...
...
@@ -199,18 +202,24 @@ export default class NewClass extends cc.Component {
}
//开始点击 点击角色
async
onTouchItemNormal
(
item
,
isRobot
)
{
if
(
this
.
touching
)
return
;
// this.touching = true;
let
data
=
item
.
data
;
if
(
!
data
)
return
;
if
(
data
.
touching
)
return
;
if
(
this
.
right
.
some
(
op
=>
op
.
id
==
data
.
id
))
return
;
data
.
touching
=
true
;
let
mouse_normal
=
pg
.
view
.
find
(
item
,
"
mask/mouse_normal
"
);
let
mouse_right
=
pg
.
view
.
find
(
item
,
"
mask/mouse_right
"
);
let
mouse_wrong
=
pg
.
view
.
find
(
item
,
"
mask/mouse_wrong
"
);
// 点击之后判断对错。
Game
.
getIns
().
state
=
GAME_STATE
.
OVER
;
this
.
stopAllAni
();
if
(
data
.
right
)
{
this
.
playLocalAudio
(
'
right
'
);
this
.
right
.
push
(
data
);
let
isOver
=
this
.
right
.
length
>=
Game
.
getIns
().
getCurrentPageRight
()
if
(
isOver
)
{
Game
.
getIns
().
state
=
GAME_STATE
.
OVER
;
this
.
stopAllAni
();
}
mouse_normal
.
active
=
false
;
mouse_right
.
active
=
true
;
mouse_wrong
.
active
=
false
;
...
...
@@ -218,14 +227,29 @@ export default class NewClass extends cc.Component {
if
(
isRobot
)
{
this
.
robotAddOne
();
}
let
startPos
=
cc
.
v2
(
10
,
-
114
);
this
.
playAddOne
(
item
).
then
(()
=>
{
this
.
scaleTo0
();
if
(
isOver
)
{
this
.
scaleTo0
();
}
else
{
let
orgPos
=
cc
.
v2
(
mouse_right
);
cc
.
tween
(
mouse_normal
).
to
(
0.5
,
{
y
:
startPos
.
y
}).
call
(()
=>
{
}).
start
();
cc
.
tween
(
mouse_right
).
delay
(
1.5
).
to
(
0.5
,
{
y
:
startPos
.
y
}).
call
(()
=>
{
mouse_right
.
x
=
orgPos
.
x
;
mouse_right
.
y
=
orgPos
.
y
;
mouse_right
.
active
=
false
;
item
.
data
.
touching
=
false
;
item
.
data
=
null
}).
start
();
}
if
(
isRobot
)
{
Game
.
getIns
().
robot
.
addScore
();
}
else
{
Game
.
getIns
().
player
.
addScore
();
}
return
pg
.
event
.
emit
(
"
game_time_over
"
);
if
(
isOver
)
{
return
pg
.
event
.
emit
(
"
game_time_over
"
);
}
})
}
else
{
this
.
playLocalAudio
(
'
error
'
);
...
...
@@ -233,20 +257,27 @@ export default class NewClass extends cc.Component {
mouse_right
.
active
=
false
;
mouse_wrong
.
active
=
true
;
let
startPos
=
cc
.
v2
(
10
,
-
114
);
let
nodes
=
this
.
node
.
children
.
filter
(
item
=>
item
.
data
);
nodes
.
forEach
(
node
=>
{
cc
.
tween
(
pg
.
view
.
find
(
node
,
"
mask/mouse_normal
"
)).
to
(
0.5
,
{
y
:
startPos
.
y
}).
call
(()
=>
{
item
.
data
=
null
}).
start
();
})
this
.
scheduleOnce
(()
=>
{
if
(
isRobot
)
{
Game
.
getIns
().
robot
.
addError
();
}
else
{
Game
.
getIns
().
player
.
addError
();
}
return
pg
.
event
.
emit
(
"
game_time_over
"
);
},
2
)
let
orgPos
=
cc
.
v2
(
mouse_wrong
);
cc
.
tween
(
mouse_normal
).
to
(
0.5
,
{
y
:
startPos
.
y
}).
call
(()
=>
{
// item.data = null
}).
start
();
cc
.
tween
(
mouse_wrong
).
delay
(
1.5
).
to
(
0.5
,
{
y
:
startPos
.
y
}).
call
(()
=>
{
mouse_wrong
.
x
=
orgPos
.
x
;
mouse_wrong
.
y
=
orgPos
.
y
;
mouse_wrong
.
active
=
false
;
item
.
data
.
touching
=
false
;
item
.
data
=
null
}).
start
();
if
(
isRobot
)
{
Game
.
getIns
().
robot
.
addError
();
}
else
{
Game
.
getIns
().
player
.
addError
();
}
// this.scheduleOnce(() => {
// // if (this.right >= Game.getIns().getCurrentPageRight()) {
// // return pg.event.emit("game_time_over");
// // }
// }, 1)
}
}
async
onTouchItem
(
e
)
{
...
...
@@ -276,7 +307,9 @@ export default class NewClass extends cc.Component {
}
}
getMouse
()
{
return
this
.
list
[
Math
.
floor
(
Math
.
random
()
*
this
.
list
.
length
)]
let
list
=
this
.
list
.
filter
(
li
=>
this
.
right
.
every
(
op
=>
op
.
id
!=
li
.
id
))
list
=
JSON
.
parse
(
JSON
.
stringify
(
list
));
return
list
[
Math
.
floor
(
Math
.
random
()
*
list
.
length
)]
}
getEmptyHole
()
{
let
list
=
this
.
node
.
children
.
filter
(
item
=>
!
item
.
data
);
...
...
assets/ns16_mole/scene/ns16_mole.fire
View file @
0184c1c6
...
...
@@ -75,40 +75,40 @@
"__id__": 5
},
{
"__id__": 4
7
"__id__": 4
9
},
{
"__id__":
49
"__id__":
51
},
{
"__id__": 6
3
"__id__": 6
5
},
{
"__id__": 12
0
"__id__": 12
2
},
{
"__id__": 1
43
"__id__": 1
51
},
{
"__id__": 1
53
"__id__": 1
61
},
{
"__id__": 1
59
"__id__": 1
67
},
{
"__id__": 1
75
"__id__": 1
83
}
],
"_active": true,
"_components": [
{
"__id__": 1
77
"__id__": 1
85
},
{
"__id__": 1
78
"__id__": 1
86
},
{
"__id__": 1
79
"__id__": 1
87
}
],
"_prefab": null,
...
...
@@ -269,10 +269,10 @@
"__id__": 6
},
{
"__id__": 1
1
"__id__": 1
3
},
{
"__id__": 1
4
"__id__": 1
6
}
],
"_active": false,
...
...
@@ -338,6 +338,9 @@
},
{
"__id__": 9
},
{
"__id__": 11
}
],
"_active": true,
...
...
@@ -485,7 +488,7 @@
},
{
"__type__": "cc.Node",
"_name": "
xuanxiang
",
"_name": "
round
",
"_objFlags": 0,
"_parent": {
"__id__": 6
...
...
@@ -543,7 +546,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
90j0myMXZHm5QJM1glgB7i
"
"_id": "
bcjP+hirxODabweHw/hUbw
"
},
{
"__type__": "cc.Label",
...
...
@@ -561,6 +564,99 @@
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "8909837d-207b-4df3-9cd5-0197049059ed"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "99y1n4+eZEwr1CaeIaJmng"
},
{
"__type__": "cc.Node",
"_name": "xuanxiang",
"_objFlags": 0,
"_parent": {
"__id__": 6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
}
],
"_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": "90j0myMXZHm5QJM1glgB7i"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
},
...
...
@@ -585,7 +681,7 @@
},
"_children": [
{
"__id__": 1
2
"__id__": 1
4
}
],
"_active": true,
...
...
@@ -643,13 +739,13 @@
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 1
1
"__id__": 1
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
3
"__id__": 1
5
}
],
"_prefab": null,
...
...
@@ -705,7 +801,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
2
"__id__": 1
4
},
"_enabled": true,
"_materials": [],
...
...
@@ -736,9 +832,6 @@
"__id__": 5
},
"_children": [
{
"__id__": 15
},
{
"__id__": 17
},
...
...
@@ -783,6 +876,9 @@
},
{
"__id__": 45
},
{
"__id__": 47
}
],
"_active": true,
...
...
@@ -840,13 +936,13 @@
"_name": "error",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
6
"__id__": 1
8
}
],
"_prefab": null,
...
...
@@ -902,7 +998,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
5
"__id__": 1
7
},
"_enabled": true,
"_clip": {
...
...
@@ -921,13 +1017,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
18
"__id__":
20
}
],
"_prefab": null,
...
...
@@ -983,7 +1079,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
7
"__id__": 1
9
},
"_enabled": true,
"_clip": {
...
...
@@ -1002,13 +1098,13 @@
"_name": "光波",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
0
"__id__": 2
2
}
],
"_prefab": null,
...
...
@@ -1064,7 +1160,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
19
"__id__":
21
},
"_enabled": true,
"_clip": {
...
...
@@ -1083,13 +1179,13 @@
"_name": "联机结算",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
2
"__id__": 2
4
}
],
"_prefab": null,
...
...
@@ -1145,7 +1241,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
1
"__id__": 2
3
},
"_enabled": true,
"_clip": {
...
...
@@ -1164,13 +1260,13 @@
"_name": "倒计时1",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
4
"__id__": 2
6
}
],
"_prefab": null,
...
...
@@ -1226,7 +1322,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
3
"__id__": 2
5
},
"_enabled": true,
"_clip": {
...
...
@@ -1245,13 +1341,13 @@
"_name": "分数",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
6
"__id__": 2
8
}
],
"_prefab": null,
...
...
@@ -1307,7 +1403,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
5
"__id__": 2
7
},
"_enabled": true,
"_clip": {
...
...
@@ -1326,13 +1422,13 @@
"_name": "失败",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
28
"__id__":
30
}
],
"_prefab": null,
...
...
@@ -1388,7 +1484,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
7
"__id__": 2
9
},
"_enabled": true,
"_clip": {
...
...
@@ -1407,13 +1503,13 @@
"_name": "倒计时5-2",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
0
"__id__": 3
2
}
],
"_prefab": null,
...
...
@@ -1469,7 +1565,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
29
"__id__":
31
},
"_enabled": true,
"_clip": {
...
...
@@ -1488,13 +1584,13 @@
"_name": "胜利",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
2
"__id__": 3
4
}
],
"_prefab": null,
...
...
@@ -1550,7 +1646,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
1
"__id__": 3
3
},
"_enabled": true,
"_clip": {
...
...
@@ -1569,13 +1665,13 @@
"_name": "gameover",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
4
"__id__": 3
6
}
],
"_prefab": null,
...
...
@@ -1631,7 +1727,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
3
"__id__": 3
5
},
"_enabled": true,
"_clip": {
...
...
@@ -1650,13 +1746,13 @@
"_name": "move",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
6
"__id__": 3
8
}
],
"_prefab": null,
...
...
@@ -1712,7 +1808,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
5
"__id__": 3
7
},
"_enabled": true,
"_clip": {
...
...
@@ -1731,13 +1827,13 @@
"_name": "vs",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
38
"__id__":
40
}
],
"_prefab": null,
...
...
@@ -1793,7 +1889,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
7
"__id__": 3
9
},
"_enabled": true,
"_clip": {
...
...
@@ -1812,13 +1908,13 @@
"_name": "out",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
0
"__id__": 4
2
}
],
"_prefab": null,
...
...
@@ -1874,7 +1970,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
39
"__id__":
41
},
"_enabled": true,
"_clip": {
...
...
@@ -1893,13 +1989,13 @@
"_name": "error",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
2
"__id__": 4
4
}
],
"_prefab": null,
...
...
@@ -1955,7 +2051,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
1
"__id__": 4
3
},
"_enabled": true,
"_clip": {
...
...
@@ -1974,13 +2070,13 @@
"_name": "right",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
4
"__id__": 4
6
}
],
"_prefab": null,
...
...
@@ -2036,7 +2132,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
3
"__id__": 4
5
},
"_enabled": true,
"_clip": {
...
...
@@ -2055,13 +2151,13 @@
"_name": "add",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
6
"__id__": 4
8
}
],
"_prefab": null,
...
...
@@ -2117,7 +2213,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
5
"__id__": 4
7
},
"_enabled": true,
"_clip": {
...
...
@@ -2142,7 +2238,7 @@
"_active": true,
"_components": [
{
"__id__":
48
"__id__":
50
}
],
"_prefab": null,
...
...
@@ -2198,7 +2294,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
7
"__id__": 4
9
},
"_enabled": true,
"_materials": [
...
...
@@ -2234,22 +2330,22 @@
},
"_children": [
{
"__id__": 5
0
"__id__": 5
2
},
{
"__id__": 5
3
"__id__": 5
5
},
{
"__id__": 5
6
"__id__": 5
8
},
{
"__id__":
59
"__id__":
61
}
],
"_active": true,
"_components": [
{
"__id__": 6
2
"__id__": 6
4
}
],
"_prefab": null,
...
...
@@ -2305,16 +2401,16 @@
"_name": "bg_sky",
"_objFlags": 0,
"_parent": {
"__id__":
49
"__id__":
51
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
1
"__id__": 5
3
},
{
"__id__": 5
2
"__id__": 5
4
}
],
"_prefab": null,
...
...
@@ -2370,7 +2466,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
0
"__id__": 5
2
},
"_enabled": true,
"_materials": [
...
...
@@ -2402,7 +2498,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
0
"__id__": 5
2
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2429,16 +2525,16 @@
"_name": "bg_bg",
"_objFlags": 0,
"_parent": {
"__id__":
49
"__id__":
51
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
4
"__id__": 5
6
},
{
"__id__": 5
5
"__id__": 5
7
}
],
"_prefab": null,
...
...
@@ -2494,7 +2590,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
3
"__id__": 5
5
},
"_enabled": true,
"_materials": [
...
...
@@ -2526,7 +2622,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
3
"__id__": 5
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2553,16 +2649,16 @@
"_name": "bg_front",
"_objFlags": 0,
"_parent": {
"__id__":
49
"__id__":
51
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
7
"__id__": 5
9
},
{
"__id__":
58
"__id__":
60
}
],
"_prefab": null,
...
...
@@ -2618,7 +2714,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
6
"__id__": 5
8
},
"_enabled": true,
"_materials": [
...
...
@@ -2650,7 +2746,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
6
"__id__": 5
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2677,16 +2773,16 @@
"_name": "bg_road",
"_objFlags": 0,
"_parent": {
"__id__":
49
"__id__":
51
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
0
"__id__": 6
2
},
{
"__id__": 6
1
"__id__": 6
3
}
],
"_prefab": null,
...
...
@@ -2742,7 +2838,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
59
"__id__":
61
},
"_enabled": true,
"_materials": [
...
...
@@ -2774,7 +2870,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
59
"__id__":
61
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2801,7 +2897,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
49
"__id__":
51
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2832,25 +2928,25 @@
},
"_children": [
{
"__id__": 6
4
"__id__": 6
6
},
{
"__id__": 6
6
"__id__": 6
8
},
{
"__id__": 7
4
"__id__": 7
6
},
{
"__id__": 1
08
"__id__": 1
10
},
{
"__id__": 8
0
"__id__": 8
2
}
],
"_active": true,
"_components": [
{
"__id__": 1
19
"__id__": 1
21
}
],
"_prefab": null,
...
...
@@ -2906,13 +3002,13 @@
"_name": "layout_fish",
"_objFlags": 0,
"_parent": {
"__id__": 6
3
"__id__": 6
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
5
"__id__": 6
7
}
],
"_prefab": null,
...
...
@@ -2968,23 +3064,23 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
4
"__id__": 6
6
},
"_enabled": true,
"res": {
"__id__": 5
},
"layout_player": {
"__id__": 6
6
"__id__": 6
8
},
"layout_robot": {
"__id__": 7
4
"__id__": 7
6
},
"item": {
"__id__": 8
0
"__id__": 8
2
},
"layout_card": {
"__id__": 1
08
"__id__": 1
10
},
"_id": "df0dbbmsVPMLnMZFIH2QVh"
},
...
...
@@ -2993,23 +3089,23 @@
"_name": "layout_player",
"_objFlags": 0,
"_parent": {
"__id__": 6
3
"__id__": 6
5
},
"_children": [
{
"__id__": 67
},
{
"__id__": 69
},
{
"__id__": 71
},
{
"__id__": 73
}
],
"_active": true,
"_components": [
{
"__id__": 7
3
"__id__": 7
5
}
],
"_prefab": null,
...
...
@@ -3065,13 +3161,13 @@
"_name": "wave",
"_objFlags": 0,
"_parent": {
"__id__": 6
6
"__id__": 6
8
},
"_children": [],
"_active": false,
"_components": [
{
"__id__":
68
"__id__":
70
}
],
"_prefab": null,
...
...
@@ -3127,7 +3223,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
7
"__id__": 6
9
},
"_enabled": true,
"_materials": [
...
...
@@ -3159,13 +3255,13 @@
"_name": "player",
"_objFlags": 0,
"_parent": {
"__id__": 6
6
"__id__": 6
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
0
"__id__": 7
2
}
],
"_prefab": null,
...
...
@@ -3221,7 +3317,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
69
"__id__":
71
},
"_enabled": true,
"_materials": [
...
...
@@ -3253,13 +3349,13 @@
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 6
6
"__id__": 6
8
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 7
2
"__id__": 7
4
}
],
"_prefab": null,
...
...
@@ -3315,7 +3411,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
1
"__id__": 7
3
},
"_enabled": true,
"_materials": [
...
...
@@ -3347,7 +3443,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
6
"__id__": 6
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3374,20 +3470,20 @@
"_name": "layout_robot",
"_objFlags": 0,
"_parent": {
"__id__": 6
3
"__id__": 6
5
},
"_children": [
{
"__id__": 7
5
"__id__": 7
7
},
{
"__id__": 7
7
"__id__": 7
9
}
],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
{
"__id__":
79
"__id__":
81
}
],
"_prefab": null,
...
...
@@ -3443,13 +3539,13 @@
"_name": "player",
"_objFlags": 0,
"_parent": {
"__id__": 7
4
"__id__": 7
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
6
"__id__": 7
8
}
],
"_prefab": null,
...
...
@@ -3505,7 +3601,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
5
"__id__": 7
7
},
"_enabled": true,
"_materials": [
...
...
@@ -3537,13 +3633,13 @@
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 7
4
"__id__": 7
6
},
"_children": [],
"_active": false,
"_components": [
{
"__id__":
78
"__id__":
80
}
],
"_prefab": null,
...
...
@@ -3599,7 +3695,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
7
"__id__": 7
9
},
"_enabled": true,
"_materials": [
...
...
@@ -3631,7 +3727,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
4
"__id__": 7
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3658,20 +3754,20 @@
"_name": "item",
"_objFlags": 0,
"_parent": {
"__id__": 6
3
"__id__": 6
5
},
"_children": [
{
"__id__": 81
},
{
"__id__": 83
},
{
"__id__":
104
"__id__":
85
},
{
"__id__": 106
},
{
"__id__": 108
}
],
"_active": false,
...
...
@@ -3729,13 +3825,13 @@
"_name": "bg_hole",
"_objFlags": 0,
"_parent": {
"__id__": 8
0
"__id__": 8
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
2
"__id__": 8
4
}
],
"_prefab": null,
...
...
@@ -3791,7 +3887,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
1
"__id__": 8
3
},
"_enabled": true,
"_materials": [
...
...
@@ -3823,23 +3919,23 @@
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 8
0
"__id__": 8
2
},
"_children": [
{
"__id__": 8
4
"__id__": 8
6
},
{
"__id__": 9
1
"__id__": 9
3
},
{
"__id__": 9
7
"__id__": 9
9
}
],
"_active": true,
"_components": [
{
"__id__": 10
3
"__id__": 10
5
}
],
"_prefab": null,
...
...
@@ -3895,23 +3991,23 @@
"_name": "mouse_normal",
"_objFlags": 0,
"_parent": {
"__id__": 8
3
"__id__": 8
5
},
"_children": [
{
"__id__": 8
5
"__id__": 8
7
},
{
"__id__": 8
7
"__id__": 8
9
}
],
"_active": true,
"_components": [
{
"__id__":
89
"__id__":
91
},
{
"__id__": 9
0
"__id__": 9
2
}
],
"_prefab": null,
...
...
@@ -3967,13 +4063,13 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 8
4
"__id__": 8
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
6
"__id__": 8
8
}
],
"_prefab": null,
...
...
@@ -4029,7 +4125,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
5
"__id__": 8
7
},
"_enabled": true,
"_materials": [
...
...
@@ -4061,22 +4157,22 @@
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 8
4
"__id__": 8
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
88
"__id__":
90
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 2
55
,
"g":
0
,
"b":
0
,
"r": 2
18
,
"g":
99
,
"b":
119
,
"a": 255
},
"_contentSize": {
...
...
@@ -4094,7 +4190,7 @@
"ctor": "Float64Array",
"array": [
0,
-5
1.688
,
-5
2
,
0,
0,
0,
...
...
@@ -4123,7 +4219,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
7
"__id__": 8
9
},
"_enabled": true,
"_materials": [
...
...
@@ -4135,8 +4231,8 @@
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize":
4
0,
"_lineHeight":
4
0,
"_fontSize":
6
0,
"_lineHeight":
6
0,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
...
...
@@ -4158,7 +4254,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
4
"__id__": 8
6
},
"_enabled": true,
"_materials": [
...
...
@@ -4190,7 +4286,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
4
"__id__": 8
6
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -4251,7 +4347,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 8
4
"__id__": 8
6
},
"_id": "14XitHo2FB2bRnNy6Yrvaj"
},
...
...
@@ -4260,20 +4356,20 @@
"_name": "mouse_right",
"_objFlags": 0,
"_parent": {
"__id__": 8
3
"__id__": 8
5
},
"_children": [
{
"__id__": 9
2
"__id__": 9
4
},
{
"__id__": 9
4
"__id__": 9
6
}
],
"_active": true,
"_components": [
{
"__id__": 9
6
"__id__": 9
8
}
],
"_prefab": null,
...
...
@@ -4329,13 +4425,13 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 9
1
"__id__": 9
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
3
"__id__": 9
5
}
],
"_prefab": null,
...
...
@@ -4391,7 +4487,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
2
"__id__": 9
4
},
"_enabled": true,
"_materials": [
...
...
@@ -4423,22 +4519,22 @@
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 9
1
"__id__": 9
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
5
"__id__": 9
7
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 2
55
,
"g":
0
,
"b":
0
,
"r": 2
18
,
"g":
99
,
"b":
119
,
"a": 255
},
"_contentSize": {
...
...
@@ -4456,7 +4552,7 @@
"ctor": "Float64Array",
"array": [
0,
-6
2.508
,
-6
3
,
0,
0,
0,
...
...
@@ -4478,14 +4574,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
8dGpuVV3lAVa0vBFT+bUyZ
"
"_id": "
1fURhPaytPvK4cJico5LdP
"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
4
"__id__": 9
6
},
"_enabled": true,
"_materials": [
...
...
@@ -4497,8 +4593,8 @@
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize":
4
0,
"_lineHeight":
4
0,
"_fontSize":
6
0,
"_lineHeight":
6
0,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
...
...
@@ -4513,14 +4609,14 @@
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
"_id": "
7f4e4rN1VFN6lQGRiGa9aA
"
"_id": "
49s1h6X8tJtpXkR3LzYS43
"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
1
"__id__": 9
3
},
"_enabled": true,
"_materials": [
...
...
@@ -4552,20 +4648,20 @@
"_name": "mouse_wrong",
"_objFlags": 0,
"_parent": {
"__id__": 8
3
"__id__": 8
5
},
"_children": [
{
"__id__":
98
"__id__":
100
},
{
"__id__": 10
0
"__id__": 10
2
}
],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 10
2
"__id__": 10
4
}
],
"_prefab": null,
...
...
@@ -4621,13 +4717,13 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 9
7
"__id__": 9
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
99
"__id__":
101
}
],
"_prefab": null,
...
...
@@ -4683,7 +4779,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
98
"__id__":
100
},
"_enabled": true,
"_materials": [
...
...
@@ -4715,22 +4811,22 @@
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 9
7
"__id__": 9
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
1
"__id__": 10
3
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 2
55
,
"g":
0
,
"b":
0
,
"r": 2
18
,
"g":
99
,
"b":
119
,
"a": 255
},
"_contentSize": {
...
...
@@ -4748,7 +4844,7 @@
"ctor": "Float64Array",
"array": [
0,
-5
1.793
,
-5
2
,
0,
0,
0,
...
...
@@ -4770,14 +4866,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
facxHlgAlDLpQw/NXokc/G
"
"_id": "
ceFnGtuS1JkZ8YHKWAsNzp
"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
0
"__id__": 10
2
},
"_enabled": true,
"_materials": [
...
...
@@ -4789,8 +4885,8 @@
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize":
4
0,
"_lineHeight":
4
0,
"_fontSize":
6
0,
"_lineHeight":
6
0,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
...
...
@@ -4805,14 +4901,14 @@
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
"_id": "
3f75mg+M9O7b36rHRVodIk
"
"_id": "
e5MQB3C9NDMaLIX5ihC7yy
"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
7
"__id__": 9
9
},
"_enabled": true,
"_materials": [
...
...
@@ -4844,7 +4940,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
3
"__id__": 8
5
},
"_enabled": true,
"_materials": [
...
...
@@ -4864,13 +4960,13 @@
"_name": "img_add",
"_objFlags": 0,
"_parent": {
"__id__": 8
0
"__id__": 8
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
5
"__id__": 10
7
}
],
"_prefab": null,
...
...
@@ -4926,7 +5022,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
4
"__id__": 10
6
},
"_enabled": true,
"_materials": [
...
...
@@ -4958,13 +5054,13 @@
"_name": "bg_hole-front",
"_objFlags": 0,
"_parent": {
"__id__": 8
0
"__id__": 8
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
7
"__id__": 10
9
}
],
"_prefab": null,
...
...
@@ -5020,7 +5116,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
6
"__id__": 10
8
},
"_enabled": true,
"_materials": [
...
...
@@ -5052,20 +5148,20 @@
"_name": "layout_card",
"_objFlags": 0,
"_parent": {
"__id__": 6
3
"__id__": 6
5
},
"_children": [
{
"__id__": 1
09
"__id__": 1
11
},
{
"__id__": 11
5
"__id__": 11
7
}
],
"_active": true,
"_components": [
{
"__id__": 1
18
"__id__": 1
20
}
],
"_prefab": null,
...
...
@@ -5121,17 +5217,17 @@
"_name": "bg_card_cover",
"_objFlags": 0,
"_parent": {
"__id__": 1
08
"__id__": 1
10
},
"_children": [
{
"__id__": 11
0
"__id__": 11
2
}
],
"_active": false,
"_components": [
{
"__id__": 11
4
"__id__": 11
6
}
],
"_prefab": null,
...
...
@@ -5187,17 +5283,17 @@
"_name": "bg_card",
"_objFlags": 0,
"_parent": {
"__id__": 1
09
"__id__": 1
11
},
"_children": [
{
"__id__": 11
1
"__id__": 11
3
}
],
"_active": true,
"_components": [
{
"__id__": 11
3
"__id__": 11
5
}
],
"_prefab": null,
...
...
@@ -5253,13 +5349,13 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 11
0
"__id__": 11
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
2
"__id__": 11
4
}
],
"_prefab": null,
...
...
@@ -5315,7 +5411,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
1
"__id__": 11
3
},
"_enabled": true,
"_materials": [
...
...
@@ -5347,7 +5443,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
0
"__id__": 11
2
},
"_enabled": true,
"_materials": [
...
...
@@ -5379,7 +5475,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
09
"__id__": 1
11
},
"_enabled": true,
"_materials": [
...
...
@@ -5411,16 +5507,16 @@
"_name": "bg_card_small",
"_objFlags": 0,
"_parent": {
"__id__": 1
08
"__id__": 1
10
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
6
"__id__": 11
8
},
{
"__id__": 11
7
"__id__": 11
9
}
],
"_prefab": null,
...
...
@@ -5476,7 +5572,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
5
"__id__": 11
7
},
"_enabled": true,
"_materials": [
...
...
@@ -5508,7 +5604,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
5
"__id__": 11
7
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5535,7 +5631,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
08
"__id__": 1
10
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5562,7 +5658,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
3
"__id__": 6
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5593,22 +5689,25 @@
},
"_children": [
{
"__id__": 12
1
"__id__": 12
3
},
{
"__id__": 12
6
"__id__": 12
8
},
{
"__id__": 134
"__id__": 136
},
{
"__id__": 142
}
],
"_active": true,
"_components": [
{
"__id__": 14
1
"__id__": 14
9
},
{
"__id__": 1
42
"__id__": 1
50
}
],
"_prefab": null,
...
...
@@ -5664,20 +5763,20 @@
"_name": "bg_title",
"_objFlags": 0,
"_parent": {
"__id__": 12
0
"__id__": 12
2
},
"_children": [
{
"__id__": 12
2
"__id__": 12
4
}
],
"_active": true,
"_components": [
{
"__id__": 12
4
"__id__": 12
6
},
{
"__id__": 12
5
"__id__": 12
7
}
],
"_prefab": null,
...
...
@@ -5733,13 +5832,13 @@
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 12
1
"__id__": 12
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
3
"__id__": 12
5
}
],
"_prefab": null,
...
...
@@ -5795,7 +5894,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
2
"__id__": 12
4
},
"_enabled": true,
"_materials": [
...
...
@@ -5830,7 +5929,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
1
"__id__": 12
3
},
"_enabled": true,
"_materials": [
...
...
@@ -5862,7 +5961,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
1
"__id__": 12
3
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5889,23 +5988,23 @@
"_name": "btn_laba",
"_objFlags": 0,
"_parent": {
"__id__": 12
0
"__id__": 12
2
},
"_children": [
{
"__id__": 127
},
{
"__id__": 129
},
{
"__id__": 131
},
{
"__id__": 133
}
],
"_active": true,
"_components": [
{
"__id__": 13
3
"__id__": 13
5
}
],
"_prefab": null,
...
...
@@ -5961,13 +6060,13 @@
"_name": "btn_laba1",
"_objFlags": 0,
"_parent": {
"__id__": 12
6
"__id__": 12
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
28
"__id__": 1
30
}
],
"_prefab": null,
...
...
@@ -6023,7 +6122,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
7
"__id__": 12
9
},
"_enabled": true,
"_materials": [
...
...
@@ -6055,13 +6154,13 @@
"_name": "btn_laba2",
"_objFlags": 0,
"_parent": {
"__id__": 12
6
"__id__": 12
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
0
"__id__": 13
2
}
],
"_prefab": null,
...
...
@@ -6117,7 +6216,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
29
"__id__": 1
31
},
"_enabled": true,
"_materials": [
...
...
@@ -6149,13 +6248,13 @@
"_name": "btn_laba3",
"_objFlags": 0,
"_parent": {
"__id__": 12
6
"__id__": 12
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
2
"__id__": 13
4
}
],
"_prefab": null,
...
...
@@ -6211,7 +6310,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
1
"__id__": 13
3
},
"_enabled": true,
"_materials": [
...
...
@@ -6243,7 +6342,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
6
"__id__": 12
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -6267,18 +6366,28 @@
},
{
"__type__": "cc.Node",
"_name": "b
g_round
",
"_name": "b
tn_music
",
"_objFlags": 0,
"_parent": {
"__id__": 12
0
"__id__": 12
2
},
"_children": [
{
"__id__": 135
"__id__": 137
}
],
"_active": true,
"_components": [
{
"__id__": 139
},
{
"__id__": 140
},
{
"__id__": 141
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
...
...
@@ -6290,8 +6399,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
33
2,
"height":
111
"width":
9
2,
"height":
92
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -6302,8 +6411,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0
,
0
,
-579.484
,
-311.456
,
0,
0,
0,
...
...
@@ -6325,24 +6434,20 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
f0cEZ+hE1ObqCtqcMpL7I9
"
"_id": "
00rmhFm71D64OZ1Hi6nm4B
"
},
{
"__type__": "cc.Node",
"_name": "
img
",
"_name": "
off
",
"_objFlags": 0,
"_parent": {
"__id__": 13
4
"__id__": 13
6
},
"_children": [
{
"__id__": 136
}
],
"_active": true,
"_children": [],
"_active": false,
"_components": [
{
"__id__": 1
40
"__id__": 1
38
}
],
"_prefab": null,
...
...
@@ -6356,8 +6461,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
290
,
"height": 9
4
"width":
92
,
"height": 9
2
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -6368,8 +6473,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-61.163
,
-13.973
,
0
,
0
,
0,
0,
0,
...
...
@@ -6391,26 +6496,315 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
0fAjkFy7lECLAqZlQvspjc
"
"_id": "
d5eBBRuS5EgK6VbDdqf9iJ
"
},
{
"__type__": "cc.
Nod
e",
"_name": "
desc
",
"__type__": "cc.
Sprit
e",
"_name": "",
"_objFlags": 0,
"
_parent
": {
"__id__": 13
5
"
node
": {
"__id__": 13
7
},
"_children": [],
"_active": true,
"_components": [
"_enabled": true,
"_materials": [
{
"__id__": 137
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "048ffa59-1b61-4d6d-b6eb-477e924ed65c"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b8odKU/GNNcJ3RK41u5QGL"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 136
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "7e3dddca-a078-4521-a0e3-0d071756833a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "59ul9wOU5Ig5rJDoP+DLNL"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 136
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 12,
"_left": 41.51599999999996,
"_right": 0,
"_top": 0,
"_bottom": 17.543999999999983,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "efbJ69OehH7Z9qQnZ7cn1k"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 136
},
"_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__": 136
},
"_id": "19qMu/KdNDp76E3nnceMm1"
},
{
"__type__": "cc.Node",
"_name": "bg_round",
"_objFlags": 0,
"_parent": {
"__id__": 122
},
"_children": [
{
"__id__": 143
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 332,
"height": 111
},
"_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": "f0cEZ+hE1ObqCtqcMpL7I9"
},
{
"__type__": "cc.Node",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 142
},
"_children": [
{
"__id__": 144
}
],
"_active": true,
"_components": [
{
"__id__": 148
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 290,
"height": 94
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-61.163,
-13.973,
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": "0fAjkFy7lECLAqZlQvspjc"
},
{
"__type__": "cc.Node",
"_name": "desc",
"_objFlags": 0,
"_parent": {
"__id__": 143
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 145
},
{
"__id__": 1
38
"__id__": 1
46
},
{
"__id__": 1
39
"__id__": 1
47
}
],
"_prefab": null,
...
...
@@ -6466,7 +6860,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
36
"__id__": 1
44
},
"_enabled": true,
"_materials": [
...
...
@@ -6482,7 +6876,7 @@
"_lineHeight": 100,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "
e38b0407-6f35-404f-8162-6008a4606cd8
"
"__uuid__": "
8909837d-207b-4df3-9cd5-0197049059ed
"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
...
...
@@ -6501,7 +6895,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
36
"__id__": 1
44
},
"_enabled": true,
"_color": {
...
...
@@ -6519,12 +6913,12 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
36
"__id__": 1
44
},
"_enabled": true,
"alignMode": 1,
"_target": {
"__id__": 1
35
"__id__": 1
43
},
"_alignFlags": 32,
"_left": 0,
...
...
@@ -6548,7 +6942,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
35
"__id__": 1
43
},
"_enabled": true,
"_materials": [
...
...
@@ -6580,7 +6974,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
0
"__id__": 12
2
},
"_enabled": true,
"label": null,
...
...
@@ -6592,7 +6986,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
0
"__id__": 12
2
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -6623,19 +7017,19 @@
},
"_children": [
{
"__id__": 1
44
"__id__": 1
52
},
{
"__id__": 1
46
"__id__": 1
54
},
{
"__id__": 1
48
"__id__": 1
56
},
{
"__id__": 15
0
"__id__": 15
8
}
],
"_active":
fals
e,
"_active":
tru
e,
"_components": [],
"_prefab": null,
"_opacity": 255,
...
...
@@ -6690,13 +7084,13 @@
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 1
43
"__id__": 1
51
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
45
"__id__": 1
53
}
],
"_prefab": null,
...
...
@@ -6752,7 +7146,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
44
"__id__": 1
52
},
"_enabled": true,
"_materials": [
...
...
@@ -6784,13 +7178,13 @@
"_name": "bg_di",
"_objFlags": 0,
"_parent": {
"__id__": 1
43
"__id__": 1
51
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
47
"__id__": 1
55
}
],
"_prefab": null,
...
...
@@ -6846,7 +7240,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
46
"__id__": 1
54
},
"_enabled": true,
"_materials": [
...
...
@@ -6878,13 +7272,13 @@
"_name": "desc",
"_objFlags": 0,
"_parent": {
"__id__": 1
43
"__id__": 1
51
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
49
"__id__": 1
57
}
],
"_prefab": null,
...
...
@@ -6899,7 +7293,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 800,
"height":
262
.92
"height":
304
.92
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -6940,7 +7334,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
48
"__id__": 1
56
},
"_enabled": true,
"_materials": [
...
...
@@ -6950,8 +7344,8 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "
海洋里有很多鱼,仔细观察每条鱼,身上都藏着魔法信息!亲爱的小玩家,请仔细听游戏指令,找到含有正确魔法信息的鱼,快速完成钓鱼。\n在本次的游戏中,你将和其他玩家进行PK,游戏结束,钓鱼数量最多的玩家,将获得胜利。最后根据钓鱼的数量,你将获得相应的能量石奖励!
",
"_N$string": "
海洋里有很多鱼,仔细观察每条鱼,身上都藏着魔法信息!亲爱的小玩家,请仔细听游戏指令,找到含有正确魔法信息的鱼,快速完成钓鱼。\n在本次的游戏中,你将和其他玩家进行PK,游戏结束,钓鱼数量最多的玩家,将获得胜利。最后根据钓鱼的数量,你将获得相应的能量石奖励!
",
"_string": "
调皮的地鼠偷走了魔法卡牌,亲爱的小玩家,请仔细听游戏指令,快速找到藏着正确魔法卡牌的地鼠,用锤子敲打它,就能夺回魔法卡牌。在本次的游戏中,你将和其他玩家进行PK,游戏结束,获得魔法卡牌数量最多的玩家,将获得胜利。最后根据获得的魔法卡牌数量,你将获得相应的能量石奖励!开始挑战吧!
",
"_N$string": "
调皮的地鼠偷走了魔法卡牌,亲爱的小玩家,请仔细听游戏指令,快速找到藏着正确魔法卡牌的地鼠,用锤子敲打它,就能夺回魔法卡牌。在本次的游戏中,你将和其他玩家进行PK,游戏结束,获得魔法卡牌数量最多的玩家,将获得胜利。最后根据获得的魔法卡牌数量,你将获得相应的能量石奖励!开始挑战吧!
",
"_fontSize": 35,
"_lineHeight": 42,
"_enableWrapText": true,
...
...
@@ -6975,16 +7369,16 @@
"_name": "btn_start",
"_objFlags": 0,
"_parent": {
"__id__": 1
43
"__id__": 1
51
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
1
"__id__": 15
9
},
{
"__id__": 1
52
"__id__": 1
60
}
],
"_prefab": null,
...
...
@@ -7040,7 +7434,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
0
"__id__": 15
8
},
"_enabled": true,
"_materials": [
...
...
@@ -7072,7 +7466,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
0
"__id__": 15
8
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -7144,16 +7538,16 @@
},
"_children": [
{
"__id__": 1
54
"__id__": 1
62
},
{
"__id__": 1
56
"__id__": 1
64
}
],
"_active": false,
"_components": [
{
"__id__": 1
58
"__id__": 1
66
}
],
"_prefab": null,
...
...
@@ -7209,13 +7603,13 @@
"_name": "touch",
"_objFlags": 0,
"_parent": {
"__id__": 1
53
"__id__": 1
61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
55
"__id__": 1
63
}
],
"_prefab": null,
...
...
@@ -7271,7 +7665,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
54
"__id__": 1
62
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -7339,13 +7733,13 @@
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 1
53
"__id__": 1
61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
57
"__id__": 1
65
}
],
"_prefab": null,
...
...
@@ -7401,7 +7795,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
56
"__id__": 1
64
},
"_enabled": true,
"_materials": [
...
...
@@ -7434,7 +7828,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
53
"__id__": 1
61
},
"_enabled": true,
"_materials": [
...
...
@@ -7470,25 +7864,25 @@
},
"_children": [
{
"__id__": 16
0
"__id__": 16
8
},
{
"__id__": 1
63
"__id__": 1
71
},
{
"__id__": 1
66
"__id__": 1
74
},
{
"__id__": 1
69
"__id__": 1
77
},
{
"__id__": 1
72
"__id__": 1
80
}
],
"_active": false,
"_components": [
{
"__id__": 1
74
"__id__": 1
82
}
],
"_prefab": null,
...
...
@@ -7544,16 +7938,16 @@
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 1
59
"__id__": 1
67
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 16
1
"__id__": 16
9
},
{
"__id__": 1
62
"__id__": 1
70
}
],
"_prefab": null,
...
...
@@ -7609,7 +8003,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
0
"__id__": 16
8
},
"_enabled": true,
"_materials": [
...
...
@@ -7641,7 +8035,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
0
"__id__": 16
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -7668,16 +8062,16 @@
"_name": "bg_vs",
"_objFlags": 0,
"_parent": {
"__id__": 1
59
"__id__": 1
67
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
64
"__id__": 1
72
},
{
"__id__": 1
65
"__id__": 1
73
}
],
"_prefab": null,
...
...
@@ -7733,7 +8127,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
63
"__id__": 1
71
},
"_enabled": true,
"_materials": [
...
...
@@ -7765,7 +8159,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
63
"__id__": 1
71
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -7792,16 +8186,16 @@
"_name": "player1",
"_objFlags": 0,
"_parent": {
"__id__": 1
59
"__id__": 1
67
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
67
"__id__": 1
75
},
{
"__id__": 1
68
"__id__": 1
76
}
],
"_prefab": null,
...
...
@@ -7857,7 +8251,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
66
"__id__": 1
74
},
"_enabled": true,
"_materials": [
...
...
@@ -7889,7 +8283,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
66
"__id__": 1
74
},
"_enabled": false,
"alignMode": 1,
...
...
@@ -7916,16 +8310,16 @@
"_name": "player2",
"_objFlags": 0,
"_parent": {
"__id__": 1
59
"__id__": 1
67
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
0
"__id__": 17
8
},
{
"__id__": 17
1
"__id__": 17
9
}
],
"_prefab": null,
...
...
@@ -7981,7 +8375,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
69
"__id__": 1
77
},
"_enabled": true,
"_materials": [
...
...
@@ -8013,7 +8407,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
69
"__id__": 1
77
},
"_enabled": false,
"alignMode": 1,
...
...
@@ -8040,13 +8434,13 @@
"_name": "icon_vs",
"_objFlags": 0,
"_parent": {
"__id__": 1
59
"__id__": 1
67
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 1
73
"__id__": 1
81
}
],
"_prefab": null,
...
...
@@ -8102,7 +8496,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
72
"__id__": 1
80
},
"_enabled": true,
"_materials": [
...
...
@@ -8134,7 +8528,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
59
"__id__": 1
67
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -8167,7 +8561,7 @@
"_active": false,
"_components": [
{
"__id__": 1
76
"__id__": 1
84
}
],
"_prefab": null,
...
...
@@ -8223,7 +8617,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
75
"__id__": 1
83
},
"_enabled": true,
"_materials": [
...
...
assets/ns16_mole/scene/ns16_mole.ts
View file @
0184c1c6
...
...
@@ -113,27 +113,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
.
call
(()
=>
{
pg
.
event
.
emit
(
"
show_round_action
"
);
vs
.
active
=
false
;
}).
start
();
}
private
showGameOver
()
{
let
gameover
=
cc
.
find
(
"
gameover
"
,
this
.
node
);
gameover
.
scale
=
3
;
gameover
.
active
=
true
;
this
.
playLocalAudio
(
"
gameover
"
);
cc
.
tween
(
gameover
).
to
(
0.3
,
{
scale
:
1
})
.
delay
(
2
)
.
call
(()
=>
{
gameover
.
active
=
false
;
//发送给上端最后的数据
// alert("game_finish")
let
player
=
{
right
:
Game
.
getIns
().
player
.
score
,
error
:
Game
.
getIns
().
player
.
error
}
let
robot
=
{
right
:
Game
.
getIns
().
robot
.
score
,
error
:
Game
.
getIns
().
robot
.
error
}
let
totalNumber
=
Game
.
getIns
().
totalNumber
;
if
(
Game
.
getIns
().
singleGame
)
{
onHomeworkFinish
({
player
,
totalNumber
})
}
else
{
onHomeworkFinish
({
player
,
robot
,
totalNumber
})
}
this
.
log
(
"
player:
"
+
JSON
.
stringify
(
player
));
this
.
log
(
"
totalNumber:
"
+
totalNumber
)
}).
start
();
let
player
=
{
right
:
Game
.
getIns
().
player
.
score
,
error
:
Game
.
getIns
().
player
.
error
,
stone
:
Math
.
floor
(
10
*
Game
.
getIns
().
player
.
score
/
Game
.
getIns
().
total
)
}
let
robot
=
{
right
:
Game
.
getIns
().
robot
.
score
,
error
:
Game
.
getIns
().
robot
.
error
,
stone
:
Math
.
floor
(
10
*
Game
.
getIns
().
robot
.
score
/
Game
.
getIns
().
total
)
}
let
totalNumber
=
Game
.
getIns
().
totalNumber
;
if
(
Game
.
getIns
().
singleGame
)
{
onHomeworkFinish
({
player
,
totalNumber
})
}
else
{
onHomeworkFinish
({
player
,
robot
,
totalNumber
})
}
this
.
log
(
"
player:
"
+
JSON
.
stringify
(
player
));
this
.
log
(
"
totalNumber:
"
+
totalNumber
)
}
playLocalAudio
(
audioName
)
{
...
...
assets/ns16_mole/scene/tool/GameNS16.ts
View file @
0184c1c6
...
...
@@ -109,9 +109,11 @@ export default class Game {
private
data
:
any
;
private
lists
:
Array
<
Item
>
public
player
:
Player
;
public
robot
:
Robot
;
public
state
:
GAME_STATE
;
public
totalNumber
:
number
;
public
bgm
:
string
;
constructor
()
{
this
.
start
=
false
;
...
...
@@ -133,6 +135,7 @@ export default class Game {
this
.
title
=
data
.
title
;
this
.
start
=
false
;
this
.
lists
=
[];
this
.
bgm
=
data
.
bgAudio
;
this
.
data
=
data
.
questions
;
}
public
start
:
boolean
;
...
...
@@ -166,7 +169,13 @@ export default class Game {
}
return
true
;
}
get
total
()
{
let
m
=
0
;
this
.
lists
.
forEach
(
ques
=>
{
m
+=
ques
.
optionList
.
filter
(
op
=>
op
.
right
).
length
;
})
return
m
;
}
getDataByPage
(
page
):
Item
{
if
(
!
this
.
lists
)
return
null
;
...
...
@@ -177,6 +186,10 @@ export default class Game {
let
page
=
this
.
page
;
return
this
.
lists
.
filter
(
li
=>
li
.
page
==
page
)[
0
]
}
getCurrentPageRight
()
{
let
page
=
this
.
getCurrentPage
();
return
page
.
optionList
.
filter
(
op
=>
op
.
right
).
length
;
}
getTotalPageNum
()
{
return
this
.
lists
.
length
;
}
...
...
assets/ns16_mole/scene/tool/pg.ts
View file @
0184c1c6
...
...
@@ -482,6 +482,15 @@ let pg = {
}
},
audio
:
{
playBgmByUrl
(
audio_url
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
!
audio_url
)
return
resolve
(
0
);
cc
.
assetManager
.
loadRemote
(
audio_url
,
(
err
,
audioClip
:
any
)
=>
{
const
audioId
=
cc
.
audioEngine
.
playMusic
(
audioClip
,
true
);
resolve
(
audioId
);
});
});
},
playAudioByUrl
(
audio_url
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
!
audio_url
)
return
resolve
(
0
);
...
...
assets/ns16_mole/script/defaultData.ts
View file @
0184c1c6
...
...
@@ -18,9 +18,16 @@ export const defaultData =
"
type
"
:
"
txt
"
,
"
image
"
:
""
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/7432c9bfa754a4c9db54132308e8ce1f_l.mp3
"
,
"
text
"
:
"
xfuw
"
,
"
right
"
:
false
,
"
audioName
"
:
"
冒出.mp3
"
},
{
"
type
"
:
"
txt
"
,
"
image
"
:
""
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/274d8965edafabf1e8d1a01400db82b7_l.mp3
"
,
"
text
"
:
"
head
"
,
"
right
"
:
true
,
"
audioName
"
:
"
错误.mp3
"
},
{
"
type
"
:
"
img
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/fc1d670c1a3461136506195e3e9e3797.png
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/7432c9bfa754a4c9db54132308e8ce1f_l.mp3
"
,
"
text
"
:
""
,
"
right
"
:
false
,
"
audioName
"
:
"
冒出.mp3
"
}],
"
questionImg
"
:
"
http://staging-teach.cdn.ireadabc.com/317ef6895381d2f926a0d444326a5995.png
"
,
},
{
"
type
"
:
"
txt
"
,
"
image
"
:
""
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/274d8965edafabf1e8d1a01400db82b7_l.mp3
"
,
"
text
"
:
"
head
"
,
"
right
"
:
true
,
"
audioName
"
:
"
错误.mp3
"
},
{
"
type
"
:
"
img
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/fc1d670c1a3461136506195e3e9e3797.png
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/7432c9bfa754a4c9db54132308e8ce1f_l.mp3
"
,
"
text
"
:
""
,
"
right
"
:
false
,
"
audioName
"
:
"
冒出.mp3
"
}],
"
questionImg
"
:
"
http://staging-teach.cdn.ireadabc.com/317ef6895381d2f926a0d444326a5995.png
"
,
"
audioName
"
:
"
胜利.mp3
"
},
{
"
questionAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/26e6e997562503a98918fadab7e7b6c2_l.mp3
"
,
"
duration
"
:
120
,
"
options
"
:
[{
"
type
"
:
"
img
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/fea420e83bd2ba03d014c279de780599.png
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/7432c9bfa754a4c9db54132308e8ce1f_l.mp3
"
,
"
text
"
:
""
,
"
right
"
:
true
,
"
audioName
"
:
"
冒出.mp3
"
},
{
"
type
"
:
"
txt
"
,
"
image
"
:
""
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/274d8965edafabf1e8d1a01400db82b7_l.mp3
"
,
"
text
"
:
"
eye
"
,
"
right
"
:
true
,
"
audioName
"
:
"
错误.mp3
"
},
{
"
type
"
:
"
txt
"
,
"
image
"
:
""
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/f03e207cb6808b17c1510b230a70bb1d_l.mp3
"
,
"
text
"
:
"
fffsxz
"
,
"
right
"
:
false
,
"
audioName
"
:
"
加分.mp3
"
},
{
"
type
"
:
"
img
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/01247e69d70b995da41e6b7e2000b540.png
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/f7fb9f71ab7d460ac2f78c85efba7610_l.mp3
"
,
"
text
"
:
""
,
"
right
"
:
false
,
"
audioName
"
:
"
按钮.mp3
"
}],
"
questionImg
"
:
"
http://staging-teach.cdn.ireadabc.com/fea420e83bd2ba03d014c279de780599.png
"
,
"
audioName
"
:
"
失败.mp3
"
}],
"
audioName
"
:
"
头像移动.mp3
"
,
"
bgAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/93bb9ed985cff104879f4b4fa6ace4ea_l.mp3
"
"
audioName
"
:
"
头像移动.mp3
"
,
"
bgAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/93bb9ed985cff104879f4b4fa6ace4ea_l.mp3
"
}
\ No newline at end of file
assets/ns16_mole/字体/round.ttf
0 → 100644
View file @
0184c1c6
File added
assets/ns16_mole/字体/round.ttf.meta
0 → 100644
View file @
0184c1c6
{
"ver": "1.1.0",
"uuid": "8909837d-207b-4df3-9cd5-0197049059ed",
"subMetas": {}
}
\ No newline at end of file
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