Commit 54ac77fd authored by unknown's avatar unknown

数字谜图改好了

parent 7851970a
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
"_prefab": null, "_prefab": null,
"autoReleaseAssets": false, "autoReleaseAssets": false,
"_globals": { "_globals": {
"__id__": 115 "__id__": 131
}, },
"_id": "1fed1ae5-e2f4-473e-8d5d-96d866a62bf2" "_id": "1fed1ae5-e2f4-473e-8d5d-96d866a62bf2"
}, },
...@@ -216,21 +216,24 @@ ...@@ -216,21 +216,24 @@
}, },
{ {
"__id__": 85 "__id__": 85
},
{
"__id__": 108
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 108 "__id__": 124
}, },
{ {
"__id__": 110 "__id__": 126
}, },
{ {
"__id__": 112 "__id__": 128
}, },
{ {
"__id__": 114 "__id__": 130
} }
], ],
"_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": 544.3677130044842, "_orthoHeight": 375.00000000000006,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
...@@ -2827,12 +2830,12 @@ ...@@ -2827,12 +2830,12 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
"_alignFlags": 41, "_alignFlags": 44,
"_target": null, "_target": null,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 0, "_top": 0,
"_bottom": 0, "_bottom": 650,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
...@@ -2847,17 +2850,427 @@ ...@@ -2847,17 +2850,427 @@
"_lockFlags": 0, "_lockFlags": 0,
"_id": "b3IGnM/8FJl5vAc66Tpy7t" "_id": "b3IGnM/8FJl5vAc66Tpy7t"
}, },
{
"__type__": "cc.Node",
"_name": "resetBtn",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 109
},
{
"__id__": 114
}
],
"_active": true,
"_components": [
{
"__id__": 119
},
{
"__id__": 121
},
{
"__id__": 123
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 519.364,
"y": -215.945,
"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": "3cYSjD30tNH5KRFdwn87dj"
},
{
"__type__": "cc.Node",
"_name": "bgSpr",
"_objFlags": 0,
"_parent": {
"__id__": 108
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 110
},
{
"__id__": 112
}
],
"_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": "43bbidMelEfotEorbJvpQq"
},
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 7 "__id__": 109
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 111
},
"_contentSize": {
"__type__": "cc.Size",
"width": 120,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "9dBKG+VDZIuJkuwUeWNf8z"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 109 "__id__": 109
}, },
"_enabled": true,
"__prefab": {
"__id__": 113
},
"_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": "14hraHzERH3bMBrH8nbP+Q"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "20UGQn4U9GUoln0NJQTkbG"
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 108
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 115
},
{
"__id__": 117
}
],
"_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": "a2ubKVJJJDr54mV0/Nwwty"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 114
},
"_enabled": true,
"__prefab": {
"__id__": 116
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "f1WB7z/AJEirLvvIbUpYWU"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c68UOAlNhN171Umca6yVvF"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 114
},
"_enabled": true,
"__prefab": {
"__id__": 118
},
"_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": 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": "a5sSR58jtGX66CHYIyqj7q"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2frm37uaJHQr0AEEaYyM82"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
},
"_enabled": true,
"__prefab": {
"__id__": 120
},
"_contentSize": {
"__type__": "cc.Size",
"width": 120,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "346jq4WqRFW7L0Nm+Nc1Xw"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
},
"_enabled": true,
"__prefab": null,
"clickEvents": [
{
"__id__": 122
}
],
"_interactable": true,
"_transition": 3,
"_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": 0.85,
"_target": null,
"_id": "40eulF+wBF5rUj1am0Ijje"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 7
},
"component": "",
"_componentId": "78c8auTuTVMuIWBXEzDKCO/",
"handler": "resetGame",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 36,
"_target": null,
"_left": 0,
"_right": 87.63599999999997,
"_top": 0,
"_bottom": 129.055,
"_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": "a0bTt1g8VLmKIbH//NAtmn"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": {
"__id__": 125
},
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1334, "width": 1334,
...@@ -2883,7 +3296,7 @@ ...@@ -2883,7 +3296,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 111 "__id__": 127
}, },
"_cameraComponent": { "_cameraComponent": {
"__id__": 9 "__id__": 9
...@@ -2904,7 +3317,7 @@ ...@@ -2904,7 +3317,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 113 "__id__": 129
}, },
"_alignFlags": 45, "_alignFlags": 45,
"_target": null, "_target": null,
...@@ -2959,16 +3372,16 @@ ...@@ -2959,16 +3372,16 @@
{ {
"__type__": "cc.SceneGlobals", "__type__": "cc.SceneGlobals",
"ambient": { "ambient": {
"__id__": 116 "__id__": 132
}, },
"shadows": { "shadows": {
"__id__": 117 "__id__": 133
}, },
"_skybox": { "_skybox": {
"__id__": 118 "__id__": 134
}, },
"fog": { "fog": {
"__id__": 119 "__id__": 135
} }
}, },
{ {
......
...@@ -7,6 +7,7 @@ import { VIEW_DEF } from '../../../../startFolder/script/common/ViewDef'; ...@@ -7,6 +7,7 @@ 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 { BeginCountdownView } from '../../commonView/script/BeginCountdownView';
import { ChallengeSuccView } from '../../commonView/script/ChallengeSuccView'; import { ChallengeSuccView } from '../../commonView/script/ChallengeSuccView';
import { SwitchOkView } from '../../commonView/script/SwitchOkView';
import { DmfLevelIfo, DMF_LV_1, DMF_LV_2 } from './DmfCfg'; import { DmfLevelIfo, DMF_LV_1, DMF_LV_2 } from './DmfCfg';
import { DmfHead } from './DmfHead'; import { DmfHead } from './DmfHead';
import { DmfItem } from './DmfItem'; import { DmfItem } from './DmfItem';
...@@ -134,10 +135,15 @@ export class DmfCtr extends Component { ...@@ -134,10 +135,15 @@ export class DmfCtr extends Component {
gameEnd(isWin: boolean) { gameEnd(isWin: boolean) {
this.gameState = GAME_STATE.END; this.gameState = GAME_STATE.END;
if (isWin) { if (isWin) {
viewMgr.openView(VIEW_DEF.ChallengeSuccView, (node) => { AudioMgr.playEffect(succMus);
AudioMgr.playEffect(succMus); viewMgr.openView(VIEW_DEF.SwitchOkView, (node) => {
node?.getComponent(ChallengeSuccView)?.init(); node.getComponent(SwitchOkView)!.endCb = () => {
}, VIEW_INDEX.TOP); viewMgr.openView(VIEW_DEF.ChallengeSuccView, (node) => {
node?.getComponent(ChallengeSuccView)?.init();
}, VIEW_INDEX.TOP);
};
node.getComponent(SwitchOkView)?.init(1.5);
});
} }
else { else {
viewMgr.openView(VIEW_DEF.ChallengeFailView, (node) => { viewMgr.openView(VIEW_DEF.ChallengeFailView, (node) => {
...@@ -386,6 +392,13 @@ export class DmfCtr extends Component { ...@@ -386,6 +392,13 @@ export class DmfCtr extends Component {
return isWin; return isWin;
} }
resetGame() {
for (let i = 0; i < this.itemPosIfoArr.length; ++i) {
this.itemPosIfoArr[i].target.getComponent(DmfItem)!.isLocked = false;
this.itemPosIfoArr[i].target.getComponent(DmfItem)!.isSelected = false;
}
}
update(deltaTime: number) { update(deltaTime: number) {
// [4] // [4]
this.countdownTime(deltaTime); this.countdownTime(deltaTime);
......
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