woso_javan 3 هفته پیش
والد
کامیت
5150bccf20

+ 3 - 0
assets/module_aliens/Script/AliensGlobalInstance.ts

@@ -38,6 +38,7 @@ export class AliensGlobalInstance extends Component {
         this.btnRender = find('Canvas/GameUI/BattleUI/BottomBtns/BtnRender')!;
         this.btnProbe = find('Canvas/GameUI/BattleUI/BottomBtns/BtnProbe')!;
         this.btnPowerUp = find('Canvas/GameUI/HomeUI/Power/BtnPowerUp')!;
+        this.lbPropTips = find('Canvas/GameUI/BattleUI/LbPropTips')!;
     }
 
     public camera: Camera = null!; //相机
@@ -57,6 +58,8 @@ export class AliensGlobalInstance extends Component {
     public btnRender: Node = null!; //截图按钮
     public btnProbe: Node = null!; //侦擦按钮
     public btnPowerUp: Node = null!; //体力
+
+    public lbPropTips:Node = null!; //引导提示
 }
 
 

+ 15 - 0
assets/module_aliens/Script/LevelAction.ts

@@ -73,15 +73,23 @@ export class LevelAction extends Component {
     }
 
     private initilizeUI() {
+        const {level} = LevelManager.instance.levelModel;
         const renderNode = AliensGlobalInstance.instance.renderNode;
         const aimTarget = AliensGlobalInstance.instance.aimTarget;
         const radarNode = AliensGlobalInstance.instance.radarNode;
         const battleUI = AliensGlobalInstance.instance.battleUI;
+        const lbPropTips = AliensGlobalInstance.instance.lbPropTips;
         renderNode.active = false;
         aimTarget.active = false;
         radarNode.active = false;
         battleUI.active = true;
 
+        if(level == 1){
+            this.showPropTips(true);
+        }else{
+            this.showPropTips(false);
+        }
+
         const match = tgxUIMgr.inst.isShowing(UI_BattleGambit);
         if (!match) {
             tgxUIMgr.inst.showUI(UI_BattleGambit);
@@ -210,6 +218,7 @@ export class LevelAction extends Component {
                 };
 
                 if (item.collider.getGroup() == 1 << 4) {
+                    this.showPropTips(false);
                     LevelManager.instance.levelModel.headshotCount++;
                     killMonster(true);
                     EventDispatcher.instance.emit(GameEvent.EVENT_CAMERA_HEADSHOT);
@@ -217,6 +226,7 @@ export class LevelAction extends Component {
                 }
 
                 if (item.collider.getGroup() == 1 << 3 && !hitEnemy) {
+                    this.showPropTips(false);
                     killMonster(false);
                 }
             }
@@ -274,6 +284,11 @@ export class LevelAction extends Component {
             .start();
     }
 
+    //引导tips
+    private showPropTips(bool:boolean) {
+        const lbPropTips = AliensGlobalInstance.instance.lbPropTips;
+        lbPropTips.active = bool;
+    }
 
     /***************************触摸事件**********************************/
     private _onTouchStart(event: EventTouch) {

+ 203 - 65
assets/module_aliens/rooster_aliens.scene

@@ -23,7 +23,7 @@
     "_active": true,
     "_components": [],
     "_prefab": {
-      "__id__": 207
+      "__id__": 210
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -54,7 +54,7 @@
     },
     "autoReleaseAssets": false,
     "_globals": {
-      "__id__": 208
+      "__id__": 211
     },
     "_id": "be14c61f-22d8-4bb9-b444-ad9f29740469"
   },
@@ -74,25 +74,25 @@
         "__id__": 7
       },
       {
-        "__id__": 199
+        "__id__": 202
       },
       {
-        "__id__": 201
+        "__id__": 204
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 203
+        "__id__": 206
       },
       {
-        "__id__": 204
+        "__id__": 207
       },
       {
-        "__id__": 205
+        "__id__": 208
       },
       {
-        "__id__": 206
+        "__id__": 209
       }
     ],
     "_prefab": null,
@@ -279,19 +279,19 @@
         "__id__": 46
       },
       {
-        "__id__": 179
+        "__id__": 182
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 196
+        "__id__": 199
       },
       {
-        "__id__": 197
+        "__id__": 200
       },
       {
-        "__id__": 198
+        "__id__": 201
       }
     ],
     "_prefab": null,
@@ -349,7 +349,7 @@
         "__id__": 40
       }
     ],
-    "_active": true,
+    "_active": false,
     "_components": [
       {
         "__id__": 43
@@ -1861,18 +1861,21 @@
       },
       {
         "__id__": 167
+      },
+      {
+        "__id__": 176
       }
     ],
-    "_active": false,
+    "_active": true,
     "_components": [
       {
-        "__id__": 176
+        "__id__": 179
       },
       {
-        "__id__": 177
+        "__id__": 180
       },
       {
-        "__id__": 178
+        "__id__": 181
       }
     ],
     "_prefab": null,
@@ -5757,7 +5760,7 @@
     "_prefab": null,
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": -1200,
+      "x": -3000,
       "y": 0,
       "z": 0
     },
@@ -6485,6 +6488,141 @@
     "__prefab": null,
     "_id": "4bYhGL2/ROfLlzTOdcGL5Y"
   },
+  {
+    "__type__": "cc.Node",
+    "_name": "LbPropTips",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 46
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 177
+      },
+      {
+        "__id__": 178
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 30,
+      "y": 532.622,
+      "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": "cavx6t2CxJqLHhC+IT681K"
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 176
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 636.56,
+      "height": 40
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": "67Sm/43chKz4oxyUYarUr3"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 176
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_string": "Kill the hidden aliens in the scene",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 40,
+    "_fontSize": 40,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 0,
+    "_enableWrapText": false,
+    "_font": {
+      "__uuid__": "23a47957-4ba6-41f7-999f-a5fbf8a48aed",
+      "__expectedType__": "cc.TTFFont"
+    },
+    "_isSystemFontUsed": false,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 2,
+    "_enableOutline": false,
+    "_outlineColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_outlineWidth": 2,
+    "_enableShadow": false,
+    "_shadowColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_shadowOffset": {
+      "__type__": "cc.Vec2",
+      "x": 2,
+      "y": 2
+    },
+    "_shadowBlur": 2,
+    "_id": "f86UyZjh5EYrTqVhYcwLAx"
+  },
   {
     "__type__": "cc.UITransform",
     "_name": "",
@@ -6571,22 +6709,22 @@
     },
     "_children": [
       {
-        "__id__": 180
+        "__id__": 183
       },
       {
-        "__id__": 184
+        "__id__": 187
       },
       {
-        "__id__": 188
+        "__id__": 191
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 194
+        "__id__": 197
       },
       {
-        "__id__": 195
+        "__id__": 198
       }
     ],
     "_prefab": null,
@@ -6625,19 +6763,19 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": {
-      "__id__": 179
+      "__id__": 182
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 181
+        "__id__": 184
       },
       {
-        "__id__": 182
+        "__id__": 185
       },
       {
-        "__id__": 183
+        "__id__": 186
       }
     ],
     "_prefab": null,
@@ -6676,7 +6814,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 180
+      "__id__": 183
     },
     "_enabled": true,
     "__prefab": null,
@@ -6698,7 +6836,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 180
+      "__id__": 183
     },
     "_enabled": true,
     "__prefab": null,
@@ -6737,7 +6875,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 180
+      "__id__": 183
     },
     "_enabled": true,
     "__prefab": null,
@@ -6779,7 +6917,7 @@
     "_duration": 0.1,
     "_zoomScale": 1.2,
     "_target": {
-      "__id__": 180
+      "__id__": 183
     },
     "_id": "51Zwo4GTBBT7vNI+1Aij5E"
   },
@@ -6789,19 +6927,19 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": {
-      "__id__": 179
+      "__id__": 182
     },
     "_children": [],
     "_active": false,
     "_components": [
       {
-        "__id__": 185
+        "__id__": 188
       },
       {
-        "__id__": 186
+        "__id__": 189
       },
       {
-        "__id__": 187
+        "__id__": 190
       }
     ],
     "_prefab": null,
@@ -6840,7 +6978,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 184
+      "__id__": 187
     },
     "_enabled": true,
     "__prefab": null,
@@ -6862,7 +7000,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 184
+      "__id__": 187
     },
     "_enabled": true,
     "__prefab": null,
@@ -6901,7 +7039,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 184
+      "__id__": 187
     },
     "_enabled": true,
     "__prefab": null,
@@ -6943,7 +7081,7 @@
     "_duration": 0.1,
     "_zoomScale": 1.2,
     "_target": {
-      "__id__": 184
+      "__id__": 187
     },
     "_id": "ec3qEoJHVABoxGd3CvrvsV"
   },
@@ -6953,20 +7091,20 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": {
-      "__id__": 179
+      "__id__": 182
     },
     "_children": [
       {
-        "__id__": 189
+        "__id__": 192
       }
     ],
     "_active": false,
     "_components": [
       {
-        "__id__": 192
+        "__id__": 195
       },
       {
-        "__id__": 193
+        "__id__": 196
       }
     ],
     "_prefab": null,
@@ -7005,16 +7143,16 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": {
-      "__id__": 188
+      "__id__": 191
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 190
+        "__id__": 193
       },
       {
-        "__id__": 191
+        "__id__": 194
       }
     ],
     "_prefab": null,
@@ -7053,7 +7191,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 189
+      "__id__": 192
     },
     "_enabled": true,
     "__prefab": null,
@@ -7075,7 +7213,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 189
+      "__id__": 192
     },
     "_enabled": true,
     "__prefab": null,
@@ -7111,7 +7249,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 188
+      "__id__": 191
     },
     "_enabled": true,
     "__prefab": null,
@@ -7133,7 +7271,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 188
+      "__id__": 191
     },
     "_enabled": true,
     "__prefab": null,
@@ -7172,7 +7310,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 179
+      "__id__": 182
     },
     "_enabled": true,
     "__prefab": null,
@@ -7194,7 +7332,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 179
+      "__id__": 182
     },
     "_enabled": true,
     "__prefab": null,
@@ -7300,7 +7438,7 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 200
+        "__id__": 203
       }
     ],
     "_prefab": null,
@@ -7339,7 +7477,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 199
+      "__id__": 202
     },
     "_enabled": true,
     "__prefab": null,
@@ -7357,7 +7495,7 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 202
+        "__id__": 205
       }
     ],
     "_prefab": null,
@@ -7396,7 +7534,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 201
+      "__id__": 204
     },
     "_enabled": true,
     "__prefab": null,
@@ -7469,7 +7607,7 @@
     "_enabled": true,
     "__prefab": null,
     "_cameraComponent": {
-      "__id__": 202
+      "__id__": 205
     },
     "_alignCanvasWithScreen": true,
     "_id": "8fdCZBLJNAnL3sNZ4vacOF"
@@ -7537,28 +7675,28 @@
   {
     "__type__": "cc.SceneGlobals",
     "ambient": {
-      "__id__": 209
+      "__id__": 212
     },
     "shadows": {
-      "__id__": 210
+      "__id__": 213
     },
     "_skybox": {
-      "__id__": 211
+      "__id__": 214
     },
     "fog": {
-      "__id__": 212
+      "__id__": 215
     },
     "octree": {
-      "__id__": 213
+      "__id__": 216
     },
     "skin": {
-      "__id__": 214
+      "__id__": 217
     },
     "lightProbeInfo": {
-      "__id__": 215
+      "__id__": 218
     },
     "postSettings": {
-      "__id__": 216
+      "__id__": 219
     },
     "bakedWithStationaryMainLight": false,
     "bakedWithHighpLightmap": false

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

@@ -100,7 +100,7 @@
         "progress": 1,
         "state": "success",
         "stage": "run",
-        "message": "2025-5-16 17:01:46 run package E:\\CocosCreator\\_Aliens\\build\\web-mobile success!",
+        "message": "2025-5-16 17:53:04 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 17:01:01",
+        "time": "2025-5-16 17:52:18",
         "dirty": false
       },
       "1741673552280": {

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

@@ -5,7 +5,7 @@
     "__version__": "1.3.7"
   },
   "gizmos-infos": {
-    "is2D": false,
+    "is2D": true,
     "is3DIcon": false,
     "iconSize": 2,
     "gridVisible": true,
@@ -1112,31 +1112,6 @@
       },
       "scale": 1
     },
-    "773de0b0-468b-4fbb-965c-36c47d7a4c94": {
-      "position": {
-        "x": 392.48145842490914,
-        "y": 804.982577589885,
-        "z": -8.363764571526751
-      },
-      "rotation": {
-        "x": -0.19984058942523603,
-        "y": 0.693709486696819,
-        "z": 0.21028687476200722,
-        "w": 0.6592498139460019
-      },
-      "viewCenter": {
-        "x": 384.6975943629557,
-        "y": 799.779211606222,
-        "z": -7.967000995989416
-      },
-      "contentRect": {
-        "x": 0,
-        "y": 0,
-        "width": 803,
-        "height": 803
-      },
-      "scale": 1
-    },
     "29dc5799-9f85-4365-b308-d63b7f8c6727": {
       "position": {
         "x": 380.4249464750022,
@@ -1162,11 +1137,61 @@
       },
       "scale": 1
     },
+    "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
+    },
+    "773de0b0-468b-4fbb-965c-36c47d7a4c94": {
+      "position": {
+        "x": 392.48145842490914,
+        "y": 804.982577589885,
+        "z": -8.3637645715271
+      },
+      "rotation": {
+        "x": -0.19984058942523603,
+        "y": 0.693709486696819,
+        "z": 0.21028687476200722,
+        "w": 0.6592498139460019
+      },
+      "viewCenter": {
+        "x": 384.6975943629557,
+        "y": 799.779211606222,
+        "z": -7.967000995989416
+      },
+      "contentRect": {
+        "x": -723.3113667716467,
+        "y": -722.1985800535366,
+        "width": 803,
+        "height": 803
+      },
+      "scale": 0.4026225829873136
+    },
     "4fac1625-c75a-4a5f-96e6-e15ddac448ae": {
       "position": {
         "x": 385.32289248686857,
         "y": 870.5882557138024,
-        "z": 5000
+        "z": 1167.7075198966675
       },
       "rotation": {
         "x": 0,
@@ -1180,17 +1205,17 @@
         "z": 0
       },
       "contentRect": {
-        "x": 385.3228924868685,
-        "y": 870.5882557138023,
-        "width": 0,
-        "height": 0
+        "x": -723.3113667716467,
+        "y": -722.1985800535366,
+        "width": 803,
+        "height": 803
       },
-      "scale": 0.45850202160233516
+      "scale": 0.4026225829873136
     },
     "19323c5d-5d36-438a-86ee-8288c690e5b0": {
       "position": {
-        "x": 170.88,
-        "y": 164.0533333333333,
+        "x": 75.20833333333333,
+        "y": 160.20833333333331,
         "z": 5000
       },
       "rotation": {
@@ -1205,17 +1230,17 @@
         "z": 0
       },
       "contentRect": {
-        "x": 401.5,
-        "y": 383.5,
-        "width": 792.5306388526727,
-        "height": 757
+        "x": 181.5,
+        "y": 383.49999999999994,
+        "width": 353,
+        "height": 745.8705234159779
       },
-      "scale": 0.9869621903520208
+      "scale": 0.9724517906336089
     },
     "9e293cde-e27b-4902-808b-e884f3e9da32": {
       "position": {
-        "x": 490.3123975133519,
-        "y": 903.0536394943317,
+        "x": 937.5,
+        "y": 625,
         "z": 5000
       },
       "rotation": {
@@ -1230,17 +1255,17 @@
         "z": 0
       },
       "contentRect": {
-        "x": 94.45809055586349,
-        "y": 66.63420854007921,
-        "width": 363,
-        "height": 767
+        "x": 0,
+        "y": 0,
+        "width": 1875,
+        "height": 1250
       },
-      "scale": 0.45850202160233566
+      "scale": 1
     },
     "be14c61f-22d8-4bb9-b444-ad9f29740469": {
       "position": {
-        "x": 401.5,
-        "y": 401.5,
+        "x": 356.7972170521932,
+        "y": 400.54818001658487,
         "z": 5000
       },
       "rotation": {
@@ -1255,37 +1280,12 @@
         "z": 0
       },
       "contentRect": {
-        "x": 0,
-        "y": 0,
+        "x": -1239.7660429936755,
+        "y": -663.8273266806608,
         "width": 793,
         "height": 793
       },
-      "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
+      "scale": 0.5871987809446811
     }
   },
   "camera-uuids": [
@@ -1332,13 +1332,13 @@
     "97847f67-f841-48ad-a6b2-6ac8db2fcbfd",
     "d6678b55-2635-45df-bdce-51e04632740e",
     "7d719727-ff7f-4ee8-81ed-4ee61f407f45",
-    "773de0b0-468b-4fbb-965c-36c47d7a4c94",
     "29dc5799-9f85-4365-b308-d63b7f8c6727",
+    "55742b3c-e667-4650-8011-efdabf3e5d1b",
+    "773de0b0-468b-4fbb-965c-36c47d7a4c94",
     "4fac1625-c75a-4a5f-96e6-e15ddac448ae",
     "19323c5d-5d36-438a-86ee-8288c690e5b0",
     "9e293cde-e27b-4902-808b-e884f3e9da32",
-    "be14c61f-22d8-4bb9-b444-ad9f29740469",
-    "55742b3c-e667-4650-8011-efdabf3e5d1b"
+    "be14c61f-22d8-4bb9-b444-ad9f29740469"
   ],
   "camera": {
     "color": [