zhoupeng 1 年之前
父节点
当前提交
c09134ea1e

+ 3 - 3
airPlay/assets/Scene/pathtest.fire

@@ -490,7 +490,7 @@
       "__id__": 6
     },
     "asset": {
-      "__uuid__": "efff7db0-87be-4fce-b599-652c1bd4f27b"
+      "__uuid__": "283e5d63-b94a-4bce-86da-4f7d9e095ece"
     },
     "fileId": "ach6q+oI5EFJKjbzOU3Pdc",
     "sync": false
@@ -538,7 +538,7 @@
       "__id__": 6
     },
     "asset": {
-      "__uuid__": "efff7db0-87be-4fce-b599-652c1bd4f27b"
+      "__uuid__": "283e5d63-b94a-4bce-86da-4f7d9e095ece"
     },
     "fileId": "98PO/apDVH/LuKBvj72vRg",
     "sync": false
@@ -576,7 +576,7 @@
       "__id__": 6
     },
     "asset": {
-      "__uuid__": "efff7db0-87be-4fce-b599-652c1bd4f27b"
+      "__uuid__": "283e5d63-b94a-4bce-86da-4f7d9e095ece"
     },
     "fileId": "",
     "sync": false

+ 34 - 11
airPlay/assets/Script/game/monster/aniList.ts

@@ -66,27 +66,50 @@ export default class AniList extends GameLogic {
             return;
         }
 
-        let node = cc.instantiate(this.monster);
-        let ani = node.addComponent(cc.Animation);
-        this.monsterNode.addChild(node);
-        EditorSet.DontShow(node);
-
-        this.aniClip.forEach((v,k)=>{
-            ani.addClip(v, `path${k}`)
-        });
-
+        // let node = cc.instantiate(this.monster);
+        // let ani = node.addComponent(cc.Animation);
+        // this.monsterNode.addChild(node);
+        // EditorSet.DontShow(node);
+
+        // this.aniClip.forEach((v,k)=>{
+        //     ani.addClip(v, `path${k}`)
+        // });
+
+        // let cnt = 0;
+        // let callAni = ()=>{
+        //     ani.play(`path${cnt}`);
+        //     ani.once(cc.Animation.EventType.FINISHED, ()=>{
+        //         cnt++;
+        //         if(cnt < this.aniClip.length){
+        //             callAni();
+        //         }
+        //     });
+
+        // }
+        // callAni();
+
+        let monsterNode = cc.instantiate(this.monster);
         let cnt = 0;
         let callAni = ()=>{
-            ani.play(`path${cnt}`);
+            let aniNode = new cc.Node('AniItem');
+            let parent = monsterNode.parent ? monsterNode.parent : this.monsterNode;
+            monsterNode.removeFromParent(false);
+            aniNode.addChild(monsterNode);
+            parent.addChild(aniNode);
+
+            let ani = aniNode.addComponent(cc.Animation);
+            ani.addClip(this.aniClip[cnt], 'path')
+            ani.play('path');
             ani.once(cc.Animation.EventType.FINISHED, ()=>{
                 cnt++;
                 if(cnt < this.aniClip.length){
                     callAni();
                 }
             });
-
         }
+
         callAni();
+
     }
 
     gameUpdate(dt: number): void {

+ 1 - 1
airPlay/assets/Script/levelMgr.ts

@@ -4,7 +4,7 @@ import { Nest } from "./game/monster/nest";
 import { ResMgr } from "./resMgr";
 
 
-let pass = 4;
+let pass = 5;
 
 
 enum LevelState {

+ 333 - 0
airPlay/assets/resources/level/level5.prefab

@@ -0,0 +1,333 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "",
+    "_objFlags": 0,
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "asyncLoadAssets": false,
+    "readonly": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "level5",
+    "_objFlags": 0,
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 9
+      }
+    ],
+    "_prefab": {
+      "__id__": 10
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 640,
+      "height": 1500
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        0,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "play",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 3
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 6
+      },
+      {
+        "__id__": 7
+      }
+    ],
+    "_prefab": {
+      "__id__": 8
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 0,
+      "height": 0
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        750,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "nest",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 2
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 4
+      }
+    ],
+    "_prefab": {
+      "__id__": 5
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 0,
+      "height": 0
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        0,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "48dfaPtVhdL55Wy24GR/KOY",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 3
+    },
+    "_enabled": true,
+    "monster": {
+      "__uuid__": "3b398d6c-7705-4c30-ac7e-b584b1e54ba3"
+    },
+    "aniClip": [
+      {
+        "__uuid__": "fef70438-8c52-44bb-a1a8-f1e1e2228928"
+      },
+      {
+        "__uuid__": "fde661d5-3fcd-40b8-83a4-108b494c10ae"
+      }
+    ],
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "ach6q+oI5EFJKjbzOU3Pdc",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "alignMode": 1,
+    "_target": null,
+    "_alignFlags": 1,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 0,
+    "_originalHeight": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "2ee92PWQr5EBIaSgbtCu5ic",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "98PO/apDVH/LuKBvj72vRg",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "alignMode": 1,
+    "_target": null,
+    "_alignFlags": 45,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 0,
+    "_originalHeight": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "",
+    "sync": false
+  }
+]

+ 9 - 0
airPlay/assets/resources/level/level5.prefab.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.3.2",
+  "uuid": "283e5d63-b94a-4bce-86da-4f7d9e095ece",
+  "importer": "prefab",
+  "optimizationPolicy": "AUTO",
+  "asyncLoadAssets": false,
+  "readonly": false,
+  "subMetas": {}
+}

+ 1 - 1
airPlay/packages/CocosInspector/cocos-inspector-config.json

@@ -1 +1 @@
-{"logCount":3,"retinaEnable":true,"autoUpdateTree":true,"sliderWithInput":false,"disableWebSec":false,"displayAsFairyTree":false,"hideFairyComContainer":false,"syncNodeDetail":true,"showZ":true,"showDevToolInTab":true,"size":[414,736],"extraSizes":[],"isPortrait":true,"show":false,"urlParams":"","customUrl":"","clearLogAfterRefresh":true,"extensionFile":"","enableExtension":true,"showDc":false,"showZIndex":false,"sortCompProperties":{"<Widget>":true,"<UIUpdater>":false,"<Canvas>":false,"<Start>":false,"<Camera>":false},"simpleMode":false,"orderNum":"STORE06cea072e06c6","glass":false,"showChildrenCount":false,"openArrayLimit":5,"prefabFontSize":1.15,"useChinese":true,"spaceToPause":false,"theme":"dark","httpProxyServer":"","proxyBypassRules":"","openHttpProxy":false,"propertyAlignLeft":false}
+{"logCount":3,"retinaEnable":true,"autoUpdateTree":true,"sliderWithInput":false,"disableWebSec":false,"displayAsFairyTree":false,"hideFairyComContainer":false,"syncNodeDetail":true,"showZ":true,"showDevToolInTab":true,"size":[414,736],"extraSizes":[],"isPortrait":true,"show":false,"urlParams":"","customUrl":"","clearLogAfterRefresh":true,"extensionFile":"","enableExtension":true,"showDc":false,"showZIndex":false,"sortCompProperties":{"<Widget>":true,"<UIUpdater>":false,"<Canvas>":false,"<Start>":false,"<Camera>":false,"<RigidBody>":false,"<PhysicsBoxCollider>":false},"simpleMode":false,"orderNum":"STORE06cea072e06c6","glass":false,"showChildrenCount":false,"openArrayLimit":5,"prefabFontSize":1.15,"useChinese":true,"spaceToPause":false,"theme":"dark","httpProxyServer":"","proxyBypassRules":"","openHttpProxy":false,"propertyAlignLeft":false}

+ 1 - 1
airPlay/settings/project.json

@@ -42,7 +42,7 @@
     "width": 960,
     "height": 640
   },
-  "last-module-event-record-time": 1695373456239,
+  "last-module-event-record-time": 1697018909958,
   "assets-sort-type": "name",
   "facebook": {
     "enable": false,