Commit fabbf024 authored by Tt's avatar Tt

mrbr02完成

parent 00466056
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
import pg from "../scene/pg";
const { ccclass, property } = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
@property(cc.Node)
item: cc.Node = null;
// LIFE-CYCLE CALLBACKS:
private mouseList = [];
private mouseNum = 0;
onLoad() {
pg.event.on("mouse_add", () => {
this.reviceMouse();
})
let max = 3;
for (let i = 0; i < max; i++) {
this.addMouse();
}
}
reviceMouse() {
this.mouseNum++;
this.updateMouse();
}
start() {
}
addMouse() {
let item = cc.instantiate(this.item);
item.active = true;
item.getChildByName("light").active = false;
this.node.addChild(item);
this.mouseList.push(item)
}
updateMouse() {
for (let i = 0; i < this.mouseList.length; i++) {
let item = this.mouseList[i];
item.getChildByName("light").active = i < this.mouseNum;
}
}
// update (dt) {}
}
{
"ver": "1.0.8",
"uuid": "aa1f1b26-6e7b-440a-9c1e-b2aa7f4e0d05",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -89,14 +89,10 @@ export default class Game { ...@@ -89,14 +89,10 @@ export default class Game {
return this.page; return this.page;
} }
addPage() { addPage() {
return ++this.page this.page += 1;
} }
get isOver() { get isOver() {
let times = 0; return this.page > this.lists.length;
// this.lists.forEach((li) => {
// times += li.stem.times;
// })
return times == 0;
} }
} }
......
...@@ -78,19 +78,25 @@ ...@@ -78,19 +78,25 @@
"__id__": 15 "__id__": 15
}, },
{ {
"__id__": 98 "__id__": 95
},
{
"__id__": 100
},
{
"__id__": 109
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 107 "__id__": 121
}, },
{ {
"__id__": 108 "__id__": 122
}, },
{ {
"__id__": 109 "__id__": 123
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -780,10 +786,10 @@ ...@@ -780,10 +786,10 @@
"__id__": 18 "__id__": 18
}, },
{ {
"__id__": 94 "__id__": 91
}, },
{ {
"__id__": 96 "__id__": 93
} }
], ],
"_active": true, "_active": true,
...@@ -948,37 +954,37 @@ ...@@ -948,37 +954,37 @@
"__id__": 25 "__id__": 25
}, },
{ {
"__id__": 38 "__id__": 32
}, },
{ {
"__id__": 39 "__id__": 33
}, },
{ {
"__id__": 56 "__id__": 38
}, },
{ {
"__id__": 62 "__id__": 55
}, },
{ {
"__id__": 71 "__id__": 61
}, },
{ {
"__id__": 80 "__id__": 70
}, },
{ {
"__id__": 87 "__id__": 79
}, },
{ {
"__id__": 89 "__id__": 86
}, },
{ {
"__id__": 91 "__id__": 88
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 93 "__id__": 90
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1318,7 +1324,7 @@ ...@@ -1318,7 +1324,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "small_mouse", "_name": "layout_mouse",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 18 "__id__": 18
...@@ -1326,25 +1332,17 @@ ...@@ -1326,25 +1332,17 @@
"_children": [ "_children": [
{ {
"__id__": 26 "__id__": 26
}, }
{ ],
"__id__": 28 "_active": true,
}, "_components": [
{ {
"__id__": 30 "__id__": 30
}, },
{ {
"__id__": 32 "__id__": 31
},
{
"__id__": 34
},
{
"__id__": 36
} }
], ],
"_active": true,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1356,20 +1354,20 @@ ...@@ -1356,20 +1354,20 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 300,
"height": 0 "height": 50
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 1,
"y": 0.5 "y": 0.5
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 507.992,
0, 290,
0, 0,
0, 0,
0, 0,
...@@ -1395,18 +1393,22 @@ ...@@ -1395,18 +1393,22 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "small_mouse_left", "_name": "small_mouse",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 25 "__id__": 25
}, },
"_children": [], "_children": [
"_active": true,
"_components": [
{ {
"__id__": 27 "__id__": 27
} }
], ],
"_active": false,
"_components": [
{
"__id__": 29
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1430,8 +1432,8 @@ ...@@ -1430,8 +1432,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
317.189, -29.5,
303.426, 0,
0, 0,
0, 0,
0, 0,
...@@ -1455,50 +1457,18 @@ ...@@ -1455,50 +1457,18 @@
"groupIndex": 0, "groupIndex": 0,
"_id": "44rcIZek5G7aJf3sioFIA4" "_id": "44rcIZek5G7aJf3sioFIA4"
}, },
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "54beeaf0-8640-4d6d-bdb2-40be6c49f378"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "94XQUj//hDHJidDjy5CcXZ"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "small_mouse_center", "_name": "light",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 25 "__id__": 26
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 29 "__id__": 28
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1524,8 +1494,8 @@ ...@@ -1524,8 +1494,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
390.579, -0.695,
303.426, 1.739,
0, 0,
0, 0,
0, 0,
...@@ -1547,14 +1517,46 @@ ...@@ -1547,14 +1517,46 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "d97tKGB6pA2pK0vuAQCH2a" "_id": "dcVorH47ZH/7vdQNiqKXpp"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 28 "__id__": 27
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "047bdd7d-6c4f-47dc-944a-12cf7a461f93"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "43BfOuW1xHXbypXfMpJoF3"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1579,22 +1581,63 @@ ...@@ -1579,22 +1581,63 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "52djZD/jZPeLFZ6Ai1a4Xu" "_id": "94XQUj//hDHJidDjy5CcXZ"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 300,
"height": 50
},
"_resize": 0,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 1,
"_N$affectedByScale": false,
"_id": "b8syptcjxOoLDkcki3Sgn7"
},
{
"__type__": "aa1f1smbntECpwesqp/Tg0F",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"item": {
"__id__": 26
},
"_id": "cbAwEJmxBIlZsIA2MAcI90"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "small_mouse_right", "_name": "layout_card",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 25 "__id__": 18
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [],
{
"__id__": 31
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1606,8 +1649,8 @@ ...@@ -1606,8 +1649,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 59, "width": 1280,
"height": 42 "height": 720
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1618,8 +1661,8 @@ ...@@ -1618,8 +1661,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
461.718, 0,
305.165, 0,
0, 0,
0, 0,
0, 0,
...@@ -1641,54 +1684,25 @@ ...@@ -1641,54 +1684,25 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "48rRZCNY5MfaDO0r3NzMve" "_id": "40B/aUDAROl4aObOnklN+K"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "54beeaf0-8640-4d6d-bdb2-40be6c49f378"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "0ffWCuE15OYIYOOBqDoxEn"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "small_mouse_highlight_left", "_name": "layout_card_result",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 25 "__id__": 18
}, },
"_children": [], "_children": [
"_active": true,
"_components": [
{ {
"__id__": 33 "__id__": 34
},
{
"__id__": 36
} }
], ],
"_active": true,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1700,8 +1714,8 @@ ...@@ -1700,8 +1714,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 59, "width": 1280,
"height": 42 "height": 720
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1712,8 +1726,8 @@ ...@@ -1712,8 +1726,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
316.494, 0,
305.165, 0,
0, 0,
0, 0,
0, 0,
...@@ -1735,67 +1749,35 @@ ...@@ -1735,67 +1749,35 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "dcVorH47ZH/7vdQNiqKXpp" "_id": "beUKztkONCkoefObWx4qVi"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Node",
"_name": "", "_name": "card_result",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 32 "__id__": 33
}, },
"_enabled": true, "_children": [],
"_materials": [ "_active": true,
"_components": [
{ {
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" "__id__": 35
} }
], ],
"_srcBlendFactor": 770, "_prefab": null,
"_dstBlendFactor": 771, "_opacity": 255,
"_spriteFrame": { "_color": {
"__uuid__": "047bdd7d-6c4f-47dc-944a-12cf7a461f93" "__type__": "cc.Color",
}, "r": 255,
"_type": 0, "g": 255,
"_sizeMode": 1, "b": 255,
"_fillType": 0, "a": 255
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "43BfOuW1xHXbypXfMpJoF3"
},
{
"__type__": "cc.Node",
"_name": "small_mouse_highlight_center",
"_objFlags": 0,
"_parent": {
"__id__": 25
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 35
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 59, "width": 406,
"height": 42 "height": 240
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1806,15 +1788,15 @@ ...@@ -1806,15 +1788,15 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
392.108, 0.695,
305.165, -64.972,
0, 0,
0, 0,
0, 0,
0, 0,
1, 1,
1, 1,
1, -1,
1 1
] ]
}, },
...@@ -1829,7 +1811,7 @@ ...@@ -1829,7 +1811,7 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "63FunptrVPQYvHwxeE697K" "_id": "154GpSgnxD4bXmCIJvxbCt"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -1847,7 +1829,7 @@ ...@@ -1847,7 +1829,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "047bdd7d-6c4f-47dc-944a-12cf7a461f93" "__uuid__": "2be8b6f1-6ecf-42ec-862e-f59658c36533"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1861,17 +1843,17 @@ ...@@ -1861,17 +1843,17 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "e9wONRpbhIzp53NoGM5HTw" "_id": "20jlBl6F5AwZ1LlKtQe2gf"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "small_mouse_highlight_right", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 25 "__id__": 33
}, },
"_children": [], "_children": [],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 37 "__id__": 37
...@@ -1888,8 +1870,8 @@ ...@@ -1888,8 +1870,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 59, "width": 340,
"height": 42 "height": 150
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1900,8 +1882,8 @@ ...@@ -1900,8 +1882,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
463.274, -0.252,
307.389, -64.087,
0, 0,
0, 0,
0, 0,
...@@ -1923,7 +1905,7 @@ ...@@ -1923,7 +1905,7 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "65ag6iFTtFDZA/Pb3HzJ3E" "_id": "507jsZkINNx59gqZo1baqL"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -1941,10 +1923,10 @@ ...@@ -1941,10 +1923,10 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "047bdd7d-6c4f-47dc-944a-12cf7a461f93" "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1955,65 +1937,7 @@ ...@@ -1955,65 +1937,7 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "e6wsfS6vdMdIxAyTdDTKHq" "_id": "281Sf46WJNfKmppInQuh7d"
},
{
"__type__": "cc.Node",
"_name": "layout_card",
"_objFlags": 0,
"_parent": {
"__id__": 18
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_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": "40B/aUDAROl4aObOnklN+K"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -2024,25 +1948,25 @@ ...@@ -2024,25 +1948,25 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 40 "__id__": 39
}, },
{ {
"__id__": 42 "__id__": 41
}, },
{ {
"__id__": 44 "__id__": 43
}, },
{ {
"__id__": 47 "__id__": 46
}, },
{ {
"__id__": 50 "__id__": 49
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 55 "__id__": 54
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2098,13 +2022,13 @@ ...@@ -2098,13 +2022,13 @@
"_name": "light_blue", "_name": "light_blue",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 39 "__id__": 38
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 41 "__id__": 40
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2160,7 +2084,7 @@ ...@@ -2160,7 +2084,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 40 "__id__": 39
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2192,13 +2116,13 @@ ...@@ -2192,13 +2116,13 @@
"_name": "light_orange", "_name": "light_orange",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 39 "__id__": 38
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 43 "__id__": 42
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2254,7 +2178,7 @@ ...@@ -2254,7 +2178,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 42 "__id__": 41
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2286,11 +2210,11 @@ ...@@ -2286,11 +2210,11 @@
"_name": "text", "_name": "text",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 39 "__id__": 38
}, },
"_children": [ "_children": [
{ {
"__id__": 45 "__id__": 44
} }
], ],
"_active": true, "_active": true,
...@@ -2348,13 +2272,13 @@ ...@@ -2348,13 +2272,13 @@
"_name": "label", "_name": "label",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 44 "__id__": 43
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 46 "__id__": 45
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2410,7 +2334,7 @@ ...@@ -2410,7 +2334,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 45 "__id__": 44
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2443,11 +2367,11 @@ ...@@ -2443,11 +2367,11 @@
"_name": "pic", "_name": "pic",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 39 "__id__": 38
}, },
"_children": [ "_children": [
{ {
"__id__": 48 "__id__": 47
} }
], ],
"_active": true, "_active": true,
...@@ -2505,13 +2429,13 @@ ...@@ -2505,13 +2429,13 @@
"_name": "img", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 47 "__id__": 46
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 49 "__id__": 48
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2567,7 +2491,7 @@ ...@@ -2567,7 +2491,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 48 "__id__": 47
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2599,14 +2523,14 @@ ...@@ -2599,14 +2523,14 @@
"_name": "picText", "_name": "picText",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 39 "__id__": 38
}, },
"_children": [ "_children": [
{ {
"__id__": 51 "__id__": 50
}, },
{ {
"__id__": 53 "__id__": 52
} }
], ],
"_active": true, "_active": true,
...@@ -2664,13 +2588,13 @@ ...@@ -2664,13 +2588,13 @@
"_name": "img", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 50 "__id__": 49
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 52 "__id__": 51
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2726,7 +2650,7 @@ ...@@ -2726,7 +2650,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 51 "__id__": 50
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2758,13 +2682,13 @@ ...@@ -2758,13 +2682,13 @@
"_name": "label", "_name": "label",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 50 "__id__": 49
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 54 "__id__": 53
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2820,7 +2744,7 @@ ...@@ -2820,7 +2744,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 53 "__id__": 52
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2853,7 +2777,7 @@ ...@@ -2853,7 +2777,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 39 "__id__": 38
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2889,16 +2813,16 @@ ...@@ -2889,16 +2813,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 57 "__id__": 56
}, },
{ {
"__id__": 59 "__id__": 58
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 61 "__id__": 60
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2954,13 +2878,13 @@ ...@@ -2954,13 +2878,13 @@
"_name": "highlight_orange", "_name": "highlight_orange",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 56 "__id__": 55
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 58 "__id__": 57
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3016,7 +2940,7 @@ ...@@ -3016,7 +2940,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 57 "__id__": 56
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3048,13 +2972,13 @@ ...@@ -3048,13 +2972,13 @@
"_name": "highlight_blue", "_name": "highlight_blue",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 56 "__id__": 55
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 60 "__id__": 59
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3110,7 +3034,7 @@ ...@@ -3110,7 +3034,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 59 "__id__": 58
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3142,7 +3066,7 @@ ...@@ -3142,7 +3066,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 56 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3178,16 +3102,16 @@ ...@@ -3178,16 +3102,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 63 "__id__": 62
}, },
{ {
"__id__": 65 "__id__": 64
}, },
{ {
"__id__": 67 "__id__": 66
}, },
{ {
"__id__": 69 "__id__": 68
} }
], ],
"_active": false, "_active": false,
...@@ -3245,13 +3169,13 @@ ...@@ -3245,13 +3169,13 @@
"_name": "microphone1", "_name": "microphone1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 62 "__id__": 61
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 64 "__id__": 63
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3307,7 +3231,7 @@ ...@@ -3307,7 +3231,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 63 "__id__": 62
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3339,13 +3263,13 @@ ...@@ -3339,13 +3263,13 @@
"_name": "voice_in", "_name": "voice_in",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 62 "__id__": 61
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 66 "__id__": 65
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3401,7 +3325,7 @@ ...@@ -3401,7 +3325,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 65 "__id__": 64
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3433,13 +3357,13 @@ ...@@ -3433,13 +3357,13 @@
"_name": "voice_middle", "_name": "voice_middle",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 62 "__id__": 61
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 68 "__id__": 67
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3495,7 +3419,7 @@ ...@@ -3495,7 +3419,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 67 "__id__": 66
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3527,13 +3451,13 @@ ...@@ -3527,13 +3451,13 @@
"_name": "voice_out", "_name": "voice_out",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 62 "__id__": 61
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 70 "__id__": 69
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3589,7 +3513,7 @@ ...@@ -3589,7 +3513,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 69 "__id__": 68
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3625,16 +3549,16 @@ ...@@ -3625,16 +3549,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 72 "__id__": 71
}, },
{ {
"__id__": 74 "__id__": 73
}, },
{ {
"__id__": 76 "__id__": 75
}, },
{ {
"__id__": 78 "__id__": 77
} }
], ],
"_active": false, "_active": false,
...@@ -3692,13 +3616,13 @@ ...@@ -3692,13 +3616,13 @@
"_name": "microphone2", "_name": "microphone2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 71 "__id__": 70
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 73 "__id__": 72
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3754,7 +3678,7 @@ ...@@ -3754,7 +3678,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 72 "__id__": 71
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3786,13 +3710,13 @@ ...@@ -3786,13 +3710,13 @@
"_name": "progressbar_grey", "_name": "progressbar_grey",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 71 "__id__": 70
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 75 "__id__": 74
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3848,7 +3772,7 @@ ...@@ -3848,7 +3772,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 74 "__id__": 73
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3880,13 +3804,13 @@ ...@@ -3880,13 +3804,13 @@
"_name": "progressbar_red", "_name": "progressbar_red",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 71 "__id__": 70
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 77 "__id__": 76
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3942,7 +3866,7 @@ ...@@ -3942,7 +3866,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 76 "__id__": 75
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3974,13 +3898,13 @@ ...@@ -3974,13 +3898,13 @@
"_name": "progressbar_highlight", "_name": "progressbar_highlight",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 71 "__id__": 70
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 79 "__id__": 78
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4036,7 +3960,7 @@ ...@@ -4036,7 +3960,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 78 "__id__": 77
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4072,13 +3996,13 @@ ...@@ -4072,13 +3996,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 81 "__id__": 80
}, },
{ {
"__id__": 83 "__id__": 82
}, },
{ {
"__id__": 85 "__id__": 84
} }
], ],
"_active": false, "_active": false,
...@@ -4136,13 +4060,13 @@ ...@@ -4136,13 +4060,13 @@
"_name": "text_up", "_name": "text_up",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 80 "__id__": 79
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 82 "__id__": 81
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4198,7 +4122,7 @@ ...@@ -4198,7 +4122,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 81 "__id__": 80
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4230,13 +4154,13 @@ ...@@ -4230,13 +4154,13 @@
"_name": "text_middle", "_name": "text_middle",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 80 "__id__": 79
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 84 "__id__": 83
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4292,7 +4216,7 @@ ...@@ -4292,7 +4216,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 83 "__id__": 82
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4324,13 +4248,13 @@ ...@@ -4324,13 +4248,13 @@
"_name": "text_down", "_name": "text_down",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 80 "__id__": 79
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 86 "__id__": 85
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4386,7 +4310,7 @@ ...@@ -4386,7 +4310,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 85 "__id__": 84
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4413,100 +4337,6 @@ ...@@ -4413,100 +4337,6 @@
"_atlas": null, "_atlas": null,
"_id": "fabnnS+spBUqA/e8sAfdmJ" "_id": "fabnnS+spBUqA/e8sAfdmJ"
}, },
{
"__type__": "cc.Node",
"_name": "card_result",
"_objFlags": 0,
"_parent": {
"__id__": 18
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 88
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 406,
"height": 240
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0.695,
-79.577,
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": "154GpSgnxD4bXmCIJvxbCt"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 87
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "2be8b6f1-6ecf-42ec-862e-f59658c36533"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "20jlBl6F5AwZ1LlKtQe2gf"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn_check_grey", "_name": "btn_check_grey",
...@@ -4518,7 +4348,7 @@ ...@@ -4518,7 +4348,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 90 "__id__": 87
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4574,7 +4404,7 @@ ...@@ -4574,7 +4404,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 89 "__id__": 86
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4612,7 +4442,7 @@ ...@@ -4612,7 +4442,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 92 "__id__": 89
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4668,7 +4498,7 @@ ...@@ -4668,7 +4498,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 91 "__id__": 88
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4738,7 +4568,7 @@ ...@@ -4738,7 +4568,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 95 "__id__": 92
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4794,7 +4624,7 @@ ...@@ -4794,7 +4624,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 94 "__id__": 91
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4832,7 +4662,7 @@ ...@@ -4832,7 +4662,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 97 "__id__": 94
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4888,7 +4718,7 @@ ...@@ -4888,7 +4718,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 96 "__id__": 93
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4917,27 +4747,20 @@ ...@@ -4917,27 +4747,20 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "mouse_start", "_name": "particle_star",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [ "_children": [
{ {
"__id__": 99 "__id__": 96
},
{
"__id__": 102
}
],
"_active": true,
"_components": [
{
"__id__": 105
} }
], ],
"_active": false,
"_components": [],
"_prefab": { "_prefab": {
"__id__": 106 "__id__": 99
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -4968,9 +4791,9 @@ ...@@ -4968,9 +4791,9 @@
0, 0,
0, 0,
1, 1,
0.11, 1,
0.11, 1,
0.11 1
] ]
}, },
"_eulerAngles": { "_eulerAngles": {
...@@ -4984,24 +4807,24 @@ ...@@ -4984,24 +4807,24 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "d9ZP0y2TFI1bcMu5SJeDwt" "_id": "1czHyS5nhK1roHNqIJEA3b"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "ske", "_name": "particle_star",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 98 "__id__": 95
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 100 "__id__": 97
} }
], ],
"_prefab": { "_prefab": {
"__id__": 101 "__id__": 98
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -5013,8 +4836,8 @@ ...@@ -5013,8 +4836,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1559, "width": 0,
"height": 1857 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -5025,8 +4848,8 @@ ...@@ -5025,8 +4848,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
4825.941, 0,
-2215.831, 0,
0, 0,
0, 0,
0, 0,
...@@ -5048,14 +4871,14 @@ ...@@ -5048,14 +4871,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "76EYHx/ylCkoikkafUDLk2" "_id": "fdajUFyC9Hj6rFDy6msb6Q"
}, },
{ {
"__type__": "dragonBones.ArmatureDisplay", "__type__": "cc.ParticleSystem",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 99 "__id__": 96
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5063,60 +4886,741 @@ ...@@ -5063,60 +4886,741 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
} }
], ],
"_armatureName": "Armature", "_srcBlendFactor": 768,
"_animationName": "normal", "_dstBlendFactor": 1,
"_preCacheMode": 0, "_custom": true,
"_cacheMode": 0, "_file": {
"playTimes": -1, "__uuid__": "a1f705a9-e753-4699-8894-4363b038f2da"
"premultipliedAlpha": false,
"_armatureKey": "12a07322-1e68-4bc7-a4f7-7f90cc762303#04a8dfaa-9baf-4407-af0a-2d3a9e89dbd8",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "12a07322-1e68-4bc7-a4f7-7f90cc762303"
}, },
"_N$dragonAtlasAsset": { "_spriteFrame": {
"__uuid__": "04a8dfaa-9baf-4407-af0a-2d3a9e89dbd8" "__uuid__": "247bd8f7-6c0e-46a1-afda-c5eb7e9cc284"
},
"_texture": null,
"_stopped": true,
"playOnLoad": true,
"autoRemoveOnFinish": false,
"totalParticles": 191,
"duration": 0.22,
"emissionRate": 406.3829787234043,
"life": 0.3,
"lifeVar": 0,
"_startColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 0,
"a": 226
}, },
"_N$_defaultArmatureIndex": 0, "_startColorVar": {
"_N$_animationIndex": 1, "__type__": "cc.Color",
"_N$_defaultCacheMode": 0, "r": 0,
"_N$timeScale": 1, "g": 0,
"_N$debugBones": false, "b": 0,
"_N$enableBatch": false, "a": 0
"_id": "30w+nwKvhGuIgpR+dkMH7B" },
"_endColor": {
"__type__": "cc.Color",
"r": 219,
"g": 211,
"b": 0,
"a": 255
},
"_endColorVar": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 0
},
"angle": 17,
"angleVar": 180,
"startSize": 10,
"startSizeVar": 20,
"endSize": -1,
"endSizeVar": 0,
"startSpin": 0,
"startSpinVar": 0,
"endSpin": 0,
"endSpinVar": 0,
"sourcePos": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"posVar": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_positionType": 1,
"positionType": 1,
"emitterMode": 0,
"gravity": {
"__type__": "cc.Vec2",
"x": -20,
"y": 420
},
"speed": 450,
"speedVar": 20,
"tangentialAccel": -700,
"tangentialAccelVar": 0,
"radialAccel": 0,
"radialAccelVar": 0,
"rotationIsDir": false,
"startRadius": 0,
"startRadiusVar": 0,
"endRadius": 0,
"endRadiusVar": 0,
"rotatePerS": 0,
"rotatePerSVar": 0,
"_N$preview": true,
"_id": "1bHE1AHJ5DBLw+Bz6zdPIl"
}, },
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 98 "__id__": 95
}, },
"asset": { "asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a" "__uuid__": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2"
}, },
"fileId": "bcXAodm85FgJvr6dZD9yGf", "fileId": "fcv3QB7CFM+q6n1fsvkn0z",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 95
},
"asset": {
"__uuid__": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2"
},
"fileId": "",
"sync": false "sync": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "block", "_name": "mouse_start",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 98 "__id__": 2
}, },
"_children": [], "_children": [
"_active": true,
"_components": [
{ {
"__id__": 103 "__id__": 101
},
{
"__id__": 104
}
],
"_active": true,
"_components": [
{
"__id__": 107
}
],
"_prefab": {
"__id__": 108
},
"_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,
0.11,
0.11,
0.11
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "d9ZP0y2TFI1bcMu5SJeDwt"
},
{
"__type__": "cc.Node",
"_name": "ske",
"_objFlags": 0,
"_parent": {
"__id__": 100
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 102
}
],
"_prefab": {
"__id__": 103
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1559,
"height": 1857
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
4825.941,
-2215.831,
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": "76EYHx/ylCkoikkafUDLk2"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 101
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "normal",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "12a07322-1e68-4bc7-a4f7-7f90cc762303#04a8dfaa-9baf-4407-af0a-2d3a9e89dbd8",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "12a07322-1e68-4bc7-a4f7-7f90cc762303"
},
"_N$dragonAtlasAsset": {
"__uuid__": "04a8dfaa-9baf-4407-af0a-2d3a9e89dbd8"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "30w+nwKvhGuIgpR+dkMH7B"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 100
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
},
"fileId": "bcXAodm85FgJvr6dZD9yGf",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "block",
"_objFlags": 0,
"_parent": {
"__id__": 100
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 105
}
],
"_prefab": {
"__id__": 106
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100000,
"height": 100000
},
"_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": "1dhIg/vMFI2I45AficO/g2"
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
},
"_enabled": true,
"_id": "0efpWUJrZGxq5KGX62q1NU"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 100
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
},
"fileId": "efp877hUFLz4dHY4gxxXKw",
"sync": false
},
{
"__type__": "219b1yegNJPW4jalMImtj4z",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 100
},
"_enabled": true,
"startPosition": {
"__type__": "cc.Vec2",
"x": 14000,
"y": -2215
},
"targetPosition": {
"__type__": "cc.Vec2",
"x": 4825.941,
"y": -2215
},
"moveInTime": 2,
"_id": "ff+xuUJFlN072SmV8Aa92K"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 100
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
},
"fileId": "",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "mouse_end",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 110
},
{
"__id__": 113
},
{
"__id__": 116
}
],
"_active": false,
"_components": [
{
"__id__": 119
}
],
"_prefab": {
"__id__": 120
},
"_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,
0.11,
0.11,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "34dizlNXdOrZB7Iy3y9Yy5"
},
{
"__type__": "cc.Node",
"_name": "ske_candy",
"_objFlags": 0,
"_parent": {
"__id__": 109
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 111
} }
], ],
"_prefab": { "_prefab": {
"__id__": 104 "__id__": 112
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1668,
"height": 938
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-432.512,
0,
0,
0,
0,
1,
8,
8,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e0YilqUmJJ1JWzJEQo/xb0"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "normal",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": 1,
"premultipliedAlpha": false,
"_armatureKey": "e6ec02b6-ebbf-4d17-acaf-4945d7fb877f#5788586f-1aff-4185-b6cc-808408c509f4",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "e6ec02b6-ebbf-4d17-acaf-4945d7fb877f"
},
"_N$dragonAtlasAsset": {
"__uuid__": "5788586f-1aff-4185-b6cc-808408c509f4"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "5epMs1vchM25OnvkscQl16"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 109
},
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
},
"fileId": "fcHw9SaDpAK7zwmxUDrLPs",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "ske",
"_objFlags": 0,
"_parent": {
"__id__": 109
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 114
}
],
"_prefab": {
"__id__": 115
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1508,
"height": 2331.53
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-2095.446,
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": "2aYVNFi5tK85nNC+WX+BQB"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 113
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "normal",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": 1,
"premultipliedAlpha": false,
"_armatureKey": "a80e649d-a03b-4765-982c-56931d635a44#30147f0f-a97b-4f52-9f51-33aa613ada59",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "a80e649d-a03b-4765-982c-56931d635a44"
},
"_N$dragonAtlasAsset": {
"__uuid__": "30147f0f-a97b-4f52-9f51-33aa613ada59"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "adGwB9ugpHtZgseTsqBtp5"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 109
},
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
},
"fileId": "5c1hp2rfRESZM5fPSRCCMq",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "block",
"_objFlags": 0,
"_parent": {
"__id__": 109
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 117
}
],
"_prefab": {
"__id__": 118
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -5163,57 +5667,57 @@ ...@@ -5163,57 +5667,57 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "1dhIg/vMFI2I45AficO/g2" "_id": "66mBnuSuRBsLqj9PfCnqDL"
}, },
{ {
"__type__": "cc.BlockInputEvents", "__type__": "cc.BlockInputEvents",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 102 "__id__": 116
}, },
"_enabled": true, "_enabled": true,
"_id": "0efpWUJrZGxq5KGX62q1NU" "_id": "614Ol/VeZKyIbzJ5WMNHfT"
}, },
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 98 "__id__": 109
}, },
"asset": { "asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a" "__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
}, },
"fileId": "efp877hUFLz4dHY4gxxXKw", "fileId": "c6mVnUkE5JaYueomXGzBNp",
"sync": false "sync": false
}, },
{ {
"__type__": "219b1yegNJPW4jalMImtj4z", "__type__": "0e6618sCSxBeYB00pouLhfn",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 98 "__id__": 109
}, },
"_enabled": true, "_enabled": true,
"startPosition": { "startPosition": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 14000, "x": 0,
"y": -2215 "y": -2095.446
}, },
"targetPosition": { "voice": {
"__type__": "cc.Vec2", "__uuid__": "3fa7aab4-b81d-40e6-9691-73935a1d92da"
"x": 4825.941,
"y": -2215
}, },
"moveInTime": 2, "voice2": {
"_id": "ff+xuUJFlN072SmV8Aa92K" "__uuid__": "b3d3e0e6-a546-402f-9f78-36dca911638b"
},
"_id": "8cjC9fH29DXrtrLsF41i7+"
}, },
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 98 "__id__": 109
}, },
"asset": { "asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a" "__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
}, },
"fileId": "", "fileId": "",
"sync": false "sync": false
...@@ -5270,14 +5774,20 @@ ...@@ -5270,14 +5774,20 @@
"__id__": 2 "__id__": 2
}, },
"_enabled": true, "_enabled": true,
"ani_flower": {
"__id__": 95
},
"layout_card": { "layout_card": {
"__id__": 38 "__id__": 32
},
"layout_card_result": {
"__id__": 33
}, },
"node_card": { "node_card": {
"__id__": 39 "__id__": 38
}, },
"bg_card": { "bg_card": {
"__id__": 56 "__id__": 55
}, },
"_id": "eaTVUpqahPfZeO9+sUI7RP" "_id": "eaTVUpqahPfZeO9+sUI7RP"
} }
......
...@@ -30,9 +30,13 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -30,9 +30,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.initEvent(); this.initEvent();
pg.event.emit("startGame"); pg.event.emit("startGame");
} }
@property(cc.Node)
ani_flower: cc.Node = null;
@property(cc.Node) @property(cc.Node)
layout_card: cc.Node = null; layout_card: cc.Node = null;
@property(cc.Node)
layout_card_result: cc.Node = null;
@property(cc.Node) @property(cc.Node)
node_card: cc.Node = null; node_card: cc.Node = null;
...@@ -50,30 +54,58 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -50,30 +54,58 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.view.touchOn(pg.view.find(this, 'bg/bg_card/btn_check'), this.onTouchCheck, this); pg.view.touchOn(pg.view.find(this, 'bg/bg_card/btn_check'), this.onTouchCheck, this);
pg.event.on("startGame", () => { this.startGame() }) pg.event.on("startGame", () => { this.startGame() })
pg.event.on("nextPage", () => { this.nextPage() })
pg.event.on("gameOver", () => { this.gameOver() })
} }
//开始游戏 //开始游戏
startGame() { startGame() {
Game.getIns().reset();
this.nextPage();
}
nextPage() {
this.cards = []; this.cards = [];
this.cardBgs = []; this.cardBgs = [];
this.currentCards = []; this.currentCards = [];
Game.getIns().reset();
//自动创建卡片
let data: Item = Game.getIns().getCurrentPage(); let data: Item = Game.getIns().getCurrentPage();
console.log("data->" + data); //自动创建卡片
this.layout_card.active = true;
this.layout_card_result.active = false;
this.createCrads(data); this.createCrads(data);
} }
getCurrentOpSet() { getCurrentOpSet() {
let op = { let op = {
"2": {
x: -135,
y: 160,
y2: -80,
space: 260,
scale: 1,
},
"3": { "3": {
x: -260, x: -260,
y: 160, y: 160,
y2: -80, y2: -80,
space: 260, space: 260,
scale: 1, scale: 1,
},
"4": {
x: -390,
y: 110,
y2: -100,
space: 260,
scale: 0.85,
},
"5": {
x: -410,
y: 110,
y2: -90,
space: 260 * 0.8,
scale: 0.8,
},
} }
} let len = Game.getIns().getCurrentPage().optionList.length;
let opSet = op[`${Game.getIns().getCurrentPage().optionList.length}`]; let opSet = op[`${len}`];
return opSet; return opSet;
} }
getPostionById(count) { getPostionById(count) {
...@@ -93,6 +125,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -93,6 +125,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private cards: cc.Node[]; private cards: cc.Node[];
private cardBgs: cc.Node[]; private cardBgs: cc.Node[];
createCrads(list) { createCrads(list) {
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();
...@@ -135,8 +168,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -135,8 +168,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
break; break;
case "picText": case "picText":
pg.view.visible(pg.view.find(item, 'picText'), true); pg.view.visible(pg.view.find(item, 'picText'), true);
pg.view.setString(pg.view.find(item, 'pic/label'), data.txt); pg.view.setString(pg.view.find(item, 'picText/label'), data.txt);
pg.view.setNetImg(pg.view.find(item, 'pic/img'), data.picUrl, { w: 140, h: 160 }); pg.view.setNetImg(pg.view.find(item, 'picText/img'), data.picUrl, { w: 140, h: 160 });
break; break;
} }
item.on(cc.Node.EventType.TOUCH_START, this.onItemTouchStart, this); item.on(cc.Node.EventType.TOUCH_START, this.onItemTouchStart, this);
...@@ -153,14 +186,12 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -153,14 +186,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
onItemTouchStart(e) { onItemTouchStart(e) {
let target: cc.Node = e.target; let target: cc.Node = e.target;
let data = target.data; let data = target.data;
console.log(target);
let location = e.getLocation(); let location = e.getLocation();
let pos = location.sub(cc.v2(1280 / 2, 720 / 2)) let pos = location.sub(cc.v2(1280 / 2, 720 / 2))
e.target.setPosition(pos) e.target.setPosition(pos)
} }
onItemTouchMove(e) { onItemTouchMove(e) {
let target: cc.Node = e.target; let target: cc.Node = e.target;
console.log(target);
let location = e.getLocation(); let location = e.getLocation();
let pos = location.sub(cc.v2(1280 / 2, 720 / 2)) let pos = location.sub(cc.v2(1280 / 2, 720 / 2))
e.target.setPosition(pos) e.target.setPosition(pos)
...@@ -173,7 +204,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -173,7 +204,6 @@ 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));
}) })
console.log(itemBg);
if (!itemBg || this.currentCards[itemBg.data.id]) { if (!itemBg || this.currentCards[itemBg.data.id]) {
//回退 //回退
target.setPosition(this.getPostionById(data.id)) target.setPosition(this.getPostionById(data.id))
...@@ -190,7 +220,13 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -190,7 +220,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
let pos = this.getBgPostionById(itemBg.data.id); let pos = this.getBgPostionById(itemBg.data.id);
target.setPosition(pos); target.setPosition(pos);
this.currentCards[itemBg.data.id] = target; this.currentCards[itemBg.data.id] = target;
this.updateCheckBtn();
let ani_flower = cc.instantiate(this.ani_flower);
ani_flower.active = true;
target.addChild(ani_flower);
setTimeout(() => {
ani_flower && (ani_flower.parent = null);
}, 3000);
} }
onItemTouchCancel() { onItemTouchCancel() {
} }
...@@ -203,11 +239,70 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -203,11 +239,70 @@ export default class SceneComponent extends MyCocosSceneComponent {
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);
} }
private onTouchCheckCantouch: boolean;
onTouchCheck() { onTouchCheck() {
if (this.onTouchCheckCantouch) return;
let isSuccess = Game.getIns().checkSuccess(this.currentCards.map(cd => cd.data)); let isSuccess = Game.getIns().checkSuccess(this.currentCards.map(cd => cd.data));
alert(isSuccess); if (!isSuccess) {
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();
})
this.currentCards.length = 0;
return;
}
this.onTouchCheckCantouch = true;
//成功更新小老鼠进度
//显示全部图片效果。
//显示棒棒糖
pg.event.emit("mouse_add");
this.updateCardResult().then(() => {
Game.getIns().addPage();
if (Game.getIns().isOver) {
pg.event.emit("gameOver")
} else {
pg.event.emit("nextPage")
}
this.onTouchCheckCantouch = false;
})
}
updateCardResult() {
return new Promise((res, rej) => {
let page = Game.getIns().getCurrentPage();
if (page.audio) {
pg.audio.playAudioByUrl(page.audio).then(() => {
res(true);
})
} else {
setTimeout(() => {
res(true);
}, 1000);
}
if (!!page.image) {
this.layout_card.active = false;
this.layout_card_result.active = true;
//执行效果
let img = pg.view.find(this.layout_card_result, "img");
pg.view.setNetImg(img, page.image, { w: 340, h: 150 })
}
})
}
update() {
this.updateCheckBtn();
this.updateProgress();
}
updateProgress() {
let page = pg.view.find(this, 'bg/bg_card/page/label');
pg.view.setString(page, Game.getIns().getCurrentPageNum() + '/' + Game.getIns().getTotalPageNum())
} }
gameOver() {
let mouse_end = pg.view.find(this, "mouse_end");
mouse_end.active = true;
mouse_end.getComponent("mouse_end").play().then(() => {
onHomeworkFinish();
})
}
playLocalAudio(audioName) { playLocalAudio(audioName) {
......
...@@ -5,10 +5,23 @@ export const defaultData = { ...@@ -5,10 +5,23 @@ export const defaultData = {
"item": { "item": {
"questionList": [ "questionList": [
{ {
"audio": "", "image": "", "optionList": [{ "type": "text", "text": "a", "image": "", "optionAudio": "http://staging-teach.cdn.ireadabc.com/116fb7accb5428361836fbc46287f769.mp3" }, { "type": "text", "text": "b", "image": "", "optionAudio": "http://staging-teach.cdn.ireadabc.com/526624b47ba5e46f698add9e152a4b4e.mp3" }, { "type": "text", "text": "", "image": "", "optionAudio": "http://staging-teach.cdn.ireadabc.com/fe2520ea0b12ad8c482595f6dddf8019.mp3" }] "audio": "", "image": "http://staging-teach.cdn.ireadabc.com/a5b6943a004bc48b07220f832853bd46.png",
"optionList": [
{
"type": "picText",
"text": "as",
"image": "http://staging-teach.cdn.ireadabc.com/418486dc95e98b7d3f88f652c4716bbc.png",
"optionAudio": "http://staging-teach.cdn.ireadabc.com/116fb7accb5428361836fbc46287f769.mp3"
}, {
"type": "picText",
"text": "bs",
"image": "http://staging-teach.cdn.ireadabc.com/476305ab6763e6821b34f66f1b6a59ed.png",
"optionAudio": "http://staging-teach.cdn.ireadabc.com/f7fb9f71ab7d460ac2f78c85efba7610.mp3"
},
]
}, },
{ {
"audio": "", "image": "http://staging-teach.cdn.ireadabc.com/a5b6943a004bc48b07220f832853bd46.png", "optionList": [{ "type": "picText", "text": "as", "image": "http://staging-teach.cdn.ireadabc.com/418486dc95e98b7d3f88f652c4716bbc.png", "optionAudio": "http://staging-teach.cdn.ireadabc.com/116fb7accb5428361836fbc46287f769.mp3" }, { "type": "picText", "text": "bs", "image": "http://staging-teach.cdn.ireadabc.com/476305ab6763e6821b34f66f1b6a59ed.png", "optionAudio": "http://staging-teach.cdn.ireadabc.com/f7fb9f71ab7d460ac2f78c85efba7610.mp3" }, { "type": "picText", "text": "cd", "image": "http://staging-teach.cdn.ireadabc.com/cda87159d3d022b6469b186e325c2bb6.png", "optionAudio": "" }, { "type": "picText", "text": "dd", "image": "http://staging-teach.cdn.ireadabc.com/bb4244d166b6d077617ff089f7fd46c4.png", "optionAudio": "" }, { "type": "picText", "text": "ed", "image": "http://staging-teach.cdn.ireadabc.com/be64edcdfed05f4a61690207570f39d7.png", "optionAudio": "http://staging-teach.cdn.ireadabc.com/9df3f14bc88bcffc49b6717c40428ed8.mp3" }] "audio": "", "image": "", "optionList": [{ "type": "text", "text": "a", "image": "", "optionAudio": "http://staging-teach.cdn.ireadabc.com/116fb7accb5428361836fbc46287f769.mp3" }, { "type": "text", "text": "b", "image": "", "optionAudio": "http://staging-teach.cdn.ireadabc.com/526624b47ba5e46f698add9e152a4b4e.mp3" }, { "type": "text", "text": "", "image": "", "optionAudio": "http://staging-teach.cdn.ireadabc.com/fe2520ea0b12ad8c482595f6dddf8019.mp3" }]
} }
] ]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment