Commit 400e77fe authored by unknown's avatar unknown

纵横填数完全好了

parent 086d8625
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "f808b95f-27d0-4292-b534-72a0b37d6584",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "f808b95f-27d0-4292-b534-72a0b37d6584@6c48a",
"displayName": "时间框",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "f808b95f-27d0-4292-b534-72a0b37d6584"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "f808b95f-27d0-4292-b534-72a0b37d6584@f9941",
"displayName": "时间框",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 376,
"height": 69,
"rawWidth": 376,
"rawHeight": 69,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "f808b95f-27d0-4292-b534-72a0b37d6584@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "f808b95f-27d0-4292-b534-72a0b37d6584@f9941"
}
}
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
"_prefab": null, "_prefab": null,
"autoReleaseAssets": false, "autoReleaseAssets": false,
"_globals": { "_globals": {
"__id__": 56 "__id__": 97
}, },
"_id": "3ad49fde-89b1-44df-a173-4859cc88e56d" "_id": "3ad49fde-89b1-44df-a173-4859cc88e56d"
}, },
...@@ -213,21 +213,27 @@ ...@@ -213,21 +213,27 @@
}, },
{ {
"__id__": 25 "__id__": 25
},
{
"__id__": 49
},
{
"__id__": 72
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 49 "__id__": 90
}, },
{ {
"__id__": 51 "__id__": 92
}, },
{ {
"__id__": 53 "__id__": 94
}, },
{ {
"__id__": 55 "__id__": 96
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1387,70 +1393,197 @@ ...@@ -1387,70 +1393,197 @@
"_lockFlags": 0, "_lockFlags": 0,
"_id": "7a3k0lVCpJAaEYUpN0AOkW" "_id": "7a3k0lVCpJAaEYUpN0AOkW"
}, },
{
"__type__": "cc.Node",
"_name": "Layout",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 50
},
{
"__id__": 56
}
],
"_active": true,
"_components": [
{
"__id__": 67
},
{
"__id__": 69
},
{
"__id__": 71
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 325,
"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": "3akjklR3hMsbp4ftmmWLgs"
},
{
"__type__": "cc.Node",
"_name": "名称框",
"_objFlags": 0,
"_parent": {
"__id__": 49
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 51
},
{
"__id__": 53
},
{
"__id__": 55
}
],
"_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": "5frUJlUelO8pXGHDFWQ4v9"
},
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 7 "__id__": 50
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 50 "__id__": 52
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1334, "width": 262,
"height": 750 "height": 69
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
}, },
"_id": "77h/0bttNLhJ0Uf0DOgkDU" "_id": "99/SCO4RVIS7BMAwbyxur+"
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "0dngp/9gNO34wUQjZfN/CX" "fileId": "f7NISe7HdAD68SLfhnddy8"
}, },
{ {
"__type__": "cc.Canvas", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 7 "__id__": 50
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 52 "__id__": 54
}, },
"_cameraComponent": { "_visFlags": 0,
"__id__": 9 "_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
}, },
"_alignCanvasWithScreen": true, "_spriteFrame": {
"_id": "97DFCFxOZMxoNqwB/NSqX/" "__uuid__": "82bb2269-c436-4db6-b00e-3ef4b2c9ef2c@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": "6fBa+mzelPeagShFpY7l1z"
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "3f2oTdCepERZdpmIfLsrhd" "fileId": "e71ctEmpxFC4KlSYRZNz/a"
}, },
{ {
"__type__": "cc.Widget", "__type__": "cc.Widget",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 7 "__id__": 50
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": null,
"__id__": 54 "_alignFlags": 9,
},
"_alignFlags": 45,
"_target": null, "_target": null,
"_left": 0, "_left": 10,
"_right": 0, "_right": 0,
"_top": 0, "_top": 15.5,
"_bottom": 0, "_bottom": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
...@@ -1464,52 +1597,919 @@ ...@@ -1464,52 +1597,919 @@
"_originalHeight": 0, "_originalHeight": 0,
"_alignMode": 2, "_alignMode": 2,
"_lockFlags": 0, "_lockFlags": 0,
"_id": "0fEIdRzs1JLbklr3mlph2N" "_id": "e9TBu3VSRBwrvuMN27tOHh"
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.Node",
"fileId": "e8a+bU/8dPDbbJguUzLdoF" "_name": "时间框",
"_objFlags": 0,
"_parent": {
"__id__": 49
}, },
"_children": [
{ {
"__type__": "98565897FBD5a+inp9Ql6Pb", "__id__": 57
"_name": "", }
"_objFlags": 0, ],
"node": { "_active": true,
"__id__": 7 "_components": [
{
"__id__": 62
}, },
"_enabled": true, {
"__prefab": null, "__id__": 64
"posArrNode": {
"__id__": 22
}, },
"bottomSprNode": { {
"__id__": 16 "__id__": 66
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 464,
"y": 0,
"z": 0
}, },
"itemPre": { "_lrot": {
"__uuid__": "6ab87c96-648b-4f6d-9657-b62462e29fa7", "__type__": "cc.Quat",
"__expectedType__": "cc.Prefab" "x": 0,
"y": 0,
"z": 0,
"w": 1
}, },
"countdownLab": null, "_lscale": {
"totalTime": 0, "__type__": "cc.Vec3",
"optionsTogsNode": { "x": 1,
"__id__": 25 "y": 1,
"z": 1
}, },
"_id": "9c51FsCINLt5Ht8FPD7e0N" "_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "24Qxp8/FpJzp+ll8qDOOj+"
}, },
{ {
"__type__": "cc.SceneGlobals", "__type__": "cc.Node",
"ambient": { "_name": "timeLab",
"__id__": 57 "_objFlags": 0,
"_parent": {
"__id__": 56
}, },
"shadows": { "_children": [],
"_active": true,
"_components": [
{
"__id__": 58 "__id__": 58
}, },
"_skybox": { {
"__id__": 59
},
"fog": {
"__id__": 60 "__id__": 60
} }
],
"_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": "b4Zk8NOnZJq4nX0peRm2q9"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
},
"_enabled": true,
"__prefab": {
"__id__": 59
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100.1,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "55Z46/skRIG4teYuAw/G3j"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c68UOAlNhN171Umca6yVvF"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
},
"_enabled": true,
"__prefab": {
"__id__": 61
},
"_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": "c49j1OCK9Md5169us8UQNK"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2frm37uaJHQr0AEEaYyM82"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
},
"_enabled": true,
"__prefab": {
"__id__": 63
},
"_contentSize": {
"__type__": "cc.Size",
"width": 376,
"height": 69
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "47X9x5RMVIh6dP05U8FEV+"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f7NISe7HdAD68SLfhnddy8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
},
"_enabled": true,
"__prefab": {
"__id__": 65
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "f808b95f-27d0-4292-b534-72a0b37d6584@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": "ec7n7X42dFvLi2hzmKiB3V"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e71ctEmpxFC4KlSYRZNz/a"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
},
"_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": "89l9P2/OVIrLsAFEuw98jH"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": true,
"__prefab": {
"__id__": 68
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "4fEtU2NuRCZ7qcfdLnuPSd"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "71F9vsVsZH7ZFd+PpN0azA"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": false,
"__prefab": {
"__id__": 70
},
"_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": "f4uwi37ExLHr9/IMM0XenJ"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "eaGEkmlCpANK+GS6CImtZa"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_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": "412SrP5M5MMpetmQWzj5b3"
},
{
"__type__": "cc.Node",
"_name": "gameDescBtn",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 73
},
{
"__id__": 78
}
],
"_active": true,
"_components": [
{
"__id__": 83
},
{
"__id__": 85
},
{
"__id__": 87
}
],
"_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": "92alkZBdtHE5EvPsnuguLG"
},
{
"__type__": "cc.Node",
"_name": "bgSpr",
"_objFlags": 0,
"_parent": {
"__id__": 72
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 74
},
{
"__id__": 76
}
],
"_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": "e833GeI7BMpajPjOpbLSus"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 73
},
"_enabled": true,
"__prefab": {
"__id__": 75
},
"_contentSize": {
"__type__": "cc.Size",
"width": 160,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "4eUIJzaBtL2qve9esGqdTN"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 73
},
"_enabled": true,
"__prefab": {
"__id__": 77
},
"_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": "22zrV3SPBErpBNWSI5ZuKy"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "20UGQn4U9GUoln0NJQTkbG"
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 72
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 79
},
{
"__id__": 81
}
],
"_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": "dbLoNZaKlDb6wk0Ca5ZhMx"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 78
},
"_enabled": true,
"__prefab": {
"__id__": 80
},
"_contentSize": {
"__type__": "cc.Size",
"width": 128,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "0fg1RjeepFkKnFozqZIkQF"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c68UOAlNhN171Umca6yVvF"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 78
},
"_enabled": true,
"__prefab": {
"__id__": 82
},
"_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": "2eCZly1wRGlZf7JWN2oVKi"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2frm37uaJHQr0AEEaYyM82"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
},
"_enabled": true,
"__prefab": {
"__id__": 84
},
"_contentSize": {
"__type__": "cc.Size",
"width": 160,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "8dEMxeUGZNSIm5RMzInXZD"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "30AFpV6rhJLKJMbjqrvDLm"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
},
"_enabled": true,
"__prefab": {
"__id__": 86
},
"_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": "fbLDKseqRPUa529H29qsFH"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ebKiXA481GJaVCm3yUMRB/"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
},
"_enabled": true,
"__prefab": {
"__id__": 88
},
"clickEvents": [
{
"__id__": 89
}
],
"_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": "5fhAyvln9ODKv6EBoCeV4s"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "fasaRsl0VPiqKt+O6/ppa2"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 7
},
"component": "",
"_componentId": "98565897FBD5a+inp9Ql6Pb",
"handler": "showGameDescView",
"customEventData": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": {
"__id__": 91
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "77h/0bttNLhJ0Uf0DOgkDU"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "0dngp/9gNO34wUQjZfN/CX"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": {
"__id__": 93
},
"_cameraComponent": {
"__id__": 9
},
"_alignCanvasWithScreen": true,
"_id": "97DFCFxOZMxoNqwB/NSqX/"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "3f2oTdCepERZdpmIfLsrhd"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": {
"__id__": 95
},
"_alignFlags": 45,
"_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": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "0fEIdRzs1JLbklr3mlph2N"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e8a+bU/8dPDbbJguUzLdoF"
},
{
"__type__": "98565897FBD5a+inp9Ql6Pb",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": null,
"posArrNode": {
"__id__": 22
},
"bottomSprNode": {
"__id__": 16
},
"itemPre": {
"__uuid__": "6ab87c96-648b-4f6d-9657-b62462e29fa7",
"__expectedType__": "cc.Prefab"
},
"countdownLab": {
"__id__": 60
},
"totalTime": 90,
"optionsTogsNode": {
"__id__": 25
},
"_id": "9c51FsCINLt5Ht8FPD7e0N"
},
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 98
},
"shadows": {
"__id__": 99
},
"_skybox": {
"__id__": 100
},
"fog": {
"__id__": 101
}
}, },
{ {
"__type__": "cc.AmbientInfo", "__type__": "cc.AmbientInfo",
......
...@@ -39,3 +39,31 @@ export const vhfn_lv_1: VHFillNumCfg = { ...@@ -39,3 +39,31 @@ export const vhfn_lv_1: VHFillNumCfg = {
], ],
options: [5, 2, 8] options: [5, 2, 8]
} }
export const vhfn_lv_2: VHFillNumCfg = {
row: 4,
column: 4,
numArr: [
[2, 4, 2, 10],
[6, 5, 2, 60],
[3, 3, 3, 9],
[4, 60, 7, -1]
],
emptyCtrArr: [
[1, 0, 1, 1],
[0, 0, 1, 1],
[1, 1, 0, 1],
[1, 1, 1, 1]
],
rowSymb: [
["+", "×", "="],
["×", "×", "="],
["+", "+", "="]
],
columnSymb: [
["×", "×", "×"],
["÷", "×", "+"],
["=", "=", "="],
],
options: [5, 6, 4, 3]
}
import { _decorator, Component, Node, Prefab, Label, CCFloat, Vec3, UITransform, instantiate, v3, Color, Toggle, director } from 'cc'; import { _decorator, Component, Node, Prefab, Label, CCFloat, Vec3, UITransform, instantiate, v3, Color, Toggle, director } from 'cc';
import { failMus, succMus } from '../../../../startFolder/script/common/AudioDef'; import { countdownMus, failMus, succMus } from '../../../../startFolder/script/common/AudioDef';
import { AudioMgr } from '../../../../startFolder/script/common/AudioMgr'; import { AudioMgr } from '../../../../startFolder/script/common/AudioMgr';
import { Utils } from '../../../../startFolder/script/common/Utils';
import { VIEW_DEF } from '../../../../startFolder/script/common/ViewDef'; import { VIEW_DEF } from '../../../../startFolder/script/common/ViewDef';
import { viewMgr, VIEW_INDEX } from '../../../../startFolder/script/common/ViewMgr'; import { viewMgr, VIEW_INDEX } from '../../../../startFolder/script/common/ViewMgr';
import { BeginCountdownView } from '../../commonView/script/BeginCountdownView';
import { ChallengeSuccView } from '../../commonView/script/ChallengeSuccView'; import { ChallengeSuccView } from '../../commonView/script/ChallengeSuccView';
import { VHFillNumCfg, vhfn_lv_1 } from './VHFillNumCfg'; import { GameDescView } from '../../commonView/script/GameDescView';
import { VHFillNumCfg, vhfn_lv_1, vhfn_lv_2 } from './VHFillNumCfg';
import { VHFillNumItem, VHFN_ITEM_TYPE } from './VHFillNumItem'; import { VHFillNumItem, VHFN_ITEM_TYPE } from './VHFillNumItem';
const { ccclass, property } = _decorator; const { ccclass, property } = _decorator;
...@@ -51,16 +54,64 @@ export class VHFillNumCtr extends Component { ...@@ -51,16 +54,64 @@ export class VHFillNumCtr extends Component {
private itemPosIfoArr: ItemPosIfo[] = []; private itemPosIfoArr: ItemPosIfo[] = [];
private row = 4; private row = 4;
private column = 4; private column = 4;
private level = 1; private level = 2;
private levelData: VHFillNumCfg = null!; private levelData: VHFillNumCfg = null!;
private selNum = 0; private selNum = 0;
private gameState = GAME_STATE.READY; private gameState = GAME_STATE.READY;
private costTime = 0;
private isPlayCountdownMus = false;
private isShowGameDescViewOnce = false;
showGameDescView() {
this.isShowGameDescViewOnce = true;
viewMgr.openView(VIEW_DEF.GameDescView, (node) => {
node.getComponent(GameDescView)?.setDesc("选择数字填入空格使横着的和竖着的算式都要成立。\n注意:不论从左到右还是从上到下都要符合四则运算优先级。");
});
}
onCloseGameDescView() {
this.gameState = GAME_STATE.RUN;
}
setGameData(resData: object) {
//@ts-ignore
if (resData.totalTime) {
//@ts-ignore
this.totalTime = resData.totalTime;
}
//@ts-ignore
if (resData.level) {
//@ts-ignore
this.level = resData.level;
}
//@ts-ignore
if (resData.isShowGuide) {
//@ts-ignore
this.isShowGameDescViewOnce = false;
}
else {
this.isShowGameDescViewOnce = true;
}
}
start() { start() {
// [3] // [3]
director.on("VHFM_click", this.onItemClick, this); director.on("VHFM_click", this.onItemClick, this);
director.on("begin_countdown_end", () => {
//引导
if (!this.isShowGameDescViewOnce) {
this.gameState = GAME_STATE.PAUSE;
this.showGameDescView();
}
else {
this.gameState = GAME_STATE.RUN;
}
}, this);
director.on("game_desc_close", this.onCloseGameDescView, this);
this.gameStart(); this.gameStart();
} }
...@@ -68,25 +119,42 @@ export class VHFillNumCtr extends Component { ...@@ -68,25 +119,42 @@ export class VHFillNumCtr extends Component {
director.off("VHFM_click", this.onItemClick, this); director.off("VHFM_click", this.onItemClick, this);
} }
//倒计时
countdownTime(dt: number) {
if (this.gameState == GAME_STATE.READY || this.gameState == GAME_STATE.END || this.gameState == GAME_STATE.PAUSE) {
return;
}
this.costTime += dt;
if (!this.isPlayCountdownMus && this.totalTime - this.costTime < 3.5) {
this.isPlayCountdownMus = true;
AudioMgr.playOneShot(countdownMus);
}
if (this.totalTime - this.costTime <= 0) {
console.log(`游戏时间到`);
this.gameEnd(false);
return;
}
this.countdownLab.string = Utils.formatTime(Math.floor((this.totalTime - this.costTime) * 1000));
}
gameStart() { gameStart() {
this.countdownLab.string = Utils.formatTime(Math.floor(this.totalTime * 1000));
this.gameState = GAME_STATE.READY; this.gameState = GAME_STATE.READY;
this.loadLevelData(); this.loadLevelData();
this.creAllItem(); this.creAllItem();
this.creOptions(); this.creOptions();
this.setBgSprSize(); this.setBgSprSize();
this.checkWin(); this.checkWin();
this.gameState = GAME_STATE.RUN; viewMgr.openView(VIEW_DEF.BeginCountdownView, (node) => {
node.getComponent(BeginCountdownView)?.init();
}, VIEW_INDEX.UPPER);
} }
onItemClick(item: VHFillNumItem) { onItemClick(item: VHFillNumItem) {
console.log(`一个item被点击2`);
if (item.itemType == VHFN_ITEM_TYPE.RESULT || item.itemType == VHFN_ITEM_TYPE.FIX_ELE) return; if (item.itemType == VHFN_ITEM_TYPE.RESULT || item.itemType == VHFN_ITEM_TYPE.FIX_ELE) return;
item.showNum = this.selNum; item.showNum = this.selNum;
if (this.checkWin()) { if (this.checkWin()) {
console.log(`游戏成功`); this.gameEnd(true);
}
else {
console.log(`游戏还没成功`);
} }
} }
...@@ -102,14 +170,14 @@ export class VHFillNumCtr extends Component { ...@@ -102,14 +170,14 @@ export class VHFillNumCtr extends Component {
let optArr: string[] = []; let optArr: string[] = [];
for (let i = 0; i < optArr_1.length; ++i) { for (let i = 0; i < optArr_1.length; ++i) {
optArr.push(optArr_1[i]); optArr.push(optArr_1[i]);
if(optArr_2[i]) optArr.push(optArr_2[i]); if (optArr_2[i]) optArr.push(optArr_2[i]);
} }
// console.log(`传入的算式行: ${r}`); // console.log(`传入的算式行: ${r}`);
// console.log(optArr); // console.log(optArr);
if(this.calculator(optArr) == itemPosIfoArr[itemPosIfoArr.length - 1].target.getComponent(VHFillNumItem)!.showNum){ if (this.calculator(optArr) == itemPosIfoArr[itemPosIfoArr.length - 1].target.getComponent(VHFillNumItem)!.showNum) {
itemPosIfoArr[itemPosIfoArr.length - 1].target.getComponent(VHFillNumItem)!.bgSpr.node.active = true; itemPosIfoArr[itemPosIfoArr.length - 1].target.getComponent(VHFillNumItem)!.bgSpr.node.active = true;
} }
else{ else {
isWin = false; isWin = false;
itemPosIfoArr[itemPosIfoArr.length - 1].target.getComponent(VHFillNumItem)!.bgSpr.node.active = false; itemPosIfoArr[itemPosIfoArr.length - 1].target.getComponent(VHFillNumItem)!.bgSpr.node.active = false;
} }
...@@ -125,14 +193,14 @@ export class VHFillNumCtr extends Component { ...@@ -125,14 +193,14 @@ export class VHFillNumCtr extends Component {
let optArr: string[] = []; let optArr: string[] = [];
for (let i = 0; i < optArr_1.length; ++i) { for (let i = 0; i < optArr_1.length; ++i) {
optArr.push(optArr_1[i]); optArr.push(optArr_1[i]);
if(optArr_2[i]) optArr.push(optArr_2[i]); if (optArr_2[i]) optArr.push(optArr_2[i]);
} }
// console.log(`传入的算式列: ${c}`); // console.log(`传入的算式列: ${c}`);
// console.log(optArr); // console.log(optArr);
if(this.calculator(optArr) == itemPosIfoArr[itemPosIfoArr.length - 1].target.getComponent(VHFillNumItem)!.showNum){ if (this.calculator(optArr) == itemPosIfoArr[itemPosIfoArr.length - 1].target.getComponent(VHFillNumItem)!.showNum) {
itemPosIfoArr[itemPosIfoArr.length - 1].target.getComponent(VHFillNumItem)!.bgSpr.node.active = true; itemPosIfoArr[itemPosIfoArr.length - 1].target.getComponent(VHFillNumItem)!.bgSpr.node.active = true;
} }
else{ else {
isWin = false; isWin = false;
itemPosIfoArr[itemPosIfoArr.length - 1].target.getComponent(VHFillNumItem)!.bgSpr.node.active = false; itemPosIfoArr[itemPosIfoArr.length - 1].target.getComponent(VHFillNumItem)!.bgSpr.node.active = false;
} }
...@@ -322,6 +390,9 @@ export class VHFillNumCtr extends Component { ...@@ -322,6 +390,9 @@ export class VHFillNumCtr extends Component {
case 1: case 1:
this.levelData = vhfn_lv_1; this.levelData = vhfn_lv_1;
break; break;
case 2:
this.levelData = vhfn_lv_2;
break;
default: default:
this.levelData = vhfn_lv_1; this.levelData = vhfn_lv_1;
break; break;
...@@ -391,20 +462,21 @@ export class VHFillNumCtr extends Component { ...@@ -391,20 +462,21 @@ export class VHFillNumCtr extends Component {
getOperatorArr(idx: number, isRow: boolean) { getOperatorArr(idx: number, isRow: boolean) {
let optArr: string[] = []; let optArr: string[] = [];
if(isRow){ if (isRow) {
for(let i = 0; i < this.levelData.rowSymb[idx].length - 1; ++ i){ for (let i = 0; i < this.levelData.rowSymb[idx].length - 1; ++i) {
optArr.push(this.levelData.rowSymb[idx][i]); optArr.push(this.levelData.rowSymb[idx][i]);
} }
} }
else{ else {
for(let i = 0; i < this.levelData.columnSymb.length - 1; ++ i){ for (let i = 0; i < this.levelData.columnSymb.length - 1; ++i) {
optArr.push(this.levelData.columnSymb[i][idx]); optArr.push(this.levelData.columnSymb[i][idx]);
} }
} }
return optArr; return optArr;
} }
// update (deltaTime: number) { update(deltaTime: number) {
// // [4] // [4]
// } this.countdownTime(deltaTime);
}
} }
...@@ -72,7 +72,6 @@ export class VHFillNumItem extends Component { ...@@ -72,7 +72,6 @@ export class VHFillNumItem extends Component {
// console.log(`一个item被点击0`); // console.log(`一个item被点击0`);
// console.log(this.clickNode); // console.log(this.clickNode);
this.clickNode.on(Node.EventType.TOUCH_END, () => { this.clickNode.on(Node.EventType.TOUCH_END, () => {
console.log(`一个item被点击1`);
director.emit("VHFM_click", this); director.emit("VHFM_click", this);
}); });
} }
......
...@@ -1109,4 +1109,32 @@ export const levelCfg: OneVarLevelItf[] = [ ...@@ -1109,4 +1109,32 @@ export const levelCfg: OneVarLevelItf[] = [
} }
] ]
} }
, {
gameIdHead: 180,
title: "纵横填数",
desc: "纵横填数,第一个版本",
levelArr: [{
gameId: 18001,
sceneUnitIfo: SCENE_DEF.VHFillNum_1,
comName: "VHFillNumCtr",
level: 1,
resData: {
totalTime: 60,
level: 1,
isShowGuide: true
}
}
, {
gameId: 18002,
sceneUnitIfo: SCENE_DEF.VHFillNum_1,
comName: "VHFillNumCtr",
level: 2,
resData: {
totalTime: 120,
level: 2
}
}
]
}
]; ];
\ No newline at end of file
...@@ -26,7 +26,7 @@ export class LevelHomeCtr extends Component { ...@@ -26,7 +26,7 @@ export class LevelHomeCtr extends Component {
// [3] // [3]
if (!levelMgr.loadedOutData) { if (!levelMgr.loadedOutData) {
levelMgr.loadedOutData = true; levelMgr.loadedOutData = true;
levelMgr.gameIdHead = 170; levelMgr.gameIdHead = 180;
levelMgr.unLockCount = 10; levelMgr.unLockCount = 10;
if (Utils.getValueFromHref("gameIdHead")) { if (Utils.getValueFromHref("gameIdHead")) {
levelMgr.gameIdHead = Number(Utils.getValueFromHref("gameIdHead")); levelMgr.gameIdHead = Number(Utils.getValueFromHref("gameIdHead"));
......
...@@ -103,6 +103,8 @@ interface ScenePathItf { ...@@ -103,6 +103,8 @@ interface ScenePathItf {
DigitalMysteryFigure_1: ScenePathUnitItf, DigitalMysteryFigure_1: ScenePathUnitItf,
//邻接数组 //邻接数组
AdjacentArray_1: ScenePathUnitItf, AdjacentArray_1: ScenePathUnitItf,
//纵横填数
VHFillNum_1: ScenePathUnitItf,
} }
export const SCENE_DEF: ScenePathItf = { export const SCENE_DEF: ScenePathItf = {
TestScene: { TestScene: {
...@@ -445,4 +447,9 @@ export const SCENE_DEF: ScenePathItf = { ...@@ -445,4 +447,9 @@ export const SCENE_DEF: ScenePathItf = {
sceneName: "AdjacentArray_1", sceneName: "AdjacentArray_1",
desc: "邻接数组,第一个版本" desc: "邻接数组,第一个版本"
}, },
VHFillNum_1: {
bundleName: "sceneBundle",
sceneName: "VHFillNum_1",
desc: "纵横填数,第一个版本"
},
} }
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