woso_javan пре 3 недеља
родитељ
комит
b66774d24a

+ 26 - 26
assets/module_aliens/Prefabs/Levels/level_5.prefab

@@ -647,9 +647,9 @@
     ],
     "value": {
       "__type__": "cc.Vec3",
-      "x": -5.352663,
-      "y": 1.3569521436837704,
-      "z": -4.693791123218164
+      "x": 2.171,
+      "y": 0.953,
+      "z": -4.107
     }
   },
   {
@@ -668,10 +668,10 @@
     ],
     "value": {
       "__type__": "cc.Quat",
-      "x": -0.13380655819052384,
-      "y": 0.3504182017400379,
-      "z": 0.0506571040921491,
-      "w": 0.9256007490702896
+      "x": -0.11984443050612144,
+      "y": -0.4782973254901796,
+      "z": -0.06607874892175086,
+      "w": 0.8674690656424244
     }
   },
   {
@@ -690,9 +690,9 @@
     ],
     "value": {
       "__type__": "cc.Vec3",
-      "x": -16.451597187808854,
-      "y": 41.47178934940468,
-      "z": -9.994980551752842e-10
+      "x": -15.731712957392793,
+      "y": -57.7421396972799,
+      "z": -7.951386703658792e-16
     }
   },
   {
@@ -9470,7 +9470,7 @@
         "__id__": 444
       }
     ],
-    "_active": false,
+    "_active": true,
     "_components": [
       {
         "__id__": 449
@@ -11640,7 +11640,7 @@
   {
     "__type__": "cc.Node",
     "_name": "tree3",
-    "_objFlags": 512,
+    "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": {
       "__id__": 51
@@ -14945,9 +14945,9 @@
     "value": {
       "__type__": "cc.Quat",
       "x": 0,
-      "y": -5.92611190119996e-8,
+      "y": -1.0140796824487097e-7,
       "z": 0,
-      "w": 0.9999999407388795
+      "w": 0.9999999828857273
     }
   },
   {
@@ -16390,10 +16390,10 @@
     ],
     "value": {
       "__type__": "cc.Quat",
-      "x": -8.659311125753808e-17,
+      "x": -8.659312449242788e-17,
       "y": -8.659309140520338e-17,
-      "z": 0.7124735713005066,
-      "w": 0.7016990184783936
+      "z": 0.7124736309051514,
+      "w": 0.7016989588737488
     }
   },
   {
@@ -16433,8 +16433,8 @@
     ],
     "value": {
       "__type__": "cc.Vec3",
-      "x": -0.0010082849053105747,
-      "y": 0.02196004900713433,
+      "x": -0.0010082811736538133,
+      "y": 0.021960049149754468,
       "z": 0.02500152587890625
     }
   },
@@ -16512,10 +16512,10 @@
     ],
     "value": {
       "__type__": "cc.Quat",
-      "x": -9.352961062419628e-23,
-      "y": -1.304287604232052e-22,
-      "z": 0.0000015934809498019398,
-      "w": 1.000000020902887
+      "x": -1.028165225681345e-22,
+      "y": -1.3132195266978809e-22,
+      "z": 0.0000016771300678231071,
+      "w": 1.0000000221874539
     }
   },
   {
@@ -17865,9 +17865,9 @@
     ],
     "value": {
       "__type__": "cc.Vec3",
-      "x": 0.000030517578125,
-      "y": 0.09503173828125,
-      "z": -0.00699615478515625
+      "x": 0,
+      "y": 0.0670166015625,
+      "z": 0.031000137329101562
     }
   },
   {

+ 8 - 2
assets/module_aliens/Script/Manager/LevelMgr.ts

@@ -95,9 +95,10 @@ export class LevelManager {
                 randomLevel = randomLevelList[randomIndex];
             }
 
-            this.randomLevel = randomLevel;
+            // this.randomLevel = randomLevel;
+            this.randomLevel = this.getLastNumber(randomLevel.toString())!;
             console.log(`随机真实关卡level: ${this.randomLevel}`);
-            this.levelModel.setLevelConfig(this.randomLevel);
+            this.levelModel.setLevelConfig(Number(this.randomLevel));
         }
         else {
             this.levelModel.levelConfig.init(this.levelModel.level);
@@ -105,6 +106,11 @@ export class LevelManager {
         EventDispatcher.instance.emit(GameEvent.EVENT_BATTLE_SUCCESS_LEVEL_UP);
     }
 
+    private getLastNumber(str: string): number | null {
+        const match = str.match(/(\d+)$/);
+        return match ? parseInt(match[1], 10) : null;
+      }
+
     async loadLevel(level: number): Promise<Node> {
         let levelPrefab = null;
         if (this.levelModel.level > GlobalConfig.levelTotal) {

+ 1 - 1
assets/module_aliens/rooster_aliens.scene

@@ -558,7 +558,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": -525.156,
+      "y": -400,
       "z": 0
     },
     "_lrot": {

+ 1 - 1
build/web-mobile/assets/main/index.js

@@ -30,7 +30,7 @@ System.register("chunks:///_virtual/FreeCamera.ts",["./rollupPluginModLoBabelHel
 
 System.register("chunks:///_virtual/GameUILayers.ts",["cc"],(function(e){var a;return{setters:[function(e){a=e.cclegacy}],execute:function(){a._RF.push({},"a77a1B4SKRKLLPJCc2S/oq0","GameUILayers",void 0);var P=e("GameUILayers",function(e){return e[e.GAME=0]="GAME",e[e.JOY_STICK=1]="JOY_STICK",e[e.HUD=2]="HUD",e[e.POPUP=3]="POPUP",e[e.POPUP1=4]="POPUP1",e[e.POPUP2=5]="POPUP2",e[e.ALERT=6]="ALERT",e[e.NOTICE=7]="NOTICE",e[e.LOADING=8]="LOADING",e[e.OVERLAY=9]="OVERLAY",e[e.NUM=10]="NUM",e}(P||{}));e("GameUILayerNames",["game","joy_stick","hud","popup","popup1","popup2","alert","notice","loading","overlay"]);a._RF.pop()}}}));
 
-System.register("chunks:///_virtual/GlobalConfig.ts",["cc"],(function(e){var i;return{setters:[function(e){i=e.cclegacy}],execute:function(){i._RF.push({},"6accf2OQMpNX6qyXp9M6Uqt","GlobalConfig",void 0);e("GlobalConfig",{isDebug:!1,initilizeLevel:1,levelTotal:4});i._RF.pop()}}}));
+System.register("chunks:///_virtual/GlobalConfig.ts",["cc"],(function(e){var i;return{setters:[function(e){i=e.cclegacy}],execute:function(){i._RF.push({},"6accf2OQMpNX6qyXp9M6Uqt","GlobalConfig",void 0);e("GlobalConfig",{isDebug:!1,initilizeLevel:1,levelTotal:5});i._RF.pop()}}}));
 
 System.register("chunks:///_virtual/GlobalMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./AudioMgr.ts","./AdvertMgr.ts"],(function(n){var e,t,o,s,c;return{setters:[function(n){e=n.createClass},function(n){t=n.cclegacy,o=n._decorator},function(n){s=n.AudioMgr},function(n){c=n.AdvertMgr}],execute:function(){var i,u;t._RF.push({},"13efcXgb51ALL6fUqMOeIrw","GlobalMgr",void 0);var l=o.ccclass;o.property,n("GlobalMgr",l("GlobalMgr")(((u=function(){function n(){}var t=n.prototype;return t.initilize=function(){window.__woso={SoundMr:{pauseAll:function(){n.instance.pauseAllSounds()},resumeAll:function(){n.instance.resumeAllSounds()}},TargetedAds:{open:function(){n.instance.openAd()},clos:function(){n.instance.closeAd()}},Fps:{setfps:function(e){n.instance.setfps(e)}}}},t.pauseAllSounds=function(){s.inst.toggleBgMusic(!1),s.inst.toggleSoundEffects(!1)},t.resumeAllSounds=function(){s.inst.toggleBgMusic(!0),s.inst.toggleSoundEffects(!0)},t.openAd=function(){console.log("开启广告"),c.instance.openAd=!0},t.closeAd=function(){console.log("关闭广告"),c.instance.openAd=!1},t.setfps=function(n){console.log("设置帧率:",n)},t.timeTest=function(){setTimeout((function(){window.__woso.SoundMr.pauseAll()}),2e3)},e(n,null,[{key:"instance",get:function(){return this._instance||(this._instance=new n),this._instance}}]),n}())._instance=null,i=u))||i);t._RF.pop()}}}));
 

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
build/web-mobile/assets/module_basic/import/02/02d1caf7e.json


+ 2 - 2
profiles/v2/packages/builder.json

@@ -100,7 +100,7 @@
         "progress": 1,
         "state": "success",
         "stage": "run",
-        "message": "2025-5-16 14:43:27 run package E:\\CocosCreator\\_Aliens\\build\\web-mobile success!",
+        "message": "2025-5-16 16:31:30 run package E:\\CocosCreator\\_Aliens\\build\\web-mobile success!",
         "options": {
           "name": "SnipingAliens",
           "server": "",
@@ -146,7 +146,7 @@
           "buildMode": "normal",
           "logDest": "project://temp/builder/log/web-mobile2025-1-13 17-06.log"
         },
-        "time": "2025-5-16 14:43:15",
+        "time": "2025-5-16 16:30:43",
         "dirty": false
       },
       "1741673552280": {

+ 71 - 71
profiles/v2/packages/scene.json

@@ -5,7 +5,7 @@
     "__version__": "1.3.7"
   },
   "gizmos-infos": {
-    "is2D": true,
+    "is2D": false,
     "is3DIcon": false,
     "iconSize": 2,
     "gridVisible": true,
@@ -1137,31 +1137,6 @@
       },
       "scale": 1
     },
-    "9e293cde-e27b-4902-808b-e884f3e9da32": {
-      "position": {
-        "x": 18.695477141176585,
-        "y": 18.695477141176582,
-        "z": 18.69547714117658
-      },
-      "rotation": {
-        "x": 0,
-        "y": 0,
-        "z": 0,
-        "w": 1
-      },
-      "viewCenter": {
-        "x": 0,
-        "y": 0,
-        "z": 0
-      },
-      "contentRect": {
-        "x": 0,
-        "y": 0,
-        "width": 363,
-        "height": 767
-      },
-      "scale": 1
-    },
     "29dc5799-9f85-4365-b308-d63b7f8c6727": {
       "position": {
         "x": 380.4249464750022,
@@ -1187,42 +1162,42 @@
       },
       "scale": 1
     },
-    "55742b3c-e667-4650-8011-efdabf3e5d1b": {
+    "4fac1625-c75a-4a5f-96e6-e15ddac448ae": {
       "position": {
-        "x": 382.67396223381724,
-        "y": 799.4015569715692,
-        "z": -5.671431110339842
+        "x": 385.32289248686857,
+        "y": 870.5882557138024,
+        "z": 5000
       },
       "rotation": {
-        "x": -0.17061776244251337,
-        "y": -0.22069358924264199,
-        "z": -0.039240772866505194,
-        "w": 0.9595019961162923
+        "x": 0,
+        "y": 0,
+        "z": 0,
+        "w": 1
       },
       "viewCenter": {
-        "x": 383.1471410492118,
-        "y": 799.0038162652921,
-        "z": -6.645622760672939
-      },
-      "contentRect": {
         "x": 0,
         "y": 0,
-        "width": 803,
-        "height": 803
+        "z": 0
       },
-      "scale": 1
+      "contentRect": {
+        "x": 385.3228924868685,
+        "y": 870.5882557138023,
+        "width": 0,
+        "height": 0
+      },
+      "scale": 0.45850202160233516
     },
     "19323c5d-5d36-438a-86ee-8288c690e5b0": {
       "position": {
-        "x": 361.1900193586128,
-        "y": 753.3769890729194,
-        "z": -4.286145266388353
+        "x": 170.88,
+        "y": 164.0533333333333,
+        "z": 5000
       },
       "rotation": {
-        "x": -0.17944609812651272,
-        "y": -0.1863537273230383,
-        "z": -0.029919064856390752,
-        "w": 0.9654927424574976
+        "x": 0,
+        "y": 0,
+        "z": 0,
+        "w": 1
       },
       "viewCenter": {
         "x": 0,
@@ -1230,17 +1205,17 @@
         "z": 0
       },
       "contentRect": {
-        "x": 0,
-        "y": 0,
-        "width": 803,
-        "height": 803
+        "x": 401.5,
+        "y": 383.5,
+        "width": 792.5306388526727,
+        "height": 757
       },
-      "scale": 1
+      "scale": 0.9869621903520208
     },
-    "be14c61f-22d8-4bb9-b444-ad9f29740469": {
+    "9e293cde-e27b-4902-808b-e884f3e9da32": {
       "position": {
-        "x": 488.1969971291286,
-        "y": 629.5900830566763,
+        "x": 490.3123975133519,
+        "y": 903.0536394943317,
         "z": 5000
       },
       "rotation": {
@@ -1255,17 +1230,17 @@
         "z": 0
       },
       "contentRect": {
-        "x": -25.162526012305218,
-        "y": -455.1117192834883,
+        "x": 94.45809055586349,
+        "y": 66.63420854007921,
         "width": 363,
         "height": 767
       },
-      "scale": 0.3535533905932735
+      "scale": 0.45850202160233566
     },
-    "4fac1625-c75a-4a5f-96e6-e15ddac448ae": {
+    "be14c61f-22d8-4bb9-b444-ad9f29740469": {
       "position": {
-        "x": 385.32289248686857,
-        "y": 870.5882557138024,
+        "x": 401.5,
+        "y": 401.5,
         "z": 5000
       },
       "rotation": {
@@ -1280,12 +1255,37 @@
         "z": 0
       },
       "contentRect": {
-        "x": 385.3228924868685,
-        "y": 870.5882557138023,
-        "width": 0,
-        "height": 0
+        "x": 0,
+        "y": 0,
+        "width": 793,
+        "height": 793
       },
-      "scale": 0.45850202160233516
+      "scale": 0.987546699875467
+    },
+    "55742b3c-e667-4650-8011-efdabf3e5d1b": {
+      "position": {
+        "x": 384.7046969485021,
+        "y": 798.9258584045858,
+        "z": -5.712708521567875
+      },
+      "rotation": {
+        "x": -0.559228160918496,
+        "y": -0.4180898501780209,
+        "z": -0.38910014341509647,
+        "w": 0.6008874716313054
+      },
+      "viewCenter": {
+        "x": 384.71624878904964,
+        "y": 798.7545476840036,
+        "z": -5.716990227386361
+      },
+      "contentRect": {
+        "x": -388.9627885937876,
+        "y": -361.9641950325717,
+        "width": 803,
+        "height": 803
+      },
+      "scale": 0.522136891213707
     }
   },
   "camera-uuids": [
@@ -1333,12 +1333,12 @@
     "d6678b55-2635-45df-bdce-51e04632740e",
     "7d719727-ff7f-4ee8-81ed-4ee61f407f45",
     "773de0b0-468b-4fbb-965c-36c47d7a4c94",
-    "9e293cde-e27b-4902-808b-e884f3e9da32",
     "29dc5799-9f85-4365-b308-d63b7f8c6727",
-    "55742b3c-e667-4650-8011-efdabf3e5d1b",
+    "4fac1625-c75a-4a5f-96e6-e15ddac448ae",
     "19323c5d-5d36-438a-86ee-8288c690e5b0",
+    "9e293cde-e27b-4902-808b-e884f3e9da32",
     "be14c61f-22d8-4bb9-b444-ad9f29740469",
-    "4fac1625-c75a-4a5f-96e6-e15ddac448ae"
+    "55742b3c-e667-4650-8011-efdabf3e5d1b"
   ],
   "camera": {
     "color": [

Неке датотеке нису приказане због велике количине промена