From b5406bd9af5634bdde2eec591025ae32d1035893 Mon Sep 17 00:00:00 2001 From: "pan@work" Date: Wed, 11 Sep 2024 10:41:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=8E=9F=E5=85=88=E7=9A=84mo?= =?UTF-8?q?nster=E6=96=87=E4=BB=B6=E5=A4=B9=E4=B8=8B=E9=9D=A2=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/resources/game/heros/hero.meta | 9 - assets/resources/game/heros/hero.prefab | 3785 ----------------- assets/resources/game/heros/hero.prefab.meta | 13 - .../resources/game/heros/hero/skeleton.atlas | 6 - .../game/heros/hero/skeleton.atlas.meta | 12 - .../resources/game/heros/hero/skeleton.json | 102 - .../game/heros/hero/skeleton.json.meta | 11 - assets/resources/game/heros/hero/skeleton.png | Bin 1077 -> 0 bytes .../game/heros/hero/skeleton.png.meta | 42 - assets/script/Main.ts | 4 +- .../script/game/common/SingletonModuleComp.ts | 1 - assets/script/game/hero/HeroBuffComp.ts | 6 - assets/script/game/map/CardController.ts | 14 +- assets/script/game/map/MapMonsterComp.ts | 5 +- assets/script/game/mon/MonBuffComp.ts | 6 - assets/script/game/monster.meta | 2 +- .../script/game/monster/BaseMonsterModel.ts | 41 - .../game/monster/BaseMonsterModel.ts.meta | 9 - assets/script/game/monster/BoxRangComp.ts | 83 - .../script/game/monster/BoxRangComp.ts.meta | 9 - assets/script/game/monster/Hero.ts | 103 - assets/script/game/monster/Hero.ts.meta | 9 - .../script/game/monster/HeroCardViewComp.ts | 4 +- assets/script/game/monster/HeroModelComp.ts | 26 - .../script/game/monster/HeroModelComp.ts.meta | 9 - assets/script/game/monster/Monster.ts | 102 - assets/script/game/monster/Monster.ts.meta | 9 - assets/script/game/monster/MonsterBuffComp.ts | 154 - .../game/monster/MonsterBuffComp.ts.meta | 1 - .../script/game/monster/MonsterModelComp.ts | 29 - .../game/monster/MonsterModelComp.ts.meta | 9 - assets/script/game/monster/MonsterSpine.ts | 82 - .../script/game/monster/MonsterSpine.ts.meta | 1 - .../game/monster/MonsterSpineAnimator.ts | 72 - .../game/monster/MonsterSpineAnimator.ts.meta | 1 - assets/script/game/monster/MonsterViewComp.ts | 427 -- .../game/monster/MonsterViewComp.ts.meta | 9 - assets/script/game/skills/CSkillComp.ts | 10 +- 38 files changed, 17 insertions(+), 5200 deletions(-) delete mode 100644 assets/resources/game/heros/hero.meta delete mode 100644 assets/resources/game/heros/hero.prefab delete mode 100644 assets/resources/game/heros/hero.prefab.meta delete mode 100644 assets/resources/game/heros/hero/skeleton.atlas delete mode 100644 assets/resources/game/heros/hero/skeleton.atlas.meta delete mode 100644 assets/resources/game/heros/hero/skeleton.json delete mode 100644 assets/resources/game/heros/hero/skeleton.json.meta delete mode 100644 assets/resources/game/heros/hero/skeleton.png delete mode 100644 assets/resources/game/heros/hero/skeleton.png.meta delete mode 100644 assets/script/game/monster/BaseMonsterModel.ts delete mode 100644 assets/script/game/monster/BaseMonsterModel.ts.meta delete mode 100644 assets/script/game/monster/BoxRangComp.ts delete mode 100644 assets/script/game/monster/BoxRangComp.ts.meta delete mode 100644 assets/script/game/monster/Hero.ts delete mode 100644 assets/script/game/monster/Hero.ts.meta delete mode 100644 assets/script/game/monster/HeroModelComp.ts delete mode 100644 assets/script/game/monster/HeroModelComp.ts.meta delete mode 100644 assets/script/game/monster/Monster.ts delete mode 100644 assets/script/game/monster/Monster.ts.meta delete mode 100644 assets/script/game/monster/MonsterBuffComp.ts delete mode 100644 assets/script/game/monster/MonsterBuffComp.ts.meta delete mode 100644 assets/script/game/monster/MonsterModelComp.ts delete mode 100644 assets/script/game/monster/MonsterModelComp.ts.meta delete mode 100644 assets/script/game/monster/MonsterSpine.ts delete mode 100644 assets/script/game/monster/MonsterSpine.ts.meta delete mode 100644 assets/script/game/monster/MonsterSpineAnimator.ts delete mode 100644 assets/script/game/monster/MonsterSpineAnimator.ts.meta delete mode 100644 assets/script/game/monster/MonsterViewComp.ts delete mode 100644 assets/script/game/monster/MonsterViewComp.ts.meta diff --git a/assets/resources/game/heros/hero.meta b/assets/resources/game/heros/hero.meta deleted file mode 100644 index 6e0afe3d..00000000 --- a/assets/resources/game/heros/hero.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "1.2.0", - "importer": "directory", - "imported": true, - "uuid": "a3329190-800f-450a-a5a0-90a4b59ddd4b", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/resources/game/heros/hero.prefab b/assets/resources/game/heros/hero.prefab deleted file mode 100644 index 3a8d4b16..00000000 --- a/assets/resources/game/heros/hero.prefab +++ /dev/null @@ -1,3785 +0,0 @@ -[ - { - "__type__": "cc.Prefab", - "_name": "hero", - "_objFlags": 0, - "__editorExtras__": {}, - "_native": "", - "data": { - "__id__": 1 - }, - "optimizationPolicy": 0, - "persistent": false - }, - { - "__type__": "cc.Node", - "_name": "hero", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": null, - "_children": [ - { - "__id__": 2 - }, - { - "__id__": 12 - }, - { - "__id__": 37 - }, - { - "__id__": 41 - }, - { - "__id__": 91 - }, - { - "__id__": 133 - }, - { - "__id__": 139 - }, - { - "__id__": 145 - }, - { - "__id__": 151 - } - ], - "_active": true, - "_components": [ - { - "__id__": 157 - }, - { - "__id__": 159 - }, - { - "__id__": 161 - }, - { - "__id__": 163 - }, - { - "__id__": 165 - }, - { - "__id__": 167 - }, - { - "__id__": 169 - } - ], - "_prefab": { - "__id__": 171 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -0.041, - "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": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "range_box", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 3 - }, - { - "__id__": 5 - }, - { - "__id__": 7 - }, - { - "__id__": 9 - } - ], - "_prefab": { - "__id__": 11 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 50, - "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": 1, - "_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": 20, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "a7v65R9FlK35rDSodMKBaf" - }, - { - "__type__": "cc.RigidBody2D", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": true, - "__prefab": { - "__id__": 6 - }, - "enabledContactListener": true, - "bullet": true, - "awakeOnLoad": true, - "_group": 2, - "_type": 1, - "_allowSleep": false, - "_gravityScale": 0, - "_linearDamping": 0, - "_angularDamping": 0, - "_linearVelocity": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_angularVelocity": 0, - "_fixedRotation": false, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "1dGvLlJTxIyqWs7tv5eOjk" - }, - { - "__type__": "cc.BoxCollider2D", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": true, - "__prefab": { - "__id__": 8 - }, - "tag": 4, - "_group": 2, - "_density": 0, - "_sensor": false, - "_friction": 0.2, - "_restitution": 0, - "_offset": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_size": { - "__type__": "cc.Size", - "width": 200, - "height": 150 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "c1dqgNlJdOJJzLITAnZIRf" - }, - { - "__type__": "330a4VcViNGVIep43vzoib3", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": true, - "__prefab": { - "__id__": 10 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "71oxOtOPxGBbFyPznX7dVD" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "efBGnhxpVAs6aCGcg6inWm", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "avatar", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 13 - } - ], - "_active": true, - "_components": [ - { - "__id__": 29 - }, - { - "__id__": 31 - }, - { - "__id__": 34 - } - ], - "_prefab": { - "__id__": 36 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": -3.876, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.6, - "y": 0.6, - "z": 1 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "TNode", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 12 - }, - "_children": [ - { - "__id__": 14 - }, - { - "__id__": 20 - } - ], - "_active": true, - "_components": [ - { - "__id__": 26 - } - ], - "_prefab": { - "__id__": 28 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -0.0000010490732620382914, - "y": 24, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 2.1855693419110223e-8, - "w": 0.9999999999999996 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1.0139000415802002, - "y": 1.013900041580204, - "z": 1 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0.000002504477982493727 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "bb", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 13 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 15 - }, - { - "__id__": 17 - } - ], - "_prefab": { - "__id__": 19 - }, - "_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": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 14 - }, - "_enabled": true, - "__prefab": { - "__id__": 16 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 76, - "height": 72 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "c8P1YVnJNNcqmkXaHUi9yr" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 14 - }, - "_enabled": true, - "__prefab": { - "__id__": 18 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "8a791edd-743c-45ad-8991-81f589e8b598@c29c5", - "__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": "a3BorX8gZH/oXihKtzzQsK" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "3f8NMVLRlDFZrxPEIOu+nn", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "shadow", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 13 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 21 - }, - { - "__id__": 23 - } - ], - "_prefab": { - "__id__": 25 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": -6.34, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": -2.1855693419110217e-8, - "w": 0.9999999999999998 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": -0.000002504477982493727 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 20 - }, - "_enabled": true, - "__prefab": { - "__id__": 22 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 54, - "height": 12 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "6dLRTNA41OJbBb4sQRvyx6" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 20 - }, - "_enabled": true, - "__prefab": { - "__id__": 24 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@34d88", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "30gG80zkxEzo2FMaFRx+C/" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "42lIJv88tJnrxaphLlD8X9", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 13 - }, - "_enabled": true, - "__prefab": { - "__id__": 27 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "8fFWkeDr5AaYKs8TtHfljd" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "5f3pVfF0FPz6BzPApw1y12", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 12 - }, - "_enabled": true, - "__prefab": { - "__id__": 30 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 83.13999938964844, - "height": 51.709999084472656 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "2epemEawRGPpO3vKyuHHBL" - }, - { - "__type__": "sp.Skeleton", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 12 - }, - "_enabled": true, - "__prefab": { - "__id__": 32 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_skeletonData": { - "__uuid__": "a80809a8-64bf-4c66-b49e-7aa837d821dd", - "__expectedType__": "sp.SkeletonData" - }, - "defaultSkin": "default", - "defaultAnimation": "", - "_premultipliedAlpha": false, - "_timeScale": 1, - "_preCacheMode": 1, - "_cacheMode": 1, - "_sockets": [ - { - "__id__": 33 - } - ], - "_useTint": false, - "_debugMesh": false, - "_debugBones": false, - "_debugSlots": false, - "_enableBatch": false, - "loop": true, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "d6Qb8NhhhN1ascGn7UPZok" - }, - { - "__type__": "sp.Skeleton.SpineSocket", - "path": "root/bone", - "target": { - "__id__": 13 - } - }, - { - "__type__": "d3a79W3OpNBsL5WHT9mZqHd", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 12 - }, - "_enabled": true, - "__prefab": { - "__id__": 35 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "a2le6EEehMb4KOUniX6znv" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "48a+Hx9oREoZ7vqKgprKhT", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "buff_icons", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 38 - } - ], - "_prefab": { - "__id__": 40 - }, - "_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": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 37 - }, - "_enabled": true, - "__prefab": { - "__id__": 39 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "b4Dy2iOhdGNIRklJZWrCG/" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "63odueI6BBfZ9G4QIJALMy", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "top", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 42 - }, - { - "__id__": 56 - }, - { - "__id__": 70 - }, - { - "__id__": 84 - } - ], - "_active": true, - "_components": [ - { - "__id__": 88 - } - ], - "_prefab": { - "__id__": 90 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": -39.461, - "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": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "shield", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 41 - }, - "_children": [ - { - "__id__": 43 - } - ], - "_active": true, - "_components": [ - { - "__id__": 49 - }, - { - "__id__": 51 - }, - { - "__id__": 53 - } - ], - "_prefab": { - "__id__": 55 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 99.674, - "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": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "Bar", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 42 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 44 - }, - { - "__id__": 46 - } - ], - "_prefab": { - "__id__": 48 - }, - "_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__": 43 - }, - "_enabled": true, - "__prefab": { - "__id__": 45 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 30, - "height": 5 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "fd3dH6jldPsa66Ci7KUVI3" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 43 - }, - "_enabled": true, - "__prefab": { - "__id__": 47 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@5c4a5", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": true, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "42nR/FpVZByb+otJaujBAU" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "82t+mKrT1NDK/FLaizJqmu", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 42 - }, - "_enabled": true, - "__prefab": { - "__id__": 50 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 30, - "height": 5 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "d0Vsb23mxLQp4brp5KrYoI" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 42 - }, - "_enabled": true, - "__prefab": { - "__id__": 52 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": null, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "817EmqwtZOoo1jCiT331/h" - }, - { - "__type__": "cc.ProgressBar", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 42 - }, - "_enabled": true, - "__prefab": { - "__id__": 54 - }, - "_barSprite": { - "__id__": 46 - }, - "_mode": 0, - "_totalLength": 30, - "_progress": 1, - "_reverse": false, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "03p2B8lt5IL6sqNzysZUD4" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "f5X0rdMcFOMZ0GRx4uHEc0", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "power", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 41 - }, - "_children": [ - { - "__id__": 57 - } - ], - "_active": true, - "_components": [ - { - "__id__": 63 - }, - { - "__id__": 65 - }, - { - "__id__": 67 - } - ], - "_prefab": { - "__id__": 69 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 92.523, - "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": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "Bar", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 56 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 58 - }, - { - "__id__": 60 - } - ], - "_prefab": { - "__id__": 62 - }, - "_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__": 57 - }, - "_enabled": true, - "__prefab": { - "__id__": 59 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 30, - "height": 5 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "813TIYW4hFE51fj5XnIM7U" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 57 - }, - "_enabled": true, - "__prefab": { - "__id__": 61 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@44c8a", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "a6uKKYR+hOwqOSPSq7AlvQ" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "b3LJ0VG0VFrYRVjfPY427V", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 56 - }, - "_enabled": true, - "__prefab": { - "__id__": 64 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 30, - "height": 8 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "09RqqG2gdIyLDPmkOnUl7P" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 56 - }, - "_enabled": true, - "__prefab": { - "__id__": 66 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@0e130", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "36zTet8jxGlIf/W9fQOS9R" - }, - { - "__type__": "cc.ProgressBar", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 56 - }, - "_enabled": true, - "__prefab": { - "__id__": 68 - }, - "_barSprite": { - "__id__": 60 - }, - "_mode": 0, - "_totalLength": 30, - "_progress": 1, - "_reverse": false, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "b9C5D8jvtF/JEjVlHBhBdr" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "b5rEuqD9FEYYP4Im0qXER9", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "hp", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 41 - }, - "_children": [ - { - "__id__": 71 - } - ], - "_active": true, - "_components": [ - { - "__id__": 77 - }, - { - "__id__": 79 - }, - { - "__id__": 81 - } - ], - "_prefab": { - "__id__": 83 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 96.547, - "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": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "Bar", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 70 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 72 - }, - { - "__id__": 74 - } - ], - "_prefab": { - "__id__": 76 - }, - "_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__": 71 - }, - "_enabled": true, - "__prefab": { - "__id__": 73 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 30, - "height": 5 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "64oRBs3hJO3LA5VFslDpOO" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 71 - }, - "_enabled": true, - "__prefab": { - "__id__": 75 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@dfad9", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "1b7JSpvcxOhplKvSN0EmRv" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "1eXXKteoBAvo0Hvio77rEU", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 70 - }, - "_enabled": true, - "__prefab": { - "__id__": 78 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 30, - "height": 5 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "2bnXpjeBpLVb3bBNHoJ7Ml" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 70 - }, - "_enabled": true, - "__prefab": { - "__id__": 80 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@cf09c", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "81qai2QVVH/ZHainysEVfg" - }, - { - "__type__": "cc.ProgressBar", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 70 - }, - "_enabled": true, - "__prefab": { - "__id__": 82 - }, - "_barSprite": { - "__id__": 74 - }, - "_mode": 0, - "_totalLength": 30, - "_progress": 1, - "_reverse": false, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "679kvexftOP5THClBTLwgV" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "e0uLHlpWdNPYyGkO1b43Fw", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "info", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 41 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 85 - } - ], - "_prefab": { - "__id__": 87 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": -22.293000000000006, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1.0000000000000002, - "y": 1.0000000000000002, - "z": 1 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 84 - }, - "_enabled": true, - "__prefab": { - "__id__": 86 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "5ee77+ulxDVLmOpnqyiJiI" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "a8xJwPSnJC46y3h55Dx4+q", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 41 - }, - "_enabled": true, - "__prefab": { - "__id__": 89 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "87TOHvukJEtaMdt++5klVw" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "dan9CUjmhFipAW7pXgUTOt", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "level", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 92 - }, - { - "__id__": 98 - }, - { - "__id__": 104 - }, - { - "__id__": 110 - }, - { - "__id__": 116 - }, - { - "__id__": 122 - } - ], - "_active": true, - "_components": [ - { - "__id__": 128 - }, - { - "__id__": 130 - } - ], - "_prefab": { - "__id__": 132 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -22.542, - "y": 74.394, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.6, - "y": 0.6, - "z": 1 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "1", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 91 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 93 - }, - { - "__id__": 95 - } - ], - "_prefab": { - "__id__": 97 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": -77.265, - "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": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 92 - }, - "_enabled": true, - "__prefab": { - "__id__": 94 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 15, - "height": 15 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "cfZFaZgxNFo6RAbvR4Rmfc" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 92 - }, - "_enabled": true, - "__prefab": { - "__id__": 96 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@a6b9d", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "e6uKIl33xHs5LfNDT0p+2p" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "a7PGybi3lGW6rZ+VnLGFt6", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "2", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 91 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 99 - }, - { - "__id__": 101 - } - ], - "_prefab": { - "__id__": 103 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -0.377, - "y": -61.16, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.9999999999999997, - "y": 0.9999999999999997, - "z": 0.9999999999999999 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 98 - }, - "_enabled": true, - "__prefab": { - "__id__": 100 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 15, - "height": 15 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "d1lOxIXgdCJ6zpNNZGK8zg" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 98 - }, - "_enabled": true, - "__prefab": { - "__id__": 102 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@a6b9d", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "e85QoknbNBfpqTQHj53qa7" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "besG/N2EFDa7lwWiyvx8Nl", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "3", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 91 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 105 - }, - { - "__id__": 107 - } - ], - "_prefab": { - "__id__": 109 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -0.377, - "y": -43.555, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.9999999999999997, - "y": 0.9999999999999997, - "z": 0.9999999999999999 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 104 - }, - "_enabled": true, - "__prefab": { - "__id__": 106 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 15, - "height": 15 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "522G27EDRAqaOJNSy1XjqA" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 104 - }, - "_enabled": true, - "__prefab": { - "__id__": 108 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@a6b9d", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "49HA7zbFRI77U6X4ltATKG" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "42gqlfWSRM46ibYgoOOPzt", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "4", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 91 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 111 - }, - { - "__id__": 113 - } - ], - "_prefab": { - "__id__": 115 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -0.377, - "y": -27.047, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.9999999999999997, - "y": 0.9999999999999997, - "z": 0.9999999999999999 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 110 - }, - "_enabled": true, - "__prefab": { - "__id__": 112 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 15, - "height": 15 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "54B6UJW5NEdJ3RJ7tdZN/H" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 110 - }, - "_enabled": true, - "__prefab": { - "__id__": 114 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@a6b9d", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "2adMQ5svRPv6C0hl03pcKW" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "46MlNyXVlAd6iCQ2Xg1GOs", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "5", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 91 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 117 - }, - { - "__id__": 119 - } - ], - "_prefab": { - "__id__": 121 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -0.377, - "y": -8.965, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.9999999999999997, - "y": 0.9999999999999997, - "z": 0.9999999999999999 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 116 - }, - "_enabled": true, - "__prefab": { - "__id__": 118 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 15, - "height": 15 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "7b9M+THNlDTaqQGsiLKEEh" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 116 - }, - "_enabled": true, - "__prefab": { - "__id__": 120 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@a6b9d", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "4ahRCnXYNP+49Y0cMTeOKb" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "abhOklX+ZBXKyPrgHVNLJs", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "6", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 91 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 123 - }, - { - "__id__": 125 - } - ], - "_prefab": { - "__id__": 127 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -0.377, - "y": 7.656, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.9999999999999997, - "y": 0.9999999999999997, - "z": 0.9999999999999999 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 122 - }, - "_enabled": true, - "__prefab": { - "__id__": 124 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 15, - "height": 15 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "e2TJIwk4JNxaWqt8GCj63E" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 122 - }, - "_enabled": true, - "__prefab": { - "__id__": 126 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@a6b9d", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "878kYC1dxIX7g/Ed4U8sq0" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "b7G1dbavBCbpliqnbRTYqP", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 91 - }, - "_enabled": true, - "__prefab": { - "__id__": 129 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 30, - "height": 30 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "156zvtWyZL7JeSq/l8Wq5O" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 91 - }, - "_enabled": true, - "__prefab": { - "__id__": 131 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": null, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "3bjPXp87JGu52dDySu74sO" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "2dGu24EexKI57EzgA2ECVa", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "life", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 134 - }, - { - "__id__": 136 - } - ], - "_prefab": { - "__id__": 138 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 31.47, - "y": 88.257, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 2.1855693419110217e-8, - "w": 0.9999999999999998 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1.0139000415802002, - "y": 1.0139000415802037, - "z": 1 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0.000002504477982493727 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 133 - }, - "_enabled": true, - "__prefab": { - "__id__": 135 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 15, - "height": 15 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "cfLopudcFEX5/KEMyOSu4U" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 133 - }, - "_enabled": true, - "__prefab": { - "__id__": 137 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@63bfa", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "de5Eo73atHaLycUMDaxWJn" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "4c7hOrUm5IMKU1KGw1hZmB", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "hp_max", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 140 - }, - { - "__id__": 142 - } - ], - "_prefab": { - "__id__": 144 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 14.47, - "y": 87.431, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1.0000000000000002, - "y": 1.0000000000000002, - "z": 1 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 139 - }, - "_enabled": true, - "__prefab": { - "__id__": 141 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 18.6845703125, - "height": 21.151999999999997 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "77S+DEIvpBJZGaJq7QM3XR" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 139 - }, - "_enabled": true, - "__prefab": { - "__id__": 143 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "10", - "_horizontalAlign": 0, - "_verticalAlign": 1, - "_actualFontSize": 15, - "_fontSize": 15, - "_fontFamily": "Arial", - "_lineHeight": 15.2, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": true, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 1, - "_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": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "3cLm67s0VOpqlQcseqL6Nx" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "71fO0wJmJE7aiNMnNKYq0h", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "Attack", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 146 - }, - { - "__id__": 148 - } - ], - "_prefab": { - "__id__": 150 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 31.47, - "y": 103.257, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 2.1855693419110217e-8, - "w": 0.9999999999999998 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1.0139000415802002, - "y": 1.0139000415802037, - "z": 1 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0.000002504477982493727 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 145 - }, - "_enabled": true, - "__prefab": { - "__id__": 147 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 15, - "height": 15 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "580TBk8BVB+5asEKBiVsbZ" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 145 - }, - "_enabled": true, - "__prefab": { - "__id__": 149 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@360cc", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "78d2vAm21Jdbwl4DNO/BKJ" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "c4hy5HHy5K/YTazwWINENl", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "atk", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 152 - }, - { - "__id__": 154 - } - ], - "_prefab": { - "__id__": 156 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 14.47, - "y": 103.257, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1.0000000000000002, - "y": 1.0000000000000002, - "z": 1 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 151 - }, - "_enabled": true, - "__prefab": { - "__id__": 153 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 18.6845703125, - "height": 20.9 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "33BVi7jsdAebIpDo8I9TGQ" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 151 - }, - "_enabled": true, - "__prefab": { - "__id__": 155 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "10", - "_horizontalAlign": 2, - "_verticalAlign": 1, - "_actualFontSize": 15, - "_fontSize": 15, - "_fontFamily": "Arial", - "_lineHeight": 15, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": true, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 1, - "_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": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "d9egMzG21BmJxYe3Fm9HYY" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "77UdJOTAhET6QRtskTCSa7", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 158 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 80, - "height": 80 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "14OhXRCixNOaApgow/hFbp" - }, - { - "__type__": "482c2FsvvZJ+5BgN3d7gY+D", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 160 - }, - "animator": { - "__id__": 34 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "6cDIo6gXFNnbPNuWVAqhBD" - }, - { - "__type__": "dc1b7IQTVxHfIHFfWu0u4I/", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 162 - }, - "hitFlashMaterial": { - "__uuid__": "a8f34051-ccff-4050-b9d9-234f62977264", - "__expectedType__": "cc.Material" - }, - "BoxRang": { - "__id__": 2 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "88a6VdbQBB7YwXovYCN2Sy" - }, - { - "__type__": "26574P1wEtBHZdyLJvQFWoJ", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 164 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "68LK1h7fRIYahCdzqUvVcV" - }, - { - "__type__": "sp.Skeleton", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 166 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_skeletonData": null, - "defaultSkin": "", - "defaultAnimation": "", - "_premultipliedAlpha": true, - "_timeScale": 1, - "_preCacheMode": 0, - "_cacheMode": 0, - "_sockets": [], - "_useTint": false, - "_debugMesh": false, - "_debugBones": false, - "_debugSlots": false, - "_enableBatch": false, - "loop": true, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "3dWWGO2rFK4LL+PeQ7ANRn" - }, - { - "__type__": "cc.RigidBody2D", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 168 - }, - "enabledContactListener": true, - "bullet": true, - "awakeOnLoad": true, - "_group": 2, - "_type": 1, - "_allowSleep": false, - "_gravityScale": 1, - "_linearDamping": 0, - "_angularDamping": 0, - "_linearVelocity": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_angularVelocity": 0, - "_fixedRotation": true, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "d8rVs6intBQ7lRU8Dw4zXV" - }, - { - "__type__": "cc.BoxCollider2D", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 170 - }, - "tag": 0, - "_group": 2, - "_density": 1, - "_sensor": false, - "_friction": 1, - "_restitution": 0, - "_offset": { - "__type__": "cc.Vec2", - "x": 0, - "y": 23.6 - }, - "_size": { - "__type__": "cc.Size", - "width": 41.9, - "height": 32.7 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "b2Dt9lJI9FyJCDezkDBPBl" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "fdklpBwCBM/qJ4WFlQF3kT", - "instance": null, - "targetOverrides": null - } -] \ No newline at end of file diff --git a/assets/resources/game/heros/hero.prefab.meta b/assets/resources/game/heros/hero.prefab.meta deleted file mode 100644 index 477bd0ec..00000000 --- a/assets/resources/game/heros/hero.prefab.meta +++ /dev/null @@ -1,13 +0,0 @@ -{ - "ver": "1.1.50", - "importer": "prefab", - "imported": true, - "uuid": "42a5e9a1-8664-4eee-ab17-56cb55b545b2", - "files": [ - ".json" - ], - "subMetas": {}, - "userData": { - "syncNodeName": "hero" - } -} diff --git a/assets/resources/game/heros/hero/skeleton.atlas b/assets/resources/game/heros/hero/skeleton.atlas deleted file mode 100644 index 18396bd1..00000000 --- a/assets/resources/game/heros/hero/skeleton.atlas +++ /dev/null @@ -1,6 +0,0 @@ -skeleton.png -size:86,55 -filter:Linear,Linear -pma:true -bb -bounds:2,2,82,51 diff --git a/assets/resources/game/heros/hero/skeleton.atlas.meta b/assets/resources/game/heros/hero/skeleton.atlas.meta deleted file mode 100644 index 40a111d9..00000000 --- a/assets/resources/game/heros/hero/skeleton.atlas.meta +++ /dev/null @@ -1,12 +0,0 @@ -{ - "ver": "1.0.1", - "importer": "*", - "imported": true, - "uuid": "958e8fe7-e356-4285-aa30-1ec62e24f36e", - "files": [ - ".atlas", - ".json" - ], - "subMetas": {}, - "userData": {} -} diff --git a/assets/resources/game/heros/hero/skeleton.json b/assets/resources/game/heros/hero/skeleton.json deleted file mode 100644 index 76a4fb17..00000000 --- a/assets/resources/game/heros/hero/skeleton.json +++ /dev/null @@ -1,102 +0,0 @@ -{ -"skeleton": { - "hash": "jMvRjm/pTv0", - "spine": "4.2.35", - "x": -0.82, - "y": 24.4, - "width": 15.52, - "height": 9.6, - "images": "", - "audio": "" -}, -"bones": [ - { "name": "root" }, - { "name": "bone", "parent": "root", "y": 24, "scaleX": 1.0139, "scaleY": 1.0139 } -], -"slots": [ - { "name": "bb", "bone": "bone", "attachment": "bb" } -], -"skins": [ - { - "name": "default", - "attachments": { - "bb": { - "bb": { "x": 6.85, "y": 5.13, "scaleX": 0.1867, "scaleY": 0.1857, "width": 82, "height": 51 } - } - } - } -], -"animations": { - "atk": { - "bones": { - "bone": { - "scale": [ - {}, - { "time": 0.2, "x": 0.682 }, - { "time": 0.4667, "x": 1.06 }, - { "time": 0.6 } - ], - "shear": [ - {}, - { "time": 0.2, "y": 29.28 }, - { "time": 0.4667, "y": -30 }, - { "time": 0.6 } - ] - } - } - }, - "atk2": { - "bones": { - "bone": { - "translate": [ - {}, - { "time": 0.2, "x": -8 }, - { "time": 0.3333, "x": 20 }, - { "time": 0.6 } - ], - "scale": [ - {}, - { "time": 0.2, "x": 0.87 }, - { "time": 0.3333, "x": 1.085 }, - { "time": 0.6 } - ] - } - } - }, - "magic": { - "bones": { - "bone": { - "rotate": [ - {}, - { "time": 0.5, "value": 25.28 }, - { "time": 0.6667 } - ] - } - } - }, - "max": { - "bones": { - "bone": { - "scale": [ - {}, - { "time": 0.5, "x": 0.789, "y": 0.789 }, - { "time": 0.6667, "x": 1.233, "y": 1.233 }, - { "time": 0.8333, "x": 0.986, "y": 0.986 } - ] - } - } - }, - "move": { - "bones": { - "bone": { - "scale": [ - {}, - { "time": 0.3333, "x": 1.085, "y": 0.993 }, - { "time": 0.6667, "x": 0.888, "y": 0.986 }, - { "time": 1 } - ] - } - } - } -} -} \ No newline at end of file diff --git a/assets/resources/game/heros/hero/skeleton.json.meta b/assets/resources/game/heros/hero/skeleton.json.meta deleted file mode 100644 index 7cb2c91c..00000000 --- a/assets/resources/game/heros/hero/skeleton.json.meta +++ /dev/null @@ -1,11 +0,0 @@ -{ - "ver": "1.2.6", - "importer": "spine-data", - "imported": true, - "uuid": "a80809a8-64bf-4c66-b49e-7aa837d821dd", - "files": [ - ".json" - ], - "subMetas": {}, - "userData": {} -} diff --git a/assets/resources/game/heros/hero/skeleton.png b/assets/resources/game/heros/hero/skeleton.png deleted file mode 100644 index 4409a6eddd4ce7cb234d28424c9d29dea9233645..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1077 zcmV-51j_q~P) zNk~;u90u@1)Fy~%u+oAEg64q;f)=$2Dl$x>g%K?x8fX#GCYsbHvw@;bP>N+m<0fd% zY+6~gkjMr}49x;*qQpw+-}m=o`o43Y&ugykIY0Pz$8)@&@7;Irc~@gRFVQ}ZfhTE~d&^!t?%8~mTj=lsmH_vdAQSipJJYwt&>i-|agQGJ{c3I_QPOe; zLmluBw0ne7NAI>5btQW2k88M<4*JR+2HdOJ20U2(Y85$jUnI@JS1M=NPLaZLk>=mr zQXm(&S9241;FU^|3H$8@T+euPa_$+oC2|+ISMwcs;HZ3iQlB6ra=9&$pTNBu9;A3O zpTvaWUd=b)K`wt-rOL>BZcC&IxL0!xc;M|b`JGf$hM(nt_n)j%)cDdjVIIUBc}I>R||QuSWM7d9eEPM`ZRfdjVH7 z^GMK1m<7PSnti|n_2wY|wmrG)*?Jw9RxR9?NC9xK<`M9~#YOg{K0z{zxGmiB0{0qv z9XoitJ)uuW!f>zV9q^zj2kpsxf=nvpwt^2Z?$w+F9$529B&*n-)b%VnDN^0YZHb%* z?$xXZ9;oyrJ+aW9+|}sKLDMg8DX;;!*EW^FgVl<&_5!YE=_zg}@ErO8cWTxF4_5va zo0!P2*t5U`{W&%~dXCj@Sm-%6?5bd@zbZ(YZeJDfAmy)PyG|JHHT2F)?=E;UpCH}7 z^Gdc?kmvUbtVG%?(483`sQm6$Vj}Nub+sRx0){ - this.node.getChildByName("avatar").setScale(1.2,1.2) - this.node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite).color= new Color().fromHEX("#F16F6F"); this.mv.atk+=(buff.atk+buff.args.atk-b.atk); } if(buff.hp>0){ @@ -109,8 +107,6 @@ export class HeroBuffComp extends CCComp { this.buffs.push(buff); if(buff.atk>0){ this.mv.atk+=(buff.atk+buff.args.atk); - this.node.getChildByName("avatar").setScale(1.2,1.2) - this.node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite).color= new Color().fromHEX("#F16F6F"); } if(buff.hp>0){ this.mv.hp+=(buff.hp+buff.args.hp); @@ -128,8 +124,6 @@ export class HeroBuffComp extends CCComp { buff_remove(index:number){ if(this.buffs[index].atk>0){ this.mv.atk-=(this.buffs[index].atk+this.buffs[index].args.atk); - this.node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite).color= new Color().fromHEX("#FFFFFF"); - this.node.getChildByName("avatar").setScale(1,1) } if(this.buffs[index].shield>0){ this.mv.shield=0 diff --git a/assets/script/game/map/CardController.ts b/assets/script/game/map/CardController.ts index 498073f1..bfb7dcac 100644 --- a/assets/script/game/map/CardController.ts +++ b/assets/script/game/map/CardController.ts @@ -3,12 +3,10 @@ import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ec import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; import { smc } from "../common/SingletonModuleComp"; import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; -import { HeroCard } from "../monster/HeroCard"; -import { HeroCardViewComp } from "../monster/HeroCardViewComp"; import { RandomManager } from "../../../../extensions/oops-plugin-framework/assets/core/common/random/RandomManager"; import { CardList } from "../common/config/CardSet"; -import { HeroModelComp } from "../monster/HeroModelComp"; import { SkillSet } from "../common/config/SkillSet"; +import { HeroModelComp } from "../hero/HeroModelComp"; const { ccclass, property } = _decorator; /** 视图层对象 */ @@ -301,13 +299,13 @@ export class CardControllerComp extends CCComp { // console.log("cards:",this.cards) } check_card(index:number){ - let heros = ecs.query(ecs.allOf(HeroModelComp)) + // let heros = ecs.query(ecs.allOf(HeroModelComp)) // let heross= ecs.query(ecs.allOf(MonsterViewComp)) // console.log("heross",heross) - if(heros.length >= 4&&this.cards[index].type == 1){ - oops.gui.toast("英雄数量达到上限"); - return; - } + // if(heros.length >= 4&&this.cards[index].type == 1){ + // oops.gui.toast("英雄数量达到上限"); + // return; + // } if(!this.cards[index].alive) { // console.log("card_index:",index,"card_alive:",this.cards[index].alive) return; diff --git a/assets/script/game/map/MapMonsterComp.ts b/assets/script/game/map/MapMonsterComp.ts index f58a2afd..2603139b 100644 --- a/assets/script/game/map/MapMonsterComp.ts +++ b/assets/script/game/map/MapMonsterComp.ts @@ -2,7 +2,6 @@ import { _decorator ,Vec3,v3} from "cc"; import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; import { Timer } from "../../../../extensions/oops-plugin-framework/assets/core/common/timer/Timer"; -import { Monster } from "../monster/Monster"; import { BoxSet } from "../common/config/BoxSet"; import { smc } from "../common/SingletonModuleComp"; import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; @@ -12,8 +11,8 @@ import { RandomManager } from "../../../../extensions/oops-plugin-framework/asse import { Role } from "../Role/Role"; import { Hero } from "../hero/Hero"; import { HeroModelComp } from "../hero/HeroModelComp"; -import { MonsterModelComp } from "../monster/MonsterModelComp"; import { Mon } from "../mon/Mon"; +import { MonModelComp } from "../mon/MonModelComp"; const { ccclass, property } = _decorator; /** 视图层对象 */ @@ -82,7 +81,7 @@ export class MapMonsterComp extends CCComp { target_update(){ console.log("map ",smc.t_hero,smc.t_monster) let heros:any = ecs.query(ecs.allOf(HeroModelComp)); - let monsters:any =ecs.query(ecs.allOf(MonsterModelComp)); + let monsters:any =ecs.query(ecs.allOf(MonModelComp)); let h_x=-1000 let m_x=1000 let thi=9999 diff --git a/assets/script/game/mon/MonBuffComp.ts b/assets/script/game/mon/MonBuffComp.ts index 1cb73b24..c974883c 100644 --- a/assets/script/game/mon/MonBuffComp.ts +++ b/assets/script/game/mon/MonBuffComp.ts @@ -87,8 +87,6 @@ export class MonBuffComp extends CCComp { if(b.skill_uuid==buff.skill_uuid){ b.time=buff.time; if(buff.atk>0){ - this.node.getChildByName("avatar").setScale(1.2,1.2) - this.node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite).color= new Color().fromHEX("#F16F6F"); this.mv.atk+=(buff.atk+buff.args.atk-b.atk); } if(buff.hp>0){ @@ -109,8 +107,6 @@ export class MonBuffComp extends CCComp { this.buffs.push(buff); if(buff.atk>0){ this.mv.atk+=(buff.atk+buff.args.atk); - this.node.getChildByName("avatar").setScale(1.2,1.2) - this.node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite).color= new Color().fromHEX("#F16F6F"); } if(buff.hp>0){ this.mv.hp+=(buff.hp+buff.args.hp); @@ -128,8 +124,6 @@ export class MonBuffComp extends CCComp { buff_remove(index:number){ if(this.buffs[index].atk>0){ this.mv.atk-=(this.buffs[index].atk+this.buffs[index].args.atk); - this.node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite).color= new Color().fromHEX("#FFFFFF"); - this.node.getChildByName("avatar").setScale(1,1) } if(this.buffs[index].shield>0){ this.mv.shield=0 diff --git a/assets/script/game/monster.meta b/assets/script/game/monster.meta index af0daba3..05c11f28 100644 --- a/assets/script/game/monster.meta +++ b/assets/script/game/monster.meta @@ -2,7 +2,7 @@ "ver": "1.2.0", "importer": "directory", "imported": true, - "uuid": "9addebc8-0dc6-46c3-b9d5-091539127714", + "uuid": "365c3351-a0ac-4fd1-a400-9183a2085947", "files": [], "subMetas": {}, "userData": {} diff --git a/assets/script/game/monster/BaseMonsterModel.ts b/assets/script/game/monster/BaseMonsterModel.ts deleted file mode 100644 index 9d5d6cdf..00000000 --- a/assets/script/game/monster/BaseMonsterModel.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * @Author: dgflash - * @Date: 2021-11-18 15:56:01 - * @LastEditors: dgflash - * @LastEditTime: 2022-08-17 13:43:25 - */ -import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; -import { Monster } from "./Monster"; -/** - * 角色属性数据 - */ -@ecs.register('BaseMonsterModel') -export class BaseMonsterModel extends ecs.Comp { - /** 角色编号 */ - hp: number = 100; - /** 角色名 */ - name: string = "base monster"; - /** */ - - - - reset() { - this.hp = 100; - this.name = ""; - } - -} -@ecs.register('Monster') -export class MonsterUpgradeSystem extends ecs.ComblockSystem implements ecs.IEntityEnterSystem { - filter(): ecs.IMatcher { - - return ecs.allOf(BaseMonsterModel); - } - - entityEnter(e: Monster): void { - let MonsterModel = e.MonsterModel; - MonsterModel.name = "base monster" - console.log("MonsterUpgradeSystem", e); - e.remove(BaseMonsterModel); - } -} \ No newline at end of file diff --git a/assets/script/game/monster/BaseMonsterModel.ts.meta b/assets/script/game/monster/BaseMonsterModel.ts.meta deleted file mode 100644 index 2b7e2665..00000000 --- a/assets/script/game/monster/BaseMonsterModel.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.23", - "importer": "typescript", - "imported": true, - "uuid": "52aacfb8-cb73-4ce1-be54-3c2a83e83408", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/monster/BoxRangComp.ts b/assets/script/game/monster/BoxRangComp.ts deleted file mode 100644 index e7e83d88..00000000 --- a/assets/script/game/monster/BoxRangComp.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { _decorator,Contact2DType,Collider2D ,IPhysics2DContact,v3, v2,Vec3} from "cc"; -import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; -import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; -import { BoxSet } from "../common/config/BoxSet"; -import { MonsterViewComp } from "./MonsterViewComp"; -import { smc } from "../common/SingletonModuleComp"; -const { ccclass, property } = _decorator; - -/** 视图层对象 */ -@ccclass('BoxRangComp') -@ecs.register('BoxRang', false) -export class BoxRangComp extends CCComp { - Hero_node: any=null!; - MonsterViewComp:MonsterViewComp = null!; - box_group:number = BoxSet.DEFAULT; - box_tag:number = BoxSet.ATK_RANGE; - offset_x:number = 300; - atk_range:number = 150; - /** 视图层逻辑代码分离演示 */ - start() { - let collider = this.getComponent(Collider2D); - collider.group = this.box_group; - collider.tag = this.box_tag; - // collider.offset = v2(300*this.Hero_node.MonsterView.scale,collider.offset.y); - this.Hero_node = this.node.parent; - this.MonsterViewComp=this.Hero_node.getComponent(MonsterViewComp); - // console.log("range box",this.MonsterViewComp); - if (collider) { - collider.on(Contact2DType.BEGIN_CONTACT, this.onBeginContact, this); - collider.on(Contact2DType.END_CONTACT, this.onEndContact, this); - collider.on(Contact2DType.PRE_SOLVE, this.onPreSolve, this); - collider.on(Contact2DType.POST_SOLVE, this.onPostSolve, this); - } - } - onBeginContact (selfCollider: Collider2D, otherCollider: Collider2D, contact: IPhysics2DContact | null) { - - // if(selfCollider.group != otherCollider.group&&otherCollider.tag == 0){ - // console.log(this.node.name+"onBeginContact: seft:"+selfCollider.group+"|other:"+otherCollider.group+"| tag: seft:"+selfCollider.tag+"|other:"+otherCollider.tag); - // this.MonsterViewComp.is_atking = true; - // if(Math.abs(otherCollider.node.position.x-selfCollider.node.position.x) < 120){ - // this.MonsterViewComp.stop_cd = 0.1 - // } - // } - } - onEndContact (selfCollider: Collider2D, otherCollider: Collider2D, contact: IPhysics2DContact | null) { - - if(selfCollider.group != otherCollider.group&&otherCollider.tag == 0 ){ - // console.log(this.node.name+"onEndContact: seft:"+selfCollider.group+"|other:"+otherCollider.group+"| tag: seft:"+selfCollider.tag+"|other:"+otherCollider.tag); - this.MonsterViewComp.is_atking = false; - this.MonsterViewComp.enemy = null; - } - } - onPreSolve (selfCollider: Collider2D, otherCollider: Collider2D, contact: IPhysics2DContact | null) { - if(selfCollider.group != otherCollider.group&&otherCollider.tag == 0){ - let scene =smc.map.MapView.scene.mapLayer!.node! - let other_pos = otherCollider.node.getWorldPosition() ; - let self_pos = this.node.getWorldPosition(); - // console.log("onPreSolve:",self_pos,other_pos); - if(this.MonsterViewComp.enemy==null){ - this.MonsterViewComp.enemy = otherCollider.node; - }else{ - if(this.MonsterViewComp.enemy.isValid==false){ - this.MonsterViewComp.enemy = otherCollider.node; - } - } - if(Math.abs(other_pos.x-self_pos.x) < this.atk_range){ - this.MonsterViewComp.is_atking = true; - // this.MonsterViewComp.stop_cd = 0.1 - } - - } - - } - onPostSolve (selfCollider: Collider2D, otherCollider: Collider2D, contact: IPhysics2DContact | null) { - - - - } - /** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */ - reset() { - this.node.destroy(); - } -} \ No newline at end of file diff --git a/assets/script/game/monster/BoxRangComp.ts.meta b/assets/script/game/monster/BoxRangComp.ts.meta deleted file mode 100644 index 170eb11d..00000000 --- a/assets/script/game/monster/BoxRangComp.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.23", - "importer": "typescript", - "imported": true, - "uuid": "330a455c-5623-4654-87a9-e37bf3a226f7", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/monster/Hero.ts b/assets/script/game/monster/Hero.ts deleted file mode 100644 index ae00fb69..00000000 --- a/assets/script/game/monster/Hero.ts +++ /dev/null @@ -1,103 +0,0 @@ - -/* - * @Author: dgflash - * @Date: 2021-11-18 17:47:56 - * @LastEditors: dgflash - * @LastEditTime: 2022-08-04 15:43:04 - */ -import { instantiate, Node, Prefab, Vec3,v3,resources,SpriteFrame,Sprite,SpriteAtlas} from "cc"; -import { UICallbacks } from "../../../../extensions/oops-plugin-framework/assets/core/gui/layer/Defines"; -import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; -import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; -import { UIID } from "../common/config/GameUIConfig"; -import { smc } from "../common/SingletonModuleComp"; -import { MonsterModelComp } from "./MonsterModelComp"; -import { MonsterSpine } from "./MonsterSpine"; -import { MonsterViewComp } from "./MonsterViewComp"; -import {HeroModelComp} from "./HeroModelComp"; -import { BoxSet } from "../common/config/BoxSet"; -import { MonsterBuffComp } from "./MonsterBuffComp"; -/** 角色实体 */ -@ecs.register(`Hero`) -export class Hero extends ecs.Entity { - // 数据层 - HeroModel!: HeroModelComp; - // 视图层 - MonsterView!: MonsterViewComp; - - protected init() { - this.addComponents(HeroModelComp); - } - - destroy(): void { - this.remove(MonsterViewComp); - this.remove(HeroModelComp); - this.remove(MonsterBuffComp); - super.destroy(); - } - - /** 加载角色 */ - load(pos: Vec3 = Vec3.ZERO,scale:number = 1,uuid:number=1001,layer:Node=smc.map.MapView.scene.entityLayer!.node!) { - // var path = "game/monster/"+prefab_path; - var path = "game/heros/hero"; - var prefab: Prefab = oops.res.get(path, Prefab)!; - var node = instantiate(prefab); - node.parent=layer - // let ratio=this.set_ratio(uuid); - node.getChildByName("avatar").setScale(node.getChildByName("avatar").scale.x*scale, node.getChildByName("avatar").scale.y,0); - node.setPosition(pos) - // console.log(node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite)) - const url = 'game/heros/heros'; - resources.load(url, SpriteAtlas, (err: any, atlas) => { - const sprite = node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite); - - sprite.spriteFrame = atlas.getSpriteFrame(smc.heros[uuid].path); - }); - this.hero_init(uuid,node) - oops.message.dispatchEvent("hero_load",this) - } - set_ratio(uuid:number){ - let ratio=1; - switch (smc.heros[uuid].level) { - case 2: - ratio=1.1 - break; - case 3: - ratio=1.2 - break; - case 4: - ratio=1.3 - break; - case 5: - ratio=1.4 - break; - default: - ratio=1 - } - return ratio; - } - hero_init(uuid:number=1001,node:Node,pos:Vec3=v3(0,0,0)){ - var mv = node.getComponent(MonsterViewComp)!; - var buff =node.getComponent(MonsterBuffComp)!; - mv.hero_uuid=uuid; - mv.speed =mv.ospeed = smc.heros[uuid].speed; - mv.hero_name= smc.heros[uuid].name; - buff.group= mv.box_group= BoxSet.HERO; - mv.hp= mv.hp_max = smc.heros[uuid].hp; - mv.level = smc.heros[uuid].level; - mv.atk = smc.heros[uuid].atk; - mv.atk_cd = smc.heros[uuid].atk_cd; - mv.power = smc.heros[uuid].power; - mv.type = smc.heros[uuid].type; - mv.skill_uuid = 9001; - mv.max_skill_uuid = smc.heros[uuid].max_skill_uuid; - mv.Tpos = v3(0,0,0); - mv.scale = 1; - // mv.change_name(smc.heros[uuid].name,1) - this.add(mv); - this.add(buff); - } - - - -} \ No newline at end of file diff --git a/assets/script/game/monster/Hero.ts.meta b/assets/script/game/monster/Hero.ts.meta deleted file mode 100644 index 217e2cc1..00000000 --- a/assets/script/game/monster/Hero.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.23", - "importer": "typescript", - "imported": true, - "uuid": "a45699e6-eeb3-4af3-99a2-de740888bf56", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/monster/HeroCardViewComp.ts b/assets/script/game/monster/HeroCardViewComp.ts index 2d3fc242..db27ce61 100644 --- a/assets/script/game/monster/HeroCardViewComp.ts +++ b/assets/script/game/monster/HeroCardViewComp.ts @@ -6,11 +6,9 @@ import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/O import { smc } from "../common/SingletonModuleComp"; import { SkillSet } from "../common/config/SkillSet"; import { HeroCard } from "./HeroCard"; -import { HeroModelComp } from "./HeroModelComp"; -import { Hero } from "./Hero"; -import { MonsterViewComp } from "./MonsterViewComp"; import { MapMonsterComp } from "../map/MapMonsterComp"; import { MapSkillComp } from "../map/MapSkillComp"; +import { HeroModelComp } from "../hero/HeroModelComp"; const { ccclass, property } = _decorator; /** 视图层对象 */ diff --git a/assets/script/game/monster/HeroModelComp.ts b/assets/script/game/monster/HeroModelComp.ts deleted file mode 100644 index 01969678..00000000 --- a/assets/script/game/monster/HeroModelComp.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; -import { VM } from "../../../../extensions/oops-plugin-framework/assets/libs/model-view/ViewModel"; - -/** 数据层对象 */ -@ecs.register('HeroModel') -export class HeroModelComp extends ecs.Comp { - /** 提供 MVVM 组件使用的数据 */ - // private vm: any = {}; - - // /** 显示数据添加到 MVVM 框架中监视 */ - // vmAdd() { - // VM.add(this.vm, "HeroModelComp"); - // } - - // /** 显示数据从 MVVM 框架中移除 */ - // vmRemove() { - // VM.remove("HeroModelComp"); - // } - - /** 数据层组件移除时,重置所有数据为默认值 */ - reset() { - // for (var key in this.vm) { - // delete this.vm[key]; - // } - } -} \ No newline at end of file diff --git a/assets/script/game/monster/HeroModelComp.ts.meta b/assets/script/game/monster/HeroModelComp.ts.meta deleted file mode 100644 index 9cccbebd..00000000 --- a/assets/script/game/monster/HeroModelComp.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.23", - "importer": "typescript", - "imported": true, - "uuid": "f7b9c48b-c4ed-4641-9f2f-ab5b317e7f0c", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/monster/Monster.ts b/assets/script/game/monster/Monster.ts deleted file mode 100644 index 16707988..00000000 --- a/assets/script/game/monster/Monster.ts +++ /dev/null @@ -1,102 +0,0 @@ - -/* - * @Author: dgflash - * @Date: 2021-11-18 17:47:56 - * @LastEditors: dgflash - * @LastEditTime: 2022-08-04 15:43:04 - */ -import { instantiate, Node, Prefab, Vec3 ,v3,resources,SpriteFrame,Sprite,SpriteAtlas} from "cc"; -import { UICallbacks } from "../../../../extensions/oops-plugin-framework/assets/core/gui/layer/Defines"; -import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; -import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; -import { UIID } from "../common/config/GameUIConfig"; -import { smc } from "../common/SingletonModuleComp"; -import { MonsterModelComp } from "./MonsterModelComp"; -import { MonsterSpine } from "./MonsterSpine"; -import { MonsterViewComp } from "./MonsterViewComp"; -import { BoxSet } from "../common/config/BoxSet"; -import { RandomManager } from "../../../../extensions/oops-plugin-framework/assets/core/common/random/RandomManager"; -import { MonsterBuffComp } from "./MonsterBuffComp"; -/** 角色实体 */ -@ecs.register(`Monster`) -export class Monster extends ecs.Entity { - // 数据层 - MonsterModel!: MonsterModelComp; - // 视图层 - MonsterView!: MonsterViewComp; - MonsterBuff!: MonsterBuffComp; // 移动 - - protected init() { - this.addComponents( MonsterModelComp); - - } - - destroy(): void { - this.remove(MonsterViewComp); - this.remove(MonsterBuffComp); - super.destroy(); - } - - /** 加载角色 */ - load(pos: Vec3 = Vec3.ZERO,scale:number = -1,uuid:number=1001,layer:Node=smc.map.MapView.scene.entityLayer!.node!) { - // var path = "game/monster/"+prefab_path; - var path = "game/heros/hero"; - var prefab: Prefab = oops.res.get(path, Prefab)!; - var node = instantiate(prefab); - node.parent=layer - // var as = node.getComponent(MonsterSpine); - let ratio=this.set_ratio(uuid); - node.setScale(node.scale.x*scale*ratio, node.scale.y*ratio, 0); - - // node.getChildByName("avatar").setScale(node.getChildByName("avatar").scale.x*scale, node.getChildByName("avatar").scale.y, node.getChildByName("avatar").scale.z); - node.setPosition(pos) - // console.log(node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite)) - const url = 'game/heros/heros'; - resources.load(url, SpriteAtlas, (err: any, atlas) => { - const sprite = node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite); - sprite.spriteFrame = atlas.getSpriteFrame(smc.heros[uuid].path); - }); - this.hero_init(uuid,node) - oops.message.dispatchEvent("monster_load",this) - } - set_ratio(uuid:number){ - let ratio=1; - switch (smc.heros[uuid].level) { - case 2: - ratio=1.05 - break; - case 3: - ratio=1.1 - break; - case 4: - ratio=1.15 - break; - case 5: - ratio=1.2 - break; - default: - ratio=1 - } - return ratio; - } - hero_init(uuid:number=1001,node:Node,pos:Vec3=v3(0,0,0)){ - var mv = node.getComponent(MonsterViewComp)!; - var buff =node.getComponent(MonsterBuffComp)!; - // console.log("hero_init",smc.heros,uuid) - mv.speed =mv.ospeed = smc.heros[uuid].speed; - mv.hero_name= smc.heros[uuid].name; - buff.group=mv.box_group= BoxSet.MONSTER; - mv.hp= mv.hp_max = smc.heros[uuid].hp; - mv.level = smc.heros[uuid].level; - mv.atk = smc.heros[uuid].atk; - mv.atk_cd = smc.heros[uuid].atk_cd; - mv.power = smc.heros[uuid].power; - mv.type = smc.heros[uuid].type; - mv.skill_uuid = 9001; - mv.max_skill_uuid = smc.heros[uuid].max_skill_uuid; - mv.scale = -1; - mv.Tpos = v3(0,0,0); - this.add(mv); - this.add(buff); - } -} \ No newline at end of file diff --git a/assets/script/game/monster/Monster.ts.meta b/assets/script/game/monster/Monster.ts.meta deleted file mode 100644 index 78d269b9..00000000 --- a/assets/script/game/monster/Monster.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.23", - "importer": "typescript", - "imported": true, - "uuid": "e889d785-f34d-46f5-825c-8906863db245", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/monster/MonsterBuffComp.ts b/assets/script/game/monster/MonsterBuffComp.ts deleted file mode 100644 index 2232503d..00000000 --- a/assets/script/game/monster/MonsterBuffComp.ts +++ /dev/null @@ -1,154 +0,0 @@ -/* - * @Author: dgflash - * @Date: 2021-11-18 17:42:59 - * @LastEditors: dgflash - * @LastEditTime: 2022-08-17 12:36:18 - */ - -import { _decorator,Sprite,Color} from "cc"; -import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; -import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; -import { MonsterSpine } from "./MonsterSpine"; -import { Monster } from "./Monster"; -import { Hero } from "./Hero"; -import { MonsterModelComp } from "./MonsterModelComp"; -import { BoxSet } from "../common/config/BoxSet"; -import { smc } from "../common/SingletonModuleComp"; -import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; -import { Skill } from "../skills/Skill"; -import { Timer } from "../../../../extensions/oops-plugin-framework/assets/core/common/timer/Timer"; -import { SkillCom } from "../skills/SkillCom"; -import { BoxRangComp } from "./BoxRangComp"; -import { Tooltip } from "../skills/Tooltip"; -import { MonsterViewComp } from "./MonsterViewComp"; -const { ccclass, property } = _decorator; - -/** 角色显示组件 */ -@ccclass('MonsterBuffComp') // 定义为 Cocos Creator 组件 -@ecs.register('MonsterBuff', false) // 定义为 ECS 组件 -export class MonsterBuffComp extends CCComp { - /** 角色动画 */ - as: MonsterSpine = null!; - mv!: MonsterViewComp; - - timer:Timer = new Timer(0.1); - buffs:any=[]; - group:number=0; - /** - skill_uuid:number=0; - atk:number=0; - hp:number=0; - shield:number=0; - time:number=0; - **/ - - - onLoad() { - this.as = this.node.getComponent(MonsterSpine); - this.mv= this.getComponent(MonsterViewComp); - } /** 视图层逻辑代码分离演示 */ - start () { - - - } - add_buff(uuid:number=0,args:any[]){ - // console.log("add_buff",smc.skills[uuid]); - - let new_buff={ - skill_uuid:uuid, - skill_name:smc.skills[uuid].name, - atk:smc.skills[uuid].atk, - hp:smc.skills[uuid].hp, - shield:smc.skills[uuid].shield, - time:smc.skills[uuid].bsd, - bcd:smc.skills[uuid].bcd, - sk_uuid:smc.skills[uuid].uuid, - args:args - } - this.buff_add(new_buff); - } - - - update(dt: number){ - if (this.timer.update(dt)) { - this.buff_update() - } - } - - reset() { - - this.node.destroy(); - } - - buff_add(buff:any){ - if(!this.node.isValid){ return } - let i = 0 - if(this.buffs.length >=0){ - this.buffs.forEach((b:any,index:number)=>{ - if(b.skill_uuid==buff.skill_uuid){ - b.time=buff.time; - if(buff.atk>0){ - this.node.getChildByName("avatar").setScale(1.2,1.2) - this.node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite).color= new Color().fromHEX("#F16F6F"); - this.mv.atk+=(buff.atk+buff.args.atk-b.atk); - } - if(buff.hp>0){ - this.mv.hp+=(buff.hp+buff.args.hp); - this.mv.add_hp(buff.hp+buff.args.hp); - // this.mv.hp_max+=(buff.hp-b.hp); - } - if(buff.shield>0){ - this.mv.shield=(buff.shield+buff.args.shield); - // this.mv.shield_max=(buff.shield+buff.args.shield); - } - - i=index - } - }) - } - if (i==0||this.buffs.length==0) { - this.buffs.push(buff); - if(buff.atk>0){ - this.mv.atk+=(buff.atk+buff.args.atk); - this.node.getChildByName("avatar").setScale(1.2,1.2) - this.node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite).color= new Color().fromHEX("#F16F6F"); - } - if(buff.hp>0){ - this.mv.hp+=(buff.hp+buff.args.hp); - this.mv.add_hp(buff.hp+buff.args.hp); - // this.mv.hp_max+=buff.hp; - } - if(buff.shield>0){ - this.mv.shield=(buff.shield+buff.args.shield); - // this.mv.shield_max=(buff.shield+buff.args.shield); - } - - } - console.log("buff add:",this.mv); - } - buff_remove(index:number){ - if(this.buffs[index].atk>0){ - this.mv.atk-=(this.buffs[index].atk+this.buffs[index].args.atk); - this.node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite).color= new Color().fromHEX("#FFFFFF"); - this.node.getChildByName("avatar").setScale(1,1) - } - if(this.buffs[index].shield>0){ - this.mv.shield=0 - // this.mv.shield_max-=(this.buffs[index].shield+this.buffs[index].args.shield); - } - // if(this.buffs[index].hp>0){ - // this.mv.hp_max-=this.buffs[index].hp; - // } - console.log("buff remove:",this.mv,this.buffs[index]); - } - buff_update(){ - this.buffs.forEach((buff:any,index:number)=>{ - buff.time -= 0.1; - if(buff.time <= 0){ - this.buff_remove(index); - } - }) - this.buffs = this.buffs.filter((buff:any) => buff.time > 0); - // console.log(this.buffs,this.buffs); - } -} \ No newline at end of file diff --git a/assets/script/game/monster/MonsterBuffComp.ts.meta b/assets/script/game/monster/MonsterBuffComp.ts.meta deleted file mode 100644 index c0cdc087..00000000 --- a/assets/script/game/monster/MonsterBuffComp.ts.meta +++ /dev/null @@ -1 +0,0 @@ -{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"265743f5-c04b-411d-9772-2c9bd0156a09","files":[],"subMetas":{},"userData":{}} diff --git a/assets/script/game/monster/MonsterModelComp.ts b/assets/script/game/monster/MonsterModelComp.ts deleted file mode 100644 index 2c08149b..00000000 --- a/assets/script/game/monster/MonsterModelComp.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * @Author: dgflash - * @Date: 2021-11-18 15:56:01 - * @LastEditors: dgflash - * @LastEditTime: 2022-08-17 13:43:25 - */ -import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; - -/** - * 角色属性数据 - */ -@ecs.register('MonsterModel') -export class MonsterModelComp extends ecs.Comp { - /** 角色编号 */ - id: number = -1; - - /** 角色名 */ - name: string = "monster"; - /** speed */ - // speed: number = 0; - /** 动画名资源 */ - anim: string = "monster"; - - reset() { - this.id = -1; - // this.speed = 0; - this.name = ""; - } -} diff --git a/assets/script/game/monster/MonsterModelComp.ts.meta b/assets/script/game/monster/MonsterModelComp.ts.meta deleted file mode 100644 index 644ba87f..00000000 --- a/assets/script/game/monster/MonsterModelComp.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.23", - "importer": "typescript", - "imported": true, - "uuid": "b5f2873a-5007-436b-95ef-1e73281a374f", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/monster/MonsterSpine.ts b/assets/script/game/monster/MonsterSpine.ts deleted file mode 100644 index 78791136..00000000 --- a/assets/script/game/monster/MonsterSpine.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * @Author: dgflash - * @Date: 2022-08-04 15:08:35 - * @LastEditors: dgflash - * @LastEditTime: 2022-08-04 15:26:26 - */ -import { Color, Component, EventTouch, sp, Vec3, _decorator } from "cc"; -import { LayerUtil } from "../../../../extensions/oops-plugin-framework/assets/core/utils/LayerUtil"; -import { smc } from "../../../script/game/common/SingletonModuleComp"; -import MonsterSpineAnimator from "./MonsterSpineAnimator"; - -const { ccclass, property } = _decorator; - -/** - * RPG SPINE角色模型 - */ -@ccclass('MonsterSpine') -export class MonsterSpine extends Component { - @property({ type: MonsterSpineAnimator, tooltip: '动画控制器' }) - animator: MonsterSpineAnimator = null!; - - private spine!: sp.Skeleton; - - onLoad() { - // 角色控制组件 - - this.initAnimator(); - // this.setSkin("magic"); - // this.animator.play("idle", true); - LayerUtil.setNodeLayer(LayerUtil.MAP, this.node); - } - - /** 初始化动画 */ - protected initAnimator() { - this.spine = this.animator.getComponent(sp.Skeleton)!; - // console.log("MonsterSpine initAnimator", this.spine); - } - - - - - - - - setSkin(value: string): void { - this.spine.setSkin(value); - } - play(animName: string, loop: boolean): void { - this.spine.setAnimation(0, animName, loop); - } - atk() { - this.spine.setAnimation(0, "atk2", false); - } - maxSkill () { - this.spine.setAnimation(0, "max", false); - } - setAlpha(value: number): void { - var color: Color = this.spine.color; - color.a = 255 * (value / 1); - this.spine.color = color; - } - - setPos(value: Vec3): void { - this.node.position = value; - } - - checkTouch(event: EventTouch): boolean { - return false; - } - - onDestroy() { - this.node.destroy(); - } - - walk() { - - } - - idle() { - - } -} diff --git a/assets/script/game/monster/MonsterSpine.ts.meta b/assets/script/game/monster/MonsterSpine.ts.meta deleted file mode 100644 index 02d77437..00000000 --- a/assets/script/game/monster/MonsterSpine.ts.meta +++ /dev/null @@ -1 +0,0 @@ -{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"482c216c-bef6-49fb-9060-37777b818f83","files":[],"subMetas":{},"userData":{}} diff --git a/assets/script/game/monster/MonsterSpineAnimator.ts b/assets/script/game/monster/MonsterSpineAnimator.ts deleted file mode 100644 index 6b6ceed9..00000000 --- a/assets/script/game/monster/MonsterSpineAnimator.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * @Author: dgflash - * @Date: 2022-08-04 15:08:35 - * @LastEditors: dgflash - * @LastEditTime: 2022-08-04 15:26:38 - */ -import { sp, _decorator ,Component} from "cc"; - -const { ccclass, property, requireComponent, disallowMultiple } = _decorator; - -/** - * Spine状态机组件(主状态机),trackIndex为0 - */ -@ccclass -@disallowMultiple -@requireComponent(sp.Skeleton) -export default class MonsterSpineAnimator extends Component { - private animName: string = "move"; - private loop: boolean = true; - private spine!: sp.Skeleton; - start() { - this.spine = this.getComponent(sp.Skeleton)!; - // console.log("MonsterSpineAnimator start"); - this.playAnimation(this.animName, this.loop); - } - mixTime:number= 0.2; - - protected onLoad(): void { - this.spine = this.getComponent(sp.Skeleton)!; - // this.spine?.setMix('atk', 'move', this.mixTime); - // this.spine?.setMix('move','atk', this.mixTime); - this.spine.setEndListener(trackEntry => { - var animationName = trackEntry.animation ? trackEntry.animation.name : ""; - // console.log("[track %s][animation %s] end.", trackEntry.trackIndex, animationName); - if (animationName == "atk2" ||animationName == "magic"||animationName=="max") { - this.spine.setAnimation(0, "move", true); - } - }); - - } - lateUpdate(dt: number) { - // - } - - play(animName: string, loop: boolean) { - if (animName) { - this.animName = animName; - this.loop = loop; - this.spine.setAnimation(0, this.animName, this.loop); - } - else { - } - } - /** - * 播放动画 - * @override - * @param animName 动画名 - * @param loop 是否循环播放 - */ - protected playAnimation(animName: string, loop: boolean) { - // console.log("MonsterSpineAnimator playAnimation"); - if (animName) { - // console.log("MonsterSpineAnimator playAnimation animName", animName); - this.animName = animName; - this.loop = loop; - this.spine.setAnimation(0, this.animName, this.loop); - } - else { - } - } - -} \ No newline at end of file diff --git a/assets/script/game/monster/MonsterSpineAnimator.ts.meta b/assets/script/game/monster/MonsterSpineAnimator.ts.meta deleted file mode 100644 index b8a81206..00000000 --- a/assets/script/game/monster/MonsterSpineAnimator.ts.meta +++ /dev/null @@ -1 +0,0 @@ -{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"d3a795b7-3a93-41b0-be56-1d3f6666a1dd","files":[],"subMetas":{},"userData":{}} diff --git a/assets/script/game/monster/MonsterViewComp.ts b/assets/script/game/monster/MonsterViewComp.ts deleted file mode 100644 index 661a7533..00000000 --- a/assets/script/game/monster/MonsterViewComp.ts +++ /dev/null @@ -1,427 +0,0 @@ -/* - * @Author: dgflash - * @Date: 2021-11-18 17:42:59 - * @LastEditors: dgflash - * @LastEditTime: 2022-08-17 12:36:18 - */ - -import { Vec3, _decorator , v3,Collider2D,Contact2DType,Label,RigidBody2D ,Node,Prefab,instantiate,ProgressBar, Component, Material, Sprite} from "cc"; -import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; -import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; -import { MonsterSpine } from "./MonsterSpine"; -import { Monster } from "./Monster"; -import { Hero } from "./Hero"; -import { MonsterModelComp } from "./MonsterModelComp"; -import { BoxSet } from "../common/config/BoxSet"; -import { smc } from "../common/SingletonModuleComp"; -import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; -import { Skill } from "../skills/Skill"; -import { Timer } from "../../../../extensions/oops-plugin-framework/assets/core/common/timer/Timer"; -import { SkillCom } from "../skills/SkillCom"; -import { SkillSet } from "../common/config/SkillSet"; -import { Tooltip } from "../skills/Tooltip"; -import { MonsterBuffComp } from "./MonsterBuffComp"; -import { MoveToComp } from "../common/ecs/position/MoveTo"; -import { BoxRangComp } from "./BoxRangComp"; -const { ccclass, property } = _decorator; - -/** 角色显示组件 */ -@ccclass('MonsterViewComp') // 定义为 Cocos Creator 组件 -@ecs.register('MonsterView', false) // 定义为 ECS 组件 -export class MonsterViewComp extends CCComp { - @property(Material) - hitFlashMaterial: Material; - orginalFlashMaterial: Material; - sprite: Sprite; - - @property(Node) - BoxRang:Node =null! - - buff:MonsterBuffComp =null! - is_role:boolean = false; - enemy_pos:Vec3=null!; - enemy:any=null!; - /** 角色动画 */ - as: MonsterSpine = null!; - hero_uuid:number = 1001; - hero_name : string = "hero"; - level:number =1; - scale: number = 1; /** 角色阵营 1:hero -1 :monster */ - type: number = 1; /**角色类型 1:前排 2 后排 */ - state: number = 1; /** 状态 1:move ,2: act 3: stop */ - - hp: number = 100; /** 血量 */ - hp_max: number = 100; /** 最大血量 */ - hp_speed: number = 0; //每秒回复量 - - power: number = 0; /**能量**/ - power_max: number = 1200; /** 能量最大值 */ - power_speed: number = 1; //能量回复速度每0.1秒回复量 - - skill_name: string = "base"; //技能名称 - max_skill_name: string = "base"; //大技能名称 - skill_uuid:number = 9001; - max_skill_uuid:number = 1001; - atk: number = 10; /**攻击力 */ - // atk_speed: number = 1; - atk_cd: number = 1.3; /**攻击速度 攻击间隔 */ - atk_time: number = 0; /** 冷却时间 */ - - speed: number = 100; /** 角色移动速度 */ - ospeed: number = 100; /** 角色初始速度 */ - Tpos: Vec3 = v3(0,-60,0); - stop_cd: number = 0.5; /*停止倒计时*/ - - shield:number = 0; //护盾量 - shield_max:number = 200; - shield_time:number = 0; //护盾持续时间 - - box_group:number = 2; - atk_range:number = 150; - private timer:Timer = new Timer(1); //计时器 - private m_timer:Timer = new Timer(0.1); - is_dead:boolean = false; //是否摧毁 - is_stop:boolean = false; - is_atking:boolean = false; - - onLoad() { - this.as = this.getComponent(MonsterSpine); - this.buff=this.node.getComponent(MonsterBuffComp); - // this.BoxRang = this.node.getChildByName("range_box"); - // this.BoxRang = this.node.getChildByName("range_box"); - } /** 视图层逻辑代码分离演示 */ - start () { - this.sprite = this.node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite); - this.node.getChildByName("top").setScale(this.scale,1); - // this.node.getChildByName("atk").setScale(this.scale,1); - // this.node.getChildByName("atk").getComponent(Label).string = this.atk.toString(); - // this.node.getChildByName("hp_max").setScale(this.scale,1); - // this.node.getChildByName("hp_max").getComponent(Label).string=this.hp_max.toString(); - this.orginalFlashMaterial = this.sprite.getRenderMaterial(0); - this.BoxRang.getComponent(BoxRangComp).box_group = this.box_group; - this.BoxRang.getComponent(BoxRangComp).atk_range = this.atk_range - // this.BoxRang.getComponent(BoxRangComp).offset_x = 300; - // console.log("monseter ",this.BoxRang); - // console.log("monseter ",this.BoxRang); - // if(this.box_group == BoxSet.MONSTER){ - // this.enemy=smc.Role.RoleView.node - // // console.log("monster enemy ",this.enemy); - // } - this.buff.group=this.box_group - // 注册单个碰撞体的回调函数 - let collider = this.getComponent(Collider2D); - collider.group = this.box_group; - if (collider) { - collider.on(Contact2DType.BEGIN_CONTACT, this.onBeginContact, this); - collider.on(Contact2DType.END_CONTACT, this.onEndContact, this); - collider.on(Contact2DType.PRE_SOLVE, this.onPreSolve, this); - collider.on(Contact2DType.POST_SOLVE, this.onPostSolve, this); - } - // this.node.getChildByName("level").getChildByName("level").getComponent(Label).string = this.level.toString(); - - - } - onBeginContact (selfCollider: Collider2D, otherCollider: Collider2D) { - - if(otherCollider.tag==BoxSet.SKILL_TAG &&selfCollider.tag!=BoxSet.SKILL_TAG){ - if(selfCollider.group != otherCollider.group){ - let skill = otherCollider.node.getComponent(SkillCom)!; - // console.log('onPostSolve',skill); - this.in_atked(); - if(this.hp <= 0 ){ - return - } - this.hp_change(skill.atk); - } - } - } - onEndContact (selfCollider: Collider2D, otherCollider: Collider2D) { } - onPreSolve (selfCollider: Collider2D, otherCollider: Collider2D) { - - if(selfCollider.group != otherCollider.group&&otherCollider.tag == 0){ - this.is_atking = true; - this.stop_cd = 0.1; - } - } - onPostSolve (selfCollider: Collider2D, otherCollider: Collider2D) { - if(selfCollider.group == otherCollider.group&&otherCollider.tag == 0&&selfCollider.tag == 0){ - let self_pos=selfCollider.node.getPosition(); - let other_pos=otherCollider.node.getPosition(); - // console.log('monster view group 相同'); - switch (selfCollider.group) { - case BoxSet.HERO: - if(self_pos.x < other_pos.x){ - // this.stop_cd=0.1 - } - break; - case BoxSet.MONSTER: - if(self_pos.x > other_pos.x){ - // this.stop_cd=0.1 - } - break - } - } - } - - - update(dt: number){ - if (this.timer.update(dt)) { - this.power_change(this.power_speed) - } - this.in_destroy(); - this.in_shield(); - this.in_stop(dt); - this.in_act(dt); - this.move(dt); - // if(this.m_timer.update(dt)){ - // this.move_to() - // } - } - - move(dt: number){ - if(this.stop_cd > 0){ - return - } - if (this.scale === 1 && this.node.position.x >= 120) { - return; - } - - if(this.scale===-1&&this.node.position.x <= BoxSet.HERO_START){ - return; - } - // if(this.enemy){ - // return - // } - this.node.setPosition(this.node.position.x+dt*this.speed*this.scale, this.node.position.y, this.node.position.z); - } - move_to(){ - var move = this.ent.get(MoveToComp) || this.ent.add(MoveToComp); - move.target = v3(smc.Role.RoleView.node.position.x+10,smc.Role.RoleView.node.position.y); - move.node = this.node; - move.speed = this.ospeed; - - // if(this.box_group == BoxSet.MONSTER){ - // if(smc.t_hero.eid != 0){ - // var move = this.ent.get(MoveToComp) || this.ent.add(MoveToComp); - // if(smc.t_hero.pos.x < this.node.position.x){ - // // this.node.setScale(-Math.abs(this.node.scale.x),this.node.scale.y) - // move.target = v3(smc.t_hero.pos.x+20,smc.t_hero.pos.y); - // }else{ - // // this.node.setScale(Math.abs(this.node.scale.x),this.node.scale.y) - // move.target = v3(smc.t_hero.pos.x-20,smc.t_hero.pos.y); - // } - // move.node = this.node; - // move.speed = this.ospeed; - // } - // } - - // if(this.box_group == BoxSet.HERO){ - // if(smc.t_monster.eid != 0){ - // var move = this.ent.get(MoveToComp) || this.ent.add(MoveToComp); - // if(smc.t_monster.pos.x < this.node.position.x){ - // // this.node.setScale(-Math.abs(this.node.scale.x),this.node.scale.y) - // move.target = v3(smc.t_monster.pos.x+20,smc.t_monster.pos.y); - // }else{ - // // this.node.setScale(Math.abs(this.node.scale.x),this.node.scale.y) - // move.target = v3(smc.t_monster.pos.x-20,smc.t_monster.pos.y); - // } - // move.node = this.node; - // move.speed = this.ospeed; - // } - // } - - } - power_change(power: number){ - this.power += power; - if(this.power >= this.power_max){ - this.as.maxSkill() - this.scheduleOnce(()=>{ - this.do_max_skill(); - },0.5) - this.power = 0 - } - let power_progress= this.power/this.power_max; - this.node.getChildByName("top").getChildByName("power").getComponent(ProgressBar)!.progress = power_progress; - } - shoot(skill_uuid:number){ - // console.log("monster shoot"); - let skill = ecs.getEntity(Skill); - let x=32 - let pos = v3(35*this.scale,50) - let scale = this.scale - let speed =smc.skills[skill_uuid].speed; - let dis = smc.skills[skill_uuid].dis; - let atk = smc.skills[skill_uuid].atk+this.atk; - let angle=0 - let t_pos:Vec3 = v3(0,0) - if(this.enemy){ - if(!this.enemy.isValid){ - console.log("move_to",this.enemy.isValid); - return - } - t_pos = v3(this.enemy.position.x-this.node.position.x,this.enemy.position.y-this.node.position.y) - angle = Math.atan2(t_pos.y,t_pos.x) * 180 / Math.PI; - if(this.scale == -1){ - angle = angle +180 - } - }else{ - t_pos=null - } - skill.load(pos,speed,dis,scale,this.node,skill_uuid,atk,angle,t_pos); - // this.tooltip(3,smc.skills[skill_uuid].name,this.skill_uuid); - } - //使用max_skill - do_max_skill(){ - let skill = ecs.getEntity(Skill); - let x=32 - let pos = v3(-40*this.scale,BoxSet.MAX_SKILL_SY) - let scale = this.scale - let speed =smc.skills[this.max_skill_uuid].speed; - let dis = smc.skills[this.max_skill_uuid].dis; - let atk = smc.skills[this.max_skill_uuid].atk+this.atk; - skill.load(pos,speed,dis,scale,this.node,this.max_skill_uuid,atk); - this.tooltip(3,smc.skills[this.max_skill_uuid].name,this.max_skill_uuid); - } - in_act(dt: number) { - - if(this.atk_time >= this.atk_cd){ - if(this.is_atking){ - this.atk_time = 0; - // console.log("atk_cd:"+this.atk_cd); - this.as.atk(); - this.scheduleOnce(()=>{ - this.shoot(this.skill_uuid); - },0.4) - } - }else{ - this.atk_time += dt; - } - } - in_shield(){ - let shield_progress= this.shield/this.shield_max; - this.node.getChildByName("top").getChildByName("shield").getComponent(ProgressBar)!.progress = shield_progress; - // if(this.shield <= 0){ - // this.node.getChildByName("shield").active=false - // }else{ - // this.node.getChildByName("shield").active=true - - // } - } - hp_change(hp: number){ - if(this.is_dead){ - return; - } - let lhp=this.shield_change(hp); - if(lhp == 0){ - return; - } - this.hp += lhp; - this.tooltip(1,hp.toString()); - if(this.hp > this.hp_max){ - this.hp = this.hp_max; - } - let hp_progress= this.hp/this.hp_max; - this.node.getChildByName("top").getChildByName("hp").getComponent(ProgressBar)!.progress = hp_progress; - if(this.hp <= 0){ - this.dead(); - this.remove_smc_data() - this.is_dead = true; - setTimeout(() => { - this.ent.destroy(); - }, 15); - } - } - remove_smc_data(){ - if(smc.t_monster.eid == this.ent.eid){ - smc.t_monster = {eid:0,pos:v3(0,0,0)} - } - if(smc.t_hero.eid == this.ent.eid){ - smc.t_hero = {eid:0,pos:v3(0,0,0)} - } - } - add_hp(hp: number=0){ - console.log("hero 加血动画"); - this.tooltip(2,hp.toString()); - let hp_progress= this.hp/this.hp_max; - this.node.getChildByName("top").getChildByName("hp").getComponent(ProgressBar)!.progress = hp_progress; - } - shield_change(hp: number){ - let ls=this.shield - hp; - if(ls <= 0){ - this.shield = 0; - return ls; - }else{ - this.shield = ls; - return 0; - } - } - tooltip(type:number=1,value:string="",s_uuid:number=1001){ - // console.log("tooltip",type); - let tip =ecs.getEntity(Tooltip); - let pos = this.node.getPosition(); - let node =this.node.parent - pos.y=pos.y+60; - tip.load(pos,type,value,s_uuid,node); - } - get_monster_pos(){ - return this.node.getPosition() - } - /** 静止时间 */ - in_stop (dt: number) { - if(this.stop_cd > 0){ - this.stop_cd -= dt; - if(this.stop_cd <= 0){ - this.stop_cd = 0; - this.is_atking = false; - } - } - } - in_destroy(){ - // switch (this.scale) { - // case -1: - // if(this.node.position.x < BoxSet.LETF_END){ - // this.toDestroy(); - // } - // break; - // case 1: - // if(this.node.position.x > BoxSet.RIGHT_END){ - // this.toDestroy(); - // } - // break; - // } - } - - in_atked() { - if(this.is_role){ - var path = "game/skills/atked"; - var prefab: Prefab = oops.res.get(path, Prefab)!; - var node = instantiate(prefab); - let pos = v3(0,60) - node.setPosition(pos) - node.parent = this.node; - - }else{ - this.sprite.setSharedMaterial(this.hitFlashMaterial, 0); - this.scheduleOnce(() => { - this.sprite.setSharedMaterial(this.orginalFlashMaterial, 0); - }, 0.1); - } - - - } - dead(){ - var path = "game/skills/dead"; - var prefab: Prefab = oops.res.get(path, Prefab)!; - var node = instantiate(prefab); - node.setPosition(this.node.position.x,this.node.position.y+30,this.node.position.z); - node.parent = this.node.parent; - } - toDestroy(){ - - } - reset() { - this.is_dead = false; - this.node.destroy(); - } - -} \ No newline at end of file diff --git a/assets/script/game/monster/MonsterViewComp.ts.meta b/assets/script/game/monster/MonsterViewComp.ts.meta deleted file mode 100644 index c75d41fa..00000000 --- a/assets/script/game/monster/MonsterViewComp.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.23", - "importer": "typescript", - "imported": true, - "uuid": "dc1b7210-4d5c-477c-81c5-7d6bb4bb823f", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/skills/CSkillComp.ts b/assets/script/game/skills/CSkillComp.ts index 491fa892..7bee697a 100644 --- a/assets/script/game/skills/CSkillComp.ts +++ b/assets/script/game/skills/CSkillComp.ts @@ -109,24 +109,24 @@ export class CSkillComp extends CCComp { if(SkillSet[uuid].type==92){ //随机添加buff let i = RandomManager.instance.getRandomInt(0,heros.length-1,3) console.log("i %%length:",i,heros.length) - heros[i].MonsterBuff.add_buff(uuid,args); + heros[i].HeroBuff.add_buff(uuid,args); }else{ for (let i = 0; i < heros.length; i++) { let hero = heros[i]; // console.log(" CSkillComp hero",hero); if(SkillSet[uuid].type==91){ //血量最少单体 console.log(" CSkillComp hero 91",hero,least_hp,t_hero); - if(hero.MonsterView.hp < least_hp){ - least_hp = hero.MonsterView.hp + if(hero.HeroView.hp < least_hp){ + least_hp = hero.HeroView.hp t_hero = hero } }else{ //群体 - hero.MonsterBuff.add_buff(uuid,args); + hero.HeroBuff.add_buff(uuid,args); } } if(t_hero){ //血量最少单体 - t_hero.MonsterBuff.add_buff(uuid,args); + t_hero.HeroBuff.add_buff(uuid,args); } }