From f24cd5567743179e41b3fc26c653dc85e4be3713 Mon Sep 17 00:00:00 2001 From: "YZ\\249929363" <249929363@qq.com> Date: Fri, 16 Aug 2024 14:19:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=A4=E6=96=AD=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=E6=9D=A5=E6=BA=90=EF=BC=8C=E9=99=90=E5=88=B6=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E9=99=84=E5=8A=A0=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Scene/OverScene.fire | 542 +- assets/Script/GameOver.ts | 20 + assets/Script/Load.ts | 13 + assets/Script/module/Config/GameConfig.ts | 3 + assets/Script/module/Tool/GameTool.ts | 20 +- assets/res/btn.png | Bin 0 -> 22181 bytes assets/res/btn.png.meta | 38 + build-templates/web-mobile/index.html | 43 +- build/SunMoves.zip | Bin 1869753 -> 1892778 bytes build/SunMoves/assets/main/config.66aa2.json | 1 - build/SunMoves/assets/main/config.fc4e1.json | 1 + .../main/import/05/05b7e0d6d.b9828.json | 1 - .../0792a0dcc.c99c1.json} | 2 +- .../main/import/0c/0c3c65793.34bfc.json | 1 + build/SunMoves/assets/main/index.66aa2.js | 1 - build/SunMoves/assets/main/index.fc4e1.js | 1 + ...f633-e717-4c9e-aae0-8ce7ad05bf0b.f61d5.png | Bin 0 -> 22181 bytes build/SunMoves/index.html | 47 +- .../SunMoves/{main.8e45b.js => main.b9a5b.js} | 4 +- .../{settings.55fdc.js => settings.d8490.js} | 2 +- .../43bfc27a-ff6e-45b3-87c7-504d0f781397.js | 20 +- ...3bfc27a-ff6e-45b3-87c7-504d0f781397.js.map | 2 +- .../454ad829-851a-40ea-8ab9-941e828357ca.js | 12 + ...54ad829-851a-40ea-8ab9-941e828357ca.js.map | 2 +- .../4605f633-e717-4c9e-aae0-8ce7ad05bf0b.json | 4 + .../4605f633-e717-4c9e-aae0-8ce7ad05bf0b.png | Bin 0 -> 22181 bytes .../4b9c5a7e-c645-48a4-9aca-5df381ce4ef5.json | 542 +- .../805c69df-dfdf-4759-97ae-5a7341f424c7.js | 20 + ...05c69df-dfdf-4759-97ae-5a7341f424c7.js.map | 2 +- .../9cdc2915-8d6f-47db-bc74-1e8ab728d149.json | 28 + ...5692be7-8703-45e4-9f67-23b54d290356.js.map | 2 +- library/uuid-to-mtime.json | 261 +- local/layout.editor.json | 28 +- local/local.json | 9 +- local/node-tree-state.json | 5 +- settings/project.json | 2 +- temp/BackupAssets/assets/Scene/OverScene.fire | 542 +- temp/quick-scripts/dst/__file_stats__.json | 2 +- temp/quick-scripts/dst/__qc_bundle__.js | 5312 +++++++++-------- temp/quick-scripts/dst/__quick_compile__.js | 2 +- .../dst/assets/Script/GameOver.js | 22 +- temp/quick-scripts/dst/assets/Script/Load.js | 14 +- .../assets/Script/module/Config/GameConfig.js | 2 +- .../dst/assets/Script/module/Tool/GameTool.js | 22 +- .../src/assets/Script/GameOver.js | 20 + .../src/assets/Script/GameOver.js.map | 2 +- temp/quick-scripts/src/assets/Script/Load.js | 12 + .../src/assets/Script/Load.js.map | 2 +- .../Script/module/Config/GameConfig.js.map | 2 +- .../src/assets/Script/module/Tool/GameTool.js | 20 +- .../assets/Script/module/Tool/GameTool.js.map | 2 +- 51 files changed, 4303 insertions(+), 3354 deletions(-) create mode 100644 assets/res/btn.png create mode 100644 assets/res/btn.png.meta delete mode 100644 build/SunMoves/assets/main/config.66aa2.json create mode 100644 build/SunMoves/assets/main/config.fc4e1.json delete mode 100644 build/SunMoves/assets/main/import/05/05b7e0d6d.b9828.json rename build/SunMoves/assets/main/import/{03/03e4478d5.583f3.json => 07/0792a0dcc.c99c1.json} (82%) create mode 100644 build/SunMoves/assets/main/import/0c/0c3c65793.34bfc.json delete mode 100644 build/SunMoves/assets/main/index.66aa2.js create mode 100644 build/SunMoves/assets/main/index.fc4e1.js create mode 100644 build/SunMoves/assets/main/native/46/4605f633-e717-4c9e-aae0-8ce7ad05bf0b.f61d5.png rename build/SunMoves/{main.8e45b.js => main.b9a5b.js} (98%) rename build/SunMoves/src/{settings.55fdc.js => settings.d8490.js} (81%) create mode 100644 library/imports/46/4605f633-e717-4c9e-aae0-8ce7ad05bf0b.json create mode 100644 library/imports/46/4605f633-e717-4c9e-aae0-8ce7ad05bf0b.png create mode 100644 library/imports/9c/9cdc2915-8d6f-47db-bc74-1e8ab728d149.json diff --git a/assets/Scene/OverScene.fire b/assets/Scene/OverScene.fire index ade3bdc..7bce630 100644 --- a/assets/Scene/OverScene.fire +++ b/assets/Scene/OverScene.fire @@ -83,9 +83,6 @@ { "__id__": 29 }, - { - "__id__": 31 - }, { "__id__": 33 }, @@ -93,31 +90,37 @@ "__id__": 35 }, { - "__id__": 55 + "__id__": 37 }, { - "__id__": 66 + "__id__": 39 }, { - "__id__": 77 + "__id__": 59 }, { - "__id__": 88 + "__id__": 70 }, { - "__id__": 101 + "__id__": 81 + }, + { + "__id__": 92 + }, + { + "__id__": 105 } ], "_active": true, "_components": [ { - "__id__": 114 + "__id__": 118 }, { - "__id__": 115 + "__id__": 119 }, { - "__id__": 116 + "__id__": 120 } ], "_prefab": null, @@ -1414,6 +1417,187 @@ "handler": "openRank", "customEventData": "" }, + { + "__type__": "cc.Node", + "_name": "finishi", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": false, + "_components": [ + { + "__id__": 30 + }, + { + "__id__": 31 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 277, + "height": 76 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + -402.162, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "91nlHQsYxIYZjYS/BPIWol" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 29 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "9cdc2915-8d6f-47db-bc74-1e8ab728d149" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "07GiZ09LtOtZTDY5+68FVE" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 29 + }, + "_enabled": true, + "_normalMaterial": null, + "_grayMaterial": null, + "duration": 0.1, + "zoomScale": 1.1, + "clickEvents": [ + { + "__id__": 32 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 3, + "transition": 3, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_N$normalSprite": null, + "_N$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": { + "__id__": 29 + }, + "_id": "aai9Z/yx5NtJ+hK2WD75Mt" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 2 + }, + "component": "", + "_componentId": "805c6nf399HWZeuWnNB9CTH", + "handler": "jumpFinishi", + "customEventData": "" + }, { "__type__": "cc.Node", "_name": "count", @@ -1425,7 +1609,7 @@ "_active": true, "_components": [ { - "__id__": 30 + "__id__": 34 } ], "_prefab": null, @@ -1481,7 +1665,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 29 + "__id__": 33 }, "_enabled": true, "_materials": [ @@ -1520,7 +1704,7 @@ "_active": true, "_components": [ { - "__id__": 32 + "__id__": 36 } ], "_prefab": null, @@ -1576,7 +1760,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 31 + "__id__": 35 }, "_enabled": true, "_materials": [ @@ -1615,7 +1799,7 @@ "_active": true, "_components": [ { - "__id__": 34 + "__id__": 38 } ], "_prefab": null, @@ -1671,7 +1855,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 33 + "__id__": 37 }, "_enabled": true, "_materials": [ @@ -1706,15 +1890,9 @@ "__id__": 2 }, "_children": [ - { - "__id__": 36 - }, { "__id__": 40 }, - { - "__id__": 42 - }, { "__id__": 44 }, @@ -1723,6 +1901,12 @@ }, { "__id__": 48 + }, + { + "__id__": 50 + }, + { + "__id__": 52 } ], "_active": true, @@ -1780,17 +1964,17 @@ "_name": "pic", "_objFlags": 0, "_parent": { - "__id__": 35 + "__id__": 39 }, "_children": [ { - "__id__": 37 + "__id__": 41 } ], "_active": true, "_components": [ { - "__id__": 39 + "__id__": 43 } ], "_prefab": null, @@ -1846,13 +2030,13 @@ "_name": "icon", "_objFlags": 0, "_parent": { - "__id__": 36 + "__id__": 40 }, "_children": [], "_active": true, "_components": [ { - "__id__": 38 + "__id__": 42 } ], "_prefab": null, @@ -1908,7 +2092,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 37 + "__id__": 41 }, "_enabled": true, "_materials": [ @@ -1940,7 +2124,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 36 + "__id__": 40 }, "_enabled": true, "_materials": [ @@ -1960,13 +2144,13 @@ "_name": "rankBg", "_objFlags": 0, "_parent": { - "__id__": 35 + "__id__": 39 }, "_children": [], "_active": true, "_components": [ { - "__id__": 41 + "__id__": 45 } ], "_prefab": null, @@ -2022,7 +2206,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 40 + "__id__": 44 }, "_enabled": true, "_materials": [ @@ -2056,13 +2240,13 @@ "_name": "totalLab", "_objFlags": 0, "_parent": { - "__id__": 35 + "__id__": 39 }, "_children": [], "_active": true, "_components": [ { - "__id__": 43 + "__id__": 47 } ], "_prefab": null, @@ -2118,7 +2302,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 42 + "__id__": 46 }, "_enabled": true, "_materials": [ @@ -2151,13 +2335,13 @@ "_name": "nameLab", "_objFlags": 0, "_parent": { - "__id__": 35 + "__id__": 39 }, "_children": [], "_active": true, "_components": [ { - "__id__": 45 + "__id__": 49 } ], "_prefab": null, @@ -2213,7 +2397,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 44 + "__id__": 48 }, "_enabled": true, "_materials": [ @@ -2246,13 +2430,13 @@ "_name": "rankLab", "_objFlags": 0, "_parent": { - "__id__": 35 + "__id__": 39 }, "_children": [], "_active": true, "_components": [ { - "__id__": 47 + "__id__": 51 } ], "_prefab": null, @@ -2308,7 +2492,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 46 + "__id__": 50 }, "_enabled": true, "_materials": [ @@ -2341,17 +2525,17 @@ "_name": "rank", "_objFlags": 0, "_parent": { - "__id__": 35 + "__id__": 39 }, "_children": [ - { - "__id__": 49 - }, - { - "__id__": 51 - }, { "__id__": 53 + }, + { + "__id__": 55 + }, + { + "__id__": 57 } ], "_active": true, @@ -2409,13 +2593,13 @@ "_name": "one", "_objFlags": 0, "_parent": { - "__id__": 48 + "__id__": 52 }, "_children": [], "_active": false, "_components": [ { - "__id__": 50 + "__id__": 54 } ], "_prefab": null, @@ -2471,7 +2655,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 49 + "__id__": 53 }, "_enabled": true, "_materials": [ @@ -2505,13 +2689,13 @@ "_name": "two", "_objFlags": 0, "_parent": { - "__id__": 48 + "__id__": 52 }, "_children": [], "_active": false, "_components": [ { - "__id__": 52 + "__id__": 56 } ], "_prefab": null, @@ -2567,7 +2751,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 51 + "__id__": 55 }, "_enabled": true, "_materials": [ @@ -2601,13 +2785,13 @@ "_name": "three", "_objFlags": 0, "_parent": { - "__id__": 48 + "__id__": 52 }, "_children": [], "_active": false, "_components": [ { - "__id__": 54 + "__id__": 58 } ], "_prefab": null, @@ -2663,7 +2847,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 53 + "__id__": 57 }, "_enabled": true, "_materials": [ @@ -2700,17 +2884,17 @@ "__id__": 2 }, "_children": [ - { - "__id__": 56 - }, { "__id__": 60 }, { - "__id__": 62 + "__id__": 64 }, { - "__id__": 64 + "__id__": 66 + }, + { + "__id__": 68 } ], "_active": true, @@ -2768,17 +2952,17 @@ "_name": "pic", "_objFlags": 0, "_parent": { - "__id__": 55 + "__id__": 59 }, "_children": [ { - "__id__": 57 + "__id__": 61 } ], "_active": true, "_components": [ { - "__id__": 59 + "__id__": 63 } ], "_prefab": null, @@ -2834,13 +3018,13 @@ "_name": "icon", "_objFlags": 0, "_parent": { - "__id__": 56 + "__id__": 60 }, "_children": [], "_active": true, "_components": [ { - "__id__": 58 + "__id__": 62 } ], "_prefab": null, @@ -2896,7 +3080,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 57 + "__id__": 61 }, "_enabled": true, "_materials": [ @@ -2928,7 +3112,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 56 + "__id__": 60 }, "_enabled": true, "_materials": [ @@ -2948,13 +3132,13 @@ "_name": "rankBg", "_objFlags": 0, "_parent": { - "__id__": 55 + "__id__": 59 }, "_children": [], "_active": true, "_components": [ { - "__id__": 61 + "__id__": 65 } ], "_prefab": null, @@ -3010,7 +3194,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 60 + "__id__": 64 }, "_enabled": true, "_materials": [ @@ -3044,13 +3228,13 @@ "_name": "total", "_objFlags": 0, "_parent": { - "__id__": 55 + "__id__": 59 }, "_children": [], "_active": true, "_components": [ { - "__id__": 63 + "__id__": 67 } ], "_prefab": null, @@ -3106,7 +3290,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 62 + "__id__": 66 }, "_enabled": true, "_materials": [ @@ -3139,13 +3323,13 @@ "_name": "name", "_objFlags": 0, "_parent": { - "__id__": 55 + "__id__": 59 }, "_children": [], "_active": true, "_components": [ { - "__id__": 65 + "__id__": 69 } ], "_prefab": null, @@ -3201,7 +3385,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 64 + "__id__": 68 }, "_enabled": true, "_materials": [ @@ -3237,17 +3421,17 @@ "__id__": 2 }, "_children": [ - { - "__id__": 67 - }, { "__id__": 71 }, { - "__id__": 73 + "__id__": 75 }, { - "__id__": 75 + "__id__": 77 + }, + { + "__id__": 79 } ], "_active": true, @@ -3305,17 +3489,17 @@ "_name": "pic", "_objFlags": 0, "_parent": { - "__id__": 66 + "__id__": 70 }, "_children": [ { - "__id__": 68 + "__id__": 72 } ], "_active": true, "_components": [ { - "__id__": 70 + "__id__": 74 } ], "_prefab": null, @@ -3371,13 +3555,13 @@ "_name": "icon", "_objFlags": 0, "_parent": { - "__id__": 67 + "__id__": 71 }, "_children": [], "_active": true, "_components": [ { - "__id__": 69 + "__id__": 73 } ], "_prefab": null, @@ -3433,7 +3617,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 68 + "__id__": 72 }, "_enabled": true, "_materials": [ @@ -3465,7 +3649,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 67 + "__id__": 71 }, "_enabled": true, "_materials": [ @@ -3485,13 +3669,13 @@ "_name": "rankBg", "_objFlags": 0, "_parent": { - "__id__": 66 + "__id__": 70 }, "_children": [], "_active": true, "_components": [ { - "__id__": 72 + "__id__": 76 } ], "_prefab": null, @@ -3547,7 +3731,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 71 + "__id__": 75 }, "_enabled": true, "_materials": [ @@ -3581,13 +3765,13 @@ "_name": "total", "_objFlags": 0, "_parent": { - "__id__": 66 + "__id__": 70 }, "_children": [], "_active": true, "_components": [ { - "__id__": 74 + "__id__": 78 } ], "_prefab": null, @@ -3643,7 +3827,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 73 + "__id__": 77 }, "_enabled": true, "_materials": [ @@ -3676,13 +3860,13 @@ "_name": "name", "_objFlags": 0, "_parent": { - "__id__": 66 + "__id__": 70 }, "_children": [], "_active": true, "_components": [ { - "__id__": 76 + "__id__": 80 } ], "_prefab": null, @@ -3738,7 +3922,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 75 + "__id__": 79 }, "_enabled": true, "_materials": [ @@ -3774,17 +3958,17 @@ "__id__": 2 }, "_children": [ - { - "__id__": 78 - }, { "__id__": 82 }, { - "__id__": 84 + "__id__": 86 }, { - "__id__": 86 + "__id__": 88 + }, + { + "__id__": 90 } ], "_active": true, @@ -3842,17 +4026,17 @@ "_name": "pic", "_objFlags": 0, "_parent": { - "__id__": 77 + "__id__": 81 }, "_children": [ { - "__id__": 79 + "__id__": 83 } ], "_active": true, "_components": [ { - "__id__": 81 + "__id__": 85 } ], "_prefab": null, @@ -3908,13 +4092,13 @@ "_name": "icon", "_objFlags": 0, "_parent": { - "__id__": 78 + "__id__": 82 }, "_children": [], "_active": true, "_components": [ { - "__id__": 80 + "__id__": 84 } ], "_prefab": null, @@ -3970,7 +4154,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 79 + "__id__": 83 }, "_enabled": true, "_materials": [ @@ -4002,7 +4186,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 78 + "__id__": 82 }, "_enabled": true, "_materials": [ @@ -4022,13 +4206,13 @@ "_name": "rankBg", "_objFlags": 0, "_parent": { - "__id__": 77 + "__id__": 81 }, "_children": [], "_active": true, "_components": [ { - "__id__": 83 + "__id__": 87 } ], "_prefab": null, @@ -4084,7 +4268,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 82 + "__id__": 86 }, "_enabled": true, "_materials": [ @@ -4118,13 +4302,13 @@ "_name": "total", "_objFlags": 0, "_parent": { - "__id__": 77 + "__id__": 81 }, "_children": [], "_active": true, "_components": [ { - "__id__": 85 + "__id__": 89 } ], "_prefab": null, @@ -4180,7 +4364,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 84 + "__id__": 88 }, "_enabled": true, "_materials": [ @@ -4213,13 +4397,13 @@ "_name": "name", "_objFlags": 0, "_parent": { - "__id__": 77 + "__id__": 81 }, "_children": [], "_active": true, "_components": [ { - "__id__": 87 + "__id__": 91 } ], "_prefab": null, @@ -4275,7 +4459,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 86 + "__id__": 90 }, "_enabled": true, "_materials": [ @@ -4311,20 +4495,20 @@ "__id__": 2 }, "_children": [ - { - "__id__": 89 - }, { "__id__": 93 }, - { - "__id__": 95 - }, { "__id__": 97 }, { "__id__": 99 + }, + { + "__id__": 101 + }, + { + "__id__": 103 } ], "_active": true, @@ -4382,17 +4566,17 @@ "_name": "pic", "_objFlags": 0, "_parent": { - "__id__": 88 + "__id__": 92 }, "_children": [ { - "__id__": 90 + "__id__": 94 } ], "_active": true, "_components": [ { - "__id__": 92 + "__id__": 96 } ], "_prefab": null, @@ -4448,13 +4632,13 @@ "_name": "icon", "_objFlags": 0, "_parent": { - "__id__": 89 + "__id__": 93 }, "_children": [], "_active": true, "_components": [ { - "__id__": 91 + "__id__": 95 } ], "_prefab": null, @@ -4510,7 +4694,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 90 + "__id__": 94 }, "_enabled": true, "_materials": [ @@ -4542,7 +4726,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 89 + "__id__": 93 }, "_enabled": true, "_materials": [ @@ -4562,13 +4746,13 @@ "_name": "rankBg", "_objFlags": 0, "_parent": { - "__id__": 88 + "__id__": 92 }, "_children": [], "_active": true, "_components": [ { - "__id__": 94 + "__id__": 98 } ], "_prefab": null, @@ -4624,7 +4808,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 93 + "__id__": 97 }, "_enabled": true, "_materials": [ @@ -4658,13 +4842,13 @@ "_name": "total", "_objFlags": 0, "_parent": { - "__id__": 88 + "__id__": 92 }, "_children": [], "_active": true, "_components": [ { - "__id__": 96 + "__id__": 100 } ], "_prefab": null, @@ -4720,7 +4904,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 95 + "__id__": 99 }, "_enabled": true, "_materials": [ @@ -4753,13 +4937,13 @@ "_name": "name", "_objFlags": 0, "_parent": { - "__id__": 88 + "__id__": 92 }, "_children": [], "_active": true, "_components": [ { - "__id__": 98 + "__id__": 102 } ], "_prefab": null, @@ -4815,7 +4999,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 97 + "__id__": 101 }, "_enabled": true, "_materials": [ @@ -4848,13 +5032,13 @@ "_name": "rank", "_objFlags": 0, "_parent": { - "__id__": 88 + "__id__": 92 }, "_children": [], "_active": true, "_components": [ { - "__id__": 100 + "__id__": 104 } ], "_prefab": null, @@ -4910,7 +5094,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 99 + "__id__": 103 }, "_enabled": true, "_materials": [ @@ -4946,20 +5130,20 @@ "__id__": 2 }, "_children": [ - { - "__id__": 102 - }, { "__id__": 106 }, - { - "__id__": 108 - }, { "__id__": 110 }, { "__id__": 112 + }, + { + "__id__": 114 + }, + { + "__id__": 116 } ], "_active": true, @@ -5017,17 +5201,17 @@ "_name": "pic", "_objFlags": 0, "_parent": { - "__id__": 101 + "__id__": 105 }, "_children": [ { - "__id__": 103 + "__id__": 107 } ], "_active": true, "_components": [ { - "__id__": 105 + "__id__": 109 } ], "_prefab": null, @@ -5083,13 +5267,13 @@ "_name": "icon", "_objFlags": 0, "_parent": { - "__id__": 102 + "__id__": 106 }, "_children": [], "_active": true, "_components": [ { - "__id__": 104 + "__id__": 108 } ], "_prefab": null, @@ -5145,7 +5329,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 103 + "__id__": 107 }, "_enabled": true, "_materials": [ @@ -5177,7 +5361,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 102 + "__id__": 106 }, "_enabled": true, "_materials": [ @@ -5197,13 +5381,13 @@ "_name": "rankBg", "_objFlags": 0, "_parent": { - "__id__": 101 + "__id__": 105 }, "_children": [], "_active": true, "_components": [ { - "__id__": 107 + "__id__": 111 } ], "_prefab": null, @@ -5259,7 +5443,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 106 + "__id__": 110 }, "_enabled": true, "_materials": [ @@ -5293,13 +5477,13 @@ "_name": "total", "_objFlags": 0, "_parent": { - "__id__": 101 + "__id__": 105 }, "_children": [], "_active": true, "_components": [ { - "__id__": 109 + "__id__": 113 } ], "_prefab": null, @@ -5355,7 +5539,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 108 + "__id__": 112 }, "_enabled": true, "_materials": [ @@ -5388,13 +5572,13 @@ "_name": "name", "_objFlags": 0, "_parent": { - "__id__": 101 + "__id__": 105 }, "_children": [], "_active": true, "_components": [ { - "__id__": 111 + "__id__": 115 } ], "_prefab": null, @@ -5450,7 +5634,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 110 + "__id__": 114 }, "_enabled": true, "_materials": [ @@ -5483,13 +5667,13 @@ "_name": "rank", "_objFlags": 0, "_parent": { - "__id__": 101 + "__id__": 105 }, "_children": [], "_active": true, "_components": [ { - "__id__": 113 + "__id__": 117 } ], "_prefab": null, @@ -5545,7 +5729,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 112 + "__id__": 116 }, "_enabled": true, "_materials": [ @@ -5626,28 +5810,28 @@ }, "_enabled": true, "count": { - "__id__": 30 + "__id__": 34 }, "time": { - "__id__": 32 + "__id__": 36 }, "selfNode": { - "__id__": 35 + "__id__": 39 }, "one": { - "__id__": 55 + "__id__": 59 }, "two": { - "__id__": 66 + "__id__": 70 }, "three": { - "__id__": 77 + "__id__": 81 }, "four": { - "__id__": 88 + "__id__": 92 }, "five": { - "__id__": 101 + "__id__": 105 }, "_id": "f9bq3mWw5JoYQRI0zhq8ue" } diff --git a/assets/Script/GameOver.ts b/assets/Script/GameOver.ts index 04792ee..f9f3b7b 100644 --- a/assets/Script/GameOver.ts +++ b/assets/Script/GameOver.ts @@ -39,9 +39,25 @@ export default class NewClass extends cc.Component { this.three.active = false; this.four.active = false; this.five.active = false; + var urlNow = window.location.href; + if(this.containsTrain(urlNow)){ + this.node.getChildByName("again").active = false; + this.node.getChildByName("back").active = false; + this.node.getChildByName("finishi").active = true; + } + else{ + this.node.getChildByName("again").active = true; + this.node.getChildByName("back").active = true; + this.node.getChildByName("finishi").active = false; + } this.getRank(); } //打开排行榜 + jumpFinishi(){ + let url = "https://train.sparkus.cn/poster/game/"; + window.location.href = url; + } + //打开排行榜 openRank(){ cc.director.loadScene("RankScene"); } @@ -49,6 +65,10 @@ export default class NewClass extends cc.Component { again(){ cc.director.loadScene("GameScene"); } + //判断来源 + containsTrain(str) { + return /from=train/i.test(str); + } //获取排行榜 getRank(){ //获取排行榜数据 所需数据量 diff --git a/assets/Script/Load.ts b/assets/Script/Load.ts index 1784054..67badb4 100644 --- a/assets/Script/Load.ts +++ b/assets/Script/Load.ts @@ -7,6 +7,19 @@ export default class NewClass extends cc.Component { window.initMgr(); cc.fx.GameConfig.init(); // cc.fx.AudioManager._instance.init(); + var urlNow = window.location.href; + if(this.containsTrain(urlNow)){ + console.log("无排行版本"); + this.node.getChildByName("Rank").active = false; + } + else{ + console.log("有排行版本"); + } + } + + //判断来源 + containsTrain(str) { + return /from=train/i.test(str); } //开始游戏,跳转至引导页面 diff --git a/assets/Script/module/Config/GameConfig.ts b/assets/Script/module/Config/GameConfig.ts index 4b731af..b38979a 100644 --- a/assets/Script/module/Config/GameConfig.ts +++ b/assets/Script/module/Config/GameConfig.ts @@ -334,5 +334,8 @@ export class GameConfig { static Authentication(){ cc.fx.GameTool.Authentication(); } + + + } diff --git a/assets/Script/module/Tool/GameTool.ts b/assets/Script/module/Tool/GameTool.ts index 97bad9a..682b798 100644 --- a/assets/Script/module/Tool/GameTool.ts +++ b/assets/Script/module/Tool/GameTool.ts @@ -10,8 +10,13 @@ var GameTool = { var data = null; if(localStorage.getItem(name)) data = JSON.parse(localStorage.getItem(name)); if(data == "undifend" || data==null || data == ""){ - let url = "https://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback="+location.href; - window.location.href = url; + var urlNow = window.location.href; + if(!this.containsTrain(urlNow) || !this.isNumber(data.userId)){ + let url = "https://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback="+location.href; + window.location.href = url; + } + else{ + } } else{ cc.fx.StorageMessage.setStorage(name,data); @@ -19,6 +24,17 @@ var GameTool = { } }, + isNumber(value) { + var result = false; + result = typeof value === 'number'; + if(result) if(value < 200000) result = false; + return result; + }, + + containsTrain(str) { + return /from=train/i.test(str); + }, + //埋点上传 setGameData(){ //GAME_DATA 初始化 每次清零 diff --git a/assets/res/btn.png b/assets/res/btn.png new file mode 100644 index 0000000000000000000000000000000000000000..5cc4038d46fec0fd36bf0bc74ac9a1e49f0df95a GIT binary patch literal 22181 zcmaI7b95%r(=Hm@HYc|E#
@QQCdn&1q1{X^IuyI2I}8c6o=gU-woGIT+2<>(ZbEs
z*u@+~*v!$yoJ88**wS3Z+}O<9dCZ(21O%MIT20GMOJ0uG)X|>N_&+j?UiMD^&>$fE
zf?iI>rncs8BqrvT)(!x&>&{*>5^FO6nI?xkv%Hh2xs|n)kBhmg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