woso_javan 2 veckor sedan
förälder
incheckning
929b2cbc9b

BIN
assets/module_aliens/Audio/bgm.mp3


+ 33 - 0
assets/module_aliens/Script/Components/FrameBg.ts

@@ -0,0 +1,33 @@
+import { _decorator, Component, Node, sys, Widget } from 'cc';
+const { ccclass, property } = _decorator;
+
+@ccclass('FrameBg')
+export class FrameBg extends Component {
+    protected onLoad() {
+        // 判断平台
+        if (sys.isMobile) {
+            // 手机端添加Widget组件
+            const widget = this.node.addComponent(Widget);
+            widget.isAlignLeft = true;
+            widget.isAlignRight = true;
+            widget.isAlignTop = true;
+            widget.isAlignBottom = true;
+            widget.left = 0;
+            widget.right = 0;
+            widget.top = 0;
+            widget.bottom = 0;
+            widget.updateAlignment();
+        }
+        // PC端不做处理
+    }
+
+    start() {
+
+    }
+
+    update(deltaTime: number) {
+        
+    }
+}
+
+

+ 9 - 0
assets/module_aliens/Script/Components/FrameBg.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "175890b1-c3a3-4203-9e31-c71c2f934f1d",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 2 - 2
assets/module_aliens/rooster_aliens.scene

@@ -504,7 +504,7 @@
     "_id": "57VElY3A9BuKeXkkoCnDyH"
   },
   {
-    "__type__": "df9c1XeTcVFJp2J7fsaRMc+",
+    "__type__": "17589Cxw6NCA54xxxwvk08d",
     "_name": "",
     "_objFlags": 0,
     "__editorExtras__": {},
@@ -513,7 +513,7 @@
     },
     "_enabled": true,
     "__prefab": null,
-    "_id": "f3IkU3C1ZDQLD/Hhom58hB"
+    "_id": "a0hgGgGWVEA6sHnDgxp62A"
   },
   {
     "__type__": "cc.Node",

+ 44 - 115
assets/start/start.scene

@@ -52,7 +52,7 @@
     },
     "autoReleaseAssets": false,
     "_globals": {
-      "__id__": 26
+      "__id__": 24
     },
     "_id": "9e293cde-e27b-4902-808b-e884f3e9da32"
   },
@@ -72,25 +72,25 @@
         "__id__": 5
       },
       {
-        "__id__": 11
+        "__id__": 9
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 21
+        "__id__": 19
       },
       {
-        "__id__": 22
+        "__id__": 20
       },
       {
-        "__id__": 23
+        "__id__": 21
       },
       {
-        "__id__": 24
+        "__id__": 22
       },
       {
-        "__id__": 25
+        "__id__": 23
       }
     ],
     "_prefab": null,
@@ -214,74 +214,25 @@
     "_trackingType": 0,
     "_id": "76KHZBsq1F7KB0g+SU7nPa"
   },
-  {
-    "__type__": "cc.Node",
-    "_name": "frame",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "_parent": {
-      "__id__": 2
-    },
-    "_children": [
-      {
-        "__id__": 6
-      }
-    ],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 10
-      }
-    ],
-    "_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": "2bIvIvzQRAVoR3Fwo3Yjo4"
-  },
   {
     "__type__": "cc.Node",
     "_name": "bg",
     "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": {
-      "__id__": 5
+      "__id__": 2
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 7
+        "__id__": 6
       },
       {
-        "__id__": 8
+        "__id__": 7
       },
       {
-        "__id__": 9
+        "__id__": 8
       }
     ],
     "_prefab": null,
@@ -320,7 +271,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 6
+      "__id__": 5
     },
     "_enabled": true,
     "__prefab": null,
@@ -342,7 +293,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 6
+      "__id__": 5
     },
     "_enabled": true,
     "__prefab": null,
@@ -376,19 +327,7 @@
     "_id": "6fdFqTuPFBu5N1cfHuoMFG"
   },
   {
-    "__type__": "df9c1XeTcVFJp2J7fsaRMc+",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 6
-    },
-    "_enabled": true,
-    "__prefab": null,
-    "_id": "3dlrnel49EUIRUk0hWOBfJ"
-  },
-  {
-    "__type__": "cc.UITransform",
+    "__type__": "17589Cxw6NCA54xxxwvk08d",
     "_name": "",
     "_objFlags": 0,
     "__editorExtras__": {},
@@ -397,17 +336,7 @@
     },
     "_enabled": true,
     "__prefab": null,
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 720,
-      "height": 1600
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_id": "d0BbxMa79Hjb1VXGjUUL2G"
+    "_id": "92ubYB6TdG/Y7z+uvpQsY3"
   },
   {
     "__type__": "cc.Node",
@@ -419,22 +348,22 @@
     },
     "_children": [
       {
-        "__id__": 12
+        "__id__": 10
       },
       {
-        "__id__": 15
+        "__id__": 13
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 18
+        "__id__": 16
       },
       {
-        "__id__": 19
+        "__id__": 17
       },
       {
-        "__id__": 20
+        "__id__": 18
       }
     ],
     "_prefab": null,
@@ -473,16 +402,16 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": {
-      "__id__": 11
+      "__id__": 9
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 13
+        "__id__": 11
       },
       {
-        "__id__": 14
+        "__id__": 12
       }
     ],
     "_prefab": null,
@@ -521,7 +450,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 12
+      "__id__": 10
     },
     "_enabled": true,
     "__prefab": null,
@@ -543,7 +472,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 12
+      "__id__": 10
     },
     "_enabled": true,
     "__prefab": null,
@@ -582,16 +511,16 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": {
-      "__id__": 11
+      "__id__": 9
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 16
+        "__id__": 14
       },
       {
-        "__id__": 17
+        "__id__": 15
       }
     ],
     "_prefab": null,
@@ -630,7 +559,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 15
+      "__id__": 13
     },
     "_enabled": true,
     "__prefab": null,
@@ -652,7 +581,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 15
+      "__id__": 13
     },
     "_enabled": true,
     "__prefab": null,
@@ -717,7 +646,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 11
+      "__id__": 9
     },
     "_enabled": true,
     "__prefab": null,
@@ -739,7 +668,7 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 11
+      "__id__": 9
     },
     "_enabled": true,
     "__prefab": null,
@@ -778,12 +707,12 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 11
+      "__id__": 9
     },
     "_enabled": true,
     "__prefab": null,
     "_barSprite": {
-      "__id__": 14
+      "__id__": 12
     },
     "_mode": 0,
     "_totalLength": 640,
@@ -870,14 +799,14 @@
     "_enabled": true,
     "__prefab": null,
     "txtLoading": {
-      "__id__": 17
+      "__id__": 15
     },
     "uiCanvasPrefab": {
       "__uuid__": "469e39c1-3bdc-4490-987b-99aaa169fdf4",
       "__expectedType__": "cc.Prefab"
     },
     "loadingBar": {
-      "__id__": 20
+      "__id__": 18
     },
     "_id": "ccwYlVBqtP3qOrWWpSPSZW"
   },
@@ -901,28 +830,28 @@
   {
     "__type__": "cc.SceneGlobals",
     "ambient": {
-      "__id__": 27
+      "__id__": 25
     },
     "shadows": {
-      "__id__": 28
+      "__id__": 26
     },
     "_skybox": {
-      "__id__": 29
+      "__id__": 27
     },
     "fog": {
-      "__id__": 30
+      "__id__": 28
     },
     "octree": {
-      "__id__": 31
+      "__id__": 29
     },
     "skin": {
-      "__id__": 32
+      "__id__": 30
     },
     "lightProbeInfo": {
-      "__id__": 33
+      "__id__": 31
     },
     "postSettings": {
-      "__id__": 34
+      "__id__": 32
     },
     "bakedWithStationaryMainLight": false,
     "bakedWithHighpLightmap": false

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

@@ -100,7 +100,7 @@
         "progress": 1,
         "state": "success",
         "stage": "run",
-        "message": "2025-5-19 10:28:50 run package E:\\CocosCreator\\_Aliens\\build\\web-mobile success!",
+        "message": "2025-5-19 10:38:22 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-19 10:28:39",
+        "time": "2025-5-19 10:37:06",
         "dirty": false
       },
       "1741673552280": {

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

@@ -1239,8 +1239,8 @@
     },
     "9e293cde-e27b-4902-808b-e884f3e9da32": {
       "position": {
-        "x": 344.12583826884884,
-        "y": 661.4618612554085,
+        "x": -953.9913077156009,
+        "y": 661.4804380938414,
         "z": 5000
       },
       "rotation": {
@@ -1255,8 +1255,8 @@
         "z": 0
       },
       "contentRect": {
-        "x": -835.8452160404408,
-        "y": -519.980478657758,
+        "x": -2133.962362024891,
+        "y": -519.9619018193252,
         "width": 356.85,
         "height": 793
       },
@@ -1280,7 +1280,7 @@
         "z": 0
       },
       "contentRect": {
-        "x": -1196.918365454922,
+        "x": -572.3309456328435,
         "y": -426.25333742190986,
         "width": 793,
         "height": 793