Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Cocos-1010
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
等吃饭
Cocos-1010
Commits
3086c8db
Commit
3086c8db
authored
May 22, 2023
by
Friends233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拖拽
parent
7cd7a7fe
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2107 additions
and
266 deletions
+2107
-266
Game.fire
assets/Scenes/Game.fire
+2038
-174
GameConfig.ts
assets/Script/Config/GameConfig.ts
+4
-75
GameScene.ts
assets/Script/GameScene.ts
+23
-2
miniBlock.ts
assets/Script/miniBlock.ts
+18
-4
miniBlock.ts.meta
assets/Script/miniBlock.ts.meta
+1
-1
block.prefab
assets/resources/prefab/block.prefab
+22
-9
block.prefab.meta
assets/resources/prefab/block.prefab.meta
+1
-1
No files found.
assets/Scenes/Game.fire
View file @
3086c8db
...
...
@@ -76,33 +76,1886 @@
},
{
"__id__": 8
},
{
"__id__": 10
},
{
"__id__": 12
},
{
"__id__": 14
},
{
"__id__": 16
},
{
"__id__": 18
},
{
"__id__": 20
},
{
"__id__": 23
},
{
"__id__": 25
},
{
"__id__": 33
},
{
"__id__": 35
},
{
"__id__": 47
}
],
"_active": true,
"_components": [
{
"__id__": 84
},
{
"__id__": 85
},
{
"__id__": 86
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 252,
"g": 252,
"b": 252,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 1624
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
375,
812,
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": "a286bbGknJLZpRpxROV6M94"
},
{
"__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": 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": "2eLYQXZ4xJDqVBz9IGV0qb"
},
{
"__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": "400sYPzXdP16ce8CR0Dzk2"
},
{
"__type__": "cc.Node",
"_name": "background",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
},
{
"__id__": 7
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 1624
},
"_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": "e2e0crkOLxGrpMxpbC4iQg1"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 0,
"_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": 200,
"_originalHeight": 150,
"_id": "bdSkDM15xFdaGFEU9tN4bm"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "cc67cedd-0675-4a69-a1d5-6176445d6fe5"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "47GBkYfNxOFZjCVNjYIjOm"
},
{
"__type__": "cc.Node",
"_name": "score",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 237,
"b": 162,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 189.09,
"height": 85.68
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
452.276,
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": "47umGSvblAC5Ph0QUAwH6l"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "99999",
"_N$string": "99999",
"_fontSize": 68,
"_lineHeight": 68,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "b1D/WM6+pHjI+eN7+PEANx"
},
{
"__type__": "cc.Node",
"_name": "bestScore",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 242,
"g": 255,
"b": 232,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 184.04,
"height": 30.24
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
395,
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": "56NwCADnpM1J1Iog8aDvYY"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "历史最高分:250",
"_N$string": "历史最高分:250",
"_fontSize": 24,
"_lineHeight": 24,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "fd1duzGBZHw5UHfbZ8RnCJ"
},
{
"__type__": "cc.Node",
"_name": "return",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 48,
"height": 49
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-326,
551,
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": "67n7+84VVBpYlx76SFI47I"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1462c131-0a43-4434-841d-b5fcb26a2e1e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "baubz4cYFL96oB4ofj0uqo"
},
{
"__type__": "cc.Node",
"_name": "goldCoinBg",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 175,
"height": 47
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
260,
551,
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": "52T/jgbzBEBKwbXehwmPVQ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1a9dd313-05df-46fc-a01d-702ca6124901"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e5UREt861JQqqb4hunnkhj"
},
{
"__type__": "cc.Node",
"_name": "goldCoin",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 120.13,
"height": 30.24
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
274.669,
552.304,
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": "905LbN/SBNUYblOobbvtXb"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "999999999",
"_N$string": "999999999",
"_fontSize": 24,
"_lineHeight": 24,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "67f/XPJG9GRKKFaqcrhcWo"
},
{
"__type__": "cc.Node",
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 19
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 413,
"height": 42
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-60,
551,
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": "d5iPVoV7BIoKeMGKZbErpk"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "57fce655-ba25-40b8-a7a4-4e9e6a242cbd"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "ferALQb9RAwKSz+cuH/AWP"
},
{
"__type__": "cc.Node",
"_name": "blockMatrix",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
},
{
"__id__": 22
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 47,
"b": 47,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 602,
"height": 602
},
"_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": "a6HcUBacdM/pdeDro+QdK+"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
},
"_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": "12wJvmlqlK2YuKfvJVJBzV"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 602,
"height": 602
},
"_resize": 0,
"_N$layoutType": 3,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 2,
"_N$paddingRight": 2,
"_N$paddingTop": 2,
"_N$paddingBottom": 2,
"_N$spacingX": 2,
"_N$spacingY": 2,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "a1sXmUQMBBG7N7TbqHEnst"
},
{
"__type__": "cc.Node",
"_name": "scroll",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 131
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-592,
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": "00KpBWCodA0Ygzz1Xh3C/5"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "39fcfe66-322b-4037-a4cc-62cea386a82b"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "37ci7xur9IjZPua72mSvUG"
},
{
"__type__": "cc.Node",
"_name": "drawBlockBg",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 26
},
{
"__id__": 28
},
{
"__id__": 30
}
],
"_active": true,
"_components": [
{
"__id__": 32
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 705,
"height": 233
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-543,
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": "0fRsonxHtMCZS8T6j4xAgW"
},
{
"__type__": "cc.Node",
"_name": "box_wrp",
"_objFlags": 0,
"_parent": {
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 27
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 235,
"height": 230
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-235,
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": "7302+Nq8JM67/42taCO7PS"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "86bc4e75-3876-4f75-bdbb-0f899b51892e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d6ykUv21NBUa+spfNZXgYo"
},
{
"__type__": "cc.Node",
"_name": "box_wrp",
"_objFlags": 0,
"_parent": {
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 235,
"height": 230
},
"_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": "ea149ch3tJ5Ij1pK/SKcfj"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "86bc4e75-3876-4f75-bdbb-0f899b51892e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "f6O1Jvl1dPdJyznl7G0+tL"
},
{
"__type__": "cc.Node",
"_name": "box_wrp",
"_objFlags": 0,
"_parent": {
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 31
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 235,
"height": 230
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
235,
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": "9aLo3qM1FNw4W2gfgSl27m"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "86bc4e75-3876-4f75-bdbb-0f899b51892e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "5aWznh7nlJvZfZKKx+i4Kz"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 705,
"height": 233
},
"_resize": 0,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "281x9V2Z1JIo2LvjjLK2l1"
},
{
"__type__": "cc.Node",
"_name": "pre_img",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_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": 390,
"height": 109
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-630,
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": "4c07I+qvdKZq6/ZqdNPR0+"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "caba812c-2f03-48bd-81a2-1af696f3d038"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "33Ulw7JAdHw7MK3+N8drTm"
},
{
"__type__": "cc.Node",
"_name": "miniBlockLeft",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 36
},
{
"__id__": 38
},
{
"__id__": 40
},
{
"__id__": 42
},
{
"__id__": 44
}
],
"_active": true,
"_components": [
{
"__id__": 46
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 180
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-235,
-519,
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": "c77uiZke9AdI9/Y+bEi8+o"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 37
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 88,
"g": 217,
"b": 179,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 33.5,
"height": 33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-70.25,
70.25,
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": "9fGJ3klytOX5bY5ocbziLE"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "490UXZAcVFBolH9bTdJw6r"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 39
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 88,
"g": 217,
"b": 179,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 33.5,
"height": 33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-35.25,
70.25,
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": "36mLL756hCJqqDNwV9w+Hx"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
},
"_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": "e8X+I+Kf9MMKUii9R4Og6A"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 45
},
{
"__id__": 46
},
{
"__id__": 47
"__id__": 41
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r":
252
,
"g": 2
52
,
"b":
252
,
"r":
88
,
"g": 2
17
,
"b":
179
,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width":
750
,
"height":
1624
"width":
33.5
,
"height":
33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -113,8 +1966,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
37
5,
812
,
-0.2
5,
70.25
,
0,
0,
0,
...
...
@@ -136,35 +1989,67 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a286bbGknJLZpRpxROV6M94"
"_id": "de4VG5iUVECaTecGJl6/WV"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 40
},
"_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": "daTgS4oI9I+oq/JcYZ04DA"
},
{
"__type__": "cc.Node",
"_name": "
Main Camera
",
"_name": "
mb
",
"_objFlags": 0,
"_parent": {
"__id__":
2
"__id__":
35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
"__id__": 4
3
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r":
255
,
"g": 2
55
,
"b":
255
,
"r":
88
,
"g": 2
17
,
"b":
179
,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width":
0
,
"height":
0
"width":
33.5
,
"height":
33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -175,8 +2060,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0
,
0
,
34.75
,
70.25
,
0,
0,
0,
...
...
@@ -198,74 +2083,67 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
2eLYQXZ4xJDqVBz9IGV0qb
"
"_id": "
44un+rmqtJfLnmInb/6pm8
"
},
{
"__type__": "cc.
Camera
",
"__type__": "cc.
Sprite
",
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
3
"__id__":
42
},
"_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__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_depth": -1,
"_zoomRatio": 1,
"_targetTexture": null,
"_fov": 60,
"_orthoSize": 10,
"_nearClip": 1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0,
"width": 1,
"height": 1
"y": 0
},
"_renderStages": 1,
"_alignWithScreen": true,
"_id": "400sYPzXdP16ce8CR0Dzk2"
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "5eXZz877tEWIoN8jw9ypNc"
},
{
"__type__": "cc.Node",
"_name": "
background
",
"_name": "
mb
",
"_objFlags": 0,
"_parent": {
"__id__":
2
"__id__":
35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
},
{
"__id__": 7
"__id__": 45
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r":
255
,
"g": 2
55
,
"b":
255
,
"r":
88
,
"g": 2
17
,
"b":
179
,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width":
750
,
"height":
1624
"width":
33.5
,
"height":
33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -276,8 +2154,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0
,
0
,
69.75
,
70.25
,
0,
0,
0,
...
...
@@ -299,41 +2177,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e2e0crkOLxGrpMxpbC4iQg1"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 0,
"_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": 200,
"_originalHeight": 150,
"_id": "bdSkDM15xFdaGFEU9tN4bm"
"_id": "35XTtnZ9tMA4KldFtMw/vl"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
5
"__id__":
44
},
"_enabled": true,
"_materials": [
...
...
@@ -344,10 +2195,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
cc67cedd-0675-4a69-a1d5-6176445d6fe5
"
"__uuid__": "
a23235d1-15db-4b95-8439-a2e005bfff91
"
},
"_type": 0,
"_sizeMode":
1
,
"_sizeMode":
0
,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
...
...
@@ -358,7 +2209,17 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "47GBkYfNxOFZjCVNjYIjOm"
"_id": "33mc8cfdVHUIV4w/oyQdVD"
},
{
"__type__": "005cbl0Ta1Fzqy4+w8dpg0o",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"_id": "18XPOtkBhPbKEkV3cw686N"
},
{
"__type__": "cc.Node",
...
...
@@ -369,25 +2230,25 @@
},
"_children": [
{
"__id__":
9
"__id__":
48
},
{
"__id__":
16
"__id__":
55
},
{
"__id__":
23
"__id__":
62
},
{
"__id__":
30
"__id__":
69
},
{
"__id__":
37
"__id__":
76
}
],
"_active": true,
"_components": [
{
"__id__":
44
"__id__":
83
}
],
"_prefab": null,
...
...
@@ -443,17 +2304,17 @@
"_name": "next",
"_objFlags": 0,
"_parent": {
"__id__":
8
"__id__":
47
},
"_children": [
{
"__id__":
10
"__id__":
49
}
],
"_active": true,
"_components": [
{
"__id__":
15
"__id__":
54
}
],
"_prefab": null,
...
...
@@ -509,20 +2370,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__":
9
"__id__":
48
},
"_children": [
{
"__id__":
11
"__id__":
50
}
],
"_active": true,
"_components": [
{
"__id__":
13
"__id__":
52
},
{
"__id__":
14
"__id__":
53
}
],
"_prefab": null,
...
...
@@ -578,13 +2439,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__":
10
"__id__":
49
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
12
"__id__":
51
}
],
"_prefab": null,
...
...
@@ -640,7 +2501,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
11
"__id__":
50
},
"_enabled": true,
"_materials": [
...
...
@@ -673,7 +2534,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
10
"__id__":
49
},
"_enabled": true,
"_materials": [
...
...
@@ -705,7 +2566,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
10
"__id__":
49
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -732,7 +2593,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
9
"__id__":
48
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -805,7 +2666,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__":
10
"__id__":
49
},
"_id": "dfguRopclGIqZktevHrnhT"
},
...
...
@@ -814,17 +2675,17 @@
"_name": "refreshProp",
"_objFlags": 0,
"_parent": {
"__id__":
8
"__id__":
47
},
"_children": [
{
"__id__":
17
"__id__":
56
}
],
"_active": true,
"_components": [
{
"__id__":
22
"__id__":
61
}
],
"_prefab": null,
...
...
@@ -880,20 +2741,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__":
16
"__id__":
55
},
"_children": [
{
"__id__":
18
"__id__":
57
}
],
"_active": true,
"_components": [
{
"__id__":
20
"__id__":
59
},
{
"__id__":
21
"__id__":
60
}
],
"_prefab": null,
...
...
@@ -949,13 +2810,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__":
17
"__id__":
56
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
19
"__id__":
58
}
],
"_prefab": null,
...
...
@@ -1011,7 +2872,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
18
"__id__":
57
},
"_enabled": true,
"_materials": [
...
...
@@ -1044,7 +2905,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
17
"__id__":
56
},
"_enabled": true,
"_materials": [
...
...
@@ -1076,7 +2937,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
17
"__id__":
56
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -1103,7 +2964,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
16
"__id__":
55
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -1176,7 +3037,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__":
17
"__id__":
56
},
"_id": "06Xai9BG1CKLT3kEY+FESD"
},
...
...
@@ -1185,17 +3046,17 @@
"_name": "addSpeed",
"_objFlags": 0,
"_parent": {
"__id__":
8
"__id__":
47
},
"_children": [
{
"__id__":
24
"__id__":
63
}
],
"_active": true,
"_components": [
{
"__id__":
29
"__id__":
68
}
],
"_prefab": null,
...
...
@@ -1251,20 +3112,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__":
23
"__id__":
62
},
"_children": [
{
"__id__":
25
"__id__":
64
}
],
"_active": true,
"_components": [
{
"__id__":
27
"__id__":
66
},
{
"__id__":
28
"__id__":
67
}
],
"_prefab": null,
...
...
@@ -1320,13 +3181,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__":
24
"__id__":
63
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
26
"__id__":
65
}
],
"_prefab": null,
...
...
@@ -1382,7 +3243,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
25
"__id__":
64
},
"_enabled": true,
"_materials": [
...
...
@@ -1415,7 +3276,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
24
"__id__":
63
},
"_enabled": true,
"_materials": [
...
...
@@ -1447,7 +3308,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
24
"__id__":
63
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -1474,7 +3335,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
23
"__id__":
62
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -1547,7 +3408,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__":
24
"__id__":
63
},
"_id": "17ggxhM1pE6Lku10v0bXyS"
},
...
...
@@ -1556,17 +3417,17 @@
"_name": "init",
"_objFlags": 0,
"_parent": {
"__id__":
8
"__id__":
47
},
"_children": [
{
"__id__":
31
"__id__":
70
}
],
"_active": true,
"_components": [
{
"__id__":
36
"__id__":
75
}
],
"_prefab": null,
...
...
@@ -1622,20 +3483,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__":
30
"__id__":
69
},
"_children": [
{
"__id__":
32
"__id__":
71
}
],
"_active": true,
"_components": [
{
"__id__":
34
"__id__":
73
},
{
"__id__":
35
"__id__":
74
}
],
"_prefab": null,
...
...
@@ -1691,13 +3552,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__":
31
"__id__":
70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
33
"__id__":
72
}
],
"_prefab": null,
...
...
@@ -1753,7 +3614,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
32
"__id__":
71
},
"_enabled": true,
"_materials": [
...
...
@@ -1786,7 +3647,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
31
"__id__":
70
},
"_enabled": true,
"_materials": [
...
...
@@ -1818,7 +3679,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
31
"__id__":
70
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -1845,7 +3706,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
30
"__id__":
69
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -1918,7 +3779,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__":
31
"__id__":
70
},
"_id": "57bHTVH8ZOjZpjTzCUb0mD"
},
...
...
@@ -1927,17 +3788,17 @@
"_name": "start",
"_objFlags": 0,
"_parent": {
"__id__":
8
"__id__":
47
},
"_children": [
{
"__id__":
38
"__id__":
77
}
],
"_active": true,
"_components": [
{
"__id__":
43
"__id__":
82
}
],
"_prefab": null,
...
...
@@ -1993,20 +3854,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__":
37
"__id__":
76
},
"_children": [
{
"__id__":
39
"__id__":
78
}
],
"_active": true,
"_components": [
{
"__id__":
41
"__id__":
80
},
{
"__id__":
42
"__id__":
81
}
],
"_prefab": null,
...
...
@@ -2062,13 +3923,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__":
38
"__id__":
77
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
40
"__id__":
79
}
],
"_prefab": null,
...
...
@@ -2124,7 +3985,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
39
"__id__":
78
},
"_enabled": true,
"_materials": [
...
...
@@ -2157,7 +4018,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
38
"__id__":
77
},
"_enabled": true,
"_materials": [
...
...
@@ -2189,7 +4050,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
38
"__id__":
77
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -2216,7 +4077,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
37
"__id__":
76
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -2289,7 +4150,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__":
38
"__id__":
77
},
"_id": "6cOXQVh5BCV4WKrcZc4zUt"
},
...
...
@@ -2298,7 +4159,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
8
"__id__":
47
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -2377,6 +4238,9 @@
"__id__": 2
},
"_enabled": true,
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "5dAJmx6TZDLaYAfe+sHVw2"
}
]
\ No newline at end of file
assets/Script/Config/GameConfig.ts
View file @
3086c8db
export
const
CUSTOM_EVENT
=
{
/** 爪子动画结束的回调 */
CLIP_ANI_END
:
'CLIP_ANI_END'
,
/** 爪子碰撞 */
CLIP_COLLISION
:
'CLIP_COLLISION'
,
/** 游戏结束 */
GAME_OVER
:
'GAME_OVER'
,
/** 下一关 */
...
...
@@ -16,77 +12,10 @@ export const CUSTOM_EVENT = {
/** 销毁游戏场景 */
GAME_DESTROY
:
'GAME_DESTROY'
}
/** 游戏进度颜色 */
export
const
GameColors
=
[
[
'#EC5F33'
,
'#E52800'
,
'#CA1D00'
],
[
'#FF9400'
,
'#FF6C00'
,
'#EC5F33'
,
'#E52800'
,
'#CA1D00'
],
[
'#FFD34A'
,
'#FFC300'
,
'#FFB637'
,
'#FF9400'
,
'#FF6C00'
,
'#EC5F33'
,
'#E52800'
,
'#CA1D00'
]
]
export
const
Config
=
{
/** 爪子能伸出去的长度 */
maxLong
:
644
,
/** 摇晃速度 */
rotationSpeed
:
1
,
/** 爪子伸出去的速度 */
playSpeed
:
350
,
/** 普通道具移动速度 */
normalPropSpeed
:
250
,
/** 高级道具移动速度 */
bestPropSpeed
:
500
,
/** 每轮生成加分道具数量 */
bestPropsNum
:
3
,
/** 普通道具每种最多生成数量 */
propsNum
:
2
,
/** 每关的游戏时间 */
countDowns
:
[
30
,
30
,
30
],
/** 关卡信息 */
LevelInfo
:
[
{
level
:
1
,
/** 目标数量 */
num
:
10
,
/** 倒计时 */
cds
:
30
,
},
{
level
:
1
,
/** 目标数量 */
num
:
5
,
/** 倒计时 */
cds
:
30
,
},
{
level
:
1
,
/** 目标数量 */
num
:
8
,
/** 倒计时 */
cds
:
30
,
}
],
/** 进度默认颜色 */
defaultColor
:
"#FF6C00"
,
/** 道具分布图 4*3 */
propsMap
:
[
[
1
,
0
,
0
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
],
[
1
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
]
]
/** 块矩阵最大行 */
maxRow
:
10
,
/** 块矩阵最大列 */
maxCol
:
10
}
\ No newline at end of file
assets/Script/GameScene.ts
View file @
3086c8db
...
...
@@ -9,9 +9,16 @@ const { ccclass, property } = cc._decorator;
@
ccclass
export
default
class
GameScene
extends
cc
.
Component
{
/** 默认底色块 */
@
property
(
cc
.
Prefab
)
defaultBlock
:
cc
.
Prefab
=
null
/** 游戏配置 */
gameConfig
=
{
...
Config
}
/** 方块矩阵 */
blockMatrix
:
cc
.
Node
=
null
protected
onLoad
():
void
{
...
...
@@ -23,9 +30,23 @@ export default class GameScene extends cc.Component {
}
start
()
{
this
.
blockMatrix
=
cc
.
find
(
'blockMatrix'
,
this
.
node
)
this
.
setDefaultBlock
()
this
.
addNodeEvent
()
}
/** 设置默认方块底色块 */
setDefaultBlock
()
{
const
{
maxRow
,
maxCol
}
=
this
.
gameConfig
const
parent
=
this
.
blockMatrix
for
(
let
i
=
0
;
i
<
maxRow
;
i
++
)
{
for
(
let
j
=
0
;
j
<
maxCol
;
j
++
)
{
const
block
=
cc
.
instantiate
(
this
.
defaultBlock
)
block
.
setParent
(
parent
)
}
}
}
/** 添加节点的事件 */
addNodeEvent
()
{
// cc.game.on(cc.game.EVENT_HIDE, () => {
...
...
@@ -124,12 +145,12 @@ export default class GameScene extends cc.Component {
/** 下一关 */
nextLevel
()
{
}
/** 刷新舞台道具 */
refreshStageProps
()
{
}
update
(
dt
:
number
):
void
{
...
...
assets/Script/
blockItem
.ts
→
assets/Script/
miniBlock
.ts
View file @
3086c8db
// Learn TypeScript:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
@
ccclass
export
default
class
BlockItem
extends
cc
.
Component
{
export
default
class
NewClass
extends
cc
.
Component
{
isMove
=
false
viewWidth
=
0
viewHeight
=
0
/** 方块矩阵外层容器 */
blockMatrix
:
cc
.
Node
=
null
start
()
{
this
.
viewHeight
=
cc
.
view
.
getVisibleSize
().
height
this
.
viewWidth
=
cc
.
view
.
getVisibleSize
().
width
this
.
addNodeEvent
()
const
matrix
=
cc
.
find
(
'blockMatrix'
,
this
.
node
.
parent
)
const
matrix
=
this
.
blockMatrix
=
cc
.
find
(
'blockMatrix'
,
this
.
node
.
parent
)
const
node
=
matrix
.
children
[
0
]
const
k
=
node
.
convertToWorldSpaceAR
(
node
.
getPosition
())
console
.
log
(
'start'
,
k
.
x
,
k
.
y
)
...
...
@@ -31,16 +42,19 @@ export default class BlockItem extends cc.Component {
addNodeEvent
()
{
this
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
()
=>
{
console
.
log
(
'TOUCH_START'
)
this
.
isMove
=
true
this
.
node
.
scale
=
1.57
},
this
)
this
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
()
=>
{
console
.
log
(
'TOUCH_END'
)
this
.
setBlockMatrixAll
(
this
.
node
.
getPosition
())
},
this
)
this
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_MOVE
,
(
e
:
cc
.
Event
.
EventTouch
)
=>
{
const
allBlock
=
this
.
node
.
children
const
matrix
=
cc
.
find
(
'blockMatrix'
,
this
.
node
.
parent
)
const
matrix
=
this
.
blockMatrix
const
node
=
allBlock
[
0
]
const
blockPos
=
node
.
convertToWorldSpaceAR
(
node
.
getPosition
())
...
...
@@ -50,7 +64,7 @@ export default class BlockItem extends cc.Component {
if
(
this
.
isMove
)
{
const
pos
:
cc
.
Vec2
=
e
.
getPreviousLocation
()
const
viewW
=
this
.
viewWidth
,
viewH
=
this
.
viewHeight
this
.
node
.
setPosition
(
pos
.
x
-
(
viewW
/
2
),
pos
.
y
-
(
812
-
(
1624
-
viewH
)
/
2
))
}
},
this
)
...
...
assets/Script/
blockItem
.ts.meta
→
assets/Script/
miniBlock
.ts.meta
View file @
3086c8db
{
"ver": "1.1.0",
"uuid": "
d3a58978-56d5-45f1-b300-f7e269a2a93a
",
"uuid": "
005cb974-4dad-45ce-acb8-fb0f1da60d28
",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
...
...
assets/resources/prefab/
procItem
.prefab
→
assets/resources/prefab/
block
.prefab
View file @
3086c8db
...
...
@@ -13,7 +13,7 @@
},
{
"__type__": "cc.Node",
"_name": "
procItem
",
"_name": "
block
",
"_objFlags": 0,
"_parent": null,
"_children": [],
...
...
@@ -21,23 +21,26 @@
"_components": [
{
"__id__": 2
},
{
"__id__": 3
}
],
"_prefab": {
"__id__":
3
"__id__":
4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r":
229
,
"g": 1
23
,
"b": 1
23
,
"r":
143
,
"g": 1
86
,
"b": 1
86
,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width":
39
,
"height":
41
"width":
58
,
"height":
58
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -48,8 +51,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
20.5
,
0,
-270
,
27
0,
0,
0,
0,
...
...
@@ -105,6 +108,16 @@
"_atlas": null,
"_id": ""
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
...
...
assets/resources/prefab/
procItem
.prefab.meta
→
assets/resources/prefab/
block
.prefab.meta
View file @
3086c8db
{
"ver": "1.3.2",
"uuid": "
579f375a-1df7-440f-aded-3c14d59e021d
",
"uuid": "
00d2b9dc-0261-4f19-854e-b24e4a40a5a6
",
"importer": "prefab",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment