Commit c55a89be authored by Tt's avatar Tt

项目一级完成

parent a423628a
...@@ -77,59 +77,44 @@ ...@@ -77,59 +77,44 @@
{ {
"__id__": 15 "__id__": 15
}, },
{
"__id__": 17
},
{
"__id__": 19
},
{
"__id__": 21
},
{ {
"__id__": 23 "__id__": 23
}, },
{ {
"__id__": 25 "__id__": 27
},
{
"__id__": 33
},
{
"__id__": 37
}, },
{ {
"__id__": 39 "__id__": 32
}, },
{ {
"__id__": 48 "__id__": 42
}, },
{ {
"__id__": 94 "__id__": 88
}, },
{ {
"__id__": 97 "__id__": 93
}, },
{ {
"__id__": 100 "__id__": 96
}, },
{ {
"__id__": 103 "__id__": 99
}, },
{ {
"__id__": 105 "__id__": 101
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 108 "__id__": 104
}, },
{ {
"__id__": 109 "__id__": 105
}, },
{ {
"__id__": 110 "__id__": 106
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -700,490 +685,33 @@ ...@@ -700,490 +685,33 @@
1, 1,
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": "d9f+b0lmZGSJJae6zrADhp"
},
{
"__type__": "cc.Node",
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 12
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e87DSaFCVJfb2PAUkf4/o7"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
},
"_enabled": true,
"_clip": {
"__uuid__": "f0680ae0-c079-45ef-abd7-9e63d90b982b"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "dey05oKrBIspvsDa6pOIQz"
},
{
"__type__": "cc.Node",
"_name": "1",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 16
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1200
},
"_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": "6a2WBAlHhJxYiYQUdArIQ2"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "00f9f2bd-03e9-4cd6-b55f-5ccebf66afc8"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "8aU8wyPQ1AaZMHYeahzoTR"
},
{
"__type__": "cc.Node",
"_name": "2",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 18
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1200
},
"_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": "fce8kDxYxA7obZsF2XMO5Y"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "80481106-883a-4869-a9eb-f9afddfa666f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "1783FzttlOXb/s7LPvbGJz"
},
{
"__type__": "cc.Node",
"_name": "3",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 20
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1200
},
"_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": "9a71+KTmxN+bTaFmKiX3uh"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "631f2bec-dda2-4ee3-91a8-dda5ea2329bb"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "49T7XfrZ9KtLlrlSJlFqSa"
},
{
"__type__": "cc.Node",
"_name": "4",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 22
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1200
},
"_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": "73cBdKjXpI04Etf4ErZ2hj"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ccd72b71-097c-473d-9fee-631582e7a6e0"
}, },
"_type": 0, "_eulerAngles": {
"_sizeMode": 1, "__type__": "cc.Vec3",
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0, "x": 0,
"y": 0 "y": 0,
"z": 0
}, },
"_fillStart": 0, "_skewX": 0,
"_fillRange": 0, "_skewY": 0,
"_isTrimmedMode": true, "_is3DNode": false,
"_atlas": null, "_groupIndex": 0,
"_id": "7cVezeS5ZH6rSW7daRULdn" "groupIndex": 0,
"_id": "d9f+b0lmZGSJJae6zrADhp"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "5", "_name": "btn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 12
}, },
"_children": [], "_children": [],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 24 "__id__": 14
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1197,8 +725,8 @@ ...@@ -1197,8 +725,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1920, "width": 0,
"height": 1200 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1232,39 +760,26 @@ ...@@ -1232,39 +760,26 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "e2eDbRCkhMNrv8LPRjsOJz" "_id": "e87DSaFCVJfb2PAUkf4/o7"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.AudioSource",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 23 "__id__": 13
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_clip": {
{ "__uuid__": "f0680ae0-c079-45ef-abd7-9e63d90b982b"
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "631e4cbe-3d5f-452d-9ca2-56225357f4f2"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
}, },
"_fillStart": 0, "_volume": 1,
"_fillRange": 0, "_mute": false,
"_isTrimmedMode": true, "_loop": false,
"_atlas": null, "_firstlyEnabled": true,
"_id": "d9CAvlsTBKIZhJTU53X/IR" "playOnLoad": false,
"preload": false,
"_id": "dey05oKrBIspvsDa6pOIQz"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -1275,16 +790,16 @@ ...@@ -1275,16 +790,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 26 "__id__": 16
}, },
{ {
"__id__": 29 "__id__": 19
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 32 "__id__": 22
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1340,16 +855,16 @@ ...@@ -1340,16 +855,16 @@
"_name": "bg_bottom", "_name": "bg_bottom",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 25 "__id__": 15
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 27 "__id__": 17
}, },
{ {
"__id__": 28 "__id__": 18
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1405,7 +920,7 @@ ...@@ -1405,7 +920,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 26 "__id__": 16
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1437,7 +952,7 @@ ...@@ -1437,7 +952,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 26 "__id__": 16
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -1464,16 +979,16 @@ ...@@ -1464,16 +979,16 @@
"_name": "bg_middle", "_name": "bg_middle",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 25 "__id__": 15
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 30 "__id__": 20
}, },
{ {
"__id__": 31 "__id__": 21
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1529,7 +1044,7 @@ ...@@ -1529,7 +1044,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 29 "__id__": 19
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1561,7 +1076,7 @@ ...@@ -1561,7 +1076,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 29 "__id__": 19
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -1588,7 +1103,7 @@ ...@@ -1588,7 +1103,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 25 "__id__": 15
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -1619,13 +1134,13 @@ ...@@ -1619,13 +1134,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 34 "__id__": 24
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 36 "__id__": 26
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1681,13 +1196,13 @@ ...@@ -1681,13 +1196,13 @@
"_name": "label_percent", "_name": "label_percent",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 33 "__id__": 23
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 35 "__id__": 25
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1743,7 +1258,7 @@ ...@@ -1743,7 +1258,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 34 "__id__": 24
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1778,7 +1293,7 @@ ...@@ -1778,7 +1293,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 33 "__id__": 23
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1812,11 +1327,15 @@ ...@@ -1812,11 +1327,15 @@
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [
{
"__id__": 28
}
],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 38 "__id__": 31
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1867,12 +1386,121 @@ ...@@ -1867,12 +1386,121 @@
"groupIndex": 0, "groupIndex": 0,
"_id": "24VZKfTdNK8bBVbAN3xT9V" "_id": "24VZKfTdNK8bBVbAN3xT9V"
}, },
{
"__type__": "cc.Node",
"_name": "icon_hand",
"_objFlags": 0,
"_parent": {
"__id__": 27
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
},
{
"__id__": 30
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 97,
"height": 128
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
32.447,
-71.477,
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": "94owEnc5VAZoXlvSfjEkY/"
},
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 37 "__id__": 28
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ba4b82bc-bdd5-4407-8e03-dac80f85bf3f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "53ue283J9NNZVmLacGG3pd"
},
{
"__type__": "46494nMOZpPvIM7HSaayhBp",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
},
"_enabled": true,
"label": null,
"text": "hello",
"_id": "22ajLRYeBE6ZRmOrQL8cVD"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1908,20 +1536,24 @@ ...@@ -1908,20 +1536,24 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 40 "__id__": 33
}, },
{ {
"__id__": 42 "__id__": 35
}, },
{ {
"__id__": 44 "__id__": 37
}, },
{ {
"__id__": 46 "__id__": 39
} }
], ],
"_active": false, "_active": false,
"_components": [], "_components": [
{
"__id__": 41
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1975,13 +1607,13 @@ ...@@ -1975,13 +1607,13 @@
"_name": "btn_audio2", "_name": "btn_audio2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 39 "__id__": 32
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 41 "__id__": 34
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2037,7 +1669,7 @@ ...@@ -2037,7 +1669,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 40 "__id__": 33
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2069,13 +1701,13 @@ ...@@ -2069,13 +1701,13 @@
"_name": "btn_audio3", "_name": "btn_audio3",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 39 "__id__": 32
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 43 "__id__": 36
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2131,7 +1763,7 @@ ...@@ -2131,7 +1763,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 42 "__id__": 35
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2163,13 +1795,13 @@ ...@@ -2163,13 +1795,13 @@
"_name": "btn_audio1", "_name": "btn_audio1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 39 "__id__": 32
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 45 "__id__": 38
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2225,7 +1857,7 @@ ...@@ -2225,7 +1857,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 44 "__id__": 37
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2257,13 +1889,13 @@ ...@@ -2257,13 +1889,13 @@
"_name": "btn_audio0", "_name": "btn_audio0",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 39 "__id__": 32
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 47 "__id__": 40
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2319,7 +1951,7 @@ ...@@ -2319,7 +1951,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 46 "__id__": 39
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2346,6 +1978,18 @@ ...@@ -2346,6 +1978,18 @@
"_atlas": null, "_atlas": null,
"_id": "c9m1S/ikJNF6ydctG4Wxob" "_id": "c9m1S/ikJNF6ydctG4Wxob"
}, },
{
"__type__": "aec14kkzQxJUqyODRAMxrwH",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"label": null,
"text": "hello",
"_id": "d24fjKTbBJ7LAlO189186X"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "layout_items", "_name": "layout_items",
...@@ -2355,22 +1999,22 @@ ...@@ -2355,22 +1999,22 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 49 "__id__": 43
}, },
{ {
"__id__": 60 "__id__": 54
}, },
{ {
"__id__": 71 "__id__": 65
}, },
{ {
"__id__": 82 "__id__": 76
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 93 "__id__": 87
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2426,23 +2070,23 @@ ...@@ -2426,23 +2070,23 @@
"_name": "item", "_name": "item",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 48 "__id__": 42
}, },
"_children": [ "_children": [
{ {
"__id__": 50 "__id__": 44
}, },
{ {
"__id__": 52 "__id__": 46
}, },
{ {
"__id__": 54 "__id__": 48
}, },
{ {
"__id__": 56 "__id__": 50
}, },
{ {
"__id__": 58 "__id__": 52
} }
], ],
"_active": true, "_active": true,
...@@ -2500,13 +2144,13 @@ ...@@ -2500,13 +2144,13 @@
"_name": "bg_board", "_name": "bg_board",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 49 "__id__": 43
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 51 "__id__": 45
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2562,7 +2206,7 @@ ...@@ -2562,7 +2206,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 50 "__id__": 44
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2591,16 +2235,16 @@ ...@@ -2591,16 +2235,16 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "bg_board-down", "_name": "bg_board_down",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 49 "__id__": 43
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 53 "__id__": 47
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2656,7 +2300,7 @@ ...@@ -2656,7 +2300,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 52 "__id__": 46
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2688,13 +2332,13 @@ ...@@ -2688,13 +2332,13 @@
"_name": "icon_arrow", "_name": "icon_arrow",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 49 "__id__": 43
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 55 "__id__": 49
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2750,7 +2394,7 @@ ...@@ -2750,7 +2394,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 54 "__id__": 48
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2782,13 +2426,13 @@ ...@@ -2782,13 +2426,13 @@
"_name": "img_pic", "_name": "img_pic",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 49 "__id__": 43
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 57 "__id__": 51
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2796,8 +2440,8 @@ ...@@ -2796,8 +2440,8 @@
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
"g": 0, "g": 255,
"b": 0, "b": 255,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -2844,7 +2488,7 @@ ...@@ -2844,7 +2488,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 56 "__id__": 50
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2876,22 +2520,22 @@ ...@@ -2876,22 +2520,22 @@
"_name": "label_percent", "_name": "label_percent",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 49 "__id__": 43
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 59 "__id__": 53
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 247, "r": 249,
"g": 252, "g": 236,
"b": 254, "b": 131,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -2938,7 +2582,7 @@ ...@@ -2938,7 +2582,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 58 "__id__": 52
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2973,23 +2617,23 @@ ...@@ -2973,23 +2617,23 @@
"_name": "item", "_name": "item",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 48 "__id__": 42
}, },
"_children": [ "_children": [
{ {
"__id__": 61 "__id__": 55
}, },
{ {
"__id__": 63 "__id__": 57
}, },
{ {
"__id__": 65 "__id__": 59
}, },
{ {
"__id__": 67 "__id__": 61
}, },
{ {
"__id__": 69 "__id__": 63
} }
], ],
"_active": true, "_active": true,
...@@ -3047,13 +2691,13 @@ ...@@ -3047,13 +2691,13 @@
"_name": "bg_board", "_name": "bg_board",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 60 "__id__": 54
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 62 "__id__": 56
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3109,7 +2753,7 @@ ...@@ -3109,7 +2753,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 61 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3141,13 +2785,13 @@ ...@@ -3141,13 +2785,13 @@
"_name": "bg_board-down", "_name": "bg_board-down",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 60 "__id__": 54
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 64 "__id__": 58
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3203,7 +2847,7 @@ ...@@ -3203,7 +2847,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 63 "__id__": 57
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3235,13 +2879,13 @@ ...@@ -3235,13 +2879,13 @@
"_name": "icon_arrow", "_name": "icon_arrow",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 60 "__id__": 54
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 66 "__id__": 60
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3297,7 +2941,7 @@ ...@@ -3297,7 +2941,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 65 "__id__": 59
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3329,13 +2973,13 @@ ...@@ -3329,13 +2973,13 @@
"_name": "img_pic", "_name": "img_pic",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 60 "__id__": 54
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 68 "__id__": 62
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3343,8 +2987,8 @@ ...@@ -3343,8 +2987,8 @@
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
"g": 0, "g": 255,
"b": 0, "b": 255,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -3391,7 +3035,7 @@ ...@@ -3391,7 +3035,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 67 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3423,22 +3067,22 @@ ...@@ -3423,22 +3067,22 @@
"_name": "label_percent", "_name": "label_percent",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 60 "__id__": 54
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 70 "__id__": 64
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 247, "r": 249,
"g": 252, "g": 236,
"b": 254, "b": 131,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -3485,7 +3129,7 @@ ...@@ -3485,7 +3129,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 69 "__id__": 63
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3520,23 +3164,23 @@ ...@@ -3520,23 +3164,23 @@
"_name": "item", "_name": "item",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 48 "__id__": 42
}, },
"_children": [ "_children": [
{ {
"__id__": 72 "__id__": 66
}, },
{ {
"__id__": 74 "__id__": 68
}, },
{ {
"__id__": 76 "__id__": 70
}, },
{ {
"__id__": 78 "__id__": 72
}, },
{ {
"__id__": 80 "__id__": 74
} }
], ],
"_active": true, "_active": true,
...@@ -3594,13 +3238,13 @@ ...@@ -3594,13 +3238,13 @@
"_name": "bg_board", "_name": "bg_board",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 71 "__id__": 65
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 73 "__id__": 67
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3656,7 +3300,7 @@ ...@@ -3656,7 +3300,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 72 "__id__": 66
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3688,13 +3332,13 @@ ...@@ -3688,13 +3332,13 @@
"_name": "bg_board-down", "_name": "bg_board-down",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 71 "__id__": 65
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 75 "__id__": 69
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3750,7 +3394,7 @@ ...@@ -3750,7 +3394,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 74 "__id__": 68
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3782,13 +3426,13 @@ ...@@ -3782,13 +3426,13 @@
"_name": "icon_arrow", "_name": "icon_arrow",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 71 "__id__": 65
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 77 "__id__": 71
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3844,7 +3488,7 @@ ...@@ -3844,7 +3488,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 76 "__id__": 70
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3876,13 +3520,13 @@ ...@@ -3876,13 +3520,13 @@
"_name": "img_pic", "_name": "img_pic",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 71 "__id__": 65
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 79 "__id__": 73
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3890,8 +3534,8 @@ ...@@ -3890,8 +3534,8 @@
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
"g": 0, "g": 255,
"b": 0, "b": 255,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -3938,7 +3582,7 @@ ...@@ -3938,7 +3582,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 78 "__id__": 72
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3970,22 +3614,22 @@ ...@@ -3970,22 +3614,22 @@
"_name": "label_percent", "_name": "label_percent",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 71 "__id__": 65
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 81 "__id__": 75
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 247, "r": 249,
"g": 252, "g": 236,
"b": 254, "b": 131,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -4032,7 +3676,7 @@ ...@@ -4032,7 +3676,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 80 "__id__": 74
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4067,23 +3711,23 @@ ...@@ -4067,23 +3711,23 @@
"_name": "item", "_name": "item",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 48 "__id__": 42
}, },
"_children": [ "_children": [
{ {
"__id__": 83 "__id__": 77
}, },
{ {
"__id__": 85 "__id__": 79
}, },
{ {
"__id__": 87 "__id__": 81
}, },
{ {
"__id__": 89 "__id__": 83
}, },
{ {
"__id__": 91 "__id__": 85
} }
], ],
"_active": true, "_active": true,
...@@ -4141,13 +3785,13 @@ ...@@ -4141,13 +3785,13 @@
"_name": "bg_board", "_name": "bg_board",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 82 "__id__": 76
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 84 "__id__": 78
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4203,7 +3847,7 @@ ...@@ -4203,7 +3847,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 83 "__id__": 77
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4235,13 +3879,13 @@ ...@@ -4235,13 +3879,13 @@
"_name": "bg_board-down", "_name": "bg_board-down",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 82 "__id__": 76
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 86 "__id__": 80
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4297,7 +3941,7 @@ ...@@ -4297,7 +3941,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 85 "__id__": 79
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4329,13 +3973,13 @@ ...@@ -4329,13 +3973,13 @@
"_name": "icon_arrow", "_name": "icon_arrow",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 82 "__id__": 76
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 88 "__id__": 82
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4391,7 +4035,7 @@ ...@@ -4391,7 +4035,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 87 "__id__": 81
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4423,13 +4067,13 @@ ...@@ -4423,13 +4067,13 @@
"_name": "img_pic", "_name": "img_pic",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 82 "__id__": 76
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 90 "__id__": 84
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4437,8 +4081,8 @@ ...@@ -4437,8 +4081,8 @@
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
"g": 0, "g": 255,
"b": 0, "b": 255,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -4485,7 +4129,7 @@ ...@@ -4485,7 +4129,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 89 "__id__": 83
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4517,22 +4161,22 @@ ...@@ -4517,22 +4161,22 @@
"_name": "label_percent", "_name": "label_percent",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 82 "__id__": 76
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 92 "__id__": 86
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 247, "r": 249,
"g": 252, "g": 236,
"b": 254, "b": 131,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -4579,7 +4223,7 @@ ...@@ -4579,7 +4223,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 91 "__id__": 85
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4614,7 +4258,7 @@ ...@@ -4614,7 +4258,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 48 "__id__": 42
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "_layoutSize": {
...@@ -4648,14 +4292,18 @@ ...@@ -4648,14 +4292,18 @@
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [
{
"__id__": 89
}
],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 95 "__id__": 91
}, },
{ {
"__id__": 96 "__id__": 92
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4706,12 +4354,106 @@ ...@@ -4706,12 +4354,106 @@
"groupIndex": 0, "groupIndex": 0,
"_id": "b7RHfEx5dMzqpaopA8D3N8" "_id": "b7RHfEx5dMzqpaopA8D3N8"
}, },
{
"__type__": "cc.Node",
"_name": "icon_hand",
"_objFlags": 0,
"_parent": {
"__id__": 88
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 90
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 97,
"height": 128
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
120.989,
124.958,
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": "9dP004i45NOolQyhmBipF1"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 89
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ba4b82bc-bdd5-4407-8e03-dac80f85bf3f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "8aiLWv5l9NSZC+HYYse3pf"
},
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 94 "__id__": 88
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4743,7 +4485,7 @@ ...@@ -4743,7 +4485,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 94 "__id__": 88
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -4804,7 +4546,7 @@ ...@@ -4804,7 +4546,7 @@
"hoverSprite": null, "hoverSprite": null,
"_N$disabledSprite": null, "_N$disabledSprite": null,
"_N$target": { "_N$target": {
"__id__": 94 "__id__": 88
}, },
"_id": "7f6rvJiHlBTps+eaHi46Bn" "_id": "7f6rvJiHlBTps+eaHi46Bn"
}, },
...@@ -4819,10 +4561,10 @@ ...@@ -4819,10 +4561,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 98 "__id__": 94
}, },
{ {
"__id__": 99 "__id__": 95
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4878,7 +4620,7 @@ ...@@ -4878,7 +4620,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 97 "__id__": 93
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4910,7 +4652,7 @@ ...@@ -4910,7 +4652,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 97 "__id__": 93
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -4943,10 +4685,10 @@ ...@@ -4943,10 +4685,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 101 "__id__": 97
}, },
{ {
"__id__": 102 "__id__": 98
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5002,7 +4744,7 @@ ...@@ -5002,7 +4744,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 100 "__id__": 96
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5034,7 +4776,7 @@ ...@@ -5034,7 +4776,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 100 "__id__": 96
}, },
"_enabled": true, "_enabled": true,
"_id": "e0MaiWjNFAQZIjB7AfSZ8A" "_id": "e0MaiWjNFAQZIjB7AfSZ8A"
...@@ -5050,7 +4792,7 @@ ...@@ -5050,7 +4792,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 104 "__id__": 100
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5106,7 +4848,7 @@ ...@@ -5106,7 +4848,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 103 "__id__": 99
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5144,10 +4886,10 @@ ...@@ -5144,10 +4886,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 106 "__id__": 102
}, },
{ {
"__id__": 107 "__id__": 103
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5203,7 +4945,7 @@ ...@@ -5203,7 +4945,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 105 "__id__": 101
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5235,7 +4977,7 @@ ...@@ -5235,7 +4977,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 105 "__id__": 101
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -5296,7 +5038,7 @@ ...@@ -5296,7 +5038,7 @@
"hoverSprite": null, "hoverSprite": null,
"_N$disabledSprite": null, "_N$disabledSprite": null,
"_N$target": { "_N$target": {
"__id__": 105 "__id__": 101
}, },
"_id": "fa4l2v3pdP6aUtzlnMqnnU" "_id": "fa4l2v3pdP6aUtzlnMqnnU"
}, },
......
...@@ -2,9 +2,17 @@ import { asyncDelay, onHomeworkFinish } from "../script/util"; ...@@ -2,9 +2,17 @@ import { asyncDelay, onHomeworkFinish } from "../script/util";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent"; import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent";
import { Item, Part, Game } from "./model/game"; import { Item, Part, Game } from "./model/game";
import pg from "./pg"; import pg from "./pg";
import Ani from "./ani";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
enum STATE {
WAITING,
AUDIOING,
GUIDING,
AUDIOED,
GAMING,
GAMED
}
@ccclass @ccclass
export default class SceneComponent extends MyCocosSceneComponent { export default class SceneComponent extends MyCocosSceneComponent {
...@@ -47,10 +55,16 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -47,10 +55,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
onBtnStart() { onBtnStart() {
let btn_start: cc.Node = pg.view.find(this, "btn_start");
//执行开始单个游戏开始 //执行开始单个游戏开始
cc.tween(btn_start).by(0.3, { x: 1500 }).call(() => {
this.updateState(1);
}).start();
}
nextPart() {
Game.getIns().current++;
this.updateState(1); this.updateState(1);
} }
updateState(state) { updateState(state) {
switch (state) { switch (state) {
case 0: case 0:
...@@ -71,66 +85,91 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -71,66 +85,91 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.updatePartPercent(); this.updatePartPercent();
} }
private part: Part; private part: Part;
private playing: number;
initPartData() { initPartData() {
this.part = Game.getIns().part; this.part = Game.getIns().part;
this.playing = STATE.WAITING;
} }
updatePart() { updatePart() {
if (!this.part) return;
pg.view.visible(pg.view.find(this, "btn_start"), false); pg.view.visible(pg.view.find(this, "btn_start"), false);
pg.view.visible(pg.view.find(this, "panel_gary"), false); pg.view.visible(pg.view.find(this, "panel_gary"), false);
pg.view.visible(pg.view.find(this, "btn_stem/icon_hand"), true);
this.updatePartPercent();
this.updateBtnStem(); this.updateBtnStem();
this.updateList(); this.updateList();
this.updatePerson(); this.updatePerson();
} }
updateBtnStem() { updateBtnStem(isPlay: boolean = false) {
let btn_stem: cc.Node = pg.view.find(this, "btn_stem"); let btn_stem: cc.Node = pg.view.find(this, "btn_stem");
pg.view.visible(btn_stem, true); let btn_stem_audio: cc.Node = pg.view.find(this, "btn_stem_ani");
pg.view.visible(btn_stem, !isPlay);
pg.view.visible(btn_stem_audio, isPlay);
} }
private a;
onBtnStem() { onBtnStem() {
if (this.playing != STATE.WAITING) return;
//播放音效,允许后续操作。 //播放音效,允许后续操作。
this.playing = STATE.AUDIOING;
let btn_stem: cc.Node = pg.view.find(this, "btn_stem");
pg.view.visible(pg.view.find(btn_stem, "icon_hand"), false);
this.updateBtnStem(true);
pg.audio.playAudioByUrl(this.part.stemAudio).then(() => {
if (!this.a) {
this.a = true;
this.playing = STATE.GUIDING;
this.updatePersonGuide();
} else {
this.playing = STATE.AUDIOED;
}
this.updateBtnStem(false);
})
} }
updateList() { updateList() {
pg.view.visible(pg.view.find(this, "layout_items"), true) pg.view.visible(pg.view.find(this, "layout_items"), true)
//根据partlist渲染svt内容
// let scroll = pg.view.find(this.shop, "scrollview");
// let svt = scroll.getComponent("svt");
// let list = kitchen.getListByType(this.shopType);
// svt.list = list;
// svt.updateItem = this.updateShopItems;
// svt.target = this;
// svt.addNum = 4;
// svt.flush();
let layout_items = pg.view.find(this, "layout_items");
let items = layout_items.children;
items.sort((A, B) => {
return A.x - B.x;
})
let list = this.part.list;
for (let i = 0; i < items.length; i++) {
let item = items[i];
let data = list[i];
if (!data) {
item.active = false;
continue;
} else {
this.updateShopItem(item, data);
}
}
layout_items.y += 1000;
cc.tween(layout_items).by(0.3, { y: -1000 }).start();
} }
updateShopItem(item, data: Item) { updateShopItem(item, data: Item) {
// item.active = true; item.active = true;
// let growth = pg.view.find(item, "growth");
// let txt = pg.view.find(item, "txt"); let bg_board = pg.view.find(item, "bg_board");
// let name = pg.view.find(item, "name"); let bg_board_down = pg.view.find(item, "bg_board_down");
// let icon = pg.view.find(item, "icon"); let icon_arrow = pg.view.find(item, "icon_arrow");
// let discount = pg.view.find(item, "discount"); let img_pic = pg.view.find(item, "img_pic");
// let btn_buy = pg.view.find(item, "btn_buy"); let label_percent = pg.view.find(item, "label_percent");
pg.view.visible(bg_board, true);
// pg.view.setString(txt, `可增加 个成长值`) pg.view.visible(bg_board_down, false);
// pg.view.setString(growth, data.growthValue) pg.view.visible(icon_arrow, false);
// pg.view.setString(name, data.name) if (data.type == "pic") {
// icon.getComponent(cc.Sprite).spriteFrame = this[data.icon]; pg.view.visible(img_pic, true);
pg.view.visible(label_percent, false);
// let dis = Math.round((1 - data.discount) * 100); pg.view.setNetImg(img_pic, data.pic, { w: 350, h: 240 })
// if (dis > 0) { } else {
// pg.view.setString(discount, `${dis}%`) pg.view.visible(img_pic, false);
// pg.view.visible(pg.view.find(item, "bg_sale"), true); pg.view.visible(label_percent, true);
// pg.view.visible(pg.view.find(item, "discount"), true); pg.view.setString(label_percent, data.text);
// } else { }
// pg.view.visible(pg.view.find(item, "bg_sale"), false); item.data = data;
// pg.view.visible(pg.view.find(item, "discount"), false);
// }
// pg.view.setString(pg.view.find(btn_buy, "num"), data.cost)
// pg.view.touchOn(btn_buy, this.onTouchShopItem, this);
// item.data = data;
} }
updatePerson() { updatePerson() {
let img_person: cc.Node = pg.view.find(this, "img_person"); let img_person: cc.Node = pg.view.find(this, "img_person");
...@@ -141,8 +180,26 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -141,8 +180,26 @@ export default class SceneComponent extends MyCocosSceneComponent {
img_person.on(cc.Node.EventType.TOUCH_MOVE, this.onImgPersonMove, this); img_person.on(cc.Node.EventType.TOUCH_MOVE, this.onImgPersonMove, this);
img_person.on(cc.Node.EventType.TOUCH_END, this.onImgPersonEnd, this); img_person.on(cc.Node.EventType.TOUCH_END, this.onImgPersonEnd, this);
img_person.y -= 1000;
cc.tween(img_person).by(0.3, { y: 1000 }).start();
}
updatePersonGuide() {
let img_person: cc.Node = pg.view.find(this, "img_person");
img_person.active = true;
img_person.x = 0;
img_person.y = -300;
img_person.scale = 1;
pg.view.visible(pg.view.find(img_person, "icon_hand"), true);
cc.tween(img_person).by(0.7, { x: -600 }).by(0.7, { x: 600 }).call(() => {
pg.view.visible(pg.view.find(img_person, "icon_hand"), false);
this.playing = STATE.AUDIOED;
}).start();
} }
onImgPersonMove(e) { onImgPersonMove(e) {
if (this.playing != STATE.AUDIOED) return;
let currentTouch = e.currentTouch; let currentTouch = e.currentTouch;
let pos = currentTouch.getLocation(); let pos = currentTouch.getLocation();
//移动效果 //移动效果
...@@ -158,14 +215,18 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -158,14 +215,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.view.visible(pg.view.find(item, "icon_arrow"), true); pg.view.visible(pg.view.find(item, "icon_arrow"), true);
} }
onImgPersonEnd(e) { onImgPersonEnd(e) {
//结束判断 if (this.playing != STATE.AUDIOED) return;
let item: Item = Game.getIns().part.getItemByX(e.x); let currentTouch = e.currentTouch;
if (item.right) { let pos = currentTouch.getLocation();
let img_person: cc.Node = pg.view.find(this, "img_person");
img_person.x = pos.x - (cc.winSize.width / 2);
let item: any = this.getItemByX(img_person.x);
if (item.data.right) {
//处理正确 //处理正确
this.itemRight(item);
} else { } else {
//处理错误 //处理错误
this.itemError(item);
} }
} }
updateArrow(x) { updateArrow(x) {
...@@ -178,11 +239,44 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -178,11 +239,44 @@ export default class SceneComponent extends MyCocosSceneComponent {
img_arrow.active = true; img_arrow.active = true;
} }
itemRight(item) {
let img_person: cc.Node = pg.view.find(this, "img_person");
cc.tween(img_person).to(1, {
scale: 0.8, x: item.x, y: -0
}).delay(0.1).call(() => {
let layout_items = pg.view.find(this, "layout_items");
layout_items.active = false;
}).start();
setTimeout(() => {
let bg_board = pg.view.find(item, "bg_board");
let bg_board_down = pg.view.find(item, "bg_board_down");
let icon_arrow = pg.view.find(item, "icon_arrow");
let img_pic = pg.view.find(item, "img_pic");
let label_percent = pg.view.find(item, "label_percent");
pg.view.visible(bg_board, false);
pg.view.visible(bg_board_down, true);
pg.view.visible(icon_arrow, false);
pg.view.visible(img_pic, false);
pg.view.visible(label_percent, false);
}, 700);
setTimeout(() => {
this.nextPart();
}, 1700);
}
itemError(item) {
Ani.shake(item)
let bg_board = pg.view.find(item, "bg_board");
let bg_board_down = pg.view.find(item, "bg_board_down");
let icon_arrow = pg.view.find(item, "icon_arrow");
let img_pic = pg.view.find(item, "img_pic");
let label_percent = pg.view.find(item, "label_percent");
pg.view.visible(icon_arrow, false);
}
updatePartPercent() { updatePartPercent() {
let label_percent: cc.Node; let label_percent: cc.Node = pg.view.find(this, "panel_percent/label_percent");
pg.view.setString(label_percent, `${Game.getIns().part.id + 1} / ${Game.getIns().list.length}`); pg.view.setString(label_percent, `${Game.getIns().part.id + 1} / ${Game.getIns().list.length}`);
} }
...@@ -226,7 +320,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -226,7 +320,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
playLocalAudio(audioName) { playLocalAudio(audioName) {
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource); const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
......
class Ani {
//抖动效果
static shake(item) {
// alert("抖动效果");
let tween = cc.tween(item);
tween.to(0.06, { angle: 10 })
.to(0.06, { angle: 0 })
.to(0.06, { angle: -10 })
.to(0.06, { angle: 0 });
tween.repeat(4);
tween.start();
}
static scaleOut(item) {
return new Promise<void>((resolve) => {
let tween = cc.tween(item);
tween.to(0.2, { scaleX: 0, scaleY: 0 })
.call(() => { resolve() });
tween.start();
})
}
static scaleIn(item) {
return new Promise<void>((resolve) => {
item.scaleX = 0;
item.scaleY = 0;
let tween = cc.tween(item);
tween.to(0.2, { scaleX: 1, scaleY: 1 })
.call(() => { resolve() });
tween.start();
})
}
static flipX0(item) {
return new Promise<void>((resolve) => {
let itemScale = item.scaleY;
item.scaleX = itemScale;
let tween = cc.tween(item);
tween.to(0.2, { scaleX: 0 })
.call(() => { resolve() });
tween.start();
})
}
static flipX1(item) {
return new Promise<void>((resolve) => {
let itemScale = item.scaleY;
item.scaleX = 0;
let tween = cc.tween(item);
tween.to(0.2, { scaleX: itemScale })
.call(() => { resolve() });
tween.start();
})
}
}
export default Ani;
\ No newline at end of file
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "272bbc82-f59c-4e0c-bb1c-4bfb2f73d7eb", "uuid": "64eb8107-35f5-4a7b-b757-eec007f52ca4",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
// 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
const { ccclass, property } = cc._decorator;
import pg from "./pg";
@ccclass
export default class NewClass extends cc.Component {
@property(cc.Label)
label: cc.Label = null;
@property
text: string = 'hello';
// LIFE-CYCLE CALLBACKS:
private count = 0;
onLoad() {
this.count = 0;
}
start() {
}
update(dt) {
this.count++;
this.updateItems();
}
updateItems() {
let cur = Math.floor(this.count / 30) % 4
for (let i = 0; i < 4; i++) {
let item = pg.view.find(this, "btn_audio" + i);
item.active = cur == i;
}
}
}
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "37c492e3-1b92-4db5-b6be-802ecc1c0ecb", "uuid": "aec14924-cd0c-4952-ac8e-0d100cc6bc07",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{
"ver": "1.1.2",
"uuid": "93a9f04e-84ed-4b5f-99fd-17fcb6abe8ca",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
const ITEMS = [
{
id: 1001,
type: 1,//食物
name: "苹果",
icon: "icon_1",
growthValue: 10,
cost: 100,
discount: 0.8,
num: 3,
levelLimite: 1,
},
{
id: 1002,
type: 1,//食物
name: "香蕉",
icon: "icon_2",
growthValue: 15,
cost: 120,
discount: 1,
num: 5,
levelLimite: 2,
}, {
id: 1003,
type: 1,//食物
name: "面包",
icon: "icon_3",
growthValue: 20,
cost: 150,
discount: 1,
num: 8,
levelLimite: 1,
}, {
id: 1004,
type: 1,//食物
name: "胡萝卜",
icon: "icon_4",
growthValue: 30,
cost: 200,
discount: 1,
num: 9,
levelLimite: 1,
}, {
id: 1005,
type: 1,//食物
name: "奶酪",
icon: "icon_5",
growthValue: 40,
cost: 230,
discount: 1,
num: 13,
levelLimite: 1,
}, {
id: 1006,
type: 1,//食物
name: "橙子",
icon: "icon_6",
growthValue: 50,
cost: 270,
discount: 1,
num: 1,
levelLimite: 1,
}, {
id: 1007,
type: 1,//食物
name: "披萨",
icon: "icon_7",
growthValue: 90,
cost: 400,
discount: 1,
num: 0,
levelLimite: 1,
}, {
id: 1008,
type: 1,//食物
name: "西红柿",
icon: "icon_8",
growthValue: 100,
cost: 600,
discount: 1,
num: 0,
levelLimite: 1,
}
]
const LEVEL = {
level_1: {
growth: 100,
},
level_2: {
growth: 300,
},
level_3: {
growth: 600,
},
level_4: {
growth: 1000,
},
level_5: {
growth: 1500,
},
level_6: {
growth: 2100,
}
}
const USER = {
name: "小小香香",
coin: 100023,
level: 2,
growth: 30,
growthDaily: 0,
growthDailyMax: 100,
eatTime: new Date().getTime(),
useFurniture: [],
useClothes: [],
mood: "开心"
}
enum ITEM_TYPE {
FOOD = 1,
HOUSE = 2,
CLOTHES = 3
}
export { USER, LEVEL, ITEMS, ITEM_TYPE }
\ No newline at end of file
// 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
const { ccclass, property } = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
@property(cc.Label)
label: cc.Label = null;
@property
text: string = 'hello';
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start() {
this.showAni();
}
showAni() {
this.node.x += 400;
this.node.y -= 200;
cc.tween(this.node).by(0.3, { x: -400, y: 200 }).start();
setTimeout(() => {
this.showAni();
}, 2000);
}
// update (dt) {}
}
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "c7a342c3-a336-4d8a-aada-d97dc59c1ae2", "uuid": "464949cc-399a-4fbc-833b-1d269aca1069",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
...@@ -66,19 +66,16 @@ export class Game { ...@@ -66,19 +66,16 @@ export class Game {
return Game.instance; return Game.instance;
} }
private _list: Array<any>; private _list: Array<any>;
private _current: number; public current: number;
constructor() { constructor() {
this._list = []; this._list = [];
this._current = 0; this.current = 0;
} }
public init(data) { public init(data) {
this.list = data.list; this.list = data.list;
} }
public get part(): Part { public get part(): Part {
return this.list[this._current]; return this.list[this.current];
}
public set current(val) {
this._current = val;
} }
public set list(val) { public set list(val) {
this._list = val.map(li => { this._list = val.map(li => {
......
class Item {
public id: number;//id
public type: number;//商品类型
public name: string;//商品名称
public icon: string;//商品图片--可用type生成
public growthValue: number;//生长值
public cost: number;//费用
public discount: number;//折扣
public num: number;//拥有数量
public levelLimite: number;//等级限制
constructor(obj: any) {
this.id = obj.id;
this.type = obj.type;
this.name = obj.name;
this.icon = obj.icon;
this.growthValue = obj.growthValue;
this.cost = obj.cost;
this.discount = obj.discount;
this.num = obj.num;
this.levelLimite = obj.levelLimite;
}
}
export default Item;
\ No newline at end of file
import Item from "./item"
class Kitchen {
private _list: Array<Item>
constructor() {
this._list = [];
}
use(id) {
this._list = this._list.map(li => {
if (li.id == id) li.num -= 1;
return li;
})
}
buy(id) {
this._list = this._list.map(li => {
if (li.id == id) li.num += 1;
return li;
})
}
getListByType(type: number) {
return this._list.filter(li => li.type == type)
}
parse(list: any) {
if (!list) return;
this._list = list.map(li => { return new Item(li); })
}
get list() {
return this._list;
}
}
let kitchen = new Kitchen();
export default kitchen;
{
"ver": "1.0.8",
"uuid": "1ab727dc-af13-4539-a98a-4ec85d8981c9",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import Item from "./item"
class Shop {
public _list: Array<Item>
constructor() {
this._list = [];
}
parse(list: any) {
if (!list) return;
this._list = list.map(li => {
return new Item(li);
})
}
get list() {
return this._list;
}
}
export default Shop;
import { LEVEL } from "../config/config";
class User {
public name: string;
public coin: number;
public level: number;
public growth: number;//当前成长值
public growthDaily: number;
public growthDailyMax: number;
public eatTime: number;
public useFurniture: Array<number>;
public useClothes: Array<number>;
public mood: number;//0开心 1不开心
constructor() {
}
parse(data) {
this.name = data.name;
this.coin = data.coin;
this.level = data.level;
this.growth = data.growth;
this.growthDaily = data.growthDaily;
this.growthDailyMax = data.growthDailyMax;
this.eatTime = data.eatTime;
this.useFurniture = data.useFurniture;
this.useClothes = data.useClothes;
this.mood = 1;
}
isDailyMax() {
return this.growthDailyMax >= this.growthDaily
}
addGrowth(val) {
this.growth += val;
this.growthDaily += val;
user.mood = 0;
}
useCoin(val) {
this.coin -= val;
}
//当前等级成长值最大值
public get growthLevel(): number {
let max = 1;
for (let i = 1; i < 100; i++) {
let val = LEVEL[`level_${i}`].growth;
if (this.growth < val) {
max = val
break;
}
}
return max
}
}
let user = new User();
export default user;
// 游戏 : {
// 角色信息:{
// 名字
// 心情:开心|饥饿
// 金币
// 等级
// 成长值
// 每日成长值
// 每日成长值上限
// 上次吃东西的时间
// 当前使用的家具:[书柜,地毯,,,,,]对应的物品id
// 当前穿戴的服饰:[衣服,裤子,,,] 对应的物品id
// }
// 仓库:[
// {
// 物品id
// 物品类型
// 物品数量
// },
// {
// 物品id
// 物品类型
// 物品数量
// }
// ]
// 商城信息:[
// {
// 物品id
// 物品类型
// 名字
// 价格
// 特价
// 等级限制
// },
// ]
// 常量:{
// 物品列表:[
// 物品id
// 物品类型
// 名字
// 图片
// ]
// 等级经验表:{
// 等级
// 所需成长值
// 每日成长上限
// }
// }
// }
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "b09ecb5b-593a-4b9c-aaeb-67e8efc7ebd4",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "bb7f614f-8b91-48f3-a3d2-154872aa3a36",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
import pg from "../pg";
import { ITEMS, USER } from "../config/config"
import user from "../model/user";
import kitchen from "../model/kitchen";
//获取信息,购买物品,使用物品(吃东西),穿戴衣服/更换家具
class Api {
static askUser() {
return new Promise((resolve, reject) => {
pg.http.send("GET", "http://www.baidu.com", {}).then((data: any) => {
let userInfo = USER;
user.parse(userInfo);
let kitchenInfo = ITEMS;
kitchen.parse(kitchenInfo);
resolve('');
})
});
}
static askUseItem(data) {
return new Promise((resolve, reject) => {
pg.http.send("GET", "http://www.baidu.com", {}).then((data: any) => {
user.addGrowth(data.growthValue);
kitchen.use(data.id);
resolve('');
})
});
}
static askBuyItem(data) {
return new Promise((resolve, reject) => {
data.id;
data.type;
pg.http.send("GET", "http://www.baidu.com", {}).then((data: any) => {
user.useCoin(data.cost * data.discount);
kitchen.buy(data.id);
resolve('');
})
});
}
}
export default Api;
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "cc085a9d-0b38-4bde-a0eb-316c806a0a58",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -130,7 +130,7 @@ let pg = { ...@@ -130,7 +130,7 @@ let pg = {
}) })
}) })
}, },
setNetImg(item, res) { setNetImg(item, res, { w, h }) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (!item) return pg.logger.w("图片更换失败,传入了错误的item"); if (!item) return pg.logger.w("图片更换失败,传入了错误的item");
let node = item.node ? item.node : item; let node = item.node ? item.node : item;
...@@ -140,8 +140,6 @@ let pg = { ...@@ -140,8 +140,6 @@ let pg = {
} }
if (!node) return pg.logger.w("图片更换失败,传入了错误的item"); if (!node) return pg.logger.w("图片更换失败,传入了错误的item");
if (node.net_url == res) return; if (node.net_url == res) return;
let w = node.width;
let h = node.height;
node.active = false;// node.active = false;//
pg.load.loadNetImg(res).then((texture: cc.Texture2D) => { pg.load.loadNetImg(res).then((texture: cc.Texture2D) => {
if (!cc.isValid(node)) return pg.logger.i("节点已销毁"); if (!cc.isValid(node)) return pg.logger.i("节点已销毁");
...@@ -151,13 +149,14 @@ let pg = { ...@@ -151,13 +149,14 @@ let pg = {
let spriteFrame = new cc.SpriteFrame(texture); let spriteFrame = new cc.SpriteFrame(texture);
component.spriteFrame = spriteFrame; component.spriteFrame = spriteFrame;
node.net_url = res; node.net_url = res;
// setTimeout(() => {
if (!cc.isValid(node)) return pg.logger.i("节点已销毁"); if (!cc.isValid(node)) return pg.logger.i("节点已销毁");
if (!node) return pg.logger.w("节点已销毁"); if (!node) return pg.logger.w("节点已销毁");
node.width = w; let scaleX = w / nw;
node.height = h; let scaleY = h / nh;
let scale = scaleX <= scaleY ? scaleX : scaleY;
node.width = nw * scale;
node.height = nh * scale;
node.active = true; node.active = true;
// }, 30);
resolve({ w: nw, h: nh }); resolve({ w: nw, h: nh });
}) })
}) })
...@@ -351,5 +350,18 @@ let pg = { ...@@ -351,5 +350,18 @@ let pg = {
} }
}, },
audio: {
playAudioByUrl(audio_url) {
return new Promise((resolve, reject) => {
if (!audio_url) return resolve(null);
cc.assetManager.loadRemote(audio_url, (err, audioClip: cc.AudioClip) => {
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
cc.audioEngine.setFinishCallback(audioId, () => {
resolve(audioClip);
});
});
});
}
}
}; };
export default pg; export default pg;
\ No newline at end of file
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