Commit 00a69e13 authored by Tt's avatar Tt

基础part

parent b06cb5ac
{
"ver": "1.1.2",
"uuid": "0853721c-3f55-4eb2-873d-e3081cfadd4b",
"uuid": "205bd5af-83c2-40c3-ac39-e6f61d013b7f",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{"frameRate":24,"name":"zhastar","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-399,"y":-184,"width":830,"height":306},"bone":[{"name":"root"},{"name":"zhakai","parent":"root","transform":{"y":14.05}},{"name":"star05","parent":"zhakai","transform":{"x":189,"y":-3.3}},{"name":"star04","parent":"zhakai","transform":{"x":215.45,"y":-106.5}},{"name":"star06","parent":"zhakai","transform":{"x":342.55,"y":-15.7}},{"name":"star01","parent":"zhakai","transform":{"x":-161.8,"y":-62.75}},{"name":"star03","parent":"zhakai","transform":{"x":-191.55,"y":51.2}},{"name":"star02","parent":"zhakai","transform":{"x":-274.9,"y":-5.8}}],"slot":[{"name":"star01","parent":"star01"},{"name":"star02","parent":"star02"},{"name":"star03","parent":"star03"},{"name":"star04","parent":"star04"},{"name":"star05","parent":"star05"},{"name":"star06","parent":"star06"}],"skin":[{"slot":[{"name":"star06","display":[{"name":"炸开/star06","transform":{"x":14.95,"y":-0.35},"path":"zhakai/star06"}]},{"name":"star05","display":[{"name":"炸开/star05","transform":{"x":19,"y":-17.25},"path":"zhakai/star05"}]},{"name":"star04","display":[{"name":"炸开/star04","transform":{"x":6.05,"y":-8.55},"path":"zhakai/star04"}]},{"name":"star03","display":[{"name":"炸开/star03","transform":{"x":14.55,"y":-5.25},"path":"zhakai/star03"}]},{"name":"star02","display":[{"name":"炸开/star02","transform":{"x":-39.6,"y":-7.75},"path":"zhakai/star02"}]},{"name":"star01","display":[{"name":"炸开/star01","transform":{"x":-2.2,"y":-7.3},"path":"zhakai/star01"}]}]}],"animation":[{"duration":21,"playTimes":0,"name":"normal","bone":[{"name":"zhakai","translateFrame":[{"duration":6,"tweenEasing":0,"y":46.95},{"duration":10,"tweenEasing":0,"y":-57.25},{"duration":5,"tweenEasing":0},{"duration":0,"y":29.44}]},{"name":"star05","translateFrame":[{"duration":6,"tweenEasing":0,"x":-188.98,"y":4.53},{"duration":3,"tweenEasing":0,"x":-128.57,"y":-37.63},{"duration":7,"tweenEasing":0,"x":-76.88,"y":-54.56},{"duration":5,"x":-46.17,"y":76.94}],"rotateFrame":[{"duration":16,"tweenEasing":0,"rotate":40},{"duration":5}],"scaleFrame":[{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":15}]},{"name":"star04","translateFrame":[{"duration":6,"tweenEasing":0,"x":-215.91,"y":108.78},{"duration":3,"tweenEasing":0,"x":-185.09,"y":-23.8},{"duration":7,"tweenEasing":0,"x":-134.31,"y":-74.85},{"duration":5,"x":-67.15,"y":13.99}],"rotateFrame":[{"duration":16,"tweenEasing":0,"rotate":40},{"duration":5}],"scaleFrame":[{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":15}]},{"name":"star06","translateFrame":[{"duration":6,"tweenEasing":0,"x":-342.09,"y":19.01},{"duration":3,"tweenEasing":0,"x":-263.69,"y":-73.79},{"duration":7,"tweenEasing":0,"x":-183.61,"y":-99.85},{"duration":5,"x":-96.53}],"rotateFrame":[{"duration":16,"tweenEasing":0,"rotate":40},{"duration":5}],"scaleFrame":[{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":15}]},{"name":"star01","translateFrame":[{"duration":6,"tweenEasing":0,"x":162.22,"y":64.02},{"duration":3,"tweenEasing":0,"x":122.82,"y":-51.85},{"duration":7,"tweenEasing":0,"x":105.48,"y":-107.49},{"duration":5,"x":30.01,"y":-9.23}],"rotateFrame":[{"duration":9,"tweenEasing":0,"rotate":40},{"duration":7,"tweenEasing":0,"rotate":13.96},{"duration":5}],"scaleFrame":[{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":15}]},{"name":"star03","translateFrame":[{"duration":6,"tweenEasing":0,"x":191.9,"y":-49.12},{"duration":3,"tweenEasing":0,"x":152.99,"y":-95.34},{"duration":7,"tweenEasing":0,"x":124.06,"y":-111.67},{"duration":5,"x":72.19,"y":30.22}],"rotateFrame":[{"duration":16,"tweenEasing":0,"rotate":40},{"duration":5}],"scaleFrame":[{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":15}]},{"name":"star02","translateFrame":[{"duration":6,"tweenEasing":0,"x":276.5,"y":7.88},{"duration":3,"tweenEasing":0,"x":200.84,"y":-76.41},{"duration":7,"tweenEasing":0,"x":160.57,"y":-101.16},{"duration":5,"x":75.55,"y":15.39}],"rotateFrame":[{"duration":16,"tweenEasing":0,"rotate":40},{"duration":5}],"scaleFrame":[{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":15}]}],"slot":[{"name":"star01","colorFrame":[{"duration":6},{"duration":3,"tweenEasing":0,"value":{"aM":80}},{"duration":7,"tweenEasing":0},{"duration":5,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"star02","colorFrame":[{"duration":6},{"duration":3,"tweenEasing":0,"value":{"aM":80}},{"duration":7,"tweenEasing":0},{"duration":5,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"star03","colorFrame":[{"duration":16},{"duration":5,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"star04","colorFrame":[{"duration":16},{"duration":5,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"star05","colorFrame":[{"duration":6},{"duration":3,"tweenEasing":0,"value":{"aM":80}},{"duration":7,"tweenEasing":0},{"duration":5,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"star06","colorFrame":[{"duration":16},{"duration":5,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]}]}],"defaultActions":[{"gotoAndPlay":"normal"}]}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "b4ea1c34-24c5-4cf3-9552-77fd1e0f7370",
"subMetas": {}
}
\ No newline at end of file
{"name":"zhastar","SubTexture":[{"name":"zhakai/star01","x":331,"height":130,"y":1,"width":176},{"name":"zhakai/star02","x":230,"height":193,"y":260,"width":169},{"name":"zhakai/star03","x":401,"height":124,"y":253,"width":104},{"name":"zhakai/star04","x":1,"height":166,"y":260,"width":227},{"name":"zhakai/star05","x":1,"height":257,"y":1,"width":328},{"name":"zhakai/star06","x":331,"height":118,"y":133,"width":147}],"imagePath":"zhastar_tex.png","height":512,"width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "f6e28700-0fcf-46f4-9b2e-41eda646b221",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3d8f403f-df25-4472-9033-f737daecf7e6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 512,
"platformSettings": {},
"subMetas": {
"zhastar_tex": {
"ver": "1.0.4",
"uuid": "e701ac81-34a2-48d4-ad79-65665a6ed1b7",
"rawTextureUuid": "3d8f403f-df25-4472-9033-f737daecf7e6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -2,
"offsetY": 29,
"trimX": 1,
"trimY": 1,
"width": 506,
"height": 452,
"rawWidth": 512,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
......@@ -74,22 +74,3400 @@
{
"__id__": 5
},
{
"__id__": 31
},
{
"__id__": 46
},
{
"__id__": 48
},
{
"__id__": 50
},
{
"__id__": 54
},
{
"__id__": 68
},
{
"__id__": 73
},
{
"__id__": 78
},
{
"__id__": 86
}
],
"_active": true,
"_components": [
{
"__id__": 102
},
{
"__id__": 103
},
{
"__id__": 104
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1080
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
960,
540,
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": "a5esZu+45LA5mBpvttspPD"
},
{
"__type__": "cc.Node",
"_name": "Main Camera",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
362.85545494732423,
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": "e1WoFrQ79G7r4ZuQE3HlNb"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_cullingMask": 4294967295,
"_clearFlags": 7,
"_backgroundColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_depth": -1,
"_zoomRatio": 1,
"_targetTexture": null,
"_fov": 60,
"_orthoSize": 10,
"_nearClip": 1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_renderStages": 1,
"_alignWithScreen": true,
"_id": "81GN3uXINKVLeW4+iKSlim"
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 6
},
{
"__id__": 9
},
{
"__id__": 12
},
{
"__id__": 15
},
{
"__id__": 18
},
{
"__id__": 21
},
{
"__id__": 24
},
{
"__id__": 26
}
],
"_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": 1920,
"height": 1080
},
"_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": "aa9wcO9+JPup7KmTC1I6H7"
},
{
"__type__": "cc.Node",
"_name": "img_fang",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
},
{
"__id__": 8
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 144,
"height": 86
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-818.424,
-466.913,
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": "25QHfC4t5IjKszI9o+SPhZ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "30e556a8-612e-4607-85fa-125a699eb061"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "19xxWt1GRN8aILRCebMJ2o"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 12,
"_left": 69.57600000000002,
"_right": 0,
"_top": 0,
"_bottom": 30.08699999999999,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "fdYtloDlpFJ69wqtUvLB4M"
},
{
"__type__": "cc.Node",
"_name": "img_star",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
},
{
"__id__": 11
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 30,
"height": 30
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-670.418,
12.091,
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": "7aH3GT/yNH3qvVU9X0WETQ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "47c12acd-a1dc-43e3-b24f-b2d23790eeb9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "9ez6ovwiNE2J9cAhy5DeQU"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 0,
"_left": 274.582,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "267eIeP45A9IE6tfTItGyt"
},
{
"__type__": "cc.Node",
"_name": "img_star",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
},
{
"__id__": 14
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 30,
"height": 30
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-826.629,
-218.042,
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": "6cNv2y5etOC69TbqqV4zEi"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "47c12acd-a1dc-43e3-b24f-b2d23790eeb9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e59c/JJc1JooRRdS3QM8AG"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": 118.37099999999998,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "30gtbu5X1HEq26T90TfvdZ"
},
{
"__type__": "cc.Node",
"_name": "img_star",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 16
},
{
"__id__": 17
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 30,
"height": 30
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-660.655,
-460.727,
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": "ecHatcnTpJK43U37icv/+R"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "47c12acd-a1dc-43e3-b24f-b2d23790eeb9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a32PBFc4JBDIdZKqUKZUTh"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 0,
"_left": 284.345,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "adJqQvHApJqZH2nyaXD9yR"
},
{
"__type__": "cc.Node",
"_name": "img_star",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 19
},
{
"__id__": 20
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 30,
"height": 30
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
722.378,
-410.184,
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": "21ma89w2lEM6VQ426lZLyy"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "47c12acd-a1dc-43e3-b24f-b2d23790eeb9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e5WI12xopOdKVjxeQRpAoA"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 32,
"_left": 284.345,
"_right": 222.62199999999996,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "baI1KlZ1FH95tGqPYQUZiC"
},
{
"__type__": "cc.Node",
"_name": "img_star",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 22
},
{
"__id__": 23
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 30,
"height": 30
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
837.248,
455.935,
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": "45sz1RFfdF34Am0najGmNw"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "47c12acd-a1dc-43e3-b24f-b2d23790eeb9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "35JC23emZKfY7+E2vBxmoF"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 0,
"_left": 284.345,
"_right": 107.75199999999995,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "67SRkuLVRDPaODlqgFJmcX"
},
{
"__type__": "cc.Node",
"_name": "img_star",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 25
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 30,
"height": 30
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-846.591,
475.523,
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": "abcwAXCXNK+aR/kPhKNeUM"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "47c12acd-a1dc-43e3-b24f-b2d23790eeb9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c5cJMCpcNPcJGAF+OoI3Jw"
},
{
"__type__": "cc.Node",
"_name": "img_star",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 27
},
{
"__id__": 28
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 30,
"height": 30
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-889.418,
202.091,
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": "02jED/ddFLboMcECQKXr8x"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "47c12acd-a1dc-43e3-b24f-b2d23790eeb9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "bfb5qWOnFE4JuY5hfJ6Cwu"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": 55.581999999999994,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "1brRVlWsBI3Z02Zf9cQq8j"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d863616d-aebf-4c74-803b-71d2dbe5ba82"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "95eN2RZM5Ag4ncz1PGHbHy"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1920,
"_originalHeight": 1080,
"_id": "199fxwZgxDhZXvZDRnCATr"
},
{
"__type__": "cc.Node",
"_name": "layout_question",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 32
},
{
"__id__": 36
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "515P/Q0N9NYLzSqDdUP3Qo"
},
{
"__type__": "cc.Node",
"_name": "layout_canvas",
"_objFlags": 0,
"_parent": {
"__id__": 31
},
"_children": [
{
"__id__": 33
}
],
"_active": true,
"_components": [
{
"__id__": 35
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1220,
"height": 790
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
4.448,
12.336,
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": "01MJo7lixPa7r9+qPWGgNO"
},
{
"__type__": "cc.Node",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 32
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 34
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1220,
"height": 790
},
"_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": "f59jptSd1GgLGtQMbk6BCr"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
},
"_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": "fdEmMC9VtKo4iqXHl1WQ1L"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 0.1,
"_N$inverted": false,
"_id": "1fAk/O/GdEirKNx9Dfc/Y5"
},
{
"__type__": "cc.Node",
"_name": "img_kuang",
"_objFlags": 0,
"_parent": {
"__id__": 31
},
"_children": [
{
"__id__": 37
},
{
"__id__": 39
},
{
"__id__": 41
},
{
"__id__": 43
}
],
"_active": true,
"_components": [
{
"__id__": 45
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1300,
"height": 890
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
4.413,
13.238,
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": "4e/qWVbKZOC5f0UA5DlrpQ"
},
{
"__type__": "cc.Node",
"_name": "img_dengdai",
"_objFlags": 0,
"_parent": {
"__id__": 36
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 38
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1286,
"height": 864
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-4.413,
9.741,
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": "c7wkZkHStFuLOzcK6UAK3X"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "06247721-0ed1-4509-a34b-93426b0bf8c1"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "04cbD62fBCkrfc67eZIAKV"
},
{
"__type__": "cc.Node",
"_name": "img_dengpao",
"_objFlags": 0,
"_parent": {
"__id__": 36
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 40
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 647,
"height": 86
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-15.129,
436.82,
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": "9aQpkF8KZNzZcIdAtpOjHn"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4c7a3f70-89e3-4fd5-9c14-5bde561f3e22"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "97YV95EcFKAIPNbeFEKsDN"
},
{
"__type__": "cc.Node",
"_name": "img_right_3",
"_objFlags": 0,
"_parent": {
"__id__": 36
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 42
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 198,
"height": 83
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
684.088,
448.711,
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": "f6qZw2BF1AOoSBpc/oY/kY"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "dc608f1f-035a-43bc-ada1-09beb14aea34"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "cdmg7+x6REc6TOxWX4wVeu"
},
{
"__type__": "cc.Node",
"_name": "img_left_3",
"_objFlags": 0,
"_parent": {
"__id__": 36
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 44
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 299,
"height": 71
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-661.049,
438.871,
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": "82EEXSHzNETKsssa7qo7ER"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8c793838-4f7c-4f0a-8585-20ee2ef63d67"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "4a9QQC/3VG0JaXRVRMxUGT"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "9d789e52-91da-4c54-9491-b47c0c1610cd"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "1dB9jUoQdHKJ3b1z6VMQGF"
},
{
"__type__": "cc.Node",
"_name": "layout_battery_left",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 47
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 290,
"height": 800
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-826.237,
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": "0dgFgQqkFPcoLJUeM5pLD6"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 46
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": -11.236999999999966,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "43e/vlbABNK7sJ6RrM/C8r"
},
{
"__type__": "cc.Node",
"_name": "layout_battery_right",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 49
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 290,
"height": 800
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
831.9679999999998,
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": "admQs1KaZPmqA+fQHE0zmw"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 48
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": 1646.9679999999998,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "a2jfsVgYxNuLfbGl4yEA9T"
},
{
"__type__": "cc.Node",
"_name": "item_battery_img",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 51
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 290,
"height": 240
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-825,
280,
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": "36LMckRyZIqrXzfY7e9/g+"
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 50
},
"_children": [
{
"__id__": 52
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "d8Yqny/3ZHFbOXV7N+5/dg"
},
{
"__type__": "cc.Node",
"_name": "img_ battery001",
"_objFlags": 0,
"_parent": {
"__id__": 51
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 53
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 286,
"height": 232
},
"_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": "64DF760B5Oi7TZ5JRMhx02"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 52
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "347c35f8-7fca-4262-a03a-c03b70997884"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "f2vD1y+uFDnbRKQT6/6ELb"
},
{
"__type__": "cc.Node",
"_name": "item_battery_text",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 55
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 290,
"height": 140
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-825,
280,
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": "abW1u6FilEDbHPOKEYHaw2"
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 54
},
"_children": [
{
"__id__": 56
},
{
"__id__": 58
},
{
"__id__": 60
},
{
"__id__": 62
},
{
"__id__": 64
},
{
"__id__": 66
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "48IafkIxBMbLTmRTSwwHrn"
},
{
"__type__": "cc.Node",
"_name": "img_ battery6",
"_objFlags": 0,
"_parent": {
"__id__": 55
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 57
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 281,
"height": 140
},
"_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": "a2uRW76TxNeIKScxe1eFBh"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d07aabdb-0171-4f0e-b866-86a11a2ee5f8"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "20AN3Hw79C2qOJEE49hHmS"
},
{
"__type__": "cc.Node",
"_name": "img_ battery4",
"_objFlags": 0,
"_parent": {
"__id__": 55
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 59
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 281,
"height": 140
},
"_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": "6a2NnEhcpNMJAb3u3rrjma"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 58
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6f5011f7-a0ae-4899-843b-f64f920fb528"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "2fmBi/vGxLjpGcj+ANKsPk"
},
{
"__type__": "cc.Node",
"_name": "img_ battery5",
"_objFlags": 0,
"_parent": {
"__id__": 55
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 61
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 281,
"height": 140
},
"_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": "d7x5Wkr01B4bXDJqHhqFMk"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 60
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1037f84a-4788-4011-a067-9034dc7bbb2f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "fascYDbU1Egra7urQJmSbQ"
},
{
"__type__": "cc.Node",
"_name": "img_ battery3",
"_objFlags": 0,
"_parent": {
"__id__": 55
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 63
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 281,
"height": 140
},
"_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": "acABGWU79NjJ6FwfGjGyQQ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e4aacec2-9290-4e97-9804-ce17090c69fe"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d4wsgXLMdD+ov2U4mKNK0U"
},
{
"__type__": "cc.Node",
"_name": "img_ battery2",
"_objFlags": 0,
"_parent": {
"__id__": 55
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 65
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 281,
"height": 140
},
"_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": "aeJICgxppO+Zf7sYW4o0RA"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 64
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d9b6fcf1-5d4c-4d01-99e5-bc40468c1008"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a8vAGRqHxBcLH6AxRVtQ8E"
},
{
"__type__": "cc.Node",
"_name": "img_ battery1",
"_objFlags": 0,
"_parent": {
"__id__": 55
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 67
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 281,
"height": 140
},
"_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": "e2HHus9OZHrrF5PjhVB/zp"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 66
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c3ff7a71-a8d6-4a48-80d9-926c949d18b6"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "eaJ17EsIBDgLiNJzA1UNkd"
},
{
"__type__": "cc.Node",
"_name": "img_left",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 69
},
{
"__id__": 71
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-780,
36.213,
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": "bfFIipbaVCL6knISjulVX/"
},
{
"__type__": "cc.Node",
"_name": "img_left_1",
"_objFlags": 0,
"_parent": {
"__id__": 68
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 70
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 65,
"height": 85
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-65,
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": "2aeX4qZ5tEKq1e+2iQdAff"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 69
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c1fb5b00-2ab9-4030-8997-05093d0f2e63"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "faKeayWRhO4rVQqzO7WFQn"
},
{
"__id__": 16
}
],
"__type__": "cc.Node",
"_name": "img_left_2",
"_objFlags": 0,
"_parent": {
"__id__": 68
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 32
"__id__": 72
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 65,
"height": 85
},
"_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": "47oqngDZtGmp8b+ZTGkuCU"
},
{
"__id__": 33
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 71
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ca3a2516-74a9-44dc-bc29-ff784b6857cb"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b4o+3fqrRCdL/wyN27y+Hl"
},
{
"__type__": "cc.Node",
"_name": "img_right",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 74
},
{
"__id__": 76
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -101,8 +3479,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1080
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -113,8 +3491,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
960,
540,
780,
36.213,
0,
0,
0,
......@@ -136,20 +3514,20 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a5esZu+45LA5mBpvttspPD"
"_id": "12aaFTuwlOWJ/RaWM+45ol"
},
{
"__type__": "cc.Node",
"_name": "Main Camera",
"_name": "img_right_1",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 73
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
"__id__": 75
}
],
"_prefab": null,
......@@ -163,8 +3541,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
"width": 65,
"height": 85
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -175,9 +3553,9 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
65,
0,
0,
362.85545494732423,
0,
0,
0,
......@@ -198,59 +3576,52 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e1WoFrQ79G7r4ZuQE3HlNb"
"_id": "c6UJXlMURA5K/0plzKe+r1"
},
{
"__type__": "cc.Camera",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
"__id__": 74
},
"_enabled": true,
"_cullingMask": 4294967295,
"_clearFlags": 7,
"_backgroundColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c034fa5a-5b31-48d5-a3b3-cf6be0875e2c"
},
"_depth": -1,
"_zoomRatio": 1,
"_targetTexture": null,
"_fov": 60,
"_orthoSize": 10,
"_nearClip": 1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0,
"width": 1,
"height": 1
"y": 0
},
"_renderStages": 1,
"_alignWithScreen": true,
"_id": "81GN3uXINKVLeW4+iKSlim"
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "aepAwxPNRHZ7ajXG8IY3IM"
},
{
"__type__": "cc.Node",
"_name": "bg",
"_name": "img_right_2",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 73
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
},
{
"__id__": 7
"__id__": 77
}
],
"_prefab": null,
......@@ -264,8 +3635,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1080
"width": 65,
"height": 85
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -299,14 +3670,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "aa9wcO9+JPup7KmTC1I6H7"
"_id": "05k0hkQd9Is5DBAiSbSpro"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
"__id__": 76
},
"_enabled": true,
"_materials": [
......@@ -316,7 +3687,9 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_spriteFrame": {
"__uuid__": "0c989628-e6e7-4200-9a3c-324f5bf29663"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
......@@ -329,34 +3702,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "95eN2RZM5Ag4ncz1PGHbHy"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1920,
"_originalHeight": 1080,
"_id": "199fxwZgxDhZXvZDRnCATr"
"_id": "d5U7sB2ilMzYwPx3wiQzsl"
},
{
"__type__": "cc.Node",
......@@ -367,16 +3713,16 @@
},
"_children": [
{
"__id__": 9
"__id__": 79
},
{
"__id__": 11
"__id__": 81
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 15
"__id__": 85
}
],
"_prefab": null,
......@@ -432,13 +3778,13 @@
"_name": "ani",
"_objFlags": 0,
"_parent": {
"__id__": 8
"__id__": 78
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
"__id__": 80
}
],
"_prefab": null,
......@@ -494,7 +3840,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
"__id__": 79
},
"_enabled": true,
"_materials": [
......@@ -534,17 +3880,17 @@
"_name": "btn_go",
"_objFlags": 0,
"_parent": {
"__id__": 8
"__id__": 78
},
"_children": [
{
"__id__": 12
"__id__": 82
}
],
"_active": false,
"_components": [
{
"__id__": 14
"__id__": 84
}
],
"_prefab": null,
......@@ -600,13 +3946,13 @@
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 11
"__id__": 81
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
"__id__": 83
}
],
"_prefab": null,
......@@ -662,7 +4008,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
"__id__": 82
},
"_enabled": true,
"_materials": [
......@@ -695,7 +4041,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 81
},
"_enabled": true,
"_materials": [
......@@ -727,11 +4073,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
"__id__": 78
},
"_enabled": true,
"aniRole": {
"__id__": 9
"__id__": 79
},
"moveX": 500,
"_id": "e4RrOXSNJGd68Mq3UTYY0p"
......@@ -745,13 +4091,13 @@
},
"_children": [
{
"__id__": 17
"__id__": 87
},
{
"__id__": 20
"__id__": 90
},
{
"__id__": 21
"__id__": 91
}
],
"_active": true,
......@@ -809,11 +4155,11 @@
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 16
"__id__": 86
},
"_children": [
{
"__id__": 18
"__id__": 88
}
],
"_active": true,
......@@ -871,13 +4217,13 @@
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 17
"__id__": 87
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 19
"__id__": 89
}
],
"_prefab": null,
......@@ -933,7 +4279,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
"__id__": 88
},
"_enabled": true,
"_materials": [
......@@ -968,7 +4314,7 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 16
"__id__": 86
},
"_children": [],
"_active": true,
......@@ -1026,23 +4372,23 @@
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 16
"__id__": 86
},
"_children": [
{
"__id__": 22
"__id__": 92
},
{
"__id__": 24
"__id__": 94
},
{
"__id__": 26
"__id__": 96
},
{
"__id__": 28
"__id__": 98
},
{
"__id__": 30
"__id__": 100
}
],
"_active": true,
......@@ -1100,13 +4446,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 21
"__id__": 91
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
"__id__": 93
}
],
"_prefab": null,
......@@ -1162,7 +4508,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
"__id__": 92
},
"_enabled": true,
"_clip": {
......@@ -1181,13 +4527,13 @@
"_name": "dragdown",
"_objFlags": 0,
"_parent": {
"__id__": 21
"__id__": 91
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 25
"__id__": 95
}
],
"_prefab": null,
......@@ -1243,7 +4589,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 94
},
"_enabled": true,
"_clip": null,
......@@ -1260,13 +4606,13 @@
"_name": "nextgame",
"_objFlags": 0,
"_parent": {
"__id__": 21
"__id__": 91
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 27
"__id__": 97
}
],
"_prefab": null,
......@@ -1322,7 +4668,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
"__id__": 96
},
"_enabled": true,
"_clip": null,
......@@ -1339,13 +4685,13 @@
"_name": "boom",
"_objFlags": 0,
"_parent": {
"__id__": 21
"__id__": 91
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 99
}
],
"_prefab": null,
......@@ -1401,7 +4747,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
"__id__": 98
},
"_enabled": true,
"_clip": null,
......@@ -1418,13 +4764,13 @@
"_name": "pie_drop",
"_objFlags": 0,
"_parent": {
"__id__": 21
"__id__": 91
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 31
"__id__": 101
}
],
"_prefab": null,
......@@ -1480,7 +4826,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
"__id__": 100
},
"_enabled": true,
"_clip": null,
......@@ -1535,5 +4881,18 @@
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "4592bSqPPRGd79nXmvOGwTQ",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"layout_canvas": {
"__id__": 32
},
"_id": "5b78aJTZFGI79ubV+y7E/s"
}
]
\ No newline at end of file
......@@ -35,6 +35,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
_cantouch = null;
questions: Array<any>;
successArr: Array<any>;
current: number;
initData() {
// 所有全局变量 默认都是null
......@@ -52,650 +53,25 @@ export default class SceneComponent extends MyCocosSceneComponent {
get nextQuestion() { return this.questions[this.current + 1] }
// 5个音频播放,如果没有自动跳过
// 结束
get audioEnd() { return this.data.audioEnd }
// 完成一个
get auidoFinish() { return this.data.auidoFinish }
// 肉饼拖拽下来
get audioMeet() { return this.data.audioMeet }
// 开始
get audioStart() { return this.data.audioStart }
// 蔬菜拖拽下来
get audioVegetable() { return this.data.audioVegetable }
@property(cc.Node) public item_main: cc.Node = null;
@property(cc.Node) public item_vegetables: cc.Node = null;
@property(cc.Node) public item_meat: cc.Node = null;
@property(cc.Node) public item_pie: cc.Node = null;
@property(cc.Node) public layout_main: cc.Node = null;
@property(cc.Node) public layout_vegetables: cc.Node = null;
@property(cc.Node) public layout_meat: cc.Node = null;
@property(cc.Node) public layout_pie: cc.Node = null;
// 初始化页面
initView() {
this.item_main.active = false;
this.item_vegetables.active = false;
this.item_meat.active = false;
this.item_pie.active = false;
this.hideGuide();
this.updateBtns();
}
initEvent() {
let layout_btn = pg.view.find(this, 'layout_btn');
let btn_left = pg.view.find(layout_btn, 'btn_left');
let btn_right = pg.view.find(layout_btn, 'btn_right');
pg.view.touchOn(btn_left, this.onTouchLast, this);
pg.view.touchOn(btn_right, this.onTouchNext, this);
}
initGame() {
this.meetNodes = [];
this.vegetableNodes = [];
// 肉饼区域初始化
this.initLayoutMeet();
this.visibleMeetList();
// 蔬菜部分初始化
this.initLayoutVegetable();
this.visibleVegetableList();
// 开始第一题(中间初始化)
this.initLayoutMain();
pg.audio.playAudioByUrl(this.data.auidoStart).then(() => {
// 初始化引导
this.initGuide();
})
}
static successPosArray: Array<cc.Vec2> = [cc.v2(50, -30), cc.v2(50, 0)];
private successArr: Array<cc.Node>;
get successPos() {
return SceneComponent.successPosArray[this.successArr.length]
}
//-------------------------------肉饼区域---------------------------------
static meetDefaultPos: cc.Vec2 = cc.v2(-655, 172);
static meetSpace: cc.Vec2 = cc.v2(0, 30);
private meetNodes: Array<cc.Node>;
initLayoutMeet() {
// 计算肉饼总数量
this.questions.concat([]).reverse().forEach((question, i) => {
this.createMeet(question, i)
})
}
createMeet(question, i) {
// 创建节点
let node = pg.view.clone(this.item_meat);
this.layout_meat.addChild(node)
// 刷新节点
this.updateItemMeet(node, question);
// 设定坐标
let pos = this.getMeetPosByI(i);
node.x = pos.x
node.y = pos.y
// 放入数组中便于引用
this.meetNodes.push(node);
return node;
}
visibleMeetList() {
this.meetNodes.forEach((item, i) => {
let content = pg.view.find(item, 'content');
content.active = (this.questions.length - i - 1) === this.current
})
}
// 左侧图片/文字 文字有多色高亮 文字默认颜色和高亮颜色都是不同的。
updateItemMeet(item, data) {
item.data = data;
item.active = true;
let img = pg.view.find(item, 'content/img');
if (data.meetType.indexOf('img') > -1) {
img.active = true;
pg.view.setNetImg(img, data.meetImage, { w: 330, h: 200 })
} else {
img.active = false;
}
let text = pg.view.find(item, 'content/text');
if (data.meetType.indexOf('text') > -1) {
text.active = true;
let str = this.getText(data.meetTextArr, `#F7D63A`, `#FFFFFF`);
text.getComponent(cc.RichText).string = str;
} else {
text.active = false;
}
item.on(cc.Node.EventType.TOUCH_START, this.onTouchMeetStart, this);
item.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMeetMove, this);
item.on(cc.Node.EventType.TOUCH_END, this.onTouchMeetEnd, this);
item.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchMeetEnd, this);
}
getMeetPosByI(i) {
let pos = cc.v2(SceneComponent.meetDefaultPos)
pos.y += i * SceneComponent.meetSpace.y;
return pos;
}
get meetCurrentNode() {
return this.meetNodes[this.questions.length - 1 - this.current]
}
meetCurrentTouchNode: cc.Node;
onTouchMeetStart(event) {
this.playLocalAudio('dragdown')
this.waitTime = 8;
if (this.guide == 1) return;
let node = event.target;
if (!node.data) node = node.parent;
if (!node || !node.data) return;
if (node.data.id != this.currentQuestion.id) return;
this.meetCurrentTouchNode = node;
node.cPos = cc.v2(node);
}
onTouchMeetMove(event) {
this.waitTime = 8;
if (this.guide == 1) return;
// 移动
let node = event.target;
if (!node.data) node = node.parent;
if (!node || !node.data) return;
if (node.data.id != this.currentQuestion.id) return;
if (node != this.meetCurrentTouchNode) return;
node.opacity = 255;
let delta = event.touch.getDelta();
let pos = cc.v2(delta);
node.x += pos.x;
node.y += pos.y;
}
onTouchMeetEnd(event) {
this.waitTime = 8;
if (this.guide == 1) return;
let node = event.target;
if (!node.data) node = node.parent;
if (!node || !node.data) return;
if (node.data.id != this.currentQuestion.id) return;
if (node != this.meetCurrentTouchNode) return;
this.hideGuide();
let x = node.x;
let y = node.y;
// 碰撞 成功落地
if (x < 200 && x > -200 && y < 200 && y > -200) {
// 成功
this.onMeetSuccess(node);
} else {
// 失败
this.onMeetFail(node);
}
}
onMeetSuccess(node) {
if (this.guide == 0) {
this.guide = 1;
this.showGuide();
pg.audio.playAudioByUrl(this.data.audioVegetable)
}
node.scale = 1.4;
node.x = this.successPos.x;
node.y = this.successPos.y;
this.meetCurrentTouchNode = null;
node.off(cc.Node.EventType.TOUCH_START, this.onTouchMeetStart, this);
node.off(cc.Node.EventType.TOUCH_MOVE, this.onTouchMeetMove, this);
node.off(cc.Node.EventType.TOUCH_END, this.onTouchMeetEnd, this);
node.off(cc.Node.EventType.TOUCH_CANCEL, this.onTouchMeetEnd, this);
node.parent = this.currentMain;
this.meetNodes.pop();
this.successArr.push(node);
if (this.successArr.length == 2) {
this.showPie();
}
}
onMeetFail(node) {
node.x = node.cPos.x;
node.y = node.cPos.y;
this.meetCurrentTouchNode = null;
}
//-------------------------------蔬菜区域---------------------------------
static vegetableDefaultPos: cc.Vec2 = cc.v2(660, 294);
static vegetableAngle: number = 30;
private vegetableNodes: Array<cc.Node>;
initLayoutVegetable() {
// 计算肉饼总数量
this.questions.concat([]).reverse().forEach((question, i) => {
this.createVegetable(question, i);
})
}
createVegetable(question, i) {
// 创建节点
let node = pg.view.clone(this.item_vegetables);
this.layout_vegetables.addChild(node)
// 刷新节点
this.updateItemVegetable(node, question);
// 设定坐标
node.x = SceneComponent.vegetableDefaultPos.x
node.y = SceneComponent.vegetableDefaultPos.y
// 设定旋转
node.angle = this.getVegetableAngleByI(i)
// 放入数组中便于引用
this.vegetableNodes.push(node);
return node;
}
visibleVegetableList() {
this.vegetableNodes.forEach((item, i) => {
let content = pg.view.find(item, 'content');
content.active = (this.questions.length - i - 1) === this.current
})
}
// 右侧文字高亮 右上角菜叶子我给了一个,但是你展示在右上角时,每一片都需要有5-10度的转动。
updateItemVegetable(item, data) {
item.data = data;
item.active = true;
let img = pg.view.find(item, 'content/img');
if (data.vegetableType.indexOf('img') > -1) {
img.active = true;
pg.view.setNetImg(img, data.vegetableImage, { w: 350, h: 220 })
} else {
img.active = false;
}
let text = pg.view.find(item, 'content/text');
if (data.vegetableType.indexOf('text') > -1) {
text.active = true;
let str = this.getText(data.vegetableTextArr, `#00580A`, `#3E8E2C`);
text.getComponent(cc.RichText).string = str;
} else {
text.active = false;
}
item.on(cc.Node.EventType.TOUCH_START, this.onTouchVegetableStart, this);
item.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchVegetableMove, this);
item.on(cc.Node.EventType.TOUCH_END, this.onTouchVegetableEnd, this);
item.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchVegetableEnd, this);
}
getVegetableAngleByI(i) {
let angle = SceneComponent.vegetableAngle * i
return angle;
}
get vegetableCurrentNode() {
return this.vegetableNodes[this.questions.length - 1 - this.current]
}
vegetableCurrentTouchNode: cc.Node;
onTouchVegetableStart(event) {
this.playLocalAudio('dragdown')
this.waitTime = 8;
if (this.guide == 0) return;
let node = event.target;
if (!node.data) node = node.parent;
if (!node || !node.data) return;
if (node.data.id != this.currentQuestion.id) return;
this.vegetableCurrentTouchNode = node;
node.cPos = cc.v2(node);
}
onTouchVegetableMove(event) {
this.waitTime = 8;
if (this.guide == 0) return;
// 移动
let node = event.target;
if (!node.data) node = node.parent;
if (!node || !node.data) return;
if (node.data.id != this.currentQuestion.id) return;
if (node != this.vegetableCurrentTouchNode) return;
node.opacity = 255;
let delta = event.touch.getDelta();
let pos = cc.v2(delta);
node.x += pos.x;
node.y += pos.y;
}
onTouchVegetableEnd(event) {
this.waitTime = 8;
if (this.guide == 0) return;
let node = event.target;
if (!node.data) node = node.parent;
if (!node || !node.data) return;
if (node.data.id != this.currentQuestion.id) return;
if (node != this.vegetableCurrentTouchNode) return;
this.hideGuide();
let x = node.x;
let y = node.y;
// 碰撞 成功落地
if (x < 200 && x > -200 && y < 200 && y > -200) {
// 成功
this.onVegetableSuccess(node);
} else {
// 失败
this.onVegetableFail(node);
}
}
onVegetableSuccess(node) {
if (this.guide == 1) this.guide = 2;
node.scale = 1.4;
node.x = this.successPos.x;
node.y = this.successPos.y;
this.vegetableCurrentTouchNode = null;
node.off(cc.Node.EventType.TOUCH_START, this.onTouchVegetableStart, this);
node.off(cc.Node.EventType.TOUCH_MOVE, this.onTouchVegetableMove, this);
node.off(cc.Node.EventType.TOUCH_END, this.onTouchVegetableEnd, this);
node.off(cc.Node.EventType.TOUCH_CANCEL, this.onTouchVegetableEnd, this);
node.parent = this.currentMain;
this.successArr.push(node);
this.vegetableNodes.pop();
if (this.successArr.length == 2) {
this.showPie();
}
}
onVegetableFail(node) {
node.x = node.cPos.x;
node.y = node.cPos.y;
this.vegetableCurrentTouchNode = null;
}
//-------------------------------派区域---------------------------------
// 5.上面掉下来一个面包片 炸星星 上面那个面包片掉下来之后,需要弹起一下再落下。
//面包片有图片+文字 或 文字
static pieDefaultPos: cc.Vec2 = cc.v2(48.822, 58.632);
static pieStartPos: cc.Vec2 = cc.v2(48.822, 693.308);
showPie() {
this.waitTime = 8;
this.scheduleOnce(() => {
let node = pg.view.clone(this.item_pie);
this.layout_pie.addChild(node)
node.x = SceneComponent.pieStartPos.x;
node.y = SceneComponent.pieStartPos.y;
this.updateItemPie(node, this.currentQuestion);
this.playLocalAudio('pie_drop')
cc.tween(node)
.to(0.5, { x: SceneComponent.pieDefaultPos.x, y: SceneComponent.pieDefaultPos.y - 50 })
.to(0.06, { x: SceneComponent.pieDefaultPos.x, y: SceneComponent.pieDefaultPos.y })
.call(() => {
this.playLocalAudio('boom')
let ani = pg.view.find(node, 'ani')
ani.active = true;
pg.view.playDBAnimation(ani, 'normal', 1)
node.parent = this.currentMain
}).delay(0.9).call(() => {
this.nextStage();
})
.start();
}, 0.2)
}
//标题刷新 标题如果不配置,就不显示那个黄色标题小标签。 三种情况 题干无、题干有、题干图片+文字 文字默认颜色和高亮颜色都是不同的。超框体缩字。
updateItemPie(item, data) {
item.data = data;
item.active = true;
let img = pg.view.find(item, 'img');
if (data.pieType.indexOf('img') > -1) {
img.active = true;
pg.view.setNetImg(img, data.pieImage, { w: 300, h: 200 })
} else {
img.active = false;
}
let img_text = pg.view.find(item, 'img_text');
if (data.pieType == 'img_text') {
img_text.active = true;
let str = this.getText(data.pieTextArr, `#AF5725`, `#00580A`);
img_text.getComponent(cc.RichText).string = str;
} else {
img_text.active = false;
}
let text = pg.view.find(item, 'text');
if (data.pieType == 'text') {
text.active = true;
let str = this.getText(data.pieTextArr, `#AF5725`, `#00580A`);
text.getComponent(cc.RichText).string = str;
} else {
text.active = false;
}
}
//-------------------------------中间区域---------------------------------
static mainDefaultPos: cc.Vec2 = cc.v2(0, 0);
static mainStartPos: cc.Vec2 = cc.v2(0, 1000);
private currentMain: cc.Node;
initLayoutMain() {
// init必定是第一个
let node = this.createItemMain(this.currentQuestion);
node.x = SceneComponent.mainDefaultPos.x;
node.y = SceneComponent.mainDefaultPos.y;
this.currentMain = node;
}
nextLayoutMain(data) {
let node = this.createItemMain(data);
node.x = SceneComponent.mainStartPos.x;
node.y = SceneComponent.mainStartPos.y;
cc.tween(node).to(0.3, { x: SceneComponent.mainDefaultPos.x, y: SceneComponent.mainDefaultPos.y }).start();
return node;
}
createItemMain(data) {
//item_main
let node = pg.view.clone(this.item_main);
this.layout_main.addChild(node)
this.updateItemMain(node, data);
return node;
}
//标题刷新 标题如果不配置,就不显示那个黄色标题小标签。 三种情况 题干无、题干有、题干图片+文字 文字默认颜色和高亮颜色都是不同的。超框体缩字。
updateItemMain(item, data) {
item.data = data;
item.active = true;
let img = pg.view.find(item, 'img');
if (data.mainType.indexOf('img') > -1) {
img.active = true;
pg.view.setNetImg(img, data.mainImage, { w: 300, h: 200 })
} else {
img.active = false;
}
let text = pg.view.find(item, 'text');
if (data.mainType.indexOf('text') > -1) {
text.active = true;
let str = this.getText(data.mainTextArr, `#AF5725`, `#00580A`);
text.getComponent(cc.RichText).string = str;
} else {
text.active = false;
}
let bg_title = pg.view.find(item, 'bg_title');
bg_title.active = !!data.title
pg.view.setString(pg.view.find(bg_title, 'label'), data.title);
}
//----------------------------------通用部分-----------------------------------
getText(list, colorNormal, colorLight) {
// 列表处理
let str = "";
for (let i = 0; i < list.length; i++) {
let li = list[i];
let s = "";
if (li.block) {
s = `<color=${colorLight}> ${li.text} </c>`
} else {
s = `<color=${colorNormal}> ${li.text} </c>`
}
str += s;
}
return str;
}
// ----------------------------------题目切换---------------------------------
// 下一题刷新选项
nextStage() {
if (!this.nextQuestion) {
this.gameOver();
return
}
this.waitTime = 8;
this.hideGuide();
// 两边丢弃
this.discardCurrent();
// 中间移出
cc.tween(this.currentMain).by(0.3, { y: -1800 }).start();
this.playLocalAudio('nextgame')
// 中间移入
let node = this.nextLayoutMain(this.nextQuestion);
// 切换题目主体
this.current += 1;
this.successArr = [];
//
this.currentMain = node;
this.visibleMeetList();
this.visibleVegetableList();
this.updateBtns();
}
lastStage() {
this.waitTime = 8;
this.hideGuide();
// 先把当前的还原
this.resetCurrent();
// 两边放入
this.createCurrent();
// 中间移出
cc.tween(this.currentMain).by(1, { y: -1800 }).start();
this.playLocalAudio('nextgame')
// 中间移入
let node = this.nextLayoutMain(this.preQuestion);
// 切换题目主体
this.current -= 1;
this.successArr = [];
// 事件监听
initEvent() {
this.currentMain = node;
this.visibleMeetList();
this.visibleVegetableList();
this.updateBtns();
}
discardCurrent() {
if (this.meetCurrentNode) {
this.meetCurrentNode.parent = this.currentMain
this.meetNodes.pop();
}
if (this.vegetableCurrentNode) {
this.vegetableCurrentNode.parent = this.currentMain
this.vegetableNodes.pop();
}
}
resetCurrent() {
let lastId = this.current;
let questionId = this.questions.length - 1 - lastId;
if (!this.meetCurrentNode) {
let meet = this.createMeet(this.preQuestion, questionId)
// let tPosMeet = cc.v2(meet);
// meet.y += 1000
// cc.tween(meet).to(1, { x: tPosMeet.x, y: tPosMeet.y - 30 }).to(0.1, { y: tPosMeet.y }).start()
}
if (!this.vegetableCurrentNode) {
let vegetable = this.createVegetable(this.preQuestion, questionId)
// let tPosVegetable = cc.v2(vegetable);
// vegetable.y += 1000
// cc.tween(vegetable).to(1, { x: tPosVegetable.x, y: tPosVegetable.y - 30 }).to(0.1, { y: tPosVegetable.y }).start()
}
}
createCurrent() {
// 创建两侧内容
let lastId = this.current - 1;
let questionId = this.questions.length - 1 - lastId;
let meet = this.createMeet(this.preQuestion, questionId)
let tPosMeet = cc.v2(meet);
meet.y += 1000
cc.tween(meet).to(1, { x: tPosMeet.x, y: tPosMeet.y - 30 }).to(0.1, { y: tPosMeet.y }).start()
let vegetable = this.createVegetable(this.preQuestion, questionId)
let tPosVegetable = cc.v2(vegetable);
vegetable.y += 1000
cc.tween(vegetable).to(1, { x: tPosVegetable.x, y: tPosVegetable.y - 30 }).to(0.1, { y: tPosVegetable.y }).start()
}
//-----------------------------------翻页部分------------------------------------
updateBtns() {
let layout_btn = pg.view.find(this, 'layout_btn');
let btn_left = pg.view.find(layout_btn, 'btn_left');
let btn_right = pg.view.find(layout_btn, 'btn_right');
let img_left = pg.view.find(layout_btn, 'img_left');
let img_right = pg.view.find(layout_btn, 'img_right');
btn_left.active = !!this.preQuestion
img_left.active = !this.preQuestion
btn_right.active = !!this.nextQuestion
img_right.active = !this.nextQuestion
// 初始化游戏
initGame() {
this.updateCanvas();
}
// 用户点击下一页, 面包移出画面。 当不做题的时候点击。面包向下移出,蔬菜和肉饼乡下移动回来。
onTouchNext() {
if (this.guide < 2) return;
// 前往下一页
this.nextStage();
}
// 往前翻,向下移动上面下来一个新的内容。 天上掉落内容。
onTouchLast() {
if (this.guide < 2) return;
//
this.lastStage();
@property(cc.Node) layout_canvas: cc.Node = null;
updateCanvas() {
let img = pg.view.find(this.layout_canvas, 'img');
pg.view.setNetImg(img, this.currentQuestion.bgItem.url, { w: 1220, h: 790 })
}
//-----------------------------------引导部分------------------------------------
// 先引导左边肉饼, 再引导菜叶子 引导动画虽然有顺序,但是用户第一题跟随引导完,自己做其他题时候拖拽顺序不被限制。
// 停留时间8s以上,手指提示拖拽。
private guide: number;
initGuide() {
this.guide = 0;
this.showGuide();
pg.audio.playAudioByUrl(this.data.audioMeet)
}
showGuide() {
if (this.guide == 0) {
this.showGuideLeft();
} else if (this.guide == 1) {
this.showGuideRight();
} else {
if (!this.successArr.length) {
this.showGuideLeft();
} else if (this.meetNodes.length >= this.vegetableNodes.length) {
this.showGuideLeft();
} else {
this.showGuideRight();
}
}
}
hideGuide() {
let layout_tip = pg.view.find(this, 'layout_tip');
let line_left = pg.view.find(layout_tip, 'line_left');
let line_right = pg.view.find(layout_tip, 'line_right');
line_left.active = false;
line_right.active = false;
}
showGuideLeft() {
let layout_tip = pg.view.find(this, 'layout_tip');
let line_left = pg.view.find(layout_tip, 'line_left');
if (line_left.active) return;
this.showGuideReal('left')
let finger = pg.view.find(line_left, 'finger');
cc.tween(finger).repeatForever(
cc.tween().call(() => {
finger.x = 310
finger.y = 55
}).to(0.8, { x: -45, y: -210 })
).start();
}
showGuideRight() {
let layout_tip = pg.view.find(this, 'layout_tip');
let line_right = pg.view.find(layout_tip, 'line_right');
if (line_right.active) return;
this.showGuideReal('right')
let finger = pg.view.find(line_right, 'finger');
cc.tween(finger).repeatForever(
cc.tween().call(() => {
finger.x = 390
finger.y = 95
}).to(0.8, { x: -90, y: -240 })
).start();
}
showGuideReal(type) {
let layout_tip = pg.view.find(this, 'layout_tip');
let line_left = pg.view.find(layout_tip, 'line_left');
let line_right = pg.view.find(layout_tip, 'line_right');
line_left.active = type == 'left';
line_right.active = type == 'right';
}
private waitTime: number;
......@@ -704,7 +80,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.waitTime -= dt;
if (this.waitTime < 0) {
this.waitTime = 8
this.showGuide();
}
}
......@@ -745,6 +120,22 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
private changepoints(data) {
let scX = 1560 / data.bgItem.rect.width;
let scY = 720 / data.bgItem.rect.height;
let px = data.bgItem.rect.x;
let py = data.bgItem.rect.y;
let pointsArr = [];
let arr = [];
data.hotZoneItemArr.forEach((item, idx) => {
let p = item.rect;
arr[idx] = {
x: (p.x + (p.width / 2)) * scX,// - px
y: -((p.y + (p.height / 2)) * scY)// - py
}
})
pointsArr = arr.concat();
}
playLocalAudio(audioName) {
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
return new Promise((resolve, reject) => {
......
import { defaultData } from "../script/defaultData_dg21_danci";
import { defaultData } from "../script/defaultData_dg28_drag";
export class MyCocosSceneComponent extends cc.Component {
......
export const defaultData =
{"npcTitle":"exit","npcAudio":"http://staging-teach.cdn.ireadabc.com/5f4e4c72671607bb35d1ecd1d291f238_l.mp3","npcAudioName":"boom_dg28_drag.mp3","npcAudioEnd":"http://staging-teach.cdn.ireadabc.com/289fe0a6d9893519c3fb5993b86b6fe9_l.mp3","npcAudioEndName":"dragdown_dg28_drag.mp3","questions":[{"options":[{"audio":"","hotZoneItemArr":[],"bgItem":"","right":false},{"audio":"","hotZoneItemArr":[],"bgItem":"","right":false},{"audio":"","hotZoneItemArr":[],"bgItem":"","right":false}],"type":"img","bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/b4494456199505bdf990fff96a0c9fb8.jpg","rect":{"x":17.111111111111086,"y":0,"width":1057.7777777777778,"height":595}},"hotZoneItemArr":[{"index":0,"text":"part1","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.853125,"imgScale":1,"mapScale":0.853125,"rect":{"x":435.89,"y":190.5,"width":200,"height":200}},{"index":1,"text":"part2","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.853125,"imgScale":1,"mapScale":0.853125,"rect":{"x":-19.11,"y":-59.5,"width":200,"height":200}},{"index":2,"text":"part3","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.853125,"imgScale":1,"mapScale":0.853125,"rect":{"x":889.89,"y":-48.5,"width":200,"height":200}},{"index":3,"text":"part4","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.853125,"imgScale":1,"mapScale":0.853125,"rect":{"x":-27.11,"y":452.5,"width":200,"height":200}},{"index":4,"text":"part5","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.853125,"imgScale":1,"mapScale":0.853125,"rect":{"x":883.89,"y":460.5,"width":200,"height":200}},{"index":5,"text":"part6","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.853125,"imgScale":1,"mapScale":0.853125,"rect":{"x":469.89,"y":-70.5,"width":200,"height":200}},{"index":6,"pic_url":"http://staging-teach.cdn.ireadabc.com/be8ec5cee7a3074440478b00a4a84f5e.png","itemType":"pic","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.853125,"imgScale":0.44287909836065575,"mapScale":0.853125,"rect":{"x":6.89,"y":79.5,"width":200,"height":200}},{"index":7,"pic_url":"http://staging-teach.cdn.ireadabc.com/a5d393ae3c9759211c441f8d3fc69e04.png","itemType":"pic","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.853125,"imgScale":1.1256510416666667,"mapScale":0.853125,"rect":{"x":870.89,"y":294.5,"width":200,"height":200}}],"hotZoneFontObj":{"size":50,"name":"BRLNSR_1","color":"#8f3758"}},{"options":[],"type":"img","bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/9ecda2ef223dfc255a17522110fc7ee2.png","rect":{"x":152.03542234332423,"y":0,"width":787.9291553133515,"height":595}},"hotZoneItemArr":[{"index":0,"text":"test1","itemType":"text","fontSize":"40","fontName":"BRLNSR_1","fontColor":"#FF0000","fontScale":0.853125,"imgScale":1,"mapScale":0.853125,"rect":{"x":166.96,"y":0.5,"width":200,"height":200}},{"index":1,"text":"test2","itemType":"text","fontSize":"40","fontName":"BRLNSR_1","fontColor":"#FF0000","fontScale":0.853125,"imgScale":1,"mapScale":0.853125,"rect":{"x":343.96,"y":335.5,"width":200,"height":200}}],"hotZoneFontObj":{"size":"40","name":"BRLNSR_1","color":"#FF0000"}}],"bgItem":"","hotZoneItemArr":[]}
\ No newline at end of file
export const defaultData =
{
"npcTitle": "exit",
"npcAudio": "http://staging-teach.cdn.ireadabc.com/5f4e4c72671607bb35d1ecd1d291f238_l.mp3",
"npcAudioName": "boom_dg28_drag.mp3",
"npcAudioEnd": "http://staging-teach.cdn.ireadabc.com/289fe0a6d9893519c3fb5993b86b6fe9_l.mp3",
"npcAudioEndName": "dragdown_dg28_drag.mp3",
"questions": [
{
"options": [
{
"audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false
}, {
"audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false
}, {
"audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false
}
],
"type": "img",
"bgItem": {
"url": "http://staging-teach.cdn.ireadabc.com/b4494456199505bdf990fff96a0c9fb8.jpg",
"rect": {
"x": 17.111111111111086,
"y": 0,
"width": 1057.7777777777778,
"height": 595
}
},
"hotZoneItemArr": [
{
"index": 0, "text": "part1", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 435.89, "y": 190.5, "width": 200, "height": 200 }
}, {
"index": 1, "text": "part2", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": -19.11, "y": -59.5, "width": 200, "height": 200 }
}, {
"index": 2, "text": "part3", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 889.89, "y": -48.5, "width": 200, "height": 200 }
}, {
"index": 3, "text": "part4", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": -27.11, "y": 452.5, "width": 200, "height": 200 }
}, {
"index": 4, "text": "part5", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 883.89, "y": 460.5, "width": 200, "height": 200 }
}, {
"index": 5, "text": "part6", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 469.89, "y": -70.5, "width": 200, "height": 200 }
}, {
"index": 6, "pic_url": "http://staging-teach.cdn.ireadabc.com/be8ec5cee7a3074440478b00a4a84f5e.png", "itemType": "pic", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 0.44287909836065575, "mapScale": 0.853125, "rect": { "x": 6.89, "y": 79.5, "width": 200, "height": 200 }
}, {
"index": 7, "pic_url": "http://staging-teach.cdn.ireadabc.com/a5d393ae3c9759211c441f8d3fc69e04.png", "itemType": "pic", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1.1256510416666667, "mapScale": 0.853125, "rect": { "x": 870.89, "y": 294.5, "width": 200, "height": 200 }
}],
"hotZoneFontObj": {
"size": 50,
"name": "BRLNSR_1",
"color": "#8f3758"
}
}, {
"options": [],
"type": "img",
"bgItem": {
"url": "http://staging-teach.cdn.ireadabc.com/9ecda2ef223dfc255a17522110fc7ee2.png",
"rect": {
"x": 152.03542234332423,
"y": 0,
"width": 787.9291553133515,
"height": 595
}
},
"hotZoneItemArr": [
{
"index": 0, "text": "test1", "itemType": "text", "fontSize": "40", "fontName": "BRLNSR_1", "fontColor": "#FF0000", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 166.96, "y": 0.5, "width": 200, "height": 200 }
}, {
"index": 1, "text": "test2", "itemType": "text", "fontSize": "40", "fontName": "BRLNSR_1", "fontColor": "#FF0000", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 343.96, "y": 335.5, "width": 200, "height": 200 }
}],
"hotZoneFontObj": {
"size": "40", "name": "BRLNSR_1", "color": "#FF0000"
}
}],
"bgItem": "",
"hotZoneItemArr": []
}
\ No newline at end of file
assets/dg18_danci/textures/view.png

1.04 MB | W: | H:

assets/dg18_danci/textures/view.png

1.21 MB | W: | H:

assets/dg18_danci/textures/view.png
assets/dg18_danci/textures/view.png
assets/dg18_danci/textures/view.png
assets/dg18_danci/textures/view.png
  • 2-up
  • Swipe
  • Onion skin
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