Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
interactiveGames_Level
Project
Project
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xuxing@jiuaoedu.com
interactiveGames_Level
Commits
ed99c6cc
Commit
ed99c6cc
authored
Feb 10, 2022
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
算式接龙好了
parent
85a40717
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1027 additions
and
407 deletions
+1027
-407
FormulaSolitaire_1.scene
...dle/games/formulaSolitaire/scene/FormulaSolitaire_1.scene
+1003
-401
FormulaSolitaireCtr.ts
...ndle/games/formulaSolitaire/script/FormulaSolitaireCtr.ts
+24
-6
No files found.
assets/sceneBundle/games/formulaSolitaire/scene/FormulaSolitaire_1.scene
View file @
ed99c6cc
...
...
@@ -10,7 +10,7 @@
},
{
"__type__": "cc.Scene",
"_name": "FormulaSolitaire",
"_name": "FormulaSolitaire
_1
",
"_objFlags": 0,
"_parent": null,
"_children": [
...
...
@@ -29,7 +29,7 @@
"_prefab": null,
"autoReleaseAssets": false,
"_globals": {
"__id__":
79
"__id__":
102
},
"_id": "1cd9e018-8b35-4525-bca9-8418f7439cca"
},
...
...
@@ -215,22 +215,28 @@
"__id__": 25
},
{
"__id__": 54
"__id__": 38
},
{
"__id__": 61
},
{
"__id__": 79
}
],
"_active": true,
"_components": [
{
"__id__":
72
"__id__":
95
},
{
"__id__":
74
"__id__":
97
},
{
"__id__":
76
"__id__":
99
},
{
"__id__":
78
"__id__":
101
}
],
"_prefab": null,
...
...
@@ -318,7 +324,7 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight":
466.39305103148
75,
"_orthoHeight":
3
75,
"_near": 1,
"_far": 2000,
"_color": {
...
...
@@ -744,7 +750,7 @@
},
{
"__type__": "cc.Node",
"_name": "
Layout
",
"_name": "
resultNode
",
"_objFlags": 0,
"_parent": {
"__id__": 7
...
...
@@ -754,29 +760,23 @@
"__id__": 26
},
{
"__id__": 32
},
{
"__id__": 43
"__id__": 31
}
],
"_active": true,
"_components": [
{
"__id__": 49
},
{
"__id__": 51
"__id__": 36
},
{
"__id__":
53
"__id__":
37
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x":
0
,
"y":
325
,
"x":
511.457
,
"y":
-109.40899999999999
,
"z": 0
},
"_lrot": {
...
...
@@ -792,18 +792,18 @@
"y": 1,
"z": 1
},
"_layer":
33554432
,
"_layer":
1073741824
,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "d
87p/7xs1GrouEdakdi0gT
"
"_id": "d
7mp2E6VVH/LoLwHTZPKmY
"
},
{
"__type__": "cc.Node",
"_name": "
名称框
",
"_name": "
resultSpr
",
"_objFlags": 0,
"_parent": {
"__id__": 25
...
...
@@ -816,15 +816,12 @@
},
{
"__id__": 29
},
{
"__id__": 31
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x":
-526
,
"x":
0
,
"y": 0,
"z": 0
},
...
...
@@ -848,7 +845,7 @@
"y": 0,
"z": 0
},
"_id": "
5dmYirkoNFOLcw2HVEoy8h
"
"_id": "
11VCe/+lBCfok7euQnLO/a
"
},
{
"__type__": "cc.UITransform",
...
...
@@ -863,15 +860,15 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2
62
,
"height":
69
"width": 2
80
,
"height":
120
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "
4cxTuxaMpFL64gNsuH6Wug
"
"_id": "
dc23pu5uxEH6LKvCOLs1tm
"
},
{
"__type__": "cc.CompPrefabInfo",
...
...
@@ -894,18 +891,18 @@
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r":
255
,
"g":
255
,
"b":
255
,
"a":
255
"r":
0
,
"g":
0
,
"b":
0
,
"a":
80
},
"_spriteFrame": {
"__uuid__": "
27f9e1c5-9a40-47ab-8f5c-721bb5d34eb5
@f9941",
"__uuid__": "
7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca
@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode":
1
,
"_sizeMode":
0
,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
...
...
@@ -916,115 +913,33 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "1
4YoHAekVKQJs1PEskhsxU
"
"_id": "1
bm2IG30BPbb/xRTSFRFVd
"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e71ctEmpxFC4KlSYRZNz/a"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 9,
"_target": null,
"_left": 10,
"_right": 0,
"_top": 15.5,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "51ww3D/ZNPOZcQfFinmfkE"
},
{
"__type__": "cc.Node",
"_name": "
时间框
",
"_name": "
resultLab
",
"_objFlags": 0,
"_parent": {
"__id__": 25
},
"_children": [
{
"__id__": 33
}
],
"_active": true,
"_components": [
{
"__id__": 38
},
{
"__id__": 40
},
{
"__id__": 42
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 464,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "00+tePsJBBMIyD5GVrvaRs"
},
{
"__type__": "cc.Node",
"_name": "timeLab",
"_objFlags": 0,
"_parent": {
"__id__": 32
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
4
"__id__": 3
2
},
{
"__id__": 3
6
"__id__": 3
4
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x":
94.847
,
"x":
0
,
"y": 0,
"z": 0
},
...
...
@@ -1048,30 +963,30 @@
"y": 0,
"z": 0
},
"_id": "
a3Sy5LjUpOHIsmQObp/qKf
"
"_id": "
259M6GvIxNV6ROM7wuzeYt
"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
3
"__id__": 3
1
},
"_enabled": true,
"__prefab": {
"__id__": 3
5
"__id__": 3
3
},
"_contentSize": {
"__type__": "cc.Size",
"width":
100.
1,
"height": 5
0.4
"width":
84.5
1,
"height": 5
2.92
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "
e7W9i4CydEFKWLO6msxI7k
"
"_id": "
b8BAr0LQBBKKQe7tnA1C05
"
},
{
"__type__": "cc.CompPrefabInfo",
...
...
@@ -1082,11 +997,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
3
"__id__": 3
1
},
"_enabled": true,
"__prefab": {
"__id__": 3
7
"__id__": 3
5
},
"_visFlags": 0,
"_customMaterial": null,
...
...
@@ -1099,13 +1014,13 @@
"b": 255,
"a": 255
},
"_string": "
00:00
",
"_horizontalAlign":
1
,
"_string": "
label
",
"_horizontalAlign":
0
,
"_verticalAlign": 1,
"_actualFontSize": 40,
"_fontSize": 40,
"_fontFamily": "Arial",
"_lineHeight": 4
0
,
"_lineHeight": 4
2
,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
...
...
@@ -1115,7 +1030,7 @@
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_id": "1c
6JWiMA9Ckr4els4LOBcR
"
"_id": "1c
H7e9o2RKvoUdWt6SwcAN
"
},
{
"__type__": "cc.CompPrefabInfo",
...
...
@@ -1126,88 +1041,37 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
32
"__id__":
25
},
"_enabled": true,
"__prefab": {
"__id__": 39
},
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width":
376
,
"height":
69
"width":
280
,
"height":
120
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "36FE8twstL6Lm2YUmZfpYG"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f7NISe7HdAD68SLfhnddy8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"__prefab": {
"__id__": 41
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "4ca08d57-ebb2-435a-910c-7b6c15aa85c8@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "c2r8qak6RM7IafH2bmFcnU"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e71ctEmpxFC4KlSYRZNz/a"
"_id": "f4Q7f6DZpMqrj+Lm6hU8Lv"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
32
"__id__":
25
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 3
3
,
"_alignFlags": 3
6
,
"_target": null,
"_left": 0,
"_right": 15,
"_top":
15.5
,
"_bottom":
0
,
"_right": 15
.543000000000006
,
"_top":
0
,
"_bottom":
205.591
,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
...
...
@@ -1220,33 +1084,40 @@
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "
b1vr+me/dEDKL5NWX7Jqdb
"
"_id": "
43Zq0ke7JAfandi7eqGFAu
"
},
{
"__type__": "cc.Node",
"_name": "
resultLab
",
"_name": "
Layout
",
"_objFlags": 0,
"_parent": {
"__id__":
25
"__id__":
7
},
"_children": [],
"_children": [
{
"__id__": 39
},
{
"__id__": 45
}
],
"_active": true,
"_components": [
{
"__id__":
44
"__id__":
56
},
{
"__id__":
46
"__id__":
58
},
{
"__id__":
48
"__id__":
60
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y":
0
,
"y":
325
,
"z": 0
},
"_lrot": {
...
...
@@ -1269,45 +1140,94 @@
"y": 0,
"z": 0
},
"_id": "
e4jXva4ZdOPre9SFh67c6+
"
"_id": "
d87p/7xs1GrouEdakdi0gT
"
},
{
"__type__": "cc.
UITransform
",
"_name": "",
"__type__": "cc.
Node
",
"_name": "
名称框
",
"_objFlags": 0,
"node": {
"__id__": 43
},
"_enabled": true,
"__prefab": {
"__id__": 45
},
"_contentSize": {
"__type__": "cc.Size",
"width": 266.74,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
"_parent": {
"__id__": 38
},
"_id": "aeVBfupBBHe5xe13VLnJ6a"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c68UOAlNhN171Umca6yVvF"
"_children": [],
"_active": true,
"_components": [
{
"__id__": 40
},
{
"__id__": 42
},
{
"__id__": 44
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": -526,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "5dmYirkoNFOLcw2HVEoy8h"
},
{
"__type__": "cc.
Label
",
"__type__": "cc.
UITransform
",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
"__id__": 39
},
"_enabled": true,
"__prefab": {
"__id__": 41
},
"_contentSize": {
"__type__": "cc.Size",
"width": 262,
"height": 69
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "4cxTuxaMpFL64gNsuH6Wug"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f7NISe7HdAD68SLfhnddy8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"__prefab": {
"__id__": 4
7
"__id__": 4
3
},
"_visFlags": 0,
"_customMaterial": null,
...
...
@@ -1320,42 +1240,43 @@
"b": 255,
"a": 255
},
"_string": "正确答案:666",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 40,
"_fontSize": 40,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_id": "48ixDMIgBGl4xebUuZN2uU"
"_spriteFrame": {
"__uuid__": "27f9e1c5-9a40-47ab-8f5c-721bb5d34eb5@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "14YoHAekVKQJs1PEskhsxU"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "
2frm37uaJHQr0AEEaYyM82
"
"fileId": "
e71ctEmpxFC4KlSYRZNz/a
"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
43
"__id__":
39
},
"_enabled": true,
"__prefab": null,
"_alignFlags":
16
,
"_alignFlags":
9
,
"_target": null,
"_left": 0,
"_left":
1
0,
"_right": 0,
"_top":
0
,
"_top":
15.5
,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
...
...
@@ -1369,86 +1290,706 @@
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "bbbhbHRghG1oZLsplNeT4h"
"_id": "51ww3D/ZNPOZcQfFinmfkE"
},
{
"__type__": "cc.Node",
"_name": "时间框",
"_objFlags": 0,
"_parent": {
"__id__": 38
},
"_children": [
{
"__id__": 46
}
],
"_active": true,
"_components": [
{
"__id__": 51
},
{
"__id__": 53
},
{
"__id__": 55
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 464,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "00+tePsJBBMIyD5GVrvaRs"
},
{
"__type__": "cc.Node",
"_name": "timeLab",
"_objFlags": 0,
"_parent": {
"__id__": 45
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 47
},
{
"__id__": 49
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 94.847,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "a3Sy5LjUpOHIsmQObp/qKf"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 46
},
"_enabled": true,
"__prefab": {
"__id__": 48
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100.1,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "e7W9i4CydEFKWLO6msxI7k"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c68UOAlNhN171Umca6yVvF"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 46
},
"_enabled": true,
"__prefab": {
"__id__": 50
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "00:00",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 40,
"_fontSize": 40,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_id": "1c6JWiMA9Ckr4els4LOBcR"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2frm37uaJHQr0AEEaYyM82"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
},
"_enabled": true,
"__prefab": {
"__id__": 52
},
"_contentSize": {
"__type__": "cc.Size",
"width": 376,
"height": 69
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "36FE8twstL6Lm2YUmZfpYG"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f7NISe7HdAD68SLfhnddy8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
},
"_enabled": true,
"__prefab": {
"__id__": 54
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "4ca08d57-ebb2-435a-910c-7b6c15aa85c8@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "c2r8qak6RM7IafH2bmFcnU"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e71ctEmpxFC4KlSYRZNz/a"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 33,
"_target": null,
"_left": 0,
"_right": 15,
"_top": 15.5,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "b1vr+me/dEDKL5NWX7Jqdb"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
},
"_enabled": true,
"__prefab": {
"__id__": 57
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "8byt9RjqBOJpbIV3KeDOh0"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "71F9vsVsZH7ZFd+PpN0azA"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
},
"_enabled": false,
"__prefab": {
"__id__": 59
},
"_resizeMode": 1,
"_layoutType": 1,
"_cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_startAxis": 0,
"_paddingLeft": 0,
"_paddingRight": 0,
"_paddingTop": 0,
"_paddingBottom": 0,
"_spacingX": 0,
"_spacingY": 0,
"_verticalDirection": 1,
"_horizontalDirection": 0,
"_constraint": 0,
"_constraintNum": 2,
"_affectedByScale": false,
"_isAlign": false,
"_id": "22fXVDp8lOh7Py3nuPR1m4"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "eaGEkmlCpANK+GS6CImtZa"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 41,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1334,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "bdgUo7irFBBpqziZWQwIqa"
},
{
"__type__": "cc.Node",
"_name": "gameDescBtn",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 62
},
{
"__id__": 67
}
],
"_active": true,
"_components": [
{
"__id__": 72
},
{
"__id__": 74
},
{
"__id__": 76
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 527.627,
"y": 211.904,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "98Dy+ccbdPKo49slGUgFRW"
},
{
"__type__": "cc.Node",
"_name": "bgSpr",
"_objFlags": 0,
"_parent": {
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 63
},
{
"__id__": 65
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "bc+U0tf1hLQbm/9zsgLmHA"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
},
"_enabled": true,
"__prefab": {
"__id__": 64
},
"_contentSize": {
"__type__": "cc.Size",
"width": 160,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "dejCKqimBMQ7ovnJ0alUy8"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
},
"_enabled": true,
"__prefab": {
"__id__": 66
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 120
},
"_spriteFrame": {
"__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "6b6/qPCuNPD5cE52zWuIhK"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "20UGQn4U9GUoln0NJQTkbG"
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 68
},
{
"__id__": 70
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "e9bM82rDhHK5k6wLKIe6XA"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 67
},
"_enabled": true,
"__prefab": {
"__id__": 69
},
"_contentSize": {
"__type__": "cc.Size",
"width": 128,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "e6bCNa4QRGEqA2cd5jIbyA"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c68UOAlNhN171Umca6yVvF"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 67
},
"_enabled": true,
"__prefab": {
"__id__": 71
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "玩法说明",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 32,
"_fontSize": 32,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_id": "d1Nw2AA6JP2rf1f33QSrJH"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2frm37uaJHQr0AEEaYyM82"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
25
"__id__":
61
},
"_enabled": true,
"__prefab": {
"__id__":
50
"__id__":
73
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
334
,
"height":
10
0
"width": 1
60
,
"height":
6
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "8byt9RjqBOJpbIV3KeDOh0"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "71F9vsVsZH7ZFd+PpN0azA"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": false,
"__prefab": {
"__id__": 52
},
"_resizeMode": 1,
"_layoutType": 1,
"_cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_startAxis": 0,
"_paddingLeft": 0,
"_paddingRight": 0,
"_paddingTop": 0,
"_paddingBottom": 0,
"_spacingX": 0,
"_spacingY": 0,
"_verticalDirection": 1,
"_horizontalDirection": 0,
"_constraint": 0,
"_constraintNum": 2,
"_affectedByScale": false,
"_isAlign": false,
"_id": "22fXVDp8lOh7Py3nuPR1m4"
"_id": "ddAnERZ1BNxLoVZfSF5gTS"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "
eaGEkmlCpANK+GS6CImtZa
"
"fileId": "
30AFpV6rhJLKJMbjqrvDLm
"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
25
"__id__":
61
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 41,
"__prefab": {
"__id__": 75
},
"_alignFlags": 33,
"_target": null,
"_left": 0,
"_right":
0
,
"_top":
0
,
"_right":
59.37300000000005
,
"_top":
133.096
,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
...
...
@@ -1458,44 +1999,117 @@
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth":
1334
,
"_originalWidth":
0
,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "bdgUo7irFBBpqziZWQwIqa"
"_id": "e4SYDWpuhAtp22QPZQevyq"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ebKiXA481GJaVCm3yUMRB/"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 61
},
"_enabled": true,
"__prefab": {
"__id__": 77
},
"clickEvents": [
{
"__id__": 78
}
],
"_interactable": true,
"_transition": 0,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": null,
"_id": "4c/dcDP0tEroRkwqvLBp6W"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "fasaRsl0VPiqKt+O6/ppa2"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 7
},
"component": "",
"_componentId": "2a0e2TL1OJAoISTn0XIADXR",
"handler": "showGameDescView",
"customEventData": ""
},
{
"__type__": "cc.Node",
"_name": "
gameDesc
Btn",
"_name": "
reset
Btn",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__":
55
"__id__":
80
},
{
"__id__":
60
"__id__":
85
}
],
"_active": true,
"_components": [
{
"__id__":
65
"__id__":
90
},
{
"__id__":
67
"__id__":
92
},
{
"__id__":
69
"__id__":
94
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 5
27.627
,
"y":
211.904
,
"x": 5
19.364
,
"y":
-279.08299999999997
,
"z": 0
},
"_lrot": {
...
...
@@ -1518,23 +2132,23 @@
"y": 0,
"z": 0
},
"_id": "
98Dy+ccbdPKo49slGUgFRW
"
"_id": "
b3uilBYsRJeadLzCsZLzm3
"
},
{
"__type__": "cc.Node",
"_name": "bgSpr",
"_objFlags": 0,
"_parent": {
"__id__":
54
"__id__":
79
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
56
"__id__":
81
},
{
"__id__":
58
"__id__":
83
}
],
"_prefab": null,
...
...
@@ -1564,22 +2178,22 @@
"y": 0,
"z": 0
},
"_id": "
bc+U0tf1hLQbm/9zsgLmHA
"
"_id": "
37QmisHnNNHpPRscruup14
"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
55
"__id__":
80
},
"_enabled": true,
"__prefab": {
"__id__":
57
"__id__":
82
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
6
0,
"width": 1
2
0,
"height": 60
},
"_anchorPoint": {
...
...
@@ -1587,7 +2201,7 @@
"x": 0.5,
"y": 0.5
},
"_id": "
dejCKqimBMQ7ovnJ0alUy8
"
"_id": "
653cmRIbJEIIw50Upx2Vut
"
},
{
"__type__": "cc.CompPrefabInfo",
...
...
@@ -1598,11 +2212,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
55
"__id__":
80
},
"_enabled": true,
"__prefab": {
"__id__":
59
"__id__":
84
},
"_visFlags": 0,
"_customMaterial": null,
...
...
@@ -1632,7 +2246,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "
6b6/qPCuNPD5cE52zWuIhK
"
"_id": "
f5cE7G8YpA+ovHA26SPWdL
"
},
{
"__type__": "cc.CompPrefabInfo",
...
...
@@ -1643,16 +2257,16 @@
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__":
54
"__id__":
79
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
61
"__id__":
86
},
{
"__id__":
63
"__id__":
88
}
],
"_prefab": null,
...
...
@@ -1682,22 +2296,22 @@
"y": 0,
"z": 0
},
"_id": "
e9bM82rDhHK5k6wLKIe6X
A"
"_id": "
3emwrCuVdE1bXgM74cQsO
A"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
60
"__id__":
85
},
"_enabled": true,
"__prefab": {
"__id__":
62
"__id__":
87
},
"_contentSize": {
"__type__": "cc.Size",
"width":
128
,
"width":
80
,
"height": 50.4
},
"_anchorPoint": {
...
...
@@ -1705,7 +2319,7 @@
"x": 0.5,
"y": 0.5
},
"_id": "e
6bCNa4QRGEqA2cd5jIbyA
"
"_id": "e
57LzoVCFGUqggRPuuBWqh
"
},
{
"__type__": "cc.CompPrefabInfo",
...
...
@@ -1716,11 +2330,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
60
"__id__":
85
},
"_enabled": true,
"__prefab": {
"__id__":
64
"__id__":
89
},
"_visFlags": 0,
"_customMaterial": null,
...
...
@@ -1733,11 +2347,11 @@
"b": 255,
"a": 255
},
"_string": "
玩法说明
",
"_string": "
还原
",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize":
32
,
"_fontSize":
32
,
"_actualFontSize":
40
,
"_fontSize":
40
,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
...
...
@@ -1749,7 +2363,7 @@
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_id": "
d1Nw2AA6JP2rf1f33QSrJH
"
"_id": "
84DoofcsNKhowq8NgUCXkc
"
},
{
"__type__": "cc.CompPrefabInfo",
...
...
@@ -1760,15 +2374,15 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
54
"__id__":
79
},
"_enabled": true,
"__prefab": {
"__id__":
66
"__id__":
91
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
6
0,
"width": 1
2
0,
"height": 60
},
"_anchorPoint": {
...
...
@@ -1776,65 +2390,28 @@
"x": 0.5,
"y": 0.5
},
"_id": "ddAnERZ1BNxLoVZfSF5gTS"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "30AFpV6rhJLKJMbjqrvDLm"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
},
"_enabled": true,
"__prefab": {
"__id__": 68
},
"_alignFlags": 33,
"_target": null,
"_left": 0,
"_right": 59.37300000000005,
"_top": 133.096,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "e4SYDWpuhAtp22QPZQevyq"
"_id": "93Y21FWfJDtZ99rgggM/IW"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "
ebKiXA481GJaVCm3yUMRB/
"
"fileId": "
55pCbtzR5GbojKMArZkfim
"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
54
"__id__":
79
},
"_enabled": true,
"__prefab": {
"__id__": 70
},
"__prefab": null,
"clickEvents": [
{
"__id__":
71
"__id__":
93
}
],
"_interactable": true,
"_transition":
0
,
"_transition":
3
,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
...
...
@@ -1868,13 +2445,9 @@
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale":
1.2
,
"_zoomScale":
0.85
,
"_target": null,
"_id": "4c/dcDP0tEroRkwqvLBp6W"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "fasaRsl0VPiqKt+O6/ppa2"
"_id": "de5lHeVo9NNKhRvKbd9qP3"
},
{
"__type__": "cc.ClickEvent",
...
...
@@ -1883,9 +2456,38 @@
},
"component": "",
"_componentId": "2a0e2TL1OJAoISTn0XIADXR",
"handler": "
showGameDescView
",
"handler": "
onResetBtnClick
",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 79
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 36,
"_target": null,
"_left": 0,
"_right": 87.63599999999997,
"_top": 0,
"_bottom": 65.917,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "d0kHAtbHNGKpoOcUT2Oo8m"
},
{
"__type__": "cc.UITransform",
"_name": "",
...
...
@@ -1895,7 +2497,7 @@
},
"_enabled": true,
"__prefab": {
"__id__":
73
"__id__":
96
},
"_contentSize": {
"__type__": "cc.Size",
...
...
@@ -1922,7 +2524,7 @@
},
"_enabled": true,
"__prefab": {
"__id__":
75
"__id__":
98
},
"_cameraComponent": {
"__id__": 9
...
...
@@ -1943,7 +2545,7 @@
},
"_enabled": true,
"__prefab": {
"__id__":
77
"__id__":
100
},
"_alignFlags": 45,
"_target": null,
...
...
@@ -1989,27 +2591,27 @@
"__expectedType__": "cc.Prefab"
},
"countdownLab": {
"__id__":
36
"__id__":
49
},
"totalTime": 100,
"resultLab": {
"__id__":
46
"__id__":
34
},
"_id": "604qNVtc5GtKxU+Lzl4Mik"
},
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__":
80
"__id__":
103
},
"shadows": {
"__id__":
81
"__id__":
104
},
"_skybox": {
"__id__":
82
"__id__":
105
},
"fog": {
"__id__":
83
"__id__":
106
}
},
{
...
...
assets/sceneBundle/games/formulaSolitaire/script/FormulaSolitaireCtr.ts
View file @
ed99c6cc
...
...
@@ -9,6 +9,7 @@ import { viewMgr, VIEW_INDEX } from '../../../../startFolder/script/common/ViewM
import
{
BeginCountdownView
}
from
'../../commonView/script/BeginCountdownView'
;
import
{
ChallengeSuccView
}
from
'../../commonView/script/ChallengeSuccView'
;
import
{
GameDescView
}
from
'../../commonView/script/GameDescView'
;
import
{
SwitchOkView
}
from
'../../commonView/script/SwitchOkView'
;
import
{
FormulaSolitaireCfg
,
FS_LV_1
,
FS_LV_2
}
from
'./FormulaSolitaireCfg'
;
import
{
FormulaSolitaireItem
,
FS_ITEM_STATE
}
from
'./FormulaSolitaireItem'
;
const
{
ccclass
,
property
}
=
_decorator
;
...
...
@@ -259,10 +260,15 @@ export class FormulaSolitaireCtr extends Component {
gameEnd
(
isWin
:
boolean
)
{
this
.
gameState
=
GAME_STATE
.
END
;
if
(
isWin
)
{
viewMgr
.
openView
(
VIEW_DEF
.
ChallengeSuccView
,
(
node
)
=>
{
AudioMgr
.
playEffect
(
succMus
);
node
?.
getComponent
(
ChallengeSuccView
)?.
init
();
},
VIEW_INDEX
.
TOP
);
AudioMgr
.
playEffect
(
succMus
);
viewMgr
.
openView
(
VIEW_DEF
.
SwitchOkView
,
(
node
)
=>
{
node
.
getComponent
(
SwitchOkView
)
!
.
endCb
=
()
=>
{
viewMgr
.
openView
(
VIEW_DEF
.
ChallengeSuccView
,
(
node
)
=>
{
node
?.
getComponent
(
ChallengeSuccView
)?.
init
();
},
VIEW_INDEX
.
TOP
);
};
node
.
getComponent
(
SwitchOkView
)?.
init
(
1.5
);
});
}
else
{
viewMgr
.
openView
(
VIEW_DEF
.
ChallengeFailView
,
(
node
)
=>
{
...
...
@@ -272,7 +278,7 @@ export class FormulaSolitaireCtr extends Component {
}
checkWin
()
{
if
(
this
.
allLinePointArr
.
length
<
this
.
levelData
.
resultCount
)
return
false
;
//
if (this.allLinePointArr.length < this.levelData.resultCount) return false;
let
retArr
:
number
[][]
=
[];
for
(
let
i
=
0
;
i
<
this
.
allLinePointArr
.
length
;
++
i
)
{
let
numAtrArr
:
string
[]
=
[];
...
...
@@ -289,6 +295,7 @@ export class FormulaSolitaireCtr extends Component {
}
console
.
log
(
`所有结果`
);
console
.
log
(
retArr
);
this
.
resultLab
.
string
=
`算式结果:`
+
this
.
levelData
.
result
+
"
\
n"
+
`剩余算式:`
+
(
this
.
levelData
.
resultCount
-
count
);
if
(
count
>=
this
.
levelData
.
resultCount
)
return
true
;
return
false
;
}
...
...
@@ -329,6 +336,17 @@ export class FormulaSolitaireCtr extends Component {
return
null
;
}
onResetBtnClick
(){
for
(
let
i
=
0
;
i
<
this
.
allLinePointArr
.
length
;
++
i
)
{
let
line
=
this
.
allLinePointArr
[
i
];
for
(
let
j
=
0
;
j
<
line
.
length
;
++
j
)
{
line
[
j
].
target
.
getComponent
(
FormulaSolitaireItem
)?.
setItemState
(
FS_ITEM_STATE
.
CENTER
);
line
[
j
].
target
.
getComponent
(
FormulaSolitaireItem
)?.
setColor
(
Color
.
fromHEX
(
new
Color
(),
this
.
orgColor
));
}
}
this
.
allLinePointArr
=
[];
}
gameStart
()
{
this
.
gameState
=
GAME_STATE
.
READY
;
this
.
countdownLab
.
string
=
Utils
.
formatTime
(
Math
.
floor
(
this
.
totalTime
*
1000
));
...
...
@@ -336,7 +354,7 @@ export class FormulaSolitaireCtr extends Component {
this
.
curLinePointArr
=
[];
this
.
allLinePointArr
=
[];
this
.
loadLevelData
();
this
.
resultLab
.
string
=
`
正确答案:`
+
this
.
levelData
.
resul
t
;
this
.
resultLab
.
string
=
`
算式结果:`
+
this
.
levelData
.
result
+
"
\
n"
+
`剩余算式:`
+
this
.
levelData
.
resultCoun
t
;
this
.
creAllItem
();
this
.
setBgSprSize
();
viewMgr
.
openView
(
VIEW_DEF
.
BeginCountdownView
,
(
node
)
=>
{
...
...
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