Commit c17f6288 authored by unknown's avatar unknown

食物派对和快问快答加入玩法说明

parent 2941a6e8
...@@ -51,8 +51,8 @@ ...@@ -51,8 +51,8 @@
"rawHeight": 110, "rawHeight": 110,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 53,
"borderRight": 0, "borderRight": 51,
"packable": true, "packable": true,
"isUuid": true, "isUuid": true,
"imageUuidOrDatabaseUri": "e46a0e17-feab-47b2-a420-68e833a7f45f@6c48a", "imageUuidOrDatabaseUri": "e46a0e17-feab-47b2-a420-68e833a7f45f@6c48a",
......
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "fc3861cd-4450-42f8-93c8-d8eb45c13e60",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "fc3861cd-4450-42f8-93c8-d8eb45c13e60@6c48a",
"displayName": "编组 3备份 8",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "fc3861cd-4450-42f8-93c8-d8eb45c13e60"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "fc3861cd-4450-42f8-93c8-d8eb45c13e60@f9941",
"displayName": "编组 3备份 8",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 240,
"height": 110,
"rawWidth": 240,
"rawHeight": 110,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 191,
"borderRight": 25,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "fc3861cd-4450-42f8-93c8-d8eb45c13e60@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "fc3861cd-4450-42f8-93c8-d8eb45c13e60@f9941"
}
}
...@@ -853,7 +853,7 @@ ...@@ -853,7 +853,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 240, "width": 280,
"height": 110 "height": 110
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -893,9 +893,9 @@ ...@@ -893,9 +893,9 @@
"__uuid__": "e46a0e17-feab-47b2-a420-68e833a7f45f@f9941", "__uuid__": "e46a0e17-feab-47b2-a420-68e833a7f45f@f9941",
"__expectedType__": "cc.SpriteFrame" "__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 1,
"_fillType": 0, "_fillType": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0,
...@@ -972,7 +972,7 @@ ...@@ -972,7 +972,7 @@
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "8ekrwCGFJAf4/g0sSsV4qu" "fileId": "22Zg5K6ZhBfKuBfamLGz7p"
}, },
{ {
"__type__": "cc.ClickEvent", "__type__": "cc.ClickEvent",
...@@ -992,7 +992,7 @@ ...@@ -992,7 +992,7 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "575AJ1gZNLmJ65Hg90j7us" "fileId": "adHlrsiSNAYqMH9zH6Fw7j"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -1071,7 +1071,7 @@ ...@@ -1071,7 +1071,7 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 67.014, "x": 106.169,
"y": 4.469, "y": 4.469,
"z": 0 "z": 0
}, },
...@@ -1191,7 +1191,7 @@ ...@@ -1191,7 +1191,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 240, "width": 280,
"height": 110 "height": 110
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -1228,12 +1228,12 @@ ...@@ -1228,12 +1228,12 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "0f027098-877e-40c1-84d2-fa8a96cadf53@f9941", "__uuid__": "fc3861cd-4450-42f8-93c8-d8eb45c13e60@f9941",
"__expectedType__": "cc.SpriteFrame" "__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 1,
"_fillType": 0, "_fillType": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0,
...@@ -1296,10 +1296,7 @@ ...@@ -1296,10 +1296,7 @@
"b": 124, "b": 124,
"a": 255 "a": 255
}, },
"_normalSprite": { "_normalSprite": null,
"__uuid__": "0f027098-877e-40c1-84d2-fa8a96cadf53@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_hoverSprite": null, "_hoverSprite": null,
"_pressedSprite": null, "_pressedSprite": null,
"_disabledSprite": null, "_disabledSprite": null,
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"__id__": 7 "__id__": 7
}, },
{ {
"__id__": 415 "__id__": 433
} }
], ],
"_active": true, "_active": true,
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
"_prefab": null, "_prefab": null,
"autoReleaseAssets": false, "autoReleaseAssets": false,
"_globals": { "_globals": {
"__id__": 418 "__id__": 436
}, },
"_id": "bbaa59e4-e35a-4490-aa28-03b4a919ed35" "_id": "bbaa59e4-e35a-4490-aa28-03b4a919ed35"
}, },
...@@ -213,21 +213,24 @@ ...@@ -213,21 +213,24 @@
}, },
{ {
"__id__": 363 "__id__": 363
},
{
"__id__": 408
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 408 "__id__": 426
}, },
{ {
"__id__": 410 "__id__": 428
}, },
{ {
"__id__": 412 "__id__": 430
}, },
{ {
"__id__": 414 "__id__": 432
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -10652,17 +10655,439 @@ ...@@ -10652,17 +10655,439 @@
"_lockFlags": 0, "_lockFlags": 0,
"_id": "4bnXSV7PREJ7Kp+9G1OcE5" "_id": "4bnXSV7PREJ7Kp+9G1OcE5"
}, },
{
"__type__": "cc.Node",
"_name": "gameDescBtn",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 409
},
{
"__id__": 414
}
],
"_active": true,
"_components": [
{
"__id__": 419
},
{
"__id__": 421
},
{
"__id__": 423
}
],
"_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": "a9gcHCu91BJZz7gKezisRh"
},
{
"__type__": "cc.Node",
"_name": "bgSpr",
"_objFlags": 0,
"_parent": {
"__id__": 408
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 410
},
{
"__id__": 412
}
],
"_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": "945DrFaRxOE6+kPT2MdRIb"
},
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 7 "__id__": 409
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 411
},
"_contentSize": {
"__type__": "cc.Size",
"width": 160,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "92gzqtEGNE95HIIfFEkNvt"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 409 "__id__": 409
}, },
"_enabled": true,
"__prefab": {
"__id__": 413
},
"_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": "a5id+Yeb5Ob5aeIUAApZAE"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "20UGQn4U9GUoln0NJQTkbG"
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 408
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 415
},
{
"__id__": 417
}
],
"_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": "f4pWalf/BJ1rgMewma5TSe"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 414
},
"_enabled": true,
"__prefab": {
"__id__": 416
},
"_contentSize": {
"__type__": "cc.Size",
"width": 128,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "87WlIMnh1AJKD/M2vnDGIP"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c68UOAlNhN171Umca6yVvF"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 414
},
"_enabled": true,
"__prefab": {
"__id__": 418
},
"_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": "d5E0yl9F5GLJLQyoaIN0Xg"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2frm37uaJHQr0AEEaYyM82"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 408
},
"_enabled": true,
"__prefab": {
"__id__": 420
},
"_contentSize": {
"__type__": "cc.Size",
"width": 160,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "20Nj4e2pFGzrgx8oAS7IOO"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "30AFpV6rhJLKJMbjqrvDLm"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 408
},
"_enabled": true,
"__prefab": {
"__id__": 422
},
"_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": "b1SBgmp19Ci4fYk4NUASIX"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ebKiXA481GJaVCm3yUMRB/"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 408
},
"_enabled": true,
"__prefab": {
"__id__": 424
},
"clickEvents": [
{
"__id__": 425
}
],
"_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": "58oPYDSjtJLrYV7LSXAeMf"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "fasaRsl0VPiqKt+O6/ppa2"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 7
},
"component": "",
"_componentId": "05c6dEUD1FHRKMEWceN8K/n",
"handler": "showGameDescView",
"customEventData": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": {
"__id__": 427
},
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1334, "width": 1334,
...@@ -10688,7 +11113,7 @@ ...@@ -10688,7 +11113,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 411 "__id__": 429
}, },
"_cameraComponent": { "_cameraComponent": {
"__id__": 9 "__id__": 9
...@@ -10709,7 +11134,7 @@ ...@@ -10709,7 +11134,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 413 "__id__": 431
}, },
"_alignFlags": 45, "_alignFlags": 45,
"_target": null, "_target": null,
...@@ -10768,7 +11193,8 @@ ...@@ -10768,7 +11193,8 @@
}, },
"oneScore": 10, "oneScore": 10,
"succScore": 100, "succScore": 100,
"foodCount": 2, "foodVarCount": 0,
"foodNumCount": 0,
"totalTime": 120, "totalTime": 120,
"evaluationPercents": [ "evaluationPercents": [
0.8, 0.8,
...@@ -10788,10 +11214,10 @@ ...@@ -10788,10 +11214,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 416 "__id__": 434
}, },
{ {
"__id__": 417 "__id__": 435
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -10828,7 +11254,7 @@ ...@@ -10828,7 +11254,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 415 "__id__": 433
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
...@@ -10843,28 +11269,28 @@ ...@@ -10843,28 +11269,28 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 415 "__id__": 433
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
"audioSource": { "audioSource": {
"__id__": 416 "__id__": 434
}, },
"_id": "74OWWswGFH8YfFpxuOS3wx" "_id": "74OWWswGFH8YfFpxuOS3wx"
}, },
{ {
"__type__": "cc.SceneGlobals", "__type__": "cc.SceneGlobals",
"ambient": { "ambient": {
"__id__": 419 "__id__": 437
}, },
"shadows": { "shadows": {
"__id__": 420 "__id__": 438
}, },
"_skybox": { "_skybox": {
"__id__": 421 "__id__": 439
}, },
"fog": { "fog": {
"__id__": 422 "__id__": 440
} }
}, },
{ {
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"__id__": 7 "__id__": 7
}, },
{ {
"__id__": 415 "__id__": 433
} }
], ],
"_active": true, "_active": true,
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
"_prefab": null, "_prefab": null,
"autoReleaseAssets": false, "autoReleaseAssets": false,
"_globals": { "_globals": {
"__id__": 418 "__id__": 436
}, },
"_id": "8a787276-9d38-4401-b13f-b39f1cb0a145" "_id": "8a787276-9d38-4401-b13f-b39f1cb0a145"
}, },
...@@ -213,21 +213,24 @@ ...@@ -213,21 +213,24 @@
}, },
{ {
"__id__": 363 "__id__": 363
},
{
"__id__": 408
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 408 "__id__": 426
}, },
{ {
"__id__": 410 "__id__": 428
}, },
{ {
"__id__": 412 "__id__": 430
}, },
{ {
"__id__": 414 "__id__": 432
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -10652,17 +10655,439 @@ ...@@ -10652,17 +10655,439 @@
"_lockFlags": 0, "_lockFlags": 0,
"_id": "4bnXSV7PREJ7Kp+9G1OcE5" "_id": "4bnXSV7PREJ7Kp+9G1OcE5"
}, },
{
"__type__": "cc.Node",
"_name": "gameDescBtn",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 409
},
{
"__id__": 414
}
],
"_active": true,
"_components": [
{
"__id__": 419
},
{
"__id__": 421
},
{
"__id__": 423
}
],
"_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": "bex/GS2bRE+5HMka/VJV2x"
},
{
"__type__": "cc.Node",
"_name": "bgSpr",
"_objFlags": 0,
"_parent": {
"__id__": 408
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 410
},
{
"__id__": 412
}
],
"_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": "39K4cFXUVJb59xJ5Nc9AC2"
},
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 7 "__id__": 409
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 411
},
"_contentSize": {
"__type__": "cc.Size",
"width": 160,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "ff3y4B9k1C3o/P6CEZb/Xc"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 409 "__id__": 409
}, },
"_enabled": true,
"__prefab": {
"__id__": 413
},
"_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": "91BZkqSaRL3IVcHtp30tqV"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "20UGQn4U9GUoln0NJQTkbG"
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 408
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 415
},
{
"__id__": 417
}
],
"_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": "31mmze9RBIJ7JkXoCrDjot"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 414
},
"_enabled": true,
"__prefab": {
"__id__": 416
},
"_contentSize": {
"__type__": "cc.Size",
"width": 128,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "f0fAtpuOxHXY2jibHS/Rtg"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c68UOAlNhN171Umca6yVvF"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 414
},
"_enabled": true,
"__prefab": {
"__id__": 418
},
"_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": "4f1zac4lhFdrk2j3AYWTJF"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2frm37uaJHQr0AEEaYyM82"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 408
},
"_enabled": true,
"__prefab": {
"__id__": 420
},
"_contentSize": {
"__type__": "cc.Size",
"width": 160,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "daY1biMu1CbKcSUGImXOkj"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "30AFpV6rhJLKJMbjqrvDLm"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 408
},
"_enabled": true,
"__prefab": {
"__id__": 422
},
"_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": "7cEP6wgrZEwJ4sEmXa9TZh"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ebKiXA481GJaVCm3yUMRB/"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 408
},
"_enabled": true,
"__prefab": {
"__id__": 424
},
"clickEvents": [
{
"__id__": 425
}
],
"_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": "a99jNUVMdMaobL96oAHwH/"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "fasaRsl0VPiqKt+O6/ppa2"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 7
},
"component": "",
"_componentId": "05c6dEUD1FHRKMEWceN8K/n",
"handler": "showGameDescView",
"customEventData": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": {
"__id__": 427
},
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1334, "width": 1334,
...@@ -10688,7 +11113,7 @@ ...@@ -10688,7 +11113,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 411 "__id__": 429
}, },
"_cameraComponent": { "_cameraComponent": {
"__id__": 9 "__id__": 9
...@@ -10709,7 +11134,7 @@ ...@@ -10709,7 +11134,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 413 "__id__": 431
}, },
"_alignFlags": 45, "_alignFlags": 45,
"_target": null, "_target": null,
...@@ -10771,7 +11196,8 @@ ...@@ -10771,7 +11196,8 @@
}, },
"oneScore": 10, "oneScore": 10,
"succScore": 100, "succScore": 100,
"foodCount": 0, "foodVarCount": 0,
"foodNumCount": 0,
"totalTime": 120, "totalTime": 120,
"evaluationPercents": [ "evaluationPercents": [
0.8, 0.8,
...@@ -10791,10 +11217,10 @@ ...@@ -10791,10 +11217,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 416 "__id__": 434
}, },
{ {
"__id__": 417 "__id__": 435
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -10831,7 +11257,7 @@ ...@@ -10831,7 +11257,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 415 "__id__": 433
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
...@@ -10846,28 +11272,28 @@ ...@@ -10846,28 +11272,28 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 415 "__id__": 433
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
"audioSource": { "audioSource": {
"__id__": 416 "__id__": 434
}, },
"_id": "74OWWswGFH8YfFpxuOS3wx" "_id": "74OWWswGFH8YfFpxuOS3wx"
}, },
{ {
"__type__": "cc.SceneGlobals", "__type__": "cc.SceneGlobals",
"ambient": { "ambient": {
"__id__": 419 "__id__": 437
}, },
"shadows": { "shadows": {
"__id__": 420 "__id__": 438
}, },
"_skybox": { "_skybox": {
"__id__": 421 "__id__": 439
}, },
"fog": { "fog": {
"__id__": 422 "__id__": 440
} }
}, },
{ {
......
...@@ -9,6 +9,7 @@ import { GameEndDataItf, htmlSendDataMgr } from '../../../../startFolder/script/ ...@@ -9,6 +9,7 @@ import { GameEndDataItf, htmlSendDataMgr } from '../../../../startFolder/script/
import { BeginCountdownView } from '../../commonView/script/BeginCountdownView'; import { BeginCountdownView } from '../../commonView/script/BeginCountdownView';
import { ChallengeFailView } from '../../commonView/script/ChallengeFailView'; import { ChallengeFailView } from '../../commonView/script/ChallengeFailView';
import { ChallengeSuccView } from '../../commonView/script/ChallengeSuccView'; import { ChallengeSuccView } from '../../commonView/script/ChallengeSuccView';
import { GameDescView } from '../../commonView/script/GameDescView';
import { FFTPPipAnswerView } from './FFTPPipAnswerView'; import { FFTPPipAnswerView } from './FFTPPipAnswerView';
import { FFTPPipCtr } from './FFTPPipCtr'; import { FFTPPipCtr } from './FFTPPipCtr';
const { ccclass, property } = _decorator; const { ccclass, property } = _decorator;
...@@ -88,6 +89,24 @@ export class FoodForThePartyCtr extends Component { ...@@ -88,6 +89,24 @@ export class FoodForThePartyCtr extends Component {
private costTime = 0; private costTime = 0;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
private isShowGameDescViewOnce = false;
showGameDescView() {
viewMgr.openView(VIEW_DEF.GameDescView, (node) => {
node.getComponent(GameDescView)?.setDesc("记住进入每个管道中的每种食物的数量。");
});
}
onCloseGameDescView() {
if (!this.isShowGameDescViewOnce) {
this.isShowGameDescViewOnce = true;
this.roundStart();
}
else {
this.gameState = GAME_STATE.RUN;
}
}
setGameData(resData: object) { setGameData(resData: object) {
console.log(`kkkkkkttttttttt`); console.log(`kkkkkkttttttttt`);
//@ts-ignore //@ts-ignore
...@@ -115,6 +134,14 @@ export class FoodForThePartyCtr extends Component { ...@@ -115,6 +134,14 @@ export class FoodForThePartyCtr extends Component {
//@ts-ignore //@ts-ignore
this.oneScore = resData.oneScore; this.oneScore = resData.oneScore;
} }
//@ts-ignore
if (resData.isShowGuide) {
//@ts-ignore
this.isShowGameDescViewOnce = false;
}
else {
this.isShowGameDescViewOnce = true;
}
} }
start() { start() {
...@@ -131,11 +158,16 @@ export class FoodForThePartyCtr extends Component { ...@@ -131,11 +158,16 @@ export class FoodForThePartyCtr extends Component {
director.on("finish_game", () => { director.on("finish_game", () => {
}); });
director.on("begin_countdown_end", () => { director.on("begin_countdown_end", () => {
//引导 //引导
this.roundStart(); if (!this.isShowGameDescViewOnce) {
this.showGameDescView();
}
else {
this.roundStart();
}
}, this); }, this);
director.on("game_desc_close", this.onCloseGameDescView, this);
director.on("add_score", () => { director.on("add_score", () => {
this.curScore += this.oneScore; this.curScore += this.oneScore;
this.curScoreLab.string = "我的" + this.curScore + "分"; this.curScoreLab.string = "我的" + this.curScore + "分";
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"__id__": 7 "__id__": 7
}, },
{ {
"__id__": 197 "__id__": 215
} }
], ],
"_active": true, "_active": true,
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
"_prefab": null, "_prefab": null,
"autoReleaseAssets": false, "autoReleaseAssets": false,
"_globals": { "_globals": {
"__id__": 200 "__id__": 218
}, },
"_id": "8a251720-37c2-4111-a6ba-91dd4e25ba6e" "_id": "8a251720-37c2-4111-a6ba-91dd4e25ba6e"
}, },
...@@ -216,21 +216,24 @@ ...@@ -216,21 +216,24 @@
}, },
{ {
"__id__": 145 "__id__": 145
},
{
"__id__": 190
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 190 "__id__": 208
}, },
{ {
"__id__": 192 "__id__": 210
}, },
{ {
"__id__": 194 "__id__": 212
}, },
{ {
"__id__": 196 "__id__": 214
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -318,7 +321,7 @@ ...@@ -318,7 +321,7 @@
"_priority": 1073741824, "_priority": 1073741824,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 375.00000000000006, "_orthoHeight": 414.4124472573839,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
...@@ -4928,17 +4931,439 @@ ...@@ -4928,17 +4931,439 @@
"_lockFlags": 0, "_lockFlags": 0,
"_id": "132WbSQa9LIpaW2zh8dryN" "_id": "132WbSQa9LIpaW2zh8dryN"
}, },
{
"__type__": "cc.Node",
"_name": "gameDescBtn",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 191
},
{
"__id__": 196
}
],
"_active": true,
"_components": [
{
"__id__": 201
},
{
"__id__": 203
},
{
"__id__": 205
}
],
"_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": "01sPFVMcJAuIYjCQi+ImIJ"
},
{
"__type__": "cc.Node",
"_name": "bgSpr",
"_objFlags": 0,
"_parent": {
"__id__": 190
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 192
},
{
"__id__": 194
}
],
"_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": "84yLLSz71La4siQ7q+wJlS"
},
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 7 "__id__": 191
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 193
},
"_contentSize": {
"__type__": "cc.Size",
"width": 160,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "5buwLa5WtEi4BF6YPPQbiG"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 191 "__id__": 191
}, },
"_enabled": true,
"__prefab": {
"__id__": 195
},
"_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": "1drD+y89FC+p4bQwhjM86S"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "20UGQn4U9GUoln0NJQTkbG"
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 190
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 197
},
{
"__id__": 199
}
],
"_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": "48i1bA+79F4pjBgnw+W7TX"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 196
},
"_enabled": true,
"__prefab": {
"__id__": 198
},
"_contentSize": {
"__type__": "cc.Size",
"width": 128,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "c29tKZ7cFA+70E8dkWeo4g"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c68UOAlNhN171Umca6yVvF"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 196
},
"_enabled": true,
"__prefab": {
"__id__": 200
},
"_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": "f8z7Fe5JVI44PLZJ1Q9kjb"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2frm37uaJHQr0AEEaYyM82"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 190
},
"_enabled": true,
"__prefab": {
"__id__": 202
},
"_contentSize": {
"__type__": "cc.Size",
"width": 160,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "4cQwZYpg1GMJgAr5+/1CeR"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "30AFpV6rhJLKJMbjqrvDLm"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 190
},
"_enabled": true,
"__prefab": {
"__id__": 204
},
"_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": "69MWyPaNhFBLSV3XKIRZkw"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ebKiXA481GJaVCm3yUMRB/"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 190
},
"_enabled": true,
"__prefab": {
"__id__": 206
},
"clickEvents": [
{
"__id__": 207
}
],
"_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": "09UouClkJHnKltKLAXz5r/"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "fasaRsl0VPiqKt+O6/ppa2"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 7
},
"component": "",
"_componentId": "4f4fb952GpKUJNH9R8gW+Wz",
"handler": "showGameDescView",
"customEventData": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": {
"__id__": 209
},
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1334, "width": 1334,
...@@ -4964,7 +5389,7 @@ ...@@ -4964,7 +5389,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 193 "__id__": 211
}, },
"_cameraComponent": { "_cameraComponent": {
"__id__": 9 "__id__": 9
...@@ -4985,7 +5410,7 @@ ...@@ -4985,7 +5410,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 195 "__id__": 213
}, },
"_alignFlags": 45, "_alignFlags": 45,
"_target": null, "_target": null,
...@@ -5054,10 +5479,10 @@ ...@@ -5054,10 +5479,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 198 "__id__": 216
}, },
{ {
"__id__": 199 "__id__": 217
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5094,7 +5519,7 @@ ...@@ -5094,7 +5519,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 197 "__id__": 215
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
...@@ -5109,28 +5534,28 @@ ...@@ -5109,28 +5534,28 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 197 "__id__": 215
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
"audioSource": { "audioSource": {
"__id__": 198 "__id__": 216
}, },
"_id": "8c4Z9+F61HZI/+d+/73mU+" "_id": "8c4Z9+F61HZI/+d+/73mU+"
}, },
{ {
"__type__": "cc.SceneGlobals", "__type__": "cc.SceneGlobals",
"ambient": { "ambient": {
"__id__": 201 "__id__": 219
}, },
"shadows": { "shadows": {
"__id__": 202 "__id__": 220
}, },
"_skybox": { "_skybox": {
"__id__": 203 "__id__": 221
}, },
"fog": { "fog": {
"__id__": 204 "__id__": 222
} }
}, },
{ {
......
...@@ -9,6 +9,7 @@ import { GameEndDataItf, htmlSendDataMgr } from '../../../../startFolder/script/ ...@@ -9,6 +9,7 @@ import { GameEndDataItf, htmlSendDataMgr } from '../../../../startFolder/script/
import { BeginCountdownView } from '../../commonView/script/BeginCountdownView'; import { BeginCountdownView } from '../../commonView/script/BeginCountdownView';
import { ChallengeFailView } from '../../commonView/script/ChallengeFailView'; import { ChallengeFailView } from '../../commonView/script/ChallengeFailView';
import { ChallengeSuccView } from '../../commonView/script/ChallengeSuccView'; import { ChallengeSuccView } from '../../commonView/script/ChallengeSuccView';
import { GameDescView } from '../../commonView/script/GameDescView';
import { SwitchErrorView } from '../../commonView/script/SwitchErrorView'; import { SwitchErrorView } from '../../commonView/script/SwitchErrorView';
import { SwitchOkView } from '../../commonView/script/SwitchOkView'; import { SwitchOkView } from '../../commonView/script/SwitchOkView';
import { QQDrawingMachineCtr } from './QQDrawingMachineCtr'; import { QQDrawingMachineCtr } from './QQDrawingMachineCtr';
...@@ -59,6 +60,19 @@ export class QuickQuizCtr extends Component { ...@@ -59,6 +60,19 @@ export class QuickQuizCtr extends Component {
private costTime = 0; private costTime = 0;
private isPlayCountdownMus = false; 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) { setGameData(resData: object) {
//@ts-ignore //@ts-ignore
if (resData.totalTime) { if (resData.totalTime) {
...@@ -70,11 +84,19 @@ export class QuickQuizCtr extends Component { ...@@ -70,11 +84,19 @@ export class QuickQuizCtr extends Component {
//@ts-ignore //@ts-ignore
this.succScore = resData.succScore; this.succScore = resData.succScore;
} }
//@ts-ignore //@ts-ignore
if (resData.oneScore) { if (resData.oneScore) {
//@ts-ignore //@ts-ignore
this.oneScore = resData.oneScore; this.oneScore = resData.oneScore;
} }
//@ts-ignore
if (resData.isShowGuide) {
//@ts-ignore
this.isShowGameDescViewOnce = false;
}
else {
this.isShowGameDescViewOnce = true;
}
} }
start() { start() {
...@@ -88,19 +110,27 @@ export class QuickQuizCtr extends Component { ...@@ -88,19 +110,27 @@ export class QuickQuizCtr extends Component {
}); });
director.on("finish_game", () => { director.on("finish_game", () => {
}); });
director.on("begin_countdown_end", () => { director.on("begin_countdown_end", () => {
//引导 //引导
this.gameState = GAME_STATE.RUN; if (!this.isShowGameDescViewOnce) {
this.gameState = GAME_STATE.READY;
this.showGameDescView();
}
else {
this.gameState = GAME_STATE.RUN;
}
}, this); }, this);
director.on("game_desc_close", this.onCloseGameDescView, this);
this.gameStart(); this.gameStart();
} }
onDestroy(){ onDestroy() {
director.off("continue_game"); director.off("continue_game");
director.off("begin_countdown_end"); director.off("begin_countdown_end");
director.off("game_desc_close", this.onCloseGameDescView, this);
} }
update(deltaTime: number) { update(deltaTime: number) {
......
...@@ -48,6 +48,7 @@ export class SudokuCtr extends Component { ...@@ -48,6 +48,7 @@ export class SudokuCtr extends Component {
private isShowGameDescViewOnce = false; private isShowGameDescViewOnce = false;
showGameDescView() { showGameDescView() {
this.isShowGameDescViewOnce = true;
viewMgr.openView(VIEW_DEF.GameDescView, (node) => { viewMgr.openView(VIEW_DEF.GameDescView, (node) => {
node.getComponent(GameDescView)?.setDesc("填入数字使同行、同列不存在相同数字,\n同种颜色的格子里也不要出现相同数字。\n如果填入数字错误可以使用橡皮擦擦掉数字,\n也可点击还原按钮直接恢复最初状态。"); node.getComponent(GameDescView)?.setDesc("填入数字使同行、同列不存在相同数字,\n同种颜色的格子里也不要出现相同数字。\n如果填入数字错误可以使用橡皮擦擦掉数字,\n也可点击还原按钮直接恢复最初状态。");
}); });
......
...@@ -320,7 +320,7 @@ ...@@ -320,7 +320,7 @@
"_priority": 1073741824, "_priority": 1073741824,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 375, "_orthoHeight": 414.4124472573839,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
......
...@@ -679,7 +679,8 @@ export const levelCfg: OneVarLevelItf[] = [ ...@@ -679,7 +679,8 @@ export const levelCfg: OneVarLevelItf[] = [
foodVarCount: 2, foodVarCount: 2,
succScore: 5, succScore: 5,
oneScore: 1, oneScore: 1,
foodNumCount: 6 foodNumCount: 6,
isShowGuide: true
} }
} }
, { , {
...@@ -750,7 +751,8 @@ export const levelCfg: OneVarLevelItf[] = [ ...@@ -750,7 +751,8 @@ export const levelCfg: OneVarLevelItf[] = [
foodVarCount: 2, foodVarCount: 2,
succScore: 5, succScore: 5,
oneScore: 1, oneScore: 1,
foodNumCount: 5 foodNumCount: 5,
isShowGuide: true
} }
} }
, { , {
...@@ -832,7 +834,8 @@ export const levelCfg: OneVarLevelItf[] = [ ...@@ -832,7 +834,8 @@ export const levelCfg: OneVarLevelItf[] = [
resData: { resData: {
totalTime: 30, totalTime: 30,
succScore: 15, succScore: 15,
oneScore: 1 oneScore: 1,
isShowGuide: true
} }
} }
, { , {
......
...@@ -23,7 +23,7 @@ export class LevelHomeCtr extends Component { ...@@ -23,7 +23,7 @@ export class LevelHomeCtr extends Component {
// [3] // [3]
if (!levelMgr.loadedOutData) { if (!levelMgr.loadedOutData) {
levelMgr.loadedOutData = true; levelMgr.loadedOutData = true;
levelMgr.gameIdHead = 130; levelMgr.gameIdHead = 101;
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"));
......
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