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 {
return this.page;
}
addPage() {
return ++this.page
this.page += 1;
}
get isOver() {
let times = 0;
// this.lists.forEach((li) => {
// times += li.stem.times;
// })
return times == 0;
return this.page > this.lists.length;
}
}
......
......@@ -78,19 +78,25 @@
"__id__": 15
},
{
"__id__": 98
"__id__": 95
},
{
"__id__": 100
},
{
"__id__": 109
}
],
"_active": true,
"_components": [
{
"__id__": 107
"__id__": 121
},
{
"__id__": 108
"__id__": 122
},
{
"__id__": 109
"__id__": 123
}
],
"_prefab": null,
......@@ -780,10 +786,10 @@
"__id__": 18
},
{
"__id__": 94
"__id__": 91
},
{
"__id__": 96
"__id__": 93
}
],
"_active": true,
......@@ -948,37 +954,37 @@
"__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,
"_components": [
{
"__id__": 93
"__id__": 90
}
],
"_prefab": null,
......@@ -1318,7 +1324,7 @@
},
{
"__type__": "cc.Node",
"_name": "small_mouse",
"_name": "layout_mouse",
"_objFlags": 0,
"_parent": {
"__id__": 18
......@@ -1326,25 +1332,17 @@
"_children": [
{
"__id__": 26
},
{
"__id__": 28
},
}
],
"_active": true,
"_components": [
{
"__id__": 30
},
{
"__id__": 32
},
{
"__id__": 34
},
{
"__id__": 36
"__id__": 31
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -1356,20 +1354,20 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 300,
"height": 50
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"x": 1,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
507.992,
290,
0,
0,
0,
......@@ -1395,18 +1393,22 @@
},
{
"__type__": "cc.Node",
"_name": "small_mouse_left",
"_name": "small_mouse",
"_objFlags": 0,
"_parent": {
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
"_children": [
{
"__id__": 27
}
],
"_active": false,
"_components": [
{
"__id__": 29
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -1430,8 +1432,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
317.189,
303.426,
-29.5,
0,
0,
0,
0,
......@@ -1455,50 +1457,18 @@
"groupIndex": 0,
"_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",
"_name": "small_mouse_center",
"_name": "light",
"_objFlags": 0,
"_parent": {
"__id__": 25
"__id__": 26
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 28
}
],
"_prefab": null,
......@@ -1524,8 +1494,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
390.579,
303.426,
-0.695,
1.739,
0,
0,
0,
......@@ -1547,14 +1517,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "d97tKGB6pA2pK0vuAQCH2a"
"_id": "dcVorH47ZH/7vdQNiqKXpp"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
"__id__": 27
},
"_enabled": true,
"_materials": [
......@@ -1565,7 +1535,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "54beeaf0-8640-4d6d-bdb2-40be6c49f378"
"__uuid__": "047bdd7d-6c4f-47dc-944a-12cf7a461f93"
},
"_type": 0,
"_sizeMode": 1,
......@@ -1579,76 +1549,14 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "52djZD/jZPeLFZ6Ai1a4Xu"
},
{
"__type__": "cc.Node",
"_name": "small_mouse_right",
"_objFlags": 0,
"_parent": {
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 31
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 59,
"height": 42
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
461.718,
305.165,
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": "48rRZCNY5MfaDO0r3NzMve"
"_id": "43BfOuW1xHXbypXfMpJoF3"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
"__id__": 26
},
"_enabled": true,
"_materials": [
......@@ -1673,22 +1581,63 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "0ffWCuE15OYIYOOBqDoxEn"
"_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",
"_name": "small_mouse_highlight_left",
"_name": "layout_card",
"_objFlags": 0,
"_parent": {
"__id__": 25
"__id__": 18
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 33
}
],
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -1700,8 +1649,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 59,
"height": 42
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1712,8 +1661,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
316.494,
305.165,
0,
0,
0,
0,
0,
......@@ -1735,54 +1684,25 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "dcVorH47ZH/7vdQNiqKXpp"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_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"
"_id": "40B/aUDAROl4aObOnklN+K"
},
{
"__type__": "cc.Node",
"_name": "small_mouse_highlight_center",
"_name": "layout_card_result",
"_objFlags": 0,
"_parent": {
"__id__": 25
"__id__": 18
},
"_children": [],
"_active": false,
"_components": [
"_children": [
{
"__id__": 35
"__id__": 34
},
{
"__id__": 36
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -1794,8 +1714,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 59,
"height": 42
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1806,8 +1726,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
392.108,
305.165,
0,
0,
0,
0,
0,
......@@ -1829,52 +1749,20 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "63FunptrVPQYvHwxeE697K"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
},
"_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": "e9wONRpbhIzp53NoGM5HTw"
"_id": "beUKztkONCkoefObWx4qVi"
},
{
"__type__": "cc.Node",
"_name": "small_mouse_highlight_right",
"_name": "card_result",
"_objFlags": 0,
"_parent": {
"__id__": 25
"__id__": 33
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 37
"__id__": 35
}
],
"_prefab": null,
......@@ -1888,8 +1776,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 59,
"height": 42
"width": 406,
"height": 240
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1900,15 +1788,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
463.274,
307.389,
0.695,
-64.972,
0,
0,
0,
0,
1,
1,
1,
-1,
1
]
},
......@@ -1923,14 +1811,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "65ag6iFTtFDZA/Pb3HzJ3E"
"_id": "154GpSgnxD4bXmCIJvxbCt"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
"__id__": 34
},
"_enabled": true,
"_materials": [
......@@ -1941,7 +1829,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "047bdd7d-6c4f-47dc-944a-12cf7a461f93"
"__uuid__": "2be8b6f1-6ecf-42ec-862e-f59658c36533"
},
"_type": 0,
"_sizeMode": 1,
......@@ -1955,18 +1843,22 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e6wsfS6vdMdIxAyTdDTKHq"
"_id": "20jlBl6F5AwZ1LlKtQe2gf"
},
{
"__type__": "cc.Node",
"_name": "layout_card",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 18
"__id__": 33
},
"_children": [],
"_active": true,
"_components": [],
"_components": [
{
"__id__": 37
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -1978,8 +1870,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
"width": 340,
"height": 150
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1990,8 +1882,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
-0.252,
-64.087,
0,
0,
0,
......@@ -2013,7 +1905,39 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "40B/aUDAROl4aObOnklN+K"
"_id": "507jsZkINNx59gqZo1baqL"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "281Sf46WJNfKmppInQuh7d"
},
{
"__type__": "cc.Node",
......@@ -2024,25 +1948,25 @@
},
"_children": [
{
"__id__": 40
"__id__": 39
},
{
"__id__": 42
"__id__": 41
},
{
"__id__": 44
"__id__": 43
},
{
"__id__": 47
"__id__": 46
},
{
"__id__": 50
"__id__": 49
}
],
"_active": false,
"_components": [
{
"__id__": 55
"__id__": 54
}
],
"_prefab": null,
......@@ -2098,13 +2022,13 @@
"_name": "light_blue",
"_objFlags": 0,
"_parent": {
"__id__": 39
"__id__": 38
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 41
"__id__": 40
}
],
"_prefab": null,
......@@ -2160,7 +2084,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 40
"__id__": 39
},
"_enabled": true,
"_materials": [
......@@ -2192,13 +2116,13 @@
"_name": "light_orange",
"_objFlags": 0,
"_parent": {
"__id__": 39
"__id__": 38
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 43
"__id__": 42
}
],
"_prefab": null,
......@@ -2254,7 +2178,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
"__id__": 41
},
"_enabled": true,
"_materials": [
......@@ -2286,11 +2210,11 @@
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 39
"__id__": 38
},
"_children": [
{
"__id__": 45
"__id__": 44
}
],
"_active": true,
......@@ -2348,13 +2272,13 @@
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 44
"__id__": 43
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 46
"__id__": 45
}
],
"_prefab": null,
......@@ -2410,7 +2334,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
"__id__": 44
},
"_enabled": true,
"_materials": [
......@@ -2443,11 +2367,11 @@
"_name": "pic",
"_objFlags": 0,
"_parent": {
"__id__": 39
"__id__": 38
},
"_children": [
{
"__id__": 48
"__id__": 47
}
],
"_active": true,
......@@ -2505,13 +2429,13 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 47
"__id__": 46
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 49
"__id__": 48
}
],
"_prefab": null,
......@@ -2567,7 +2491,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 48
"__id__": 47
},
"_enabled": true,
"_materials": [
......@@ -2599,14 +2523,14 @@
"_name": "picText",
"_objFlags": 0,
"_parent": {
"__id__": 39
"__id__": 38
},
"_children": [
{
"__id__": 51
"__id__": 50
},
{
"__id__": 53
"__id__": 52
}
],
"_active": true,
......@@ -2664,13 +2588,13 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 50
"__id__": 49
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 52
"__id__": 51
}
],
"_prefab": null,
......@@ -2726,7 +2650,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 50
},
"_enabled": true,
"_materials": [
......@@ -2758,13 +2682,13 @@
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 50
"__id__": 49
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 54
"__id__": 53
}
],
"_prefab": null,
......@@ -2820,7 +2744,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
"__id__": 52
},
"_enabled": true,
"_materials": [
......@@ -2853,7 +2777,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
"__id__": 38
},
"_enabled": true,
"_materials": [
......@@ -2889,16 +2813,16 @@
},
"_children": [
{
"__id__": 57
"__id__": 56
},
{
"__id__": 59
"__id__": 58
}
],
"_active": false,
"_components": [
{
"__id__": 61
"__id__": 60
}
],
"_prefab": null,
......@@ -2954,13 +2878,13 @@
"_name": "highlight_orange",
"_objFlags": 0,
"_parent": {
"__id__": 56
"__id__": 55
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 58
"__id__": 57
}
],
"_prefab": null,
......@@ -3016,7 +2940,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
"__id__": 56
},
"_enabled": true,
"_materials": [
......@@ -3048,13 +2972,13 @@
"_name": "highlight_blue",
"_objFlags": 0,
"_parent": {
"__id__": 56
"__id__": 55
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 60
"__id__": 59
}
],
"_prefab": null,
......@@ -3110,7 +3034,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
"__id__": 58
},
"_enabled": true,
"_materials": [
......@@ -3142,7 +3066,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
"__id__": 55
},
"_enabled": true,
"_materials": [
......@@ -3178,16 +3102,16 @@
},
"_children": [
{
"__id__": 63
"__id__": 62
},
{
"__id__": 65
"__id__": 64
},
{
"__id__": 67
"__id__": 66
},
{
"__id__": 69
"__id__": 68
}
],
"_active": false,
......@@ -3245,13 +3169,13 @@
"_name": "microphone1",
"_objFlags": 0,
"_parent": {
"__id__": 62
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 64
"__id__": 63
}
],
"_prefab": null,
......@@ -3307,7 +3231,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 63
"__id__": 62
},
"_enabled": true,
"_materials": [
......@@ -3339,13 +3263,13 @@
"_name": "voice_in",
"_objFlags": 0,
"_parent": {
"__id__": 62
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 66
"__id__": 65
}
],
"_prefab": null,
......@@ -3401,7 +3325,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
"__id__": 64
},
"_enabled": true,
"_materials": [
......@@ -3433,13 +3357,13 @@
"_name": "voice_middle",
"_objFlags": 0,
"_parent": {
"__id__": 62
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 68
"__id__": 67
}
],
"_prefab": null,
......@@ -3495,7 +3419,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 67
"__id__": 66
},
"_enabled": true,
"_materials": [
......@@ -3527,13 +3451,13 @@
"_name": "voice_out",
"_objFlags": 0,
"_parent": {
"__id__": 62
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 70
"__id__": 69
}
],
"_prefab": null,
......@@ -3589,7 +3513,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 69
"__id__": 68
},
"_enabled": true,
"_materials": [
......@@ -3625,16 +3549,16 @@
},
"_children": [
{
"__id__": 72
"__id__": 71
},
{
"__id__": 74
"__id__": 73
},
{
"__id__": 76
"__id__": 75
},
{
"__id__": 78
"__id__": 77
}
],
"_active": false,
......@@ -3692,13 +3616,13 @@
"_name": "microphone2",
"_objFlags": 0,
"_parent": {
"__id__": 71
"__id__": 70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 73
"__id__": 72
}
],
"_prefab": null,
......@@ -3754,7 +3678,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
"__id__": 71
},
"_enabled": true,
"_materials": [
......@@ -3786,13 +3710,13 @@
"_name": "progressbar_grey",
"_objFlags": 0,
"_parent": {
"__id__": 71
"__id__": 70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 75
"__id__": 74
}
],
"_prefab": null,
......@@ -3848,7 +3772,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 74
"__id__": 73
},
"_enabled": true,
"_materials": [
......@@ -3880,13 +3804,13 @@
"_name": "progressbar_red",
"_objFlags": 0,
"_parent": {
"__id__": 71
"__id__": 70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 77
"__id__": 76
}
],
"_prefab": null,
......@@ -3942,7 +3866,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 76
"__id__": 75
},
"_enabled": true,
"_materials": [
......@@ -3974,13 +3898,13 @@
"_name": "progressbar_highlight",
"_objFlags": 0,
"_parent": {
"__id__": 71
"__id__": 70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 79
"__id__": 78
}
],
"_prefab": null,
......@@ -4036,7 +3960,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 78
"__id__": 77
},
"_enabled": true,
"_materials": [
......@@ -4072,13 +3996,13 @@
},
"_children": [
{
"__id__": 81
"__id__": 80
},
{
"__id__": 83
"__id__": 82
},
{
"__id__": 85
"__id__": 84
}
],
"_active": false,
......@@ -4136,13 +4060,13 @@
"_name": "text_up",
"_objFlags": 0,
"_parent": {
"__id__": 80
"__id__": 79
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 82
"__id__": 81
}
],
"_prefab": null,
......@@ -4198,7 +4122,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 81
"__id__": 80
},
"_enabled": true,
"_materials": [
......@@ -4230,13 +4154,13 @@
"_name": "text_middle",
"_objFlags": 0,
"_parent": {
"__id__": 80
"__id__": 79
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 84
"__id__": 83
}
],
"_prefab": null,
......@@ -4292,7 +4216,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
"__id__": 82
},
"_enabled": true,
"_materials": [
......@@ -4324,13 +4248,13 @@
"_name": "text_down",
"_objFlags": 0,
"_parent": {
"__id__": 80
"__id__": 79
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 86
"__id__": 85
}
],
"_prefab": null,
......@@ -4386,7 +4310,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 85
"__id__": 84
},
"_enabled": true,
"_materials": [
......@@ -4415,16 +4339,16 @@
},
{
"__type__": "cc.Node",
"_name": "card_result",
"_name": "btn_check_grey",
"_objFlags": 0,
"_parent": {
"__id__": 18
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 88
"__id__": 87
}
],
"_prefab": null,
......@@ -4438,8 +4362,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 406,
"height": 240
"width": 184,
"height": 76
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -4450,8 +4374,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0.695,
-79.577,
-1.877,
-238.281,
0,
0,
0,
......@@ -4473,14 +4397,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "154GpSgnxD4bXmCIJvxbCt"
"_id": "3agSeCaxBGa6VSjIboN/MN"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 87
"__id__": 86
},
"_enabled": true,
"_materials": [
......@@ -4491,7 +4415,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "2be8b6f1-6ecf-42ec-862e-f59658c36533"
"__uuid__": "675b6abc-93d9-4775-b522-f33bcfb9432b"
},
"_type": 0,
"_sizeMode": 1,
......@@ -4505,20 +4429,20 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "20jlBl6F5AwZ1LlKtQe2gf"
"_id": "88wIkQOO9LvLCS8q6WgZsA"
},
{
"__type__": "cc.Node",
"_name": "btn_check_grey",
"_name": "btn_check",
"_objFlags": 0,
"_parent": {
"__id__": 18
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 90
"__id__": 89
}
],
"_prefab": null,
......@@ -4567,14 +4491,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "3agSeCaxBGa6VSjIboN/MN"
"_id": "65wAAKUmRD4boh5iJpBKgv"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 89
"__id__": 88
},
"_enabled": true,
"_materials": [
......@@ -4585,7 +4509,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "675b6abc-93d9-4775-b522-f33bcfb9432b"
"__uuid__": "0c9c162f-cca3-4dd9-8d8a-72097d5d3526"
},
"_type": 0,
"_sizeMode": 1,
......@@ -4599,17 +4523,49 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "88wIkQOO9LvLCS8q6WgZsA"
"_id": "8cgmUtWktFToaCUGWxM4/g"
},
{
"__type__": "cc.Node",
"_name": "btn_check",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"_parent": {
"node": {
"__id__": 18
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d9ada80a-9887-4a02-9b74-addf0a0968a0"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "6coYpCxHNEjY31GJbAN6NZ"
},
{
"__type__": "cc.Node",
"_name": "bg_flower_left",
"_objFlags": 0,
"_parent": {
"__id__": 15
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 92
......@@ -4626,8 +4582,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 184,
"height": 76
"width": 377,
"height": 238
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -4638,8 +4594,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-1.877,
-238.281,
-447.593,
-239.307,
0,
0,
0,
......@@ -4661,7 +4617,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "65wAAKUmRD4boh5iJpBKgv"
"_id": "1c0XDQD7dAnqdjXtE3jkHW"
},
{
"__type__": "cc.Sprite",
......@@ -4679,39 +4635,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "0c9c162f-cca3-4dd9-8d8a-72097d5d3526"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "8cgmUtWktFToaCUGWxM4/g"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d9ada80a-9887-4a02-9b74-addf0a0968a0"
"__uuid__": "8fae886a-4a22-407c-92e7-3b595b16776d"
},
"_type": 0,
"_sizeMode": 1,
......@@ -4725,11 +4649,11 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "6coYpCxHNEjY31GJbAN6NZ"
"_id": "dfa7HV0HFGW44fqmG9IPPi"
},
{
"__type__": "cc.Node",
"_name": "bg_flower_left",
"_name": "bg_flower_right",
"_objFlags": 0,
"_parent": {
"__id__": 15
......@@ -4738,7 +4662,7 @@
"_active": true,
"_components": [
{
"__id__": 95
"__id__": 94
}
],
"_prefab": null,
......@@ -4752,8 +4676,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 377,
"height": 238
"width": 531,
"height": 246
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -4764,8 +4688,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-447.593,
-239.307,
373.02,
-234.937,
0,
0,
0,
......@@ -4787,14 +4711,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "1c0XDQD7dAnqdjXtE3jkHW"
"_id": "08WeoKPxBBIJPZrgbC072w"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 94
"__id__": 93
},
"_enabled": true,
"_materials": [
......@@ -4805,7 +4729,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8fae886a-4a22-407c-92e7-3b595b16776d"
"__uuid__": "f860edbb-8083-456a-b74d-8cd5197d539e"
},
"_type": 0,
"_sizeMode": 1,
......@@ -4819,14 +4743,78 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "dfa7HV0HFGW44fqmG9IPPi"
"_id": "ba+1O9NGtAl4sw5FX4lRO6"
},
{
"__type__": "cc.Node",
"_name": "bg_flower_right",
"_name": "particle_star",
"_objFlags": 0,
"_parent": {
"__id__": 15
"__id__": 2
},
"_children": [
{
"__id__": 96
}
],
"_active": false,
"_components": [],
"_prefab": {
"__id__": 99
},
"_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": "1czHyS5nhK1roHNqIJEA3b"
},
{
"__type__": "cc.Node",
"_name": "particle_star",
"_objFlags": 0,
"_parent": {
"__id__": 95
},
"_children": [],
"_active": true,
......@@ -4835,7 +4823,9 @@
"__id__": 97
}
],
"_prefab": null,
"_prefab": {
"__id__": 98
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
......@@ -4846,8 +4836,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 531,
"height": 246
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -4858,8 +4848,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
373.02,
-234.937,
0,
0,
0,
0,
0,
......@@ -4881,10 +4871,10 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "08WeoKPxBBIJPZrgbC072w"
"_id": "fdajUFyC9Hj6rFDy6msb6Q"
},
{
"__type__": "cc.Sprite",
"__type__": "cc.ParticleSystem",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -4896,24 +4886,117 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_srcBlendFactor": 768,
"_dstBlendFactor": 1,
"_custom": true,
"_file": {
"__uuid__": "a1f705a9-e753-4699-8894-4363b038f2da"
},
"_spriteFrame": {
"__uuid__": "f860edbb-8083-456a-b74d-8cd5197d539e"
"__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
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"_startColorVar": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 0
},
"_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
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "ba+1O9NGtAl4sw5FX4lRO6"
"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",
"root": {
"__id__": 95
},
"asset": {
"__uuid__": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2"
},
"fileId": "fcv3QB7CFM+q6n1fsvkn0z",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 95
},
"asset": {
"__uuid__": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2"
},
"fileId": "",
"sync": false
},
{
"__type__": "cc.Node",
......@@ -4924,20 +5007,20 @@
},
"_children": [
{
"__id__": 99
"__id__": 101
},
{
"__id__": 102
"__id__": 104
}
],
"_active": true,
"_components": [
{
"__id__": 105
"__id__": 107
}
],
"_prefab": {
"__id__": 106
"__id__": 108
},
"_opacity": 255,
"_color": {
......@@ -4991,17 +5074,17 @@
"_name": "ske",
"_objFlags": 0,
"_parent": {
"__id__": 98
"__id__": 100
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 100
"__id__": 102
}
],
"_prefab": {
"__id__": 101
"__id__": 103
},
"_opacity": 255,
"_color": {
......@@ -5055,7 +5138,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 99
"__id__": 101
},
"_enabled": true,
"_materials": [
......@@ -5093,7 +5176,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 98
"__id__": 100
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
......@@ -5106,17 +5189,17 @@
"_name": "block",
"_objFlags": 0,
"_parent": {
"__id__": 98
"__id__": 100
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 103
"__id__": 105
}
],
"_prefab": {
"__id__": 104
"__id__": 106
},
"_opacity": 255,
"_color": {
......@@ -5170,7 +5253,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 102
"__id__": 104
},
"_enabled": true,
"_id": "0efpWUJrZGxq5KGX62q1NU"
......@@ -5178,7 +5261,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 98
"__id__": 100
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
......@@ -5191,7 +5274,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 98
"__id__": 100
},
"_enabled": true,
"startPosition": {
......@@ -5210,7 +5293,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 98
"__id__": 100
},
"asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
......@@ -5219,15 +5302,436 @@
"sync": false
},
{
"__type__": "cc.Canvas",
"_name": "",
"__type__": "cc.Node",
"_name": "mouse_end",
"_objFlags": 0,
"node": {
"_parent": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"_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": {
"__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,
"_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": "66mBnuSuRBsLqj9PfCnqDL"
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 116
},
"_enabled": true,
"_id": "614Ol/VeZKyIbzJ5WMNHfT"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 109
},
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
},
"fileId": "c6mVnUkE5JaYueomXGzBNp",
"sync": false
},
{
"__type__": "0e6618sCSxBeYB00pouLhfn",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 109
},
"_enabled": true,
"startPosition": {
"__type__": "cc.Vec2",
"x": 0,
"y": -2095.446
},
"voice": {
"__uuid__": "3fa7aab4-b81d-40e6-9691-73935a1d92da"
},
"voice2": {
"__uuid__": "b3d3e0e6-a546-402f-9f78-36dca911638b"
},
"_id": "8cjC9fH29DXrtrLsF41i7+"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 109
},
"asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
},
"fileId": "",
"sync": false
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
......@@ -5270,14 +5774,20 @@
"__id__": 2
},
"_enabled": true,
"ani_flower": {
"__id__": 95
},
"layout_card": {
"__id__": 38
"__id__": 32
},
"layout_card_result": {
"__id__": 33
},
"node_card": {
"__id__": 39
"__id__": 38
},
"bg_card": {
"__id__": 56
"__id__": 55
},
"_id": "eaTVUpqahPfZeO9+sUI7RP"
}
......
......@@ -30,9 +30,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.initEvent();
pg.event.emit("startGame");
}
@property(cc.Node)
ani_flower: cc.Node = null;
@property(cc.Node)
layout_card: cc.Node = null;
@property(cc.Node)
layout_card_result: cc.Node = null;
@property(cc.Node)
node_card: cc.Node = null;
......@@ -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.event.on("startGame", () => { this.startGame() })
pg.event.on("nextPage", () => { this.nextPage() })
pg.event.on("gameOver", () => { this.gameOver() })
}
//开始游戏
startGame() {
Game.getIns().reset();
this.nextPage();
}
nextPage() {
this.cards = [];
this.cardBgs = [];
this.currentCards = [];
Game.getIns().reset();
//自动创建卡片
let data: Item = Game.getIns().getCurrentPage();
console.log("data->" + data);
//自动创建卡片
this.layout_card.active = true;
this.layout_card_result.active = false;
this.createCrads(data);
}
getCurrentOpSet() {
let op = {
"2": {
x: -135,
y: 160,
y2: -80,
space: 260,
scale: 1,
},
"3": {
x: -260,
y: 160,
y2: -80,
space: 260,
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 opSet = op[`${Game.getIns().getCurrentPage().optionList.length}`];
let len = Game.getIns().getCurrentPage().optionList.length;
let opSet = op[`${len}`];
return opSet;
}
getPostionById(count) {
......@@ -93,6 +125,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private cards: cc.Node[];
private cardBgs: cc.Node[];
createCrads(list) {
this.layout_card.removeAllChildren();
let count = 0;
list.optionList.forEach(li => {
let opSet = this.getCurrentOpSet();
......@@ -135,8 +168,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
break;
case "picText":
pg.view.visible(pg.view.find(item, 'picText'), true);
pg.view.setString(pg.view.find(item, 'pic/label'), data.txt);
pg.view.setNetImg(pg.view.find(item, 'pic/img'), data.picUrl, { w: 140, h: 160 });
pg.view.setString(pg.view.find(item, 'picText/label'), data.txt);
pg.view.setNetImg(pg.view.find(item, 'picText/img'), data.picUrl, { w: 140, h: 160 });
break;
}
item.on(cc.Node.EventType.TOUCH_START, this.onItemTouchStart, this);
......@@ -153,14 +186,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
onItemTouchStart(e) {
let target: cc.Node = e.target;
let data = target.data;
console.log(target);
let location = e.getLocation();
let pos = location.sub(cc.v2(1280 / 2, 720 / 2))
e.target.setPosition(pos)
}
onItemTouchMove(e) {
let target: cc.Node = e.target;
console.log(target);
let location = e.getLocation();
let pos = location.sub(cc.v2(1280 / 2, 720 / 2))
e.target.setPosition(pos)
......@@ -173,7 +204,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
let itemBg = this.cardBgs.find(bg => {
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]) {
//回退
target.setPosition(this.getPostionById(data.id))
......@@ -190,7 +220,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
let pos = this.getBgPostionById(itemBg.data.id);
target.setPosition(pos);
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() {
}
......@@ -203,11 +239,70 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (this.currentCards.length != this.cards.length) return false;
return this.currentCards.every(card => !!card);
}
private onTouchCheckCantouch: boolean;
onTouchCheck() {
if (this.onTouchCheckCantouch) return;
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) {
......
......@@ -5,10 +5,23 @@ export const defaultData = {
"item": {
"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