Commit 61c69f2b by william

feat: add slider images at index page

parent 6bcf80b4
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
"_children": [ "_children": [
{ {
"__id__": 2 "__id__": 2
},
{
"__id__": 93
} }
], ],
"_tag": -1, "_tag": -1,
...@@ -62,35 +65,35 @@ ...@@ -62,35 +65,35 @@
"__id__": 5 "__id__": 5
}, },
{ {
"__id__": 15 "__id__": 7
}, },
{ {
"__id__": 17 "__id__": 26
}, },
{ {
"__id__": 18 "__id__": 32
}, },
{ {
"__id__": 19 "__id__": 33
}, },
{ {
"__id__": 24 "__id__": 49
}, },
{ {
"__id__": 27 "__id__": 52
}, },
{ {
"__id__": 28 "__id__": 70
} }
], ],
"_tag": -1, "_tag": -1,
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 29 "__id__": 90
}, },
{ {
"__id__": 30 "__id__": 91
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -112,7 +115,7 @@ ...@@ -112,7 +115,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 375, "width": 375,
"height": 750 "height": 667
}, },
"_rotationX": 0, "_rotationX": 0,
"_rotationY": 0, "_rotationY": 0,
...@@ -121,7 +124,7 @@ ...@@ -121,7 +124,7 @@
"_position": { "_position": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 187.5, "x": 187.5,
"y": 375 "y": 333.5
}, },
"_skewX": 0, "_skewX": 0,
"_skewY": 0, "_skewY": 0,
...@@ -172,8 +175,8 @@ ...@@ -172,8 +175,8 @@
"_scaleY": 1, "_scaleY": 1,
"_position": { "_position": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 6,
"y": 0 "y": -8
}, },
"_skewX": 0, "_skewX": 0,
"_skewY": 0, "_skewY": 0,
...@@ -210,24 +213,105 @@ ...@@ -210,24 +213,105 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "index", "_name": "classroom",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [ "_children": [],
"_tag": -1,
"_active": false,
"_components": [
{ {
"__id__": 6 "__id__": 6
}
],
"_prefab": null,
"_id": "94L4bcTuxIdIRleEjwpuiZ",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 375,
"height": 543
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": -64
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
}, },
{ {
"__id__": 11 "__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "f591fb94-46c8-48d7-8734-08b854cf1cf9"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": false,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Node",
"_name": "index",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 8
}, },
{ {
"__id__": 13 "__id__": 13
},
{
"__id__": 15
},
{
"__id__": 16
} }
], ],
"_tag": -1, "_tag": -1,
"_active": false, "_active": true,
"_components": [], "_components": [],
"_prefab": null, "_prefab": null,
"_id": "11Whf+9qZFC6iWPyh0zx07", "_id": "11Whf+9qZFC6iWPyh0zx07",
...@@ -247,8 +331,8 @@ ...@@ -247,8 +331,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 375,
"height": 0 "height": 750
}, },
"_rotationX": 0, "_rotationX": 0,
"_rotationY": 0, "_rotationY": 0,
...@@ -271,21 +355,21 @@ ...@@ -271,21 +355,21 @@
"_name": "start_btn", "_name": "start_btn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 5 "__id__": 7
}, },
"_children": [ "_children": [
{ {
"__id__": 7 "__id__": 9
} }
], ],
"_tag": -1, "_tag": -1,
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 9 "__id__": 11
}, },
{ {
"__id__": 10 "__id__": 12
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -330,14 +414,14 @@ ...@@ -330,14 +414,14 @@
"_name": "Start", "_name": "Start",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 6 "__id__": 8
}, },
"_children": [], "_children": [],
"_tag": -1, "_tag": -1,
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 8 "__id__": 10
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -382,7 +466,7 @@ ...@@ -382,7 +466,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 7 "__id__": 9
}, },
"_enabled": true, "_enabled": true,
"isOpenGame": false "isOpenGame": false
...@@ -392,7 +476,7 @@ ...@@ -392,7 +476,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 6 "__id__": 8
}, },
"_enabled": true, "_enabled": true,
"_spriteFrame": { "_spriteFrame": {
...@@ -418,34 +502,34 @@ ...@@ -418,34 +502,34 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 6 "__id__": 8
}, },
"_enabled": true, "_enabled": true,
"isOpenGame": false "isOpenGame": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "subtitle", "_name": "logo",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 5 "__id__": 7
}, },
"_children": [], "_children": [],
"_tag": -1, "_tag": -1,
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 12 "__id__": 14
} }
], ],
"_prefab": null, "_prefab": null,
"_id": "71kSDoZslK+qnciDr+46zc", "_id": "d6B3OYIbdA0oKVBARBzlsD",
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 0, "r": 255,
"g": 0, "g": 255,
"b": 0, "b": 255,
"a": 255 "a": 255
}, },
"_cascadeOpacityEnabled": true, "_cascadeOpacityEnabled": true,
...@@ -456,17 +540,17 @@ ...@@ -456,17 +540,17 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 160, "width": 332,
"height": 120 "height": 110
}, },
"_rotationX": 0, "_rotationX": 0,
"_rotationY": 0, "_rotationY": 0,
"_scaleX": 1, "_scaleX": 0.6,
"_scaleY": 1, "_scaleY": 0.6,
"_position": { "_position": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 2, "x": -3,
"y": 75 "y": 214
}, },
"_skewX": 0, "_skewX": 0,
"_skewY": 0, "_skewY": 0,
...@@ -476,44 +560,44 @@ ...@@ -476,44 +560,44 @@
"groupIndex": 0 "groupIndex": 0
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 13
}, },
"_enabled": true, "_enabled": true,
"_useOriginalSize": false, "_spriteFrame": {
"_actualFontSize": 20, "__uuid__": "26869b11-f810-4bbe-994e-793228a11892"
"_fontSize": 20, },
"_lineHeight": 40, "_type": 0,
"_enableWrapText": true, "_sizeMode": 0,
"_N$file": null, "_fillType": 0,
"_isSystemFontUsed": true, "_fillCenter": {
"_spacingX": 0, "__type__": "cc.Vec2",
"_N$string": "点击屏幕开始撩妹\n在下课前快速撩妹\n避免被老师发现", "x": 0,
"_N$horizontalAlign": 1, "y": 0
"_N$verticalAlign": 1, },
"_N$fontFamily": "Arial", "_fillStart": 0,
"_N$overflow": 0 "_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "logo", "_name": "spec",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 5 "__id__": 7
}, },
"_children": [], "_children": [],
"_tag": -1, "_tag": -1,
"_active": true, "_active": true,
"_components": [ "_components": [],
{
"__id__": 14
}
],
"_prefab": null, "_prefab": null,
"_id": "d6B3OYIbdA0oKVBARBzlsD", "_id": "72MxmRAUBDAr9h3ZlHM/EX",
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -525,18 +609,18 @@ ...@@ -525,18 +609,18 @@
"_cascadeOpacityEnabled": true, "_cascadeOpacityEnabled": true,
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.47762530211413157, "x": 0.5,
"y": -2.3276772817033287 "y": 0.5
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 332, "width": 0,
"height": 110 "height": 0
}, },
"_rotationX": 0, "_rotationX": 0,
"_rotationY": 0, "_rotationY": 0,
"_scaleX": 0.6, "_scaleX": 1,
"_scaleY": 0.6, "_scaleY": 1,
"_position": { "_position": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0,
...@@ -550,48 +634,38 @@ ...@@ -550,48 +634,38 @@
"groupIndex": 0 "groupIndex": 0
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Node",
"_name": "", "_name": "sliderPanel",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 13 "__id__": 7
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "26869b11-f810-4bbe-994e-793228a11892"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
}, },
"_fillStart": 0, "_children": [
"_fillRange": 0, {
"_isTrimmedMode": true, "__id__": 17
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
}, },
{ {
"__type__": "cc.Node", "__id__": 19
"_name": "classroom",
"_objFlags": 0,
"_parent": {
"__id__": 2
}, },
"_children": [], {
"__id__": 21
}
],
"_tag": -1, "_tag": -1,
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 16 "__id__": 23
},
{
"__id__": 24
},
{
"__id__": 25
} }
], ],
"_prefab": null, "_prefab": null,
"_id": "09EzHWUxdBmJlkWjuuPfMN", "_id": "7cuvehax1I7q9S3d7qPbhH",
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -603,13 +677,13 @@ ...@@ -603,13 +677,13 @@
"_cascadeOpacityEnabled": true, "_cascadeOpacityEnabled": true,
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.4999999999999997,
"y": 0.5 "y": 0.5248972027567038
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 375, "width": 343,
"height": 600 "height": 155
}, },
"_rotationX": 0, "_rotationX": 0,
"_rotationY": 0, "_rotationY": 0,
...@@ -618,7 +692,7 @@ ...@@ -618,7 +692,7 @@
"_position": { "_position": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0,
"y": -75 "y": 0
}, },
"_skewX": 0, "_skewX": 0,
"_skewY": 0, "_skewY": 0,
...@@ -628,44 +702,22 @@ ...@@ -628,44 +702,22 @@
"groupIndex": 0 "groupIndex": 0
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Node",
"_name": "", "_name": "slider3",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 15 "__id__": 16
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "1b29ad23-8777-436b-a7aa-5c7869ce1389"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Node",
"_name": "teacher",
"_objFlags": 0,
"_parent": {
"__id__": 2
}, },
"_children": [], "_children": [],
"_tag": -1, "_tag": -1,
"_active": true, "_active": true,
"_components": [], "_components": [
{
"__id__": 18
}
],
"_prefab": null, "_prefab": null,
"_id": "67K6Y1EOVDuJEJ6kufn8TI", "_id": "48lWZw7hBFTZ76kBMRaOaX",
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -682,16 +734,16 @@ ...@@ -682,16 +734,16 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 685,
"height": 0 "height": 311
}, },
"_rotationX": 0, "_rotationX": 0,
"_rotationY": 0, "_rotationY": 0,
"_scaleX": 1, "_scaleX": 0.5,
"_scaleY": 1, "_scaleY": 0.5,
"_position": { "_position": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 343,
"y": 0 "y": 0
}, },
"_skewX": 0, "_skewX": 0,
...@@ -702,18 +754,48 @@ ...@@ -702,18 +754,48 @@
"groupIndex": 0 "groupIndex": 0
}, },
{ {
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "f4f49579-65f6-4f9f-abef-74f31468e7d5"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "student", "_name": "slider2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 16
}, },
"_children": [], "_children": [],
"_tag": -1, "_tag": -1,
"_active": true, "_active": true,
"_components": [], "_components": [
{
"__id__": 20
}
],
"_prefab": null, "_prefab": null,
"_id": "797uGBCXpALbTmcH0WGjHM", "_id": "1f1LKL2U5Nw4pBw+Z7+deF",
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -730,16 +812,16 @@ ...@@ -730,16 +812,16 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 685,
"height": 0 "height": 311
}, },
"_rotationX": 0, "_rotationX": 0,
"_rotationY": 0, "_rotationY": 0,
"_scaleX": 1, "_scaleX": 0.5,
"_scaleY": 1, "_scaleY": 0.5,
"_position": { "_position": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 343,
"y": 0 "y": 0
}, },
"_skewX": 0, "_skewX": 0,
...@@ -750,28 +832,48 @@ ...@@ -750,28 +832,48 @@
"groupIndex": 0 "groupIndex": 0
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Sprite",
"_name": "board", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "node": {
"__id__": 2 "__id__": 19
}, },
"_children": [ "_enabled": true,
{ "_spriteFrame": {
"__id__": 20 "__uuid__": "f409b697-49a0-46d5-9077-8e11bf45a204"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
}, },
{ {
"__id__": 21 "__type__": "cc.Node",
"_name": "slider1",
"_objFlags": 0,
"_parent": {
"__id__": 16
}, },
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{ {
"__id__": 22 "__id__": 22
} }
], ],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": null, "_prefab": null,
"_id": "b6UhBzM8tC8qOPuU1bO60n", "_id": "42g7Yl1Q5JxqjR0OCd0euF",
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -788,13 +890,13 @@ ...@@ -788,13 +890,13 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 685,
"height": 0 "height": 311
}, },
"_rotationX": 0, "_rotationX": 0,
"_rotationY": 0, "_rotationY": 0,
"_scaleX": 1, "_scaleX": 0.5,
"_scaleY": 1, "_scaleY": 0.5,
"_position": { "_position": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0,
...@@ -808,18 +910,97 @@ ...@@ -808,18 +910,97 @@
"groupIndex": 0 "groupIndex": 0
}, },
{ {
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "6ba718e6-8958-40cf-8686-358a6f812baa"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_type": 0,
"_segements": 64,
"_N$spriteFrame": null,
"_N$alphaThreshold": 1,
"_N$inverted": false
},
{
"__type__": "729abdON3JFXqpKBchOOYfX",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"isOpenGame": false
},
{
"__type__": "818dac8WKVDPJ63bvn9kfx8",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"slider1": {
"__id__": 21
},
"slider2": {
"__id__": 19
},
"slider3": {
"__id__": 17
}
},
{
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "timer", "_name": "teacher",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 19 "__id__": 2
}, },
"_children": [], "_children": [
{
"__id__": 27
},
{
"__id__": 29
}
],
"_tag": -1, "_tag": -1,
"_active": true, "_active": false,
"_components": [], "_components": [
{
"__id__": 31
}
],
"_prefab": null, "_prefab": null,
"_id": "72oI+QL4FHkLRzPjbmVAKC", "_id": "67K6Y1EOVDuJEJ6kufn8TI",
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -845,8 +1026,8 @@ ...@@ -845,8 +1026,8 @@
"_scaleY": 1, "_scaleY": 1,
"_position": { "_position": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": -259,
"y": 0 "y": 147
}, },
"_skewX": 0, "_skewX": 0,
"_skewY": 0, "_skewY": 0,
...@@ -857,17 +1038,21 @@ ...@@ -857,17 +1038,21 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "life", "_name": "big_head",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 19 "__id__": 26
}, },
"_children": [], "_children": [],
"_tag": -1, "_tag": -1,
"_active": true, "_active": true,
"_components": [], "_components": [
{
"__id__": 28
}
],
"_prefab": null, "_prefab": null,
"_id": "bdSU9wyDZNh7HtK8tnUXyL", "_id": "86ETxMK7RIpblbOvw3Jlsc",
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -884,13 +1069,13 @@ ...@@ -884,13 +1069,13 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 136,
"height": 0 "height": 387
}, },
"_rotationX": 0, "_rotationX": 0,
"_rotationY": 0, "_rotationY": 0,
"_scaleX": 1, "_scaleX": 0.5,
"_scaleY": 1, "_scaleY": 0.5,
"_position": { "_position": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0,
...@@ -904,22 +1089,48 @@ ...@@ -904,22 +1089,48 @@
"groupIndex": 0 "groupIndex": 0
}, },
{ {
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "09d89bc6-37a2-46c9-9a55-020b4eb52067"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "score", "_name": "coming",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 19 "__id__": 26
}, },
"_children": [], "_children": [],
"_tag": -1, "_tag": -1,
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 23 "__id__": 30
} }
], ],
"_prefab": null, "_prefab": null,
"_id": "b1uW/e8tpKs59VVZbffaZS", "_id": "00UJM5Q2VHs51Ic6ECKqsP",
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -936,16 +1147,16 @@ ...@@ -936,16 +1147,16 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 317,
"height": 0 "height": 235
}, },
"_rotationX": 0, "_rotationX": 0,
"_rotationY": 0, "_rotationY": 0,
"_scaleX": 1, "_scaleX": 0.5,
"_scaleY": 1, "_scaleY": 0.5,
"_position": { "_position": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": -47,
"y": 0 "y": 0
}, },
"_skewX": 0, "_skewX": 0,
...@@ -960,10 +1171,12 @@ ...@@ -960,10 +1171,12 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 22 "__id__": 29
}, },
"_enabled": true, "_enabled": true,
"_spriteFrame": null, "_spriteFrame": {
"__uuid__": "4dc33e6a-f362-45a9-ba81-09b423a784cd"
},
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
"_fillType": 0, "_fillType": 0,
...@@ -980,52 +1193,2127 @@ ...@@ -980,52 +1193,2127 @@
"_atlas": null "_atlas": null
}, },
{ {
"__type__": "cc.Node", "__type__": "7ddb2dyGexMPL9N4moJYFg4",
"_name": "hand", "_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
},
"_enabled": true,
"game": null,
"bigHead": {
"__id__": 27
},
"coming": {
"__id__": 29
}
},
{
"__type__": "cc.Node",
"_name": "student",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": null,
"_id": "797uGBCXpALbTmcH0WGjHM",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "board",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 34
},
{
"__id__": 39
},
{
"__id__": 44
}
],
"_tag": -1,
"_active": false,
"_components": [],
"_prefab": null,
"_id": "b6UhBzM8tC8qOPuU1bO60n",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": -30
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "timer",
"_objFlags": 0,
"_parent": {
"__id__": 33
},
"_children": [
{
"__id__": 35
},
{
"__id__": 37
}
],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": null,
"_id": "72oI+QL4FHkLRzPjbmVAKC",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "icon-clock",
"_objFlags": 0,
"_parent": {
"__id__": 34
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 36
}
],
"_prefab": null,
"_id": "deXc31eDVCZo9MvZZ844dL",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": -150,
"y": 296
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "3a67a3d3-9dc3-4a7d-81d0-ecbe373d913e"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Node",
"_name": "tip",
"_objFlags": 0,
"_parent": {
"__id__": 34
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 38
}
],
"_prefab": null,
"_id": "c8zMwQKq5HjJvw8NqQBrVG",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 84,
"height": 40
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": -65,
"y": 311
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 14,
"_fontSize": 14,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "距离下课时间",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0
},
{
"__type__": "cc.Node",
"_name": "score",
"_objFlags": 0,
"_parent": {
"__id__": 33
},
"_children": [
{
"__id__": 40
},
{
"__id__": 42
}
],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": null,
"_id": "91m1cv1EdIX4yug893AJz7",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 26
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "icon-points",
"_objFlags": 0,
"_parent": {
"__id__": 39
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 41
}
],
"_prefab": null,
"_id": "44Ol6rpilNKoOL1g5b7MSn",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 86,
"height": 86
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": -131,
"y": -265
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 40
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "29ceedec-bce6-4b8e-b3ac-7f6caba37028"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Node",
"_name": "number",
"_objFlags": 0,
"_parent": {
"__id__": 39
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 43
}
],
"_prefab": null,
"_id": "aaEEUbHJZIEo3BGi4q50y5",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 14,
"height": 40
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": -131,
"y": -280
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 26,
"_fontSize": 26,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "0",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0
},
{
"__type__": "cc.Node",
"_name": "level",
"_objFlags": 0,
"_parent": {
"__id__": 33
},
"_children": [
{
"__id__": 45
}
],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 47
},
{
"__id__": 48
}
],
"_prefab": null,
"_id": "15XhkBE11JnJsxsEnJRT8e",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 253,
"g": 247,
"b": 248,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.0019445215964414156,
"y": 0.5252747309574319
},
"_contentSize": {
"__type__": "cc.Size",
"width": 140,
"height": 10
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": -106,
"y": 286
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__": 44
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 46
}
],
"_prefab": null,
"_id": "deaPYhJC5OfJxPycDf38Po",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 58,
"g": 235,
"b": 14,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 140,
"height": 9
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": -0.3
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "67e68bc9-dad5-4ad9-a2d8-7e03d458e32f"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "88e79fd5-96b4-4a77-a1f4-312467171014"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.ProgressBar",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
},
"_enabled": true,
"_N$totalLength": 140,
"_N$barSprite": {
"__id__": 46
},
"_N$mode": 0,
"_N$progress": 1,
"_N$reverse": false
},
{
"__type__": "cc.Node",
"_name": "hand",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 50
},
{
"__id__": 51
}
],
"_prefab": null,
"_id": "c91SgtpVVI44d283YT+CO9",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": -0.3908599025019699,
"y": 2.7455060244598446
},
"_contentSize": {
"__type__": "cc.Size",
"width": 302,
"height": 378
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 0.4,
"_scaleY": 0.4,
"_position": {
"__type__": "cc.Vec2",
"x": 6,
"y": 30
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "b5b26273-de9d-42a1-94c5-7b4839b6e1cf"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "e6d845SY8hNwLgiBI/kYtQY",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": true
},
{
"__type__": "cc.Node",
"_name": "failure",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 53
},
{
"__id__": 55
},
{
"__id__": 57
},
{
"__id__": 59
},
{
"__id__": 65
}
],
"_tag": -1,
"_active": false,
"_components": [],
"_prefab": null,
"_id": "f5ix1S5ixDqJ82EmycPor2",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 52
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 54
}
],
"_prefab": null,
"_id": "1d1BDln6NLhp38ZngITAd6",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 8,
"g": 8,
"b": 8,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 160,
"height": 40
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": -9,
"y": 241
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 40,
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "撩妹失败",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0
},
{
"__type__": "cc.Node",
"_name": "subtitle",
"_objFlags": 0,
"_parent": {
"__id__": 52
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 56
}
],
"_prefab": null,
"_id": "16kFehRAdODYmR/R4a4MsR",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 10,
"g": 10,
"b": 10,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 150,
"height": 40
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": -3,
"y": 179
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 55
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 25,
"_fontSize": 25,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "咸猪手被抓了",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0
},
{
"__type__": "cc.Node",
"_name": "pic",
"_objFlags": 0,
"_parent": {
"__id__": 52
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 58
}
],
"_prefab": null,
"_id": "60aE1e7ElKL5zyvrGEmkT9",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 200
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 3,
"y": -5
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "14ce6955-7406-477d-b8bb-f98b662fd140"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Node",
"_name": "playAgain",
"_objFlags": 0,
"_parent": {
"__id__": 52
},
"_children": [
{
"__id__": 60
}
],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 62
},
{
"__id__": 63
},
{
"__id__": 64
}
],
"_prefab": null,
"_id": "10O/WAl5NKrpZzIw8RBgaa",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 247,
"g": 242,
"b": 224,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 50
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 2,
"y": -216
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 59
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 61
}
],
"_prefab": null,
"_id": "22UghWLHZBvKnhqEaZoDjK",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 218,
"g": 185,
"b": 132,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 60
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 20,
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "再撩一把",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
},
"_enabled": true,
"transition": 2,
"pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"hoverSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 59
}
},
{
"__type__": "c95b87c8/BJkodcD4qD3/hZ",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
},
"_enabled": true
},
{
"__type__": "cc.Node",
"_name": "share",
"_objFlags": 0,
"_parent": {
"__id__": 52
},
"_children": [
{
"__id__": 66
}
],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 68
},
{
"__id__": 69
}
],
"_prefab": null,
"_id": "c87BPRFl1Kz7iWRAKrPIIQ",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 218,
"g": 185,
"b": 132,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 50
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 2,
"y": -153
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 65
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 67
}
],
"_prefab": null,
"_id": "8155cfg7JF75taswc50CmK",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 247,
"g": 242,
"b": 224,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 50
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 66
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 20,
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "召唤好友帮我续命",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
},
"_enabled": true,
"transition": 2,
"pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"hoverSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 65
}
},
{
"__type__": "cc.Node",
"_name": "success",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 71
},
{
"__id__": 77
},
{
"__id__": 82
},
{
"__id__": 84
},
{
"__id__": 86
},
{
"__id__": 88
}
],
"_tag": -1,
"_active": false,
"_components": [],
"_prefab": null,
"_id": "f3QEdZlRtFaJOS+nqkQWrK",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "playAgain",
"_objFlags": 0,
"_parent": {
"__id__": 70
},
"_children": [
{
"__id__": 72
}
],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 74
},
{
"__id__": 75
},
{
"__id__": 76
}
],
"_prefab": null,
"_id": "9awn2RjVtDx50b/lYNY1yR",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 247,
"g": 242,
"b": 224,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 50
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 2,
"y": -216
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 71
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 73
}
],
"_prefab": null,
"_id": "d0L/pyxKxLCoiEkU4zoS09",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 218,
"g": 185,
"b": 132,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 20,
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "再撩一把",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 71
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 71
},
"_enabled": true,
"transition": 2,
"pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"hoverSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 71
}
},
{
"__type__": "c95b87c8/BJkodcD4qD3/hZ",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 71
},
"_enabled": true
},
{
"__type__": "cc.Node",
"_name": "share",
"_objFlags": 0,
"_parent": {
"__id__": 70
},
"_children": [
{
"__id__": 78
}
],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 80
},
{
"__id__": 81
}
],
"_prefab": null,
"_id": "9fkEt9/JZAybLgSsYv2MBi",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 218,
"g": 185,
"b": 132,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 50
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 2,
"y": -153
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 77
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 79
}
],
"_prefab": null,
"_id": "4701tnMPlGBLb9z9U6ekKm",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 247,
"g": 242,
"b": 224,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 50
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 78
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 20,
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "炫耀一下",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 77
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 77
},
"_enabled": true,
"transition": 2,
"pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"hoverSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 77
}
},
{
"__type__": "cc.Node",
"_name": "title",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 70
}, },
"_children": [], "_children": [],
"_tag": -1, "_tag": -1,
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 25 "__id__": 83
},
{
"__id__": 26
} }
], ],
"_prefab": null, "_prefab": null,
"_id": "c91SgtpVVI44d283YT+CO9", "_id": "e0OR+IaP5HNZhSpDNepvFM",
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 8,
"g": 255, "g": 8,
"b": 255, "b": 8,
"a": 255 "a": 255
}, },
"_cascadeOpacityEnabled": true, "_cascadeOpacityEnabled": true,
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": -0.35271691256388976, "x": 0.5,
"y": 2.5309593790505445 "y": 0.5
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 302, "width": 120,
"height": 378 "height": 40
}, },
"_rotationX": 0, "_rotationX": 0,
"_rotationY": 0, "_rotationY": 0,
"_scaleX": 0.4, "_scaleX": 1,
"_scaleY": 0.4, "_scaleY": 1,
"_position": { "_position": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": -9,
"y": 0 "y": 241
}, },
"_skewX": 0, "_skewX": 0,
"_skewY": 0, "_skewY": 0,
...@@ -1035,59 +3323,124 @@ ...@@ -1035,59 +3323,124 @@
"groupIndex": 0 "groupIndex": 0
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 24 "__id__": 82
}, },
"_enabled": true, "_enabled": true,
"_spriteFrame": { "_useOriginalSize": false,
"__uuid__": "b5b26273-de9d-42a1-94c5-7b4839b6e1cf" "_actualFontSize": 40,
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "下课了",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0
}, },
"_type": 0, {
"_sizeMode": 1, "__type__": "cc.Node",
"_fillType": 0, "_name": "subtitle",
"_fillCenter": { "_objFlags": 0,
"_parent": {
"__id__": 70
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 85
}
],
"_prefab": null,
"_id": "b1KfGWjbNCRYDR/FY52SG2",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 10,
"g": 10,
"b": 10,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0.5,
"y": 0 "y": 0.5
}, },
"_fillStart": 0, "_contentSize": {
"_fillRange": 0, "__type__": "cc.Size",
"_isTrimmedMode": true, "width": 243,
"_srcBlendFactor": 770, "height": 40
"_dstBlendFactor": 771, },
"_atlas": null "_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 3,
"y": -43
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
}, },
{ {
"__type__": "e6d845SY8hNwLgiBI/kYtQY", "__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 24 "__id__": 84
}, },
"_enabled": true "_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 25,
"_fontSize": 25,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "获得\"撩妹小能手\"称号",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "failure", "_name": "heart",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 70
}, },
"_children": [], "_children": [],
"_tag": -1, "_tag": -1,
"_active": true, "_active": true,
"_components": [], "_components": [
{
"__id__": 87
}
],
"_prefab": null, "_prefab": null,
"_id": "f5ix1S5ixDqJ82EmycPor2", "_id": "3aknsEYHdEy6VKNCQJ1AUD",
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 22,
"g": 255, "g": 21,
"b": 255, "b": 21,
"a": 255 "a": 255
}, },
"_cascadeOpacityEnabled": true, "_cascadeOpacityEnabled": true,
...@@ -1098,8 +3451,8 @@ ...@@ -1098,8 +3451,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 60,
"height": 0 "height": 40
}, },
"_rotationX": 0, "_rotationX": 0,
"_rotationY": 0, "_rotationY": 0,
...@@ -1107,8 +3460,8 @@ ...@@ -1107,8 +3460,8 @@
"_scaleY": 1, "_scaleY": 1,
"_position": { "_position": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": -12,
"y": 0 "y": 188
}, },
"_skewX": 0, "_skewX": 0,
"_skewY": 0, "_skewY": 0,
...@@ -1118,24 +3471,50 @@ ...@@ -1118,24 +3471,50 @@
"groupIndex": 0 "groupIndex": 0
}, },
{ {
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 86
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 20,
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "心动值",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0
},
{
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "success", "_name": "result",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 70
}, },
"_children": [], "_children": [],
"_tag": -1, "_tag": -1,
"_active": true, "_active": true,
"_components": [], "_components": [
{
"__id__": 89
}
],
"_prefab": null, "_prefab": null,
"_id": "f3QEdZlRtFaJOS+nqkQWrK", "_id": "21YxOimdhJd5+Pc5LXSRHD",
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 218,
"g": 255, "g": 185,
"b": 255, "b": 132,
"a": 255 "a": 255
}, },
"_cascadeOpacityEnabled": true, "_cascadeOpacityEnabled": true,
...@@ -1146,8 +3525,8 @@ ...@@ -1146,8 +3525,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 56,
"height": 0 "height": 100
}, },
"_rotationX": 0, "_rotationX": 0,
"_rotationY": 0, "_rotationY": 0,
...@@ -1155,8 +3534,8 @@ ...@@ -1155,8 +3534,8 @@
"_scaleY": 1, "_scaleY": 1,
"_position": { "_position": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": -8,
"y": 0 "y": 72
}, },
"_skewX": 0, "_skewX": 0,
"_skewY": 0, "_skewY": 0,
...@@ -1166,6 +3545,28 @@ ...@@ -1166,6 +3545,28 @@
"groupIndex": 0 "groupIndex": 0
}, },
{ {
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 88
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 100,
"_fontSize": 100,
"_lineHeight": 100,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "0",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0
},
{
"__type__": "cc.Canvas", "__type__": "cc.Canvas",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
...@@ -1176,7 +3577,7 @@ ...@@ -1176,7 +3577,7 @@
"_designResolution": { "_designResolution": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 375, "width": 375,
"height": 750 "height": 667
}, },
"_fitWidth": false, "_fitWidth": false,
"_fitHeight": true "_fitHeight": true
...@@ -1192,17 +3593,119 @@ ...@@ -1192,17 +3593,119 @@
"logo": { "logo": {
"__id__": 13 "__id__": 13
}, },
"subtitle": {
"__id__": 11
},
"start_btn": { "start_btn": {
"__id__": 6 "__id__": 8
},
"teacher": {
"__id__": 26
}, },
"classroom": { "classroom": {
"__id__": 15 "__id__": 5
},
"index": {
"__id__": 7
}, },
"hand": { "hand": {
"__id__": 24 "__id__": 49
},
"score_number": {
"__id__": 43
},
"board": {
"__id__": 33
},
"level": {
"__id__": 48
},
"failure": {
"__id__": 52
},
"success": {
"__id__": 70
},
"success_result": {
"__id__": 89
},
"bgMusic": {
"__id__": 92
},
"slider1": {
"__id__": 21
},
"slider2": {
"__id__": 19
},
"slider3": {
"__id__": 17
}
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 93
},
"_enabled": true,
"_clip": {
"__uuid__": "859ee3f9-e04e-4f60-afa6-4a4ae658f51f"
},
"_volume": 1,
"_mute": false,
"_loop": true,
"playOnLoad": true,
"preload": false
},
{
"__type__": "cc.Node",
"_name": "bgMusic",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 92
} }
],
"_prefab": null,
"_id": "72tipjH+VAPLZ8S6F8BLZt",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 187.5,
"y": 375
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
} }
] ]
\ No newline at end of file
assets/images/classroom.png

297 KB | W: | H:

assets/images/classroom.png

205 KB | W: | H:

assets/images/classroom.png
assets/images/classroom.png
assets/images/classroom.png
assets/images/classroom.png
  • 2-up
  • Swipe
  • Onion skin
{ {
"ver": "1.0.0", "ver": "1.0.0",
"uuid": "74666af9-3b83-4c79-bb74-e64662a7a91c", "uuid": "0e671404-8643-4f9b-b078-3f8446678813",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
"subMetas": { "subMetas": {
"classroom": { "classroom": {
"ver": "1.0.3", "ver": "1.0.3",
"uuid": "1b29ad23-8777-436b-a7aa-5c7869ce1389", "uuid": "f591fb94-46c8-48d7-8734-08b854cf1cf9",
"rawTextureUuid": "74666af9-3b83-4c79-bb74-e64662a7a91c", "rawTextureUuid": "0e671404-8643-4f9b-b078-3f8446678813",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 750, "width": 750,
"height": 1052, "height": 1086,
"rawWidth": 750, "rawWidth": 750,
"rawHeight": 1052, "rawHeight": 1086,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{
"ver": "1.0.0",
"uuid": "c1edaf9b-1d22-4985-9a24-b434a1a935bd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"subMetas": {
"coming": {
"ver": "1.0.3",
"uuid": "4dc33e6a-f362-45a9-ba81-09b423a784cd",
"rawTextureUuid": "c1edaf9b-1d22-4985-9a24-b434a1a935bd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": -1.5,
"trimX": 0,
"trimY": 10,
"width": 317,
"height": 235,
"rawWidth": 318,
"rawHeight": 252,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.0.0",
"uuid": "99ab9e92-0590-468c-829d-9727377075d6",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.0",
"uuid": "b6d7d820-6cd3-44b3-8b40-54693bedcde8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"subMetas": {
"heart": {
"ver": "1.0.3",
"uuid": "203a4498-7630-44ec-b721-b71e8b43723c",
"rawTextureUuid": "b6d7d820-6cd3-44b3-8b40-54693bedcde8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 20,
"trimY": 5,
"width": 412,
"height": 43,
"rawWidth": 452,
"rawHeight": 52,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.0.0",
"uuid": "17d58126-1062-4aa6-b063-4cdec3c5fd99",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"subMetas": {
"icon-clock": {
"ver": "1.0.3",
"uuid": "3a67a3d3-9dc3-4a7d-81d0-ecbe373d913e",
"rawTextureUuid": "17d58126-1062-4aa6-b063-4cdec3c5fd99",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 2,
"trimY": 2,
"width": 64,
"height": 64,
"rawWidth": 68,
"rawHeight": 68,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.0.0",
"uuid": "a8a2c2e9-ea49-41b7-b49d-32fc93adc909",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"subMetas": {
"icon-points": {
"ver": "1.0.3",
"uuid": "29ceedec-bce6-4b8e-b3ac-7f6caba37028",
"rawTextureUuid": "a8a2c2e9-ea49-41b7-b49d-32fc93adc909",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 6,
"trimY": 4,
"width": 180,
"height": 184,
"rawWidth": 192,
"rawHeight": 192,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.0.0",
"uuid": "7d060af6-8545-4836-a745-6f4cd72b710f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"subMetas": {
"slider1": {
"ver": "1.0.3",
"uuid": "6ba718e6-8958-40cf-8686-358a6f812baa",
"rawTextureUuid": "7d060af6-8545-4836-a745-6f4cd72b710f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0.5,
"trimX": 0,
"trimY": 0,
"width": 685,
"height": 329,
"rawWidth": 686,
"rawHeight": 330,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.0.0",
"uuid": "292c0f2f-cac9-4bac-8530-3cbfb82a5426",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"subMetas": {
"slider2": {
"ver": "1.0.3",
"uuid": "f409b697-49a0-46d5-9077-8e11bf45a204",
"rawTextureUuid": "292c0f2f-cac9-4bac-8530-3cbfb82a5426",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 676,
"height": 248,
"rawWidth": 676,
"rawHeight": 248,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.0.0",
"uuid": "1c06c629-8a84-429b-abf3-4909a7ce6f79",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"subMetas": {
"slider3": {
"ver": "1.0.3",
"uuid": "f4f49579-65f6-4f9f-abef-74f31468e7d5",
"rawTextureUuid": "1c06c629-8a84-429b-abf3-4909a7ce6f79",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0.5,
"trimX": 0,
"trimY": 0,
"width": 685,
"height": 311,
"rawWidth": 686,
"rawHeight": 312,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.0.0",
"uuid": "b1bac8d5-c52e-4a7b-b68b-43d6eb8b43e2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"subMetas": {
"teacher": {
"ver": "1.0.3",
"uuid": "09d89bc6-37a2-46c9-9a55-020b4eb52067",
"rawTextureUuid": "b1bac8d5-c52e-4a7b-b68b-43d6eb8b43e2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -2.5,
"trimX": 0,
"trimY": 5,
"width": 136,
"height": 387,
"rawWidth": 136,
"rawHeight": 392,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
...@@ -13,12 +13,6 @@ cc.Class({ ...@@ -13,12 +13,6 @@ cc.Class({
type: cc.Node, type: cc.Node,
}, },
// subtitle节点
subtitle: {
default: null,
type: cc.Node,
},
// btn_start节点 // btn_start节点
start_btn: { start_btn: {
default: null, default: null,
...@@ -37,53 +31,207 @@ cc.Class({ ...@@ -37,53 +31,207 @@ cc.Class({
active: false, active: false,
}, },
// index节点
index: {
default: null,
type: cc.Node,
active: false,
},
// hand节点 // hand节点
hand: { hand: {
default: null, default: null,
type: cc.Node, type: cc.Node,
}, },
// store number节点
score_number: {
default: null,
type: cc.Label,
}, },
onLoad: function () { // board节点
board: {
default: null,
type: cc.Node,
active: false,
},
// level节点
level: {
default: null,
type: cc.ProgressBar,
},
// failure节点
failure: {
default: null,
type: cc.Node,
active: false,
},
// success节点
success: {
default: null,
type: cc.Node,
active: false,
},
// success_result节点
success_result: {
default: null,
type: cc.Label,
},
// 背景音乐节点
bgMusic: {
default: null,
type: cc.AudioSource,
},
// slider节点
slider1: {
default: null,
type: cc.Node,
},
slider2: {
default: null,
type: cc.Node,
},
slider3: {
default: null,
type: cc.Node,
}
},
initNode: function() {
var self = this
self.hand.active = true
self.index.active = true
self.success.active = false
},
initData: function() {
// 初始化游戏数据 // 初始化游戏数据
this.score = 0; // 分数 this.score = 0; // 分数
this.timer = 60; // 每一盘游戏的总时间 this.timer = 10; // 每一盘游戏的总时间
this.leftLife = 3; // 剩余的命条数 this.leftLife = 3; // 剩余的命条数
this.gameState = "waitting"; // 游戏的状态 waiting(待开始) action(游戏中) stop(被抓) over(分数总结)
this.swivelAnimationTime = 0.5; //转头动画时间 (单向) this.swivelAnimationTime = 0.5; //转头动画时间 (单向)
this.flirtAnimationTime = 0.5; //摸的动画时间(单向) this.flirtAnimationTime = 0.5; //摸的动画时间(单向)
this.gameState = 'waiting'; // 游戏的状态 waiting(待开始) action(游戏中) stop(被抓) over(分数总结)
},
onLoad: function () {
this.initData()
// 奖Game组件的实例传入开始按钮 // 奖Game组件的实例传入开始按钮
var startBtn = cc.find("index/start_btn", this.node); var startBtn = cc.find('index/start_btn', this.node);
startBtn.getComponent('Start').game = this; startBtn.getComponent('Start').game = this;
var teacher = cc.find("teacher", this.node); // 将Game组件的实例传入teacher
var teacher = cc.find('teacher', this.node);
teacher.getComponent('Teacher').game = this; teacher.getComponent('Teacher').game = this;
// 将Game组件的实例传入hand
var hand = cc.find('hand', this.node)
hand.getComponent('Hand').game = this
// 将Game组件的实例传入playAgain
var successPlayAgain = cc.find('success/playAgain', this.node)
successPlayAgain.getComponent('Restart').game = this
var failurePlayAgain = cc.find('failure/playAgain', this.node)
failurePlayAgain.getComponent('Restart').game = this
// 播放背景音乐
this.playBackgroundMusic()
// 执行轮播图
},
// 更改时间进度条
updateLevelProgress: function() {
if(this.level.progress > 0) {
this.level.progress -= ((1 / this.timer) / 60)
} else {
this.gameOver()
}
if(this.level.progress < 0.8 && this.level.progress > 0.2) {
this.level.barSprite.node.color = {
a: 255,
b: 234,
g: 56,
r: 241
}
} else if (this.level.progress <= 0.2) {
this.level.barSprite.node.color = {
a: 255,
b: 0,
g: 0,
r: 255,
}
}
}, },
// 添加分数 // 添加分数
gainScore: function() { gainScore: function() {
this.score += 1; this.score += 1;
this.score_number.string = this.score.toString();
},
// 被抓检测
getCaught: function() {
var isFlirting = this.hand.getComponent('Hand').isFlirting
var isSwiveling = this.teacher.getComponent('Teacher').isSwiveling
return isSwiveling && isFlirting
},
// 添加背景音乐
playBackgroundMusic: function() {
this.bgMusic.play()
}, },
// 游戏帧循环 // 游戏帧循环
update: function(dt) { update: function(dt) {
if (this.gameState === 'action') {
this.updateLevelProgress()
if (this.getCaught()) {
this.gameFail()
}
}
}, },
// 游戏开始 // 游戏开始
startGame: function() { startGame: function() {
cc.director.loadScene('game')
}, },
// 游戏暂停 // 游戏暂停
stopGame: function() { gameFail: function() {
this.success_result.string = this.score.toString()
this.classroom.active = false
this.failure.active = true
this.hand.active = false
this.board.active = false
this.teacher.active = false
this.gameState = 'stop'
}, },
// 游戏结束 // 游戏结束
gameOver: function() { gameOver: function() {
this.success_result.string = this.score.toString()
this.classroom.active = false
this.success.active = true
this.hand.active = false
this.board.active = false
this.teacher.active = false
this.gameState = 'waiting'
}, },
}); });
...@@ -53,6 +53,12 @@ cc.Class({ ...@@ -53,6 +53,12 @@ cc.Class({
self.isFlirting = false self.isFlirting = false
self.node.runAction(self.endFlirtingAction) self.node.runAction(self.endFlirtingAction)
}) })
self.node.on(cc.Node.EventType.TOUCH_CANCEL, (event) => {
// self.node.on(cc.Node.EventType.MOUSE_UP, (event) => {
self.isFlirting = false
self.node.runAction(self.endFlirtingAction)
})
}, },
// LIFE-CYCLE CALLBACKS: // LIFE-CYCLE CALLBACKS:
......
cc.Class({
extends: cc.Component,
properties: {
},
restartGame: function() {
var self = this;
self.game.startGame()
},
onLoad: function() {
this.node.on('click', this.restartGame, this)
}
});
{
"ver": "1.0.5",
"uuid": "c95b8edc-f3f0-4992-875c-0f8a83dff859",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
// Learn cc.Class:
// - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
// - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
// Learn Attribute:
// - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
// - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
// - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
cc.Class({
extends: cc.Component,
properties: {
slider1: {
default: null,
type: cc.Node,
},
slider2: {
default: null,
type: cc.Node,
},
slider3: {
default: null,
type: cc.Node,
}
},
slider1Action: function() {
return () => {
cc.sequence(
cc.moveTo(2, cc.p(-343, 0)),
cc.moveTo(2, cc.p(343, 0)),
cc.delayTime(2),
)
}
},
slider2Action: function () {
return cc.sequence(
cc.moveTo(2, cc.p(0, 0)),
cc.moveTo(2, cc.p(-343, 0)),
cc.delayTime(4),
)
},
slider3Action: function () {
return cc.sequence(
cc.delayTime(4),
cc.moveTo(2, cc.p(0, 0)),
cc.moveTo(2, cc.p(-343, 0)),
cc.moveTo(2, cc.p(343, 0)),
)
},
// LIFE-CYCLE CALLBACKS:
onLoad () {
// var self = this
// var slider1 = cc.find('slider1', self.node)
// var slider2 = cc.find('slider2', self.node)
// var slider3 = cc.find('slider3', self.node)
this.slider1.runAction(cc.repeatForever(cc.sequence(
cc.delayTime(1),
cc.moveTo(1, cc.p(-343, 0)),
cc.hide(),
cc.moveTo(3, cc.p(343, 0)),
cc.show(),
cc.moveTo(1, cc.p(0, 0))
)))
this.slider2.runAction(cc.repeatForever(cc.sequence(
cc.delayTime(1),
cc.moveTo(1, cc.p(0, 0)),
cc.delayTime(1),
cc.moveTo(1, cc.p(-343, 0)),
cc.hide(),
cc.moveTo(2, cc.p(343, 0)),
cc.show(),
)))
// this.slider2.runAction(this.slider2Action)
this.slider3.runAction(cc.repeatForever(cc.sequence(
cc.hide(),
cc.moveTo(3, cc.p(343, 0)),
cc.show(),
cc.moveTo(1, cc.p(0, 0)),
cc.delayTime(1),
cc.moveTo(1, cc.p(-343, 0)),
)))
},
start () {
},
// update (dt) {},
});
{
"ver": "1.0.5",
"uuid": "818da73c-58a5-433c-9eb7-6ef9fd91fc7c",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -8,8 +8,14 @@ cc.Class({ ...@@ -8,8 +8,14 @@ cc.Class({
setTouchBtnListener: function () { setTouchBtnListener: function () {
var self = this; var self = this;
self.node.on(cc.Node.EventType.MOUSE_DOWN, function (event) { self.node.on(cc.Node.EventType.TOUCH_START, function (event) {
self.game.classroom.active = true self.game.classroom.active = true
self.game.index.active = false
self.game.board.active = true
self.game.teacher.active = true
self.game.level.progress = 1
self.game.gameState = 'action'
self.game.teacher.getComponent("Teacher").startSwivel()
}) })
}, },
......
cc.Class({ cc.Class({
extends: cc.Component, extends: cc.Component,
properties: { properties: {
isSwiveling: false, // 是否回头
totalTime: 45 * 1000, // 总时间, bed
animationTime: 1 * 1000, // 转头过程单位时间, bed
needSwivelCount: 10, // 需要回头的次数
game: { game: {
default: null, default: null,
type: cc.Node, type: cc.Node,
...@@ -20,11 +16,16 @@ cc.Class({ ...@@ -20,11 +16,16 @@ cc.Class({
}, },
onLoad: function() { onLoad: function() {
this.startSwivel() // this.startSwivel()
this.isSwiveling = false // 是否回头
this.totalTime = 60 * 1000 // 总时间, bed
this.animationTime = 1 * 1000 // 转头过程单位时间, bed
this.needSwivelCount = 20 // 需要回头的次数
}, },
swivelAnimation: function() { swivelAnimation: function() {
var time = this.animationTime / 8 / 1000 var time = this.animationTime / 10 / 1000
var enableSwivel = cc.callFunc(function() { var enableSwivel = cc.callFunc(function() {
this.isSwiveling = true this.isSwiveling = true
...@@ -34,31 +35,31 @@ cc.Class({ ...@@ -34,31 +35,31 @@ cc.Class({
this.isSwiveling = false this.isSwiveling = false
}, this) }, this)
var coming = cc.find("coming", this.node) // var coming = cc.find("coming", this.node)
var bigHead = cc.find("big_head", this.node) var bigHead = cc.find("big_head", this.node)
var comingAction = cc.sequence( // var comingAction = cc.sequence(
cc.moveTo(time, cc.p(100, 0)), // cc.moveTo(time, cc.p(100, 0)),
cc.delayTime(time), // cc.delayTime(time),
cc.moveTo(time, cc.p(-50, 0)), // cc.moveTo(time, cc.p(-50, 0)),
cc.delayTime(time) // cc.delayTime(time)
) // )
var action = cc.sequence( var action = cc.sequence(
cc.delayTime(time * 4), // for coming time // cc.delayTime(time * 5), // for coming time
cc.moveTo(time, cc.p(100, 0)), cc.moveTo(5 * time, cc.p(100, 0)),
enableSwivel, enableSwivel,
cc.delayTime(4 * time), cc.delayTime(4 * time),
cc.moveTo(time, cc.p(0, 0)), cc.moveTo(time, cc.p(0, 0)),
disableSwivel, disableSwivel,
) )
coming.runAction(comingAction) // coming.runAction(comingAction)
bigHead.runAction(action) bigHead.runAction(action)
}, },
update: function(dt) { update: function(dt) {
console.log('🐞-checking', this.isSwiveling) // console.log('🐞-checking', this.isSwiveling)
}, },
// 获取转头时间的数组, [0.6, 1.2, 2.3, 3.4, 4.8, 5.2, 6.3] // 获取转头时间的数组, [0.6, 1.2, 2.3, 3.4, 4.8, 5.2, 6.3]
...@@ -78,13 +79,15 @@ cc.Class({ ...@@ -78,13 +79,15 @@ cc.Class({
var swivelTimeArray = this.getSwivelTimeArray(this.totalTime, this.needSwivelCount, this.animationTime) var swivelTimeArray = this.getSwivelTimeArray(this.totalTime, this.needSwivelCount, this.animationTime)
var lastTime var lastTime
var swivelFunc = (timeArray) => { var swivelFunc = (timeArray) => {
const nextTime = timeArray.shift() const nextTime = timeArray.shift()
if (nextTime) { if (nextTime) {
var intervel = !!lastTime ? (nextTime - lastTime) : nextTime // 获取下一次的时间间隔 var intervel = !!lastTime ? (nextTime - lastTime) : nextTime // 获取下一次的时间间隔
lastTime = nextTime lastTime = nextTime
this.swivelAnimation()
setTimeout(() => { setTimeout(() => {
this.swivelAnimation()
swivelFunc(timeArray) swivelFunc(timeArray)
}, intervel) }, intervel)
} }
......
{
"ver": "1.0.5",
"uuid": "7ddb2772-19ec-4c3c-bf4d-e26a09605838",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ 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