Pārlūkot izejas kodu

基础流程done

woso_javan 1 mēnesi atpakaļ
vecāks
revīzija
50fe17d405
27 mainītis faili ar 1033 papildinājumiem un 146 dzēšanām
  1. 3 2
      assets/module_aliens/Prefabs/UI/Result/UI_BattleResult_Impl.ts
  2. 9 4
      assets/module_aliens/Prefabs/UI/TimeExpan/UI_TimeExpan_Impl.ts
  3. 378 0
      assets/module_aliens/Prefabs/remainItem.prefab
  4. 13 0
      assets/module_aliens/Prefabs/remainItem.prefab.meta
  5. 82 0
      assets/module_aliens/Script/Components/RemainComponent.ts
  6. 9 0
      assets/module_aliens/Script/Components/RemainComponent.ts.meta
  7. 3 0
      assets/module_aliens/Script/Enum/GameEvent.ts
  8. 1 1
      assets/module_aliens/Script/Manager/LevelMgr.ts
  9. 1 1
      assets/module_aliens/Script/Manager/TimerMgr.ts
  10. 1 4
      assets/module_aliens/Script/Model/LevelModel.ts
  11. BIN
      assets/module_aliens/Textures/eticon.png
  12. 134 0
      assets/module_aliens/Textures/eticon.png.meta
  13. 347 108
      assets/module_aliens/rooster_aliens.scene
  14. 1 1
      profiles/v2/packages/scene.json
  15. 1 1
      temp/profiles/packages/scene.json
  16. 1 1
      temp/programming/packer-driver/targets/editor/chunks/51/51edb8357144130ef32611136d9888a1937fa8f2.js
  17. 0 0
      temp/programming/packer-driver/targets/editor/chunks/51/51edb8357144130ef32611136d9888a1937fa8f2.js.map
  18. 1 5
      temp/programming/packer-driver/targets/editor/chunks/92/92c5780ba4c42e5dde57f9e640efed7ad3fbec83.js
  19. 0 0
      temp/programming/packer-driver/targets/editor/chunks/92/92c5780ba4c42e5dde57f9e640efed7ad3fbec83.js.map
  20. 23 6
      temp/programming/packer-driver/targets/editor/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js
  21. 0 0
      temp/programming/packer-driver/targets/editor/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js.map
  22. 1 1
      temp/programming/packer-driver/targets/preview/chunks/51/51edb8357144130ef32611136d9888a1937fa8f2.js
  23. 0 0
      temp/programming/packer-driver/targets/preview/chunks/51/51edb8357144130ef32611136d9888a1937fa8f2.js.map
  24. 1 5
      temp/programming/packer-driver/targets/preview/chunks/92/92c5780ba4c42e5dde57f9e640efed7ad3fbec83.js
  25. 0 0
      temp/programming/packer-driver/targets/preview/chunks/92/92c5780ba4c42e5dde57f9e640efed7ad3fbec83.js.map
  26. 23 6
      temp/programming/packer-driver/targets/preview/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js
  27. 0 0
      temp/programming/packer-driver/targets/preview/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js.map

+ 3 - 2
assets/module_aliens/Prefabs/UI/Result/UI_BattleResult_Impl.ts

@@ -3,12 +3,12 @@ import { tgxModuleContext } from "../../../../core_tgx/tgx";
 import { GameUILayers } from "../../../../scripts/GameUILayers";
 import { UI_BattleResult } from "../../../../scripts/UIDef";
 import { Layout_BattleResult } from "./Layout_BattleResult";
-import { GtagMgr, GtagType } from "db://assets/core_tgx/base/GtagMgr";
 import { GameEvent } from "../../../Script/Enum/GameEvent";
 import { LevelManager } from "../../../Script/Manager/LevelMgr";
 import { AliensAudioMgr } from "../../../Script/Manager/CarUnscrewAudioMgr";
 import { UserManager } from "../../../Script/Manager/UserMgr";
 import { TimerMgr } from "../../../Script/Manager/TimerMgr";
+import { EventDispatcher } from "db://assets/core_tgx/easy_ui_framework/EventDispatcher";
 
 export class UI_BattleResult_Impl extends UI_BattleResult {
     rewardBase: number = 0; //基础奖励
@@ -44,10 +44,11 @@ export class UI_BattleResult_Impl extends UI_BattleResult {
     private emitEvent(): void {
         TimerMgr.inst.reset();
         UserManager.instance.reset();
-        
+
         if (this.win) {
             LevelManager.instance.levelUpHandler();
         } else {
+            EventDispatcher.instance.emit(GameEvent.EVENT_INIT_REMAIN_ENEMY);
             LevelManager.instance.restartLevelHandler();
         }
     }

+ 9 - 4
assets/module_aliens/Prefabs/UI/TimeExpan/UI_TimeExpan_Impl.ts

@@ -1,14 +1,13 @@
 import { _decorator, Component, Node } from 'cc';
 import { GameUILayers } from "../../../../scripts/GameUILayers";
-import { UI_TimeExpan } from "../../../../scripts/UIDef";
-import { tgxModuleContext } from 'db://assets/core_tgx/tgx';
+import { UI_BattleResult, UI_TimeExpan } from "../../../../scripts/UIDef";
+import { tgxModuleContext, tgxUIMgr } from 'db://assets/core_tgx/tgx';
 import { Layout_TimeExpan } from './Layout_TimeExpan';
 import { EventDispatcher } from 'db://assets/core_tgx/easy_ui_framework/EventDispatcher';
 import { GlobalConfig } from 'db://assets/start/Config/GlobalConfig';
 import { AdvertMgr } from 'db://assets/core_tgx/base/ad/AdvertMgr';
-import { UserManager } from '../../../Script/Manager/UserMgr';
-import { GameEvent } from '../../../Script/Enum/GameEvent';
 import { TimerMgr } from '../../../Script/Manager/TimerMgr';
+import { LevelManager } from '../../../Script/Manager/LevelMgr';
 const { ccclass, property } = _decorator;
 
 @ccclass('UI_TimeExpan_Impl')
@@ -39,6 +38,12 @@ export class UI_TimeExpan_Impl extends UI_TimeExpan {
         });
         this.onButtonEvent(layout.btn_back, () => {
             this.hide();
+
+            LevelManager.instance.levelModel.isWin = false;
+            const revive = tgxUIMgr.inst.isShowing(UI_BattleResult);
+            if (!revive) {
+                tgxUIMgr.inst.showUI(UI_BattleResult);
+            }
         });
     }
 

+ 378 - 0
assets/module_aliens/Prefabs/remainItem.prefab

@@ -0,0 +1,378 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "remainItem",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "persistent": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "remainItem",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 8
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 14
+      }
+    ],
+    "_prefab": {
+      "__id__": 16
+    },
+    "_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": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Active",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 3
+      },
+      {
+        "__id__": 5
+      }
+    ],
+    "_prefab": {
+      "__id__": 7
+    },
+    "_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": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 4
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 16,
+      "height": 36
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "f8s/DIyz1CCphpPP1wFfm3"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 6
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "093efe2e-c5d3-463c-97dd-cbcee099b622@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": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "33eN2miWNMPZzRph98ciV1"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "1402ydhktFga5nZMQSf8mI",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Death",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": false,
+    "_components": [
+      {
+        "__id__": 9
+      },
+      {
+        "__id__": 11
+      }
+    ],
+    "_prefab": {
+      "__id__": 13
+    },
+    "_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": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 8
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 10
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 16,
+      "height": 36
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "c4e8JEfaVL7Y2XlE1//nAO"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 8
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 12
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "093efe2e-c5d3-463c-97dd-cbcee099b622@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": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "fefEyDujlKWruf0AuZwUyP"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "5cyNOXC1lEiqbs99BBlSah",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 15
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 20,
+      "height": 40
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "debN8gEx5G2qrni10+Oytg"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "c46/YsCPVOJYA4mWEpNYRx",
+    "instance": null,
+    "targetOverrides": null
+  }
+]

+ 13 - 0
assets/module_aliens/Prefabs/remainItem.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "e4c2b613-d38f-42e1-9557-74a22acb2cdb",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "remainItem"
+  }
+}

+ 82 - 0
assets/module_aliens/Script/Components/RemainComponent.ts

@@ -0,0 +1,82 @@
+import { _decorator, Component, instantiate, Node, Prefab } from 'cc';
+import { EventDispatcher } from 'db://assets/core_tgx/easy_ui_framework/EventDispatcher';
+import { GameEvent } from '../Enum/GameEvent';
+import { LevelManager } from '../Manager/LevelMgr';
+import { UI_BattleResult } from 'db://assets/scripts/UIDef';
+import { tgxUIMgr } from 'db://assets/core_tgx/tgx';
+const { ccclass, property } = _decorator;
+
+@ccclass('RemainComponent')
+export class RemainComponent extends Component {
+
+    @property(Prefab)
+    public remainPrefab: Prefab = null;
+    private remainCount: number = 0; // 剩余数量
+
+    protected onLoad(): void {
+        EventDispatcher.instance.on(GameEvent.EVENT_INIT_REMAIN_ENEMY, this.initializeRemainCount, this); 
+        EventDispatcher.instance.on(GameEvent.EVENT_CAMERA_SHOOT_ENEMY, this.reduceCount, this); 
+    }
+
+    start() {
+       this.initializeRemainCount(); // 初始化剩余数量
+    }
+
+    private initializeRemainCount(): void {
+         //TODO 获取本关卡初始数量
+         this.remainCount = 6;
+         this.initRemainCount(this.remainCount);
+    }
+
+    private initRemainCount(remainCount: number): void {
+        this.remainCount = remainCount;
+        this.updateRemainCount();
+    }
+
+    private updateRemainCount(): void {
+        // 先清空所有子节点
+        this.node.removeAllChildren();
+        
+        // 根据剩余数量实例化预设
+        for (let i = 0; i < this.remainCount; i++) {
+            const item = instantiate(this.remainPrefab);
+            this.node.addChild(item);
+        }
+    }
+
+    public reduceCount(): boolean {
+        if (this.remainCount <= 0) {
+            return false;
+        }
+
+        // 获取最后一个实例化的节点
+        const lastChild = this.node.children[this.remainCount - 1];
+        if (lastChild) {
+            const deathNode = lastChild.getChildByName('Death');
+            const activeNode = lastChild.getChildByName('Active');
+            
+            if (deathNode && activeNode) {
+                deathNode.active = true;
+                activeNode.active = false;
+            }
+        }
+
+        this.remainCount--;
+
+        if(this.remainCount <= 0){
+            LevelManager.instance.levelModel.isWin = true;
+            const revive = tgxUIMgr.inst.isShowing(UI_BattleResult);
+            if (!revive) {
+                tgxUIMgr.inst.showUI(UI_BattleResult);
+            }
+        }
+        return true;
+    }
+
+    protected onDestroy(): void {
+        EventDispatcher.instance.off(GameEvent.EVENT_INIT_REMAIN_ENEMY, this.initializeRemainCount, this); 
+        EventDispatcher.instance.off(GameEvent.EVENT_CAMERA_SHOOT_ENEMY, this.reduceCount, this); 
+    }
+}
+
+

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

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "b5299277-5b22-4d3d-9c82-99db0ff02a43",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 3 - 0
assets/module_aliens/Script/Enum/GameEvent.ts

@@ -11,6 +11,9 @@ export class GameEvent {
     /** 刷新玩家信息*/
     static readonly EVENT_REFRESH_PLAYER_INFO = 'EVENT_REFRESH_PLAYER_INFO';
 
+    /**初始化剩余怪物 */
+    static readonly EVENT_INIT_REMAIN_ENEMY = 'EVENT_INIT_REMAIN_ENEMY';
+
     /** 瞄准镜头*/
     static readonly EVENT_CAMERA_AIM = 'EVENT_CAMERA_AIM';
 

+ 1 - 1
assets/module_aliens/Script/Manager/LevelMgr.ts

@@ -82,7 +82,7 @@ export class LevelManager {
 
     upgradeLevel(up: number = 1): void {
         this.levelModel.level += up;
-        sys.localStorage.setItem('level', this.levelModel.level.toString());
+        sys.localStorage.setItem('alient_level', this.levelModel.level.toString());
         if (this.levelModel.level > GlobalConfig.levelTotal) {
             const randomLevelList = this.levelModel.randomLevelList;
 

+ 1 - 1
assets/module_aliens/Script/Manager/TimerMgr.ts

@@ -124,6 +124,6 @@ export class TimerMgr {
         Scheduler.enableForTarget(this);
         director.getScheduler().unscheduleAllForTarget(this);
         this.addTimeCount = 0;
-        this.countDownTime = 3; //测试
+        this.countDownTime = 20; //测试
     }
 }

+ 1 - 4
assets/module_aliens/Script/Model/LevelModel.ts

@@ -11,8 +11,6 @@ export class LevelModel {
 
     /** 当前关卡等级*/
     public level: number = 1;
-    /** 每关星星结算*/
-    public star: number = 3;
     /** 储存每关星星结算*/
     public levelStarsMap: Map<number, number> = new Map<number, number>();
     /** 保存可随机的关卡*/
@@ -30,7 +28,7 @@ export class LevelModel {
         if (isDebug) {
             this.level = GlobalConfig.initilizeLevel;
         } else {
-            const level = sys.localStorage.getItem('level');
+            const level = sys.localStorage.getItem('alient_level');
             if (!level) {
                 this.level = 1;
             } else {
@@ -61,7 +59,6 @@ export class LevelModel {
     clearLevel() {
         this.isWin = false;
         this.isEnd = false;
-        this.star = 3;
     }
 
 }

BIN
assets/module_aliens/Textures/eticon.png


+ 134 - 0
assets/module_aliens/Textures/eticon.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.26",
+  "importer": "image",
+  "imported": true,
+  "uuid": "093efe2e-c5d3-463c-97dd-cbcee099b622",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "093efe2e-c5d3-463c-97dd-cbcee099b622@6c48a",
+      "displayName": "eticon",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "093efe2e-c5d3-463c-97dd-cbcee099b622",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "nearest",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "093efe2e-c5d3-463c-97dd-cbcee099b622@f9941",
+      "displayName": "eticon",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 16,
+        "height": 36,
+        "rawWidth": 16,
+        "rawHeight": 36,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -8,
+            -18,
+            0,
+            8,
+            -18,
+            0,
+            -8,
+            18,
+            0,
+            8,
+            18,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            36,
+            16,
+            36,
+            0,
+            0,
+            16,
+            0
+          ],
+          "nuv": [
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
+          ],
+          "minPos": [
+            -8,
+            -18,
+            0
+          ],
+          "maxPos": [
+            8,
+            18,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "093efe2e-c5d3-463c-97dd-cbcee099b622@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "hasAlpha": true,
+    "fixAlphaTransparencyArtifacts": false,
+    "redirect": "093efe2e-c5d3-463c-97dd-cbcee099b622@f9941"
+  }
+}

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 347 - 108
assets/module_aliens/rooster_aliens.scene


+ 1 - 1
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,

+ 1 - 1
temp/profiles/packages/scene.json

@@ -1,3 +1,3 @@
 {
-  "current-scene": "be14c61f-22d8-4bb9-b444-ad9f29740469"
+  "current-scene": ""
 }

+ 1 - 1
temp/programming/packer-driver/targets/editor/chunks/51/51edb8357144130ef32611136d9888a1937fa8f2.js

@@ -157,7 +157,7 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
 
         upgradeLevel(up = 1) {
           this.levelModel.level += up;
-          sys.localStorage.setItem('level', this.levelModel.level.toString());
+          sys.localStorage.setItem('alient_level', this.levelModel.level.toString());
 
           if (this.levelModel.level > (_crd && GlobalConfig === void 0 ? (_reportPossibleCrUseOfGlobalConfig({
             error: Error()

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
temp/programming/packer-driver/targets/editor/chunks/51/51edb8357144130ef32611136d9888a1937fa8f2.js.map


+ 1 - 5
temp/programming/packer-driver/targets/editor/chunks/92/92c5780ba4c42e5dde57f9e640efed7ad3fbec83.js

@@ -48,9 +48,6 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
           /** 当前关卡等级*/
           this.level = 1;
 
-          /** 每关星星结算*/
-          this.star = 3;
-
           /** 储存每关星星结算*/
           this.levelStarsMap = new Map();
 
@@ -75,7 +72,7 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
               error: Error()
             }), GlobalConfig) : GlobalConfig).initilizeLevel;
           } else {
-            const level = sys.localStorage.getItem('level');
+            const level = sys.localStorage.getItem('alient_level');
 
             if (!level) {
               this.level = 1;
@@ -116,7 +113,6 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
         clearLevel() {
           this.isWin = false;
           this.isEnd = false;
-          this.star = 3;
         }
 
       });

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
temp/programming/packer-driver/targets/editor/chunks/92/92c5780ba4c42e5dde57f9e640efed7ad3fbec83.js.map


+ 23 - 6
temp/programming/packer-driver/targets/editor/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js

@@ -1,7 +1,7 @@
-System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8"], function (_export, _context) {
+System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8", "__unresolved_9", "__unresolved_10"], function (_export, _context) {
   "use strict";
 
-  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, isValid, Tween, tgxModuleContext, GameUILayers, UI_BattleResult, Layout_BattleResult, LevelManager, AliensAudioMgr, UserManager, TimerMgr, UI_BattleResult_Impl, _crd;
+  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, isValid, Tween, tgxModuleContext, GameUILayers, UI_BattleResult, Layout_BattleResult, GameEvent, LevelManager, AliensAudioMgr, UserManager, TimerMgr, EventDispatcher, UI_BattleResult_Impl, _crd;
 
   function _reportPossibleCrUseOftgxModuleContext(extras) {
     _reporterNs.report("tgxModuleContext", "../../../../core_tgx/tgx", _context.meta, extras);
@@ -19,6 +19,10 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
     _reporterNs.report("Layout_BattleResult", "./Layout_BattleResult", _context.meta, extras);
   }
 
+  function _reportPossibleCrUseOfGameEvent(extras) {
+    _reporterNs.report("GameEvent", "../../../Script/Enum/GameEvent", _context.meta, extras);
+  }
+
   function _reportPossibleCrUseOfLevelManager(extras) {
     _reporterNs.report("LevelManager", "../../../Script/Manager/LevelMgr", _context.meta, extras);
   }
@@ -35,6 +39,10 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
     _reporterNs.report("TimerMgr", "../../../Script/Manager/TimerMgr", _context.meta, extras);
   }
 
+  function _reportPossibleCrUseOfEventDispatcher(extras) {
+    _reporterNs.report("EventDispatcher", "db://assets/core_tgx/easy_ui_framework/EventDispatcher", _context.meta, extras);
+  }
+
   _export("UI_BattleResult_Impl", void 0);
 
   return {
@@ -55,13 +63,17 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
     }, function (_unresolved_5) {
       Layout_BattleResult = _unresolved_5.Layout_BattleResult;
     }, function (_unresolved_6) {
-      LevelManager = _unresolved_6.LevelManager;
+      GameEvent = _unresolved_6.GameEvent;
     }, function (_unresolved_7) {
-      AliensAudioMgr = _unresolved_7.AliensAudioMgr;
+      LevelManager = _unresolved_7.LevelManager;
     }, function (_unresolved_8) {
-      UserManager = _unresolved_8.UserManager;
+      AliensAudioMgr = _unresolved_8.AliensAudioMgr;
     }, function (_unresolved_9) {
-      TimerMgr = _unresolved_9.TimerMgr;
+      UserManager = _unresolved_9.UserManager;
+    }, function (_unresolved_10) {
+      TimerMgr = _unresolved_10.TimerMgr;
+    }, function (_unresolved_11) {
+      EventDispatcher = _unresolved_11.EventDispatcher;
     }],
     execute: function () {
       _crd = true;
@@ -125,6 +137,11 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
               error: Error()
             }), LevelManager) : LevelManager).instance.levelUpHandler();
           } else {
+            (_crd && EventDispatcher === void 0 ? (_reportPossibleCrUseOfEventDispatcher({
+              error: Error()
+            }), EventDispatcher) : EventDispatcher).instance.emit((_crd && GameEvent === void 0 ? (_reportPossibleCrUseOfGameEvent({
+              error: Error()
+            }), GameEvent) : GameEvent).EVENT_INIT_REMAIN_ENEMY);
             (_crd && LevelManager === void 0 ? (_reportPossibleCrUseOfLevelManager({
               error: Error()
             }), LevelManager) : LevelManager).instance.restartLevelHandler();

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
temp/programming/packer-driver/targets/editor/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js.map


+ 1 - 1
temp/programming/packer-driver/targets/preview/chunks/51/51edb8357144130ef32611136d9888a1937fa8f2.js

@@ -184,7 +184,7 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
           }
 
           this.levelModel.level += up;
-          sys.localStorage.setItem('level', this.levelModel.level.toString());
+          sys.localStorage.setItem('alient_level', this.levelModel.level.toString());
 
           if (this.levelModel.level > (_crd && GlobalConfig === void 0 ? (_reportPossibleCrUseOfGlobalConfig({
             error: Error()

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
temp/programming/packer-driver/targets/preview/chunks/51/51edb8357144130ef32611136d9888a1937fa8f2.js.map


+ 1 - 5
temp/programming/packer-driver/targets/preview/chunks/92/92c5780ba4c42e5dde57f9e640efed7ad3fbec83.js

@@ -48,9 +48,6 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
           /** 当前关卡等级*/
           this.level = 1;
 
-          /** 每关星星结算*/
-          this.star = 3;
-
           /** 储存每关星星结算*/
           this.levelStarsMap = new Map();
 
@@ -75,7 +72,7 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
               error: Error()
             }), GlobalConfig) : GlobalConfig).initilizeLevel;
           } else {
-            var level = sys.localStorage.getItem('level');
+            var level = sys.localStorage.getItem('alient_level');
 
             if (!level) {
               this.level = 1;
@@ -116,7 +113,6 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
         clearLevel() {
           this.isWin = false;
           this.isEnd = false;
-          this.star = 3;
         }
 
       });

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
temp/programming/packer-driver/targets/preview/chunks/92/92c5780ba4c42e5dde57f9e640efed7ad3fbec83.js.map


+ 23 - 6
temp/programming/packer-driver/targets/preview/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js

@@ -1,7 +1,7 @@
-System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8"], function (_export, _context) {
+System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8", "__unresolved_9", "__unresolved_10"], function (_export, _context) {
   "use strict";
 
-  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, isValid, Tween, tgxModuleContext, GameUILayers, UI_BattleResult, Layout_BattleResult, LevelManager, AliensAudioMgr, UserManager, TimerMgr, UI_BattleResult_Impl, _crd;
+  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, isValid, Tween, tgxModuleContext, GameUILayers, UI_BattleResult, Layout_BattleResult, GameEvent, LevelManager, AliensAudioMgr, UserManager, TimerMgr, EventDispatcher, UI_BattleResult_Impl, _crd;
 
   function _reportPossibleCrUseOftgxModuleContext(extras) {
     _reporterNs.report("tgxModuleContext", "../../../../core_tgx/tgx", _context.meta, extras);
@@ -19,6 +19,10 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
     _reporterNs.report("Layout_BattleResult", "./Layout_BattleResult", _context.meta, extras);
   }
 
+  function _reportPossibleCrUseOfGameEvent(extras) {
+    _reporterNs.report("GameEvent", "../../../Script/Enum/GameEvent", _context.meta, extras);
+  }
+
   function _reportPossibleCrUseOfLevelManager(extras) {
     _reporterNs.report("LevelManager", "../../../Script/Manager/LevelMgr", _context.meta, extras);
   }
@@ -35,6 +39,10 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
     _reporterNs.report("TimerMgr", "../../../Script/Manager/TimerMgr", _context.meta, extras);
   }
 
+  function _reportPossibleCrUseOfEventDispatcher(extras) {
+    _reporterNs.report("EventDispatcher", "db://assets/core_tgx/easy_ui_framework/EventDispatcher", _context.meta, extras);
+  }
+
   _export("UI_BattleResult_Impl", void 0);
 
   return {
@@ -55,13 +63,17 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
     }, function (_unresolved_5) {
       Layout_BattleResult = _unresolved_5.Layout_BattleResult;
     }, function (_unresolved_6) {
-      LevelManager = _unresolved_6.LevelManager;
+      GameEvent = _unresolved_6.GameEvent;
     }, function (_unresolved_7) {
-      AliensAudioMgr = _unresolved_7.AliensAudioMgr;
+      LevelManager = _unresolved_7.LevelManager;
     }, function (_unresolved_8) {
-      UserManager = _unresolved_8.UserManager;
+      AliensAudioMgr = _unresolved_8.AliensAudioMgr;
     }, function (_unresolved_9) {
-      TimerMgr = _unresolved_9.TimerMgr;
+      UserManager = _unresolved_9.UserManager;
+    }, function (_unresolved_10) {
+      TimerMgr = _unresolved_10.TimerMgr;
+    }, function (_unresolved_11) {
+      EventDispatcher = _unresolved_11.EventDispatcher;
     }],
     execute: function () {
       _crd = true;
@@ -125,6 +137,11 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
               error: Error()
             }), LevelManager) : LevelManager).instance.levelUpHandler();
           } else {
+            (_crd && EventDispatcher === void 0 ? (_reportPossibleCrUseOfEventDispatcher({
+              error: Error()
+            }), EventDispatcher) : EventDispatcher).instance.emit((_crd && GameEvent === void 0 ? (_reportPossibleCrUseOfGameEvent({
+              error: Error()
+            }), GameEvent) : GameEvent).EVENT_INIT_REMAIN_ENEMY);
             (_crd && LevelManager === void 0 ? (_reportPossibleCrUseOfLevelManager({
               error: Error()
             }), LevelManager) : LevelManager).instance.restartLevelHandler();

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
temp/programming/packer-driver/targets/preview/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js.map


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels