diff --git a/assets/bundle1/images/FailedDialog.png b/assets/bundle1/images/FailedDialog.png new file mode 100644 index 0000000..d2fec48 Binary files /dev/null and b/assets/bundle1/images/FailedDialog.png differ diff --git a/assets/bundle1/images/FailedDialog.png.meta b/assets/bundle1/images/FailedDialog.png.meta new file mode 100644 index 0000000..a6dfd8b --- /dev/null +++ b/assets/bundle1/images/FailedDialog.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.27", + "importer": "image", + "imported": true, + "uuid": "7f9ff6b4-469e-4cef-8422-8f8f93399f82", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "7f9ff6b4-469e-4cef-8422-8f8f93399f82@6c48a", + "displayName": "FailedDialog", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "imageUuidOrDatabaseUri": "7f9ff6b4-469e-4cef-8422-8f8f93399f82", + "isUuid": true, + "visible": false, + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0 + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "7f9ff6b4-469e-4cef-8422-8f8f93399f82@f9941", + "displayName": "FailedDialog", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimThreshold": 1, + "rotated": false, + "offsetX": 27, + "offsetY": 105, + "trimX": 132, + "trimY": 260, + "width": 540, + "height": 604, + "rawWidth": 750, + "rawHeight": 1334, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -270, + -302, + 0, + 270, + -302, + 0, + -270, + 302, + 0, + 270, + 302, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 132, + 1074, + 672, + 1074, + 132, + 470, + 672, + 470 + ], + "nuv": [ + 0.176, + 0.3523238380809595, + 0.896, + 0.3523238380809595, + 0.176, + 0.8050974512743628, + 0.896, + 0.8050974512743628 + ], + "minPos": [ + -270, + -302, + 0 + ], + "maxPos": [ + 270, + 302, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "7f9ff6b4-469e-4cef-8422-8f8f93399f82@6c48a", + "atlasUuid": "", + "trimType": "auto" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "hasAlpha": true, + "fixAlphaTransparencyArtifacts": false, + "redirect": "7f9ff6b4-469e-4cef-8422-8f8f93399f82@6c48a" + } +} diff --git a/assets/bundle1/images/SuccessDialog.png b/assets/bundle1/images/SuccessDialog.png new file mode 100644 index 0000000..680418b Binary files /dev/null and b/assets/bundle1/images/SuccessDialog.png differ diff --git a/assets/bundle1/images/SuccessDialog.png.meta b/assets/bundle1/images/SuccessDialog.png.meta new file mode 100644 index 0000000..e95fa14 --- /dev/null +++ b/assets/bundle1/images/SuccessDialog.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.27", + "importer": "image", + "imported": true, + "uuid": "1a8d83b8-2a7c-4237-a143-e993977ee029", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "1a8d83b8-2a7c-4237-a143-e993977ee029@6c48a", + "displayName": "SuccessDialog", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "imageUuidOrDatabaseUri": "1a8d83b8-2a7c-4237-a143-e993977ee029", + "isUuid": true, + "visible": false, + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0 + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "1a8d83b8-2a7c-4237-a143-e993977ee029@f9941", + "displayName": "SuccessDialog", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimThreshold": 1, + "rotated": false, + "offsetX": 26.5, + "offsetY": 102, + "trimX": 128, + "trimY": 266, + "width": 547, + "height": 598, + "rawWidth": 750, + "rawHeight": 1334, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -273.5, + -299, + 0, + 273.5, + -299, + 0, + -273.5, + 299, + 0, + 273.5, + 299, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 128, + 1068, + 675, + 1068, + 128, + 470, + 675, + 470 + ], + "nuv": [ + 0.17066666666666666, + 0.3523238380809595, + 0.9, + 0.3523238380809595, + 0.17066666666666666, + 0.800599700149925, + 0.9, + 0.800599700149925 + ], + "minPos": [ + -273.5, + -299, + 0 + ], + "maxPos": [ + 273.5, + 299, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "1a8d83b8-2a7c-4237-a143-e993977ee029@6c48a", + "atlasUuid": "", + "trimType": "auto" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "hasAlpha": true, + "fixAlphaTransparencyArtifacts": false, + "redirect": "1a8d83b8-2a7c-4237-a143-e993977ee029@6c48a" + } +} diff --git a/assets/scenes/main.scene b/assets/scenes/main.scene index 5f00ccb..2938f0e 100644 --- a/assets/scenes/main.scene +++ b/assets/scenes/main.scene @@ -52,7 +52,7 @@ }, "autoReleaseAssets": false, "_globals": { - "__id__": 204 + "__id__": 213 }, "_id": "58132e64-0171-4c7f-89be-a2984ca7de6b" }, @@ -75,64 +75,55 @@ "__id__": 43 }, { - "__id__": 56 + "__id__": 61 }, { - "__id__": 59 + "__id__": 64 }, { - "__id__": 73 + "__id__": 78 }, { - "__id__": 82 + "__id__": 87 }, { - "__id__": 91 + "__id__": 96 }, { - "__id__": 100 + "__id__": 105 }, { - "__id__": 109 + "__id__": 114 }, { - "__id__": 118 + "__id__": 123 }, { - "__id__": 127 + "__id__": 132 }, { - "__id__": 136 + "__id__": 141 }, { - "__id__": 145 + "__id__": 150 }, { - "__id__": 154 + "__id__": 159 }, { "__id__": 6 }, - { - "__id__": 47 - }, - { - "__id__": 51 - }, - { - "__id__": 54 - }, - { - "__id__": 163 - }, - { - "__id__": 165 - }, { "__id__": 168 }, { - "__id__": 171 + "__id__": 50 + }, + { + "__id__": 59 + }, + { + "__id__": 172 }, { "__id__": 174 @@ -160,18 +151,33 @@ }, { "__id__": 198 + }, + { + "__id__": 201 + }, + { + "__id__": 204 + }, + { + "__id__": 207 + }, + { + "__id__": 47 + }, + { + "__id__": 53 } ], "_active": true, "_components": [ { - "__id__": 202 + "__id__": 211 }, { "__id__": 46 }, { - "__id__": 203 + "__id__": 212 } ], "_prefab": null, @@ -1770,7 +1776,10 @@ "__id__": 47 }, "bonusWuqi": { - "__id__": 51 + "__id__": 50 + }, + "failedDialog": { + "__id__": 53 }, "camera": { "__id__": 4 @@ -1779,7 +1788,7 @@ "__id__": 42 }, "attackAudio": { - "__id__": 54 + "__id__": 59 }, "moveSpeed": 300, "mapWidth": 1080, @@ -1804,7 +1813,7 @@ }, { "__type__": "cc.Node", - "_name": "Bonus", + "_name": "SuccessDialog", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -1818,16 +1827,13 @@ }, { "__id__": 49 - }, - { - "__id__": 50 } ], "_prefab": null, "_lpos": { "__type__": "cc.Vec3", - "x": 11.748, - "y": -197.824, + "x": 0, + "y": 0, "z": 0 }, "_lrot": { @@ -1839,9 +1845,9 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 0.8, - "y": 0.8, - "z": 0.267336 + "x": 1, + "y": 1, + "z": 1 }, "_mobility": 0, "_layer": 33554432, @@ -1851,7 +1857,7 @@ "y": 0, "z": 0 }, - "_id": "4aK2e7KY5DUIHmLgjlO0jh" + "_id": "f7sF5ejStK5KKBq0anMMZI" }, { "__type__": "cc.UITransform", @@ -1865,15 +1871,15 @@ "__prefab": null, "_contentSize": { "__type__": "cc.Size", - "width": 650, - "height": 915 + "width": 547, + "height": 598 }, "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, "y": 0.5 }, - "_id": "78N2M7YsdEIZ1jNzcEyht+" + "_id": "ef2Artie1HgqzeYCQHUE8/" }, { "__type__": "cc.Sprite", @@ -1896,12 +1902,12 @@ "a": 255 }, "_spriteFrame": { - "__uuid__": "ef0a4723-ab8e-481f-9567-e9b2a1400181@f9941", + "__uuid__": "1a8d83b8-2a7c-4237-a143-e993977ee029@f9941", "__expectedType__": "cc.SpriteFrame" }, "_type": 0, "_fillType": 0, - "_sizeMode": 0, + "_sizeMode": 1, "_fillCenter": { "__type__": "cc.Vec2", "x": 0, @@ -1912,30 +1918,7 @@ "_isTrimmedMode": true, "_useGrayscale": false, "_atlas": null, - "_id": "e64Xg5V7BPw7LzMLBUVqzL" - }, - { - "__type__": "cc.Animation", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 47 - }, - "_enabled": true, - "__prefab": null, - "playOnLoad": true, - "_clips": [ - { - "__uuid__": "e22ce611-db61-41a0-a1ac-f568696a8b26", - "__expectedType__": "cc.AnimationClip" - } - ], - "_defaultClip": { - "__uuid__": "e22ce611-db61-41a0-a1ac-f568696a8b26", - "__expectedType__": "cc.AnimationClip" - }, - "_id": "9c331h/W9OfbUVO863HUta" + "_id": "1eCv5xEZZCO5UovYXRY9h0" }, { "__type__": "cc.Node", @@ -1949,10 +1932,10 @@ "_active": false, "_components": [ { - "__id__": 52 + "__id__": 51 }, { - "__id__": 53 + "__id__": 52 } ], "_prefab": null, @@ -1991,7 +1974,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 51 + "__id__": 50 }, "_enabled": true, "__prefab": null, @@ -2013,7 +1996,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 51 + "__id__": 50 }, "_enabled": true, "__prefab": null, @@ -2046,6 +2029,239 @@ "_atlas": null, "_id": "25m0zgmgJNBJjvJHAtSkq0" }, + { + "__type__": "cc.Node", + "_name": "FailedDialog", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 54 + } + ], + "_active": false, + "_components": [ + { + "__id__": 57 + }, + { + "__id__": 58 + } + ], + "_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 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "c1hG/XefJHBJlCGEc0E1FK" + }, + { + "__type__": "cc.Node", + "_name": "Retry", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 53 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 55 + }, + { + "__id__": 56 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": -26.552, + "y": -251.225, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "f8uKi9njdNFKfoEGWjvzdq" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 54 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "34z4vud1NBT7QSrlJoOBXv" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 54 + }, + "_enabled": true, + "__prefab": null, + "clickEvents": [], + "_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": "03MgpTX9FNJZPeHpEnZWN/" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 53 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 540, + "height": 604 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "36aagvdPRO5ok5OR6wc1/f" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 53 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "7f9ff6b4-469e-4cef-8422-8f8f93399f82@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": "96QTNs8BhLJL3NFyqluZjm" + }, { "__type__": "cc.Node", "_name": "Attack", @@ -2058,7 +2274,7 @@ "_active": true, "_components": [ { - "__id__": 55 + "__id__": 60 } ], "_prefab": null, @@ -2097,7 +2313,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 54 + "__id__": 59 }, "_enabled": true, "__prefab": null, @@ -2122,10 +2338,10 @@ "_active": true, "_components": [ { - "__id__": 57 + "__id__": 62 }, { - "__id__": 58 + "__id__": 63 } ], "_prefab": null, @@ -2164,7 +2380,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 56 + "__id__": 61 }, "_enabled": true, "__prefab": null, @@ -2186,7 +2402,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 56 + "__id__": 61 }, "_enabled": true, "__prefab": null, @@ -2208,22 +2424,22 @@ }, "_children": [ { - "__id__": 60 + "__id__": 65 }, { - "__id__": 63 + "__id__": 68 }, { - "__id__": 66 + "__id__": 71 }, { - "__id__": 69 + "__id__": 74 } ], "_active": true, "_components": [ { - "__id__": 72 + "__id__": 77 } ], "_prefab": null, @@ -2262,16 +2478,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 59 + "__id__": 64 }, "_children": [], "_active": true, "_components": [ { - "__id__": 61 + "__id__": 66 }, { - "__id__": 62 + "__id__": 67 } ], "_prefab": null, @@ -2310,7 +2526,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 60 + "__id__": 65 }, "_enabled": true, "__prefab": null, @@ -2332,7 +2548,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 60 + "__id__": 65 }, "_enabled": true, "__prefab": null, @@ -2371,16 +2587,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 59 + "__id__": 64 }, "_children": [], "_active": true, "_components": [ { - "__id__": 64 + "__id__": 69 }, { - "__id__": 65 + "__id__": 70 } ], "_prefab": null, @@ -2419,7 +2635,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 63 + "__id__": 68 }, "_enabled": true, "__prefab": null, @@ -2441,7 +2657,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 63 + "__id__": 68 }, "_enabled": true, "__prefab": null, @@ -2480,16 +2696,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 59 + "__id__": 64 }, "_children": [], "_active": true, "_components": [ { - "__id__": 67 + "__id__": 72 }, { - "__id__": 68 + "__id__": 73 } ], "_prefab": null, @@ -2528,7 +2744,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 66 + "__id__": 71 }, "_enabled": true, "__prefab": null, @@ -2550,7 +2766,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 66 + "__id__": 71 }, "_enabled": true, "__prefab": null, @@ -2589,16 +2805,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 59 + "__id__": 64 }, "_children": [], "_active": true, "_components": [ { - "__id__": 70 + "__id__": 75 }, { - "__id__": 71 + "__id__": 76 } ], "_prefab": null, @@ -2637,7 +2853,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 69 + "__id__": 74 }, "_enabled": true, "__prefab": null, @@ -2659,7 +2875,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 69 + "__id__": 74 }, "_enabled": true, "__prefab": null, @@ -2698,7 +2914,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 59 + "__id__": 64 }, "_enabled": true, "__prefab": null, @@ -2724,25 +2940,25 @@ }, "_children": [ { - "__id__": 74 + "__id__": 79 } ], "_active": true, "_components": [ { - "__id__": 77 + "__id__": 82 }, { - "__id__": 78 + "__id__": 83 }, { - "__id__": 79 + "__id__": 84 }, { - "__id__": 80 + "__id__": 85 }, { - "__id__": 81 + "__id__": 86 } ], "_prefab": null, @@ -2781,16 +2997,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 73 + "__id__": 78 }, "_children": [], "_active": true, "_components": [ { - "__id__": 75 + "__id__": 80 }, { - "__id__": 76 + "__id__": 81 } ], "_prefab": null, @@ -2829,7 +3045,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 74 + "__id__": 79 }, "_enabled": true, "__prefab": null, @@ -2851,7 +3067,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 74 + "__id__": 79 }, "_enabled": true, "__prefab": null, @@ -2913,7 +3129,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 73 + "__id__": 78 }, "_enabled": true, "__prefab": null, @@ -2935,7 +3151,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 73 + "__id__": 78 }, "_enabled": true, "__prefab": null, @@ -2974,7 +3190,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 73 + "__id__": 78 }, "_enabled": true, "__prefab": null, @@ -3005,7 +3221,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 73 + "__id__": 78 }, "_enabled": true, "__prefab": null, @@ -3033,7 +3249,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 73 + "__id__": 78 }, "_enabled": true, "__prefab": null, @@ -3065,25 +3281,25 @@ }, "_children": [ { - "__id__": 83 + "__id__": 88 } ], "_active": true, "_components": [ { - "__id__": 86 + "__id__": 91 }, { - "__id__": 87 + "__id__": 92 }, { - "__id__": 88 + "__id__": 93 }, { - "__id__": 89 + "__id__": 94 }, { - "__id__": 90 + "__id__": 95 } ], "_prefab": null, @@ -3122,16 +3338,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 82 + "__id__": 87 }, "_children": [], "_active": true, "_components": [ { - "__id__": 84 + "__id__": 89 }, { - "__id__": 85 + "__id__": 90 } ], "_prefab": null, @@ -3170,7 +3386,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 83 + "__id__": 88 }, "_enabled": true, "__prefab": null, @@ -3192,7 +3408,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 83 + "__id__": 88 }, "_enabled": true, "__prefab": null, @@ -3254,7 +3470,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 82 + "__id__": 87 }, "_enabled": true, "__prefab": null, @@ -3276,7 +3492,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 82 + "__id__": 87 }, "_enabled": true, "__prefab": null, @@ -3315,7 +3531,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 82 + "__id__": 87 }, "_enabled": true, "__prefab": null, @@ -3346,7 +3562,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 82 + "__id__": 87 }, "_enabled": true, "__prefab": null, @@ -3374,7 +3590,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 82 + "__id__": 87 }, "_enabled": true, "__prefab": null, @@ -3406,25 +3622,25 @@ }, "_children": [ { - "__id__": 92 + "__id__": 97 } ], "_active": true, "_components": [ { - "__id__": 95 + "__id__": 100 }, { - "__id__": 96 + "__id__": 101 }, { - "__id__": 97 + "__id__": 102 }, { - "__id__": 98 + "__id__": 103 }, { - "__id__": 99 + "__id__": 104 } ], "_prefab": null, @@ -3463,16 +3679,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 91 + "__id__": 96 }, "_children": [], "_active": true, "_components": [ { - "__id__": 93 + "__id__": 98 }, { - "__id__": 94 + "__id__": 99 } ], "_prefab": null, @@ -3511,7 +3727,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 92 + "__id__": 97 }, "_enabled": true, "__prefab": null, @@ -3533,7 +3749,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 92 + "__id__": 97 }, "_enabled": true, "__prefab": null, @@ -3595,7 +3811,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 91 + "__id__": 96 }, "_enabled": true, "__prefab": null, @@ -3617,7 +3833,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 91 + "__id__": 96 }, "_enabled": true, "__prefab": null, @@ -3656,7 +3872,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 91 + "__id__": 96 }, "_enabled": true, "__prefab": null, @@ -3687,7 +3903,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 91 + "__id__": 96 }, "_enabled": true, "__prefab": null, @@ -3715,7 +3931,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 91 + "__id__": 96 }, "_enabled": true, "__prefab": null, @@ -3747,25 +3963,25 @@ }, "_children": [ { - "__id__": 101 + "__id__": 106 } ], "_active": true, "_components": [ { - "__id__": 104 + "__id__": 109 }, { - "__id__": 105 + "__id__": 110 }, { - "__id__": 106 + "__id__": 111 }, { - "__id__": 107 + "__id__": 112 }, { - "__id__": 108 + "__id__": 113 } ], "_prefab": null, @@ -3804,16 +4020,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 100 + "__id__": 105 }, "_children": [], "_active": true, "_components": [ { - "__id__": 102 + "__id__": 107 }, { - "__id__": 103 + "__id__": 108 } ], "_prefab": null, @@ -3852,7 +4068,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 101 + "__id__": 106 }, "_enabled": true, "__prefab": null, @@ -3874,7 +4090,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 101 + "__id__": 106 }, "_enabled": true, "__prefab": null, @@ -3936,7 +4152,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 100 + "__id__": 105 }, "_enabled": true, "__prefab": null, @@ -3958,7 +4174,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 100 + "__id__": 105 }, "_enabled": true, "__prefab": null, @@ -3997,7 +4213,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 100 + "__id__": 105 }, "_enabled": true, "__prefab": null, @@ -4028,7 +4244,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 100 + "__id__": 105 }, "_enabled": true, "__prefab": null, @@ -4056,7 +4272,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 100 + "__id__": 105 }, "_enabled": true, "__prefab": null, @@ -4088,25 +4304,25 @@ }, "_children": [ { - "__id__": 110 + "__id__": 115 } ], "_active": true, "_components": [ { - "__id__": 113 + "__id__": 118 }, { - "__id__": 114 + "__id__": 119 }, { - "__id__": 115 + "__id__": 120 }, { - "__id__": 116 + "__id__": 121 }, { - "__id__": 117 + "__id__": 122 } ], "_prefab": null, @@ -4145,16 +4361,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 109 + "__id__": 114 }, "_children": [], "_active": true, "_components": [ { - "__id__": 111 + "__id__": 116 }, { - "__id__": 112 + "__id__": 117 } ], "_prefab": null, @@ -4193,7 +4409,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 110 + "__id__": 115 }, "_enabled": true, "__prefab": null, @@ -4215,7 +4431,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 110 + "__id__": 115 }, "_enabled": true, "__prefab": null, @@ -4277,7 +4493,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 109 + "__id__": 114 }, "_enabled": true, "__prefab": null, @@ -4299,7 +4515,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 109 + "__id__": 114 }, "_enabled": true, "__prefab": null, @@ -4338,7 +4554,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 109 + "__id__": 114 }, "_enabled": true, "__prefab": null, @@ -4369,7 +4585,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 109 + "__id__": 114 }, "_enabled": true, "__prefab": null, @@ -4397,7 +4613,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 109 + "__id__": 114 }, "_enabled": true, "__prefab": null, @@ -4429,25 +4645,25 @@ }, "_children": [ { - "__id__": 119 + "__id__": 124 } ], "_active": true, "_components": [ { - "__id__": 122 + "__id__": 127 }, { - "__id__": 123 + "__id__": 128 }, { - "__id__": 124 + "__id__": 129 }, { - "__id__": 125 + "__id__": 130 }, { - "__id__": 126 + "__id__": 131 } ], "_prefab": null, @@ -4486,16 +4702,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 118 + "__id__": 123 }, "_children": [], "_active": true, "_components": [ { - "__id__": 120 + "__id__": 125 }, { - "__id__": 121 + "__id__": 126 } ], "_prefab": null, @@ -4534,7 +4750,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 119 + "__id__": 124 }, "_enabled": true, "__prefab": null, @@ -4556,7 +4772,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 119 + "__id__": 124 }, "_enabled": true, "__prefab": null, @@ -4618,7 +4834,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 118 + "__id__": 123 }, "_enabled": true, "__prefab": null, @@ -4640,7 +4856,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 118 + "__id__": 123 }, "_enabled": true, "__prefab": null, @@ -4679,7 +4895,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 118 + "__id__": 123 }, "_enabled": true, "__prefab": null, @@ -4710,7 +4926,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 118 + "__id__": 123 }, "_enabled": true, "__prefab": null, @@ -4738,7 +4954,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 118 + "__id__": 123 }, "_enabled": true, "__prefab": null, @@ -4770,25 +4986,25 @@ }, "_children": [ { - "__id__": 128 + "__id__": 133 } ], "_active": true, "_components": [ { - "__id__": 131 + "__id__": 136 }, { - "__id__": 132 + "__id__": 137 }, { - "__id__": 133 + "__id__": 138 }, { - "__id__": 134 + "__id__": 139 }, { - "__id__": 135 + "__id__": 140 } ], "_prefab": null, @@ -4827,16 +5043,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 127 + "__id__": 132 }, "_children": [], "_active": true, "_components": [ { - "__id__": 129 + "__id__": 134 }, { - "__id__": 130 + "__id__": 135 } ], "_prefab": null, @@ -4875,7 +5091,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 128 + "__id__": 133 }, "_enabled": true, "__prefab": null, @@ -4897,7 +5113,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 128 + "__id__": 133 }, "_enabled": true, "__prefab": null, @@ -4959,7 +5175,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 127 + "__id__": 132 }, "_enabled": true, "__prefab": null, @@ -4981,7 +5197,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 127 + "__id__": 132 }, "_enabled": true, "__prefab": null, @@ -5020,7 +5236,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 127 + "__id__": 132 }, "_enabled": true, "__prefab": null, @@ -5051,7 +5267,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 127 + "__id__": 132 }, "_enabled": true, "__prefab": null, @@ -5079,7 +5295,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 127 + "__id__": 132 }, "_enabled": true, "__prefab": null, @@ -5111,25 +5327,25 @@ }, "_children": [ { - "__id__": 137 + "__id__": 142 } ], "_active": true, "_components": [ { - "__id__": 140 + "__id__": 145 }, { - "__id__": 141 + "__id__": 146 }, { - "__id__": 142 + "__id__": 147 }, { - "__id__": 143 + "__id__": 148 }, { - "__id__": 144 + "__id__": 149 } ], "_prefab": null, @@ -5168,16 +5384,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 136 + "__id__": 141 }, "_children": [], "_active": true, "_components": [ { - "__id__": 138 + "__id__": 143 }, { - "__id__": 139 + "__id__": 144 } ], "_prefab": null, @@ -5216,7 +5432,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 137 + "__id__": 142 }, "_enabled": true, "__prefab": null, @@ -5238,7 +5454,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 137 + "__id__": 142 }, "_enabled": true, "__prefab": null, @@ -5300,7 +5516,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 136 + "__id__": 141 }, "_enabled": true, "__prefab": null, @@ -5322,7 +5538,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 136 + "__id__": 141 }, "_enabled": true, "__prefab": null, @@ -5361,7 +5577,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 136 + "__id__": 141 }, "_enabled": true, "__prefab": null, @@ -5392,7 +5608,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 136 + "__id__": 141 }, "_enabled": true, "__prefab": null, @@ -5420,7 +5636,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 136 + "__id__": 141 }, "_enabled": true, "__prefab": null, @@ -5452,25 +5668,25 @@ }, "_children": [ { - "__id__": 146 + "__id__": 151 } ], "_active": true, "_components": [ { - "__id__": 149 + "__id__": 154 }, { - "__id__": 150 + "__id__": 155 }, { - "__id__": 151 + "__id__": 156 }, { - "__id__": 152 + "__id__": 157 }, { - "__id__": 153 + "__id__": 158 } ], "_prefab": null, @@ -5509,16 +5725,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 145 + "__id__": 150 }, "_children": [], "_active": true, "_components": [ { - "__id__": 147 + "__id__": 152 }, { - "__id__": 148 + "__id__": 153 } ], "_prefab": null, @@ -5557,7 +5773,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 146 + "__id__": 151 }, "_enabled": true, "__prefab": null, @@ -5579,7 +5795,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 146 + "__id__": 151 }, "_enabled": true, "__prefab": null, @@ -5641,7 +5857,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 145 + "__id__": 150 }, "_enabled": true, "__prefab": null, @@ -5663,7 +5879,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 145 + "__id__": 150 }, "_enabled": true, "__prefab": null, @@ -5702,7 +5918,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 145 + "__id__": 150 }, "_enabled": true, "__prefab": null, @@ -5733,7 +5949,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 145 + "__id__": 150 }, "_enabled": true, "__prefab": null, @@ -5761,7 +5977,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 145 + "__id__": 150 }, "_enabled": true, "__prefab": null, @@ -5793,25 +6009,25 @@ }, "_children": [ { - "__id__": 155 + "__id__": 160 } ], "_active": true, "_components": [ { - "__id__": 158 + "__id__": 163 }, { - "__id__": 159 + "__id__": 164 }, { - "__id__": 160 + "__id__": 165 }, { - "__id__": 161 + "__id__": 166 }, { - "__id__": 162 + "__id__": 167 } ], "_prefab": null, @@ -5850,16 +6066,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 154 + "__id__": 159 }, "_children": [], "_active": true, "_components": [ { - "__id__": 156 + "__id__": 161 }, { - "__id__": 157 + "__id__": 162 } ], "_prefab": null, @@ -5898,7 +6114,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 155 + "__id__": 160 }, "_enabled": true, "__prefab": null, @@ -5920,7 +6136,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 155 + "__id__": 160 }, "_enabled": true, "__prefab": null, @@ -5982,7 +6198,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 154 + "__id__": 159 }, "_enabled": true, "__prefab": null, @@ -6004,7 +6220,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 154 + "__id__": 159 }, "_enabled": true, "__prefab": null, @@ -6043,7 +6259,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 154 + "__id__": 159 }, "_enabled": true, "__prefab": null, @@ -6074,7 +6290,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 154 + "__id__": 159 }, "_enabled": true, "__prefab": null, @@ -6102,7 +6318,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 154 + "__id__": 159 }, "_enabled": true, "__prefab": null, @@ -6124,6 +6340,141 @@ }, "_id": "8fSg2JDOJHeagIqakOhwiB" }, + { + "__type__": "cc.Node", + "_name": "Bonus", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": false, + "_components": [ + { + "__id__": 169 + }, + { + "__id__": 170 + }, + { + "__id__": 171 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 11.748, + "y": -197.824, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.8, + "y": 0.8, + "z": 0.267336 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "4aK2e7KY5DUIHmLgjlO0jh" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 168 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 650, + "height": 915 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "78N2M7YsdEIZ1jNzcEyht+" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 168 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "ef0a4723-ab8e-481f-9567-e9b2a1400181@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": "e64Xg5V7BPw7LzMLBUVqzL" + }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 168 + }, + "_enabled": true, + "__prefab": null, + "playOnLoad": true, + "_clips": [ + { + "__uuid__": "e22ce611-db61-41a0-a1ac-f568696a8b26", + "__expectedType__": "cc.AnimationClip" + } + ], + "_defaultClip": { + "__uuid__": "e22ce611-db61-41a0-a1ac-f568696a8b26", + "__expectedType__": "cc.AnimationClip" + }, + "_id": "9c331h/W9OfbUVO863HUta" + }, { "__type__": "cc.Node", "_name": "Bgm", @@ -6136,7 +6487,7 @@ "_active": true, "_components": [ { - "__id__": 164 + "__id__": 173 } ], "_prefab": null, @@ -6175,7 +6526,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 163 + "__id__": 172 }, "_enabled": true, "__prefab": null, @@ -6198,270 +6549,6 @@ }, "_children": [], "_active": true, - "_components": [ - { - "__id__": 166 - }, - { - "__id__": 167 - } - ], - "_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 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "59aoP3qqZP0rVj3jO0bUcs" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 165 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "76us9j5TJLVoGGOu3SeEUZ" - }, - { - "__type__": "d627bjTuB1Oarms89lim9q6", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 165 - }, - "_enabled": true, - "__prefab": null, - "target": { - "__id__": 6 - }, - "shadowWidth": 60, - "shadowHeight": 20, - "shadowAlpha": 80, - "_id": "acBHXYdhZPIoeVkoV+ydRP" - }, - { - "__type__": "cc.Node", - "_name": "Shadow-001", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 169 - }, - { - "__id__": 170 - } - ], - "_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 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "b7roqNB8xKOpUcXBq2cPTn" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 168 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "17CkoQ5i5JSa4MscYMKd4v" - }, - { - "__type__": "d627bjTuB1Oarms89lim9q6", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 168 - }, - "_enabled": true, - "__prefab": null, - "target": { - "__id__": 73 - }, - "shadowWidth": 60, - "shadowHeight": 20, - "shadowAlpha": 80, - "_id": "05KTlBsydGXLc8Lc++Px3B" - }, - { - "__type__": "cc.Node", - "_name": "Shadow-002", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 172 - }, - { - "__id__": 173 - } - ], - "_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 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "9fMERlpnxHBqx1V+IPOWVJ" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 171 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "70out6o7tJK5QlCvWQGmfD" - }, - { - "__type__": "d627bjTuB1Oarms89lim9q6", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 171 - }, - "_enabled": true, - "__prefab": null, - "target": { - "__id__": 82 - }, - "shadowWidth": 60, - "shadowHeight": 20, - "shadowAlpha": 80, - "_id": "1aQ3s8m0VInpc+gDgbYllh" - }, - { - "__type__": "cc.Node", - "_name": "Shadow-003", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, "_components": [ { "__id__": 175 @@ -6498,7 +6585,7 @@ "y": 0, "z": 0 }, - "_id": "d0Rp1JABpCwohjqMSoEDqp" + "_id": "59aoP3qqZP0rVj3jO0bUcs" }, { "__type__": "cc.UITransform", @@ -6520,7 +6607,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "8f8gbrW91F6rLShq4W3oW1" + "_id": "76us9j5TJLVoGGOu3SeEUZ" }, { "__type__": "d627bjTuB1Oarms89lim9q6", @@ -6533,16 +6620,16 @@ "_enabled": true, "__prefab": null, "target": { - "__id__": 91 + "__id__": 6 }, "shadowWidth": 60, "shadowHeight": 20, "shadowAlpha": 80, - "_id": "00N5Bm4zZJV4D12ZdpCrgN" + "_id": "acBHXYdhZPIoeVkoV+ydRP" }, { "__type__": "cc.Node", - "_name": "Shadow-004", + "_name": "Shadow-001", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -6586,7 +6673,7 @@ "y": 0, "z": 0 }, - "_id": "350Jb3XzNGgJ0KvgUo4wH9" + "_id": "b7roqNB8xKOpUcXBq2cPTn" }, { "__type__": "cc.UITransform", @@ -6608,7 +6695,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "efZ0fTtbxAAYqce+Sraw0C" + "_id": "17CkoQ5i5JSa4MscYMKd4v" }, { "__type__": "d627bjTuB1Oarms89lim9q6", @@ -6621,16 +6708,16 @@ "_enabled": true, "__prefab": null, "target": { - "__id__": 100 + "__id__": 78 }, "shadowWidth": 60, "shadowHeight": 20, "shadowAlpha": 80, - "_id": "28ZJ3yxoNDTY4a4p1HSBMn" + "_id": "05KTlBsydGXLc8Lc++Px3B" }, { "__type__": "cc.Node", - "_name": "Shadow-005", + "_name": "Shadow-002", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -6674,7 +6761,7 @@ "y": 0, "z": 0 }, - "_id": "c6Hzif9RhIZbm/QEbNbNmV" + "_id": "9fMERlpnxHBqx1V+IPOWVJ" }, { "__type__": "cc.UITransform", @@ -6696,7 +6783,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "3boAGl8R5MApIWH2m1B2wk" + "_id": "70out6o7tJK5QlCvWQGmfD" }, { "__type__": "d627bjTuB1Oarms89lim9q6", @@ -6709,16 +6796,16 @@ "_enabled": true, "__prefab": null, "target": { - "__id__": 109 + "__id__": 87 }, "shadowWidth": 60, "shadowHeight": 20, "shadowAlpha": 80, - "_id": "02K2tDRCVLLINGuX/hIc9S" + "_id": "1aQ3s8m0VInpc+gDgbYllh" }, { "__type__": "cc.Node", - "_name": "Shadow-006", + "_name": "Shadow-003", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -6762,7 +6849,7 @@ "y": 0, "z": 0 }, - "_id": "b0brUKCeFPGZhW/P8c5440" + "_id": "d0Rp1JABpCwohjqMSoEDqp" }, { "__type__": "cc.UITransform", @@ -6784,7 +6871,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "c8gtBN2CdATqC5x39y0FF3" + "_id": "8f8gbrW91F6rLShq4W3oW1" }, { "__type__": "d627bjTuB1Oarms89lim9q6", @@ -6797,16 +6884,16 @@ "_enabled": true, "__prefab": null, "target": { - "__id__": 118 + "__id__": 96 }, "shadowWidth": 60, "shadowHeight": 20, "shadowAlpha": 80, - "_id": "39iwJwaiFNYZVWUka4WNCN" + "_id": "00N5Bm4zZJV4D12ZdpCrgN" }, { "__type__": "cc.Node", - "_name": "Shadow-007", + "_name": "Shadow-004", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -6850,7 +6937,7 @@ "y": 0, "z": 0 }, - "_id": "e41K9VWZtMib1Wz9Ox6zpt" + "_id": "350Jb3XzNGgJ0KvgUo4wH9" }, { "__type__": "cc.UITransform", @@ -6872,7 +6959,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "0b0t4m91hGg6KwCzZ2l4PQ" + "_id": "efZ0fTtbxAAYqce+Sraw0C" }, { "__type__": "d627bjTuB1Oarms89lim9q6", @@ -6885,16 +6972,16 @@ "_enabled": true, "__prefab": null, "target": { - "__id__": 127 + "__id__": 105 }, "shadowWidth": 60, "shadowHeight": 20, "shadowAlpha": 80, - "_id": "c8i6KXpSJFK6eE9JS/KG3E" + "_id": "28ZJ3yxoNDTY4a4p1HSBMn" }, { "__type__": "cc.Node", - "_name": "Shadow-008", + "_name": "Shadow-005", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -6938,7 +7025,7 @@ "y": 0, "z": 0 }, - "_id": "2d2CbjBkdDJK9fCHNUevBr" + "_id": "c6Hzif9RhIZbm/QEbNbNmV" }, { "__type__": "cc.UITransform", @@ -6960,7 +7047,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "adBHhRcNxOi7AC0i2qGtzQ" + "_id": "3boAGl8R5MApIWH2m1B2wk" }, { "__type__": "d627bjTuB1Oarms89lim9q6", @@ -6973,16 +7060,16 @@ "_enabled": true, "__prefab": null, "target": { - "__id__": 136 + "__id__": 114 }, "shadowWidth": 60, "shadowHeight": 20, "shadowAlpha": 80, - "_id": "c8RiJR05lNmovFNOElY6Fg" + "_id": "02K2tDRCVLLINGuX/hIc9S" }, { "__type__": "cc.Node", - "_name": "Shadow-009", + "_name": "Shadow-006", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -7026,7 +7113,7 @@ "y": 0, "z": 0 }, - "_id": "930niPnWVFZKutLmKpKl+G" + "_id": "b0brUKCeFPGZhW/P8c5440" }, { "__type__": "cc.UITransform", @@ -7048,7 +7135,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "31BgNivLBPW4bLqSmU+XqM" + "_id": "c8gtBN2CdATqC5x39y0FF3" }, { "__type__": "d627bjTuB1Oarms89lim9q6", @@ -7061,16 +7148,16 @@ "_enabled": true, "__prefab": null, "target": { - "__id__": 145 + "__id__": 123 }, "shadowWidth": 60, "shadowHeight": 20, "shadowAlpha": 80, - "_id": "7aH+CyKqdK/oGVjx5H1TNO" + "_id": "39iwJwaiFNYZVWUka4WNCN" }, { "__type__": "cc.Node", - "_name": "Shadow-010", + "_name": "Shadow-007", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -7114,7 +7201,7 @@ "y": 0, "z": 0 }, - "_id": "04Ibm6FrdMPIpGZZLXBE7l" + "_id": "e41K9VWZtMib1Wz9Ox6zpt" }, { "__type__": "cc.UITransform", @@ -7136,7 +7223,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "balqXXly9OF4+YCtGJb7HD" + "_id": "0b0t4m91hGg6KwCzZ2l4PQ" }, { "__type__": "d627bjTuB1Oarms89lim9q6", @@ -7149,7 +7236,271 @@ "_enabled": true, "__prefab": null, "target": { - "__id__": 154 + "__id__": 132 + }, + "shadowWidth": 60, + "shadowHeight": 20, + "shadowAlpha": 80, + "_id": "c8i6KXpSJFK6eE9JS/KG3E" + }, + { + "__type__": "cc.Node", + "_name": "Shadow-008", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 199 + }, + { + "__id__": 200 + } + ], + "_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 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "2d2CbjBkdDJK9fCHNUevBr" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 198 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "adBHhRcNxOi7AC0i2qGtzQ" + }, + { + "__type__": "d627bjTuB1Oarms89lim9q6", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 198 + }, + "_enabled": true, + "__prefab": null, + "target": { + "__id__": 141 + }, + "shadowWidth": 60, + "shadowHeight": 20, + "shadowAlpha": 80, + "_id": "c8RiJR05lNmovFNOElY6Fg" + }, + { + "__type__": "cc.Node", + "_name": "Shadow-009", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 202 + }, + { + "__id__": 203 + } + ], + "_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 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "930niPnWVFZKutLmKpKl+G" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 201 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "31BgNivLBPW4bLqSmU+XqM" + }, + { + "__type__": "d627bjTuB1Oarms89lim9q6", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 201 + }, + "_enabled": true, + "__prefab": null, + "target": { + "__id__": 150 + }, + "shadowWidth": 60, + "shadowHeight": 20, + "shadowAlpha": 80, + "_id": "7aH+CyKqdK/oGVjx5H1TNO" + }, + { + "__type__": "cc.Node", + "_name": "Shadow-010", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 205 + }, + { + "__id__": 206 + } + ], + "_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 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "04Ibm6FrdMPIpGZZLXBE7l" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 204 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "balqXXly9OF4+YCtGJb7HD" + }, + { + "__type__": "d627bjTuB1Oarms89lim9q6", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 204 + }, + "_enabled": true, + "__prefab": null, + "target": { + "__id__": 159 }, "shadowWidth": 60, "shadowHeight": 20, @@ -7168,13 +7519,13 @@ "_active": true, "_components": [ { - "__id__": 199 + "__id__": 208 }, { - "__id__": 200 + "__id__": 209 }, { - "__id__": 201 + "__id__": 210 } ], "_prefab": null, @@ -7213,7 +7564,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 198 + "__id__": 207 }, "_enabled": true, "__prefab": null, @@ -7235,7 +7586,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 198 + "__id__": 207 }, "_enabled": true, "__prefab": null, @@ -7258,7 +7609,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 198 + "__id__": 207 }, "_enabled": true, "__prefab": null, @@ -7346,28 +7697,28 @@ { "__type__": "cc.SceneGlobals", "ambient": { - "__id__": 205 + "__id__": 214 }, "shadows": { - "__id__": 206 + "__id__": 215 }, "_skybox": { - "__id__": 207 + "__id__": 216 }, "fog": { - "__id__": 208 + "__id__": 217 }, "octree": { - "__id__": 209 + "__id__": 218 }, "skin": { - "__id__": 210 + "__id__": 219 }, "lightProbeInfo": { - "__id__": 211 + "__id__": 220 }, "postSettings": { - "__id__": 212 + "__id__": 221 }, "bakedWithStationaryMainLight": false, "bakedWithHighpLightmap": false diff --git a/assets/scripts/PlayerController.ts b/assets/scripts/PlayerController.ts index 2dffb36..909566f 100644 --- a/assets/scripts/PlayerController.ts +++ b/assets/scripts/PlayerController.ts @@ -1,4 +1,4 @@ -import { _decorator, Component, Node, Vec3, input, Input, EventTouch, Camera, view, tween, Animation, Collider2D, Contact2DType, Label, Color, Canvas, UITransform, AudioSource, Sprite } from 'cc'; +import { _decorator, Component, Node, Vec3, input, Input, EventTouch, Camera, view, tween, Animation, Collider2D, Contact2DType, Label, Color, Canvas, UITransform, AudioSource, Sprite, director } from 'cc'; import { TiledMapPathfinder } from './TiledMapPathfinder'; const { ccclass, property } = _decorator; @@ -16,6 +16,9 @@ export class PlayerController extends Component { @property(Node) bonusWuqi: Node | null = null; + @property(Node) + failedDialog: Node | null = null; + @property(Camera) camera: Camera | null = null; // 主摄像机 @@ -515,6 +518,11 @@ export class PlayerController extends Component { // 设置游戏结束标志,禁止后续寻路 this.isGameOver = true; console.log('游戏结束,禁止寻路'); + + // 显示失败弹窗 + this.scheduleOnce(() => { + this.showFailedDialog(); + }, 1); // 延迟1秒显示失败弹窗,让玩家死亡动画播放完成 } this.isAttacking = false; @@ -803,4 +811,55 @@ export class PlayerController extends Component { this.pendingPopupHide = null; } } + + /** + * 显示失败弹窗 + */ + public showFailedDialog() { + this.showPopupAtCameraCenter(this.failedDialog, '失败弹窗'); + this.setupRetryButtonListener(); + } + + /** + * 设置重试按钮监听器 + */ + private setupRetryButtonListener() { + if (!this.failedDialog) { + console.warn('失败弹窗节点未设置,无法监听重试按钮'); + return; + } + + // 查找Retry按钮节点 + const retryButton = this.failedDialog.getChildByName('Retry'); + if (!retryButton) { + console.warn('未找到Retry按钮节点'); + return; + } + + // 移除之前的监听器(如果存在) + retryButton.off(Node.EventType.TOUCH_END, this.onRetryButtonClick, this); + + // 添加新的监听器 + retryButton.on(Node.EventType.TOUCH_END, this.onRetryButtonClick, this); + console.log('已设置重试按钮监听器'); + } + + /** + * 重试按钮点击事件处理 + */ + private onRetryButtonClick() { + console.log('重试按钮被点击,重新加载当前场景'); + + // 隐藏失败弹窗 + if (this.failedDialog) { + this.hidePopupWithAnimation(this.failedDialog, '失败弹窗'); + } + + // 重新加载当前场景 + this.scheduleOnce(() => { + // 使用Cocos Creator的场景管理器重新加载当前场景 + const sceneName = director.getScene().name; + director.loadScene(sceneName); + }, 0.3); // 延迟0.3秒,让弹窗消失动画完成 + } }