diff --git a/assets/resources/game/monster/boss/boss4/animtor.meta b/assets/resources/game/monster/boss/boss4/animtor.meta new file mode 100644 index 00000000..3007dcb1 --- /dev/null +++ b/assets/resources/game/monster/boss/boss4/animtor.meta @@ -0,0 +1 @@ +{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"46e79964-6be1-40a7-a1f1-7736c1ac3ca0","files":[],"subMetas":{},"userData":{}} diff --git a/assets/resources/game/monster/boss/boss4/animtor/atk.anim b/assets/resources/game/monster/boss/boss4/animtor/atk.anim new file mode 100644 index 00000000..35e0037a --- /dev/null +++ b/assets/resources/game/monster/boss/boss4/animtor/atk.anim @@ -0,0 +1,133 @@ +[ + { + "__type__": "cc.AnimationClip", + "_name": "atk", + "_objFlags": 0, + "__editorExtras__": { + "embeddedPlayerGroups": [] + }, + "_native": "", + "sample": 24, + "speed": 1, + "wrapMode": 1, + "enableTrsBlending": false, + "_duration": 0.5, + "_hash": 500763545, + "_tracks": [ + { + "__id__": 1 + } + ], + "_exoticAnimation": null, + "_events": [], + "_embeddedPlayers": [], + "_additiveSettings": { + "__id__": 6 + }, + "_auxiliaryCurveEntries": [] + }, + { + "__type__": "cc.animation.ObjectTrack", + "_binding": { + "__type__": "cc.animation.TrackBinding", + "path": { + "__id__": 2 + }, + "proxy": null + }, + "_channel": { + "__id__": 4 + } + }, + { + "__type__": "cc.animation.TrackPath", + "_paths": [ + { + "__id__": 3 + }, + "spriteFrame" + ] + }, + { + "__type__": "cc.animation.ComponentPath", + "component": "cc.Sprite" + }, + { + "__type__": "cc.animation.Channel", + "_curve": { + "__id__": 5 + } + }, + { + "__type__": "cc.ObjectCurve", + "_times": [ + 0, + 0.041666666666666664, + 0.08333333333333333, + 0.125, + 0.16666666666666666, + 0.20833333333333334, + 0.25, + 0.2916666666666667, + 0.3333333333333333, + 0.375, + 0.4166666666666667, + 0.4583333333333333 + ], + "_values": [ + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@48267", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@42d65", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@6b373", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@84550", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@48c3b", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@263ae", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@25485", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@a0cc1", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@04cc1", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@ef9cd", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@d4151", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@86653", + "__expectedType__": "cc.SpriteFrame" + } + ] + }, + { + "__type__": "cc.AnimationClipAdditiveSettings", + "enabled": false, + "refClip": null + } +] \ No newline at end of file diff --git a/assets/resources/game/monster/boss/boss4/animtor/atk.anim.meta b/assets/resources/game/monster/boss/boss4/animtor/atk.anim.meta new file mode 100644 index 00000000..520ae8a8 --- /dev/null +++ b/assets/resources/game/monster/boss/boss4/animtor/atk.anim.meta @@ -0,0 +1 @@ +{"ver":"2.0.3","importer":"animation-clip","imported":true,"uuid":"6f518925-6001-4d96-9911-ebd1d3b45b0d","files":[".cconb"],"subMetas":{},"userData":{"name":"atk"}} diff --git a/assets/resources/game/monster/boss/boss4/animtor/idle.anim b/assets/resources/game/monster/boss/boss4/animtor/idle.anim new file mode 100644 index 00000000..8def3cab --- /dev/null +++ b/assets/resources/game/monster/boss/boss4/animtor/idle.anim @@ -0,0 +1,71 @@ +[ + { + "__type__": "cc.AnimationClip", + "_name": "idle", + "_objFlags": 0, + "__editorExtras__": { + "embeddedPlayerGroups": [] + }, + "_native": "", + "sample": 24, + "speed": 1, + "wrapMode": 2, + "enableTrsBlending": false, + "_duration": 0, + "_hash": 500763545, + "_tracks": [ + { + "__id__": 1 + } + ], + "_exoticAnimation": null, + "_events": [], + "_embeddedPlayers": [], + "_additiveSettings": { + "__id__": 6 + }, + "_auxiliaryCurveEntries": [] + }, + { + "__type__": "cc.animation.ObjectTrack", + "_binding": { + "__type__": "cc.animation.TrackBinding", + "path": { + "__id__": 2 + }, + "proxy": null + }, + "_channel": { + "__id__": 4 + } + }, + { + "__type__": "cc.animation.TrackPath", + "_paths": [ + { + "__id__": 3 + }, + "spriteFrame" + ] + }, + { + "__type__": "cc.animation.ComponentPath", + "component": "cc.Sprite" + }, + { + "__type__": "cc.animation.Channel", + "_curve": { + "__id__": 5 + } + }, + { + "__type__": "cc.ObjectCurve", + "_times": [], + "_values": [] + }, + { + "__type__": "cc.AnimationClipAdditiveSettings", + "enabled": false, + "refClip": null + } +] \ No newline at end of file diff --git a/assets/resources/game/monster/boss/boss4/animtor/idle.anim.meta b/assets/resources/game/monster/boss/boss4/animtor/idle.anim.meta new file mode 100644 index 00000000..15ce6c65 --- /dev/null +++ b/assets/resources/game/monster/boss/boss4/animtor/idle.anim.meta @@ -0,0 +1 @@ +{"ver":"2.0.3","importer":"animation-clip","imported":true,"uuid":"a8767c96-daac-4b8a-86c7-8d29a5604314","files":[".cconb"],"subMetas":{},"userData":{"name":"idle"}} diff --git a/assets/resources/game/monster/boss/boss4/animtor/max.anim b/assets/resources/game/monster/boss/boss4/animtor/max.anim new file mode 100644 index 00000000..8ae02482 --- /dev/null +++ b/assets/resources/game/monster/boss/boss4/animtor/max.anim @@ -0,0 +1,71 @@ +[ + { + "__type__": "cc.AnimationClip", + "_name": "max", + "_objFlags": 0, + "__editorExtras__": { + "embeddedPlayerGroups": [] + }, + "_native": "", + "sample": 24, + "speed": 1, + "wrapMode": 1, + "enableTrsBlending": false, + "_duration": 0, + "_hash": 500763545, + "_tracks": [ + { + "__id__": 1 + } + ], + "_exoticAnimation": null, + "_events": [], + "_embeddedPlayers": [], + "_additiveSettings": { + "__id__": 6 + }, + "_auxiliaryCurveEntries": [] + }, + { + "__type__": "cc.animation.ObjectTrack", + "_binding": { + "__type__": "cc.animation.TrackBinding", + "path": { + "__id__": 2 + }, + "proxy": null + }, + "_channel": { + "__id__": 4 + } + }, + { + "__type__": "cc.animation.TrackPath", + "_paths": [ + { + "__id__": 3 + }, + "spriteFrame" + ] + }, + { + "__type__": "cc.animation.ComponentPath", + "component": "cc.Sprite" + }, + { + "__type__": "cc.animation.Channel", + "_curve": { + "__id__": 5 + } + }, + { + "__type__": "cc.ObjectCurve", + "_times": [], + "_values": [] + }, + { + "__type__": "cc.AnimationClipAdditiveSettings", + "enabled": false, + "refClip": null + } +] \ No newline at end of file diff --git a/assets/resources/game/monster/boss/boss4/animtor/max.anim.meta b/assets/resources/game/monster/boss/boss4/animtor/max.anim.meta new file mode 100644 index 00000000..54d87e18 --- /dev/null +++ b/assets/resources/game/monster/boss/boss4/animtor/max.anim.meta @@ -0,0 +1 @@ +{"ver":"2.0.3","importer":"animation-clip","imported":true,"uuid":"1c1a81b2-c4e5-46a1-9519-51131c7fbbf9","files":[".cconb"],"subMetas":{},"userData":{"name":"max"}} diff --git a/assets/resources/game/monster/boss/boss4/animtor/move.anim b/assets/resources/game/monster/boss/boss4/animtor/move.anim new file mode 100644 index 00000000..7944b3f0 --- /dev/null +++ b/assets/resources/game/monster/boss/boss4/animtor/move.anim @@ -0,0 +1,133 @@ +[ + { + "__type__": "cc.AnimationClip", + "_name": "move", + "_objFlags": 0, + "__editorExtras__": { + "embeddedPlayerGroups": [] + }, + "_native": "", + "sample": 16, + "speed": 1, + "wrapMode": 2, + "enableTrsBlending": false, + "_duration": 0.75, + "_hash": 500763545, + "_tracks": [ + { + "__id__": 1 + } + ], + "_exoticAnimation": null, + "_events": [], + "_embeddedPlayers": [], + "_additiveSettings": { + "__id__": 6 + }, + "_auxiliaryCurveEntries": [] + }, + { + "__type__": "cc.animation.ObjectTrack", + "_binding": { + "__type__": "cc.animation.TrackBinding", + "path": { + "__id__": 2 + }, + "proxy": null + }, + "_channel": { + "__id__": 4 + } + }, + { + "__type__": "cc.animation.TrackPath", + "_paths": [ + { + "__id__": 3 + }, + "spriteFrame" + ] + }, + { + "__type__": "cc.animation.ComponentPath", + "component": "cc.Sprite" + }, + { + "__type__": "cc.animation.Channel", + "_curve": { + "__id__": 5 + } + }, + { + "__type__": "cc.ObjectCurve", + "_times": [ + 0, + 0.0625, + 0.125, + 0.1875, + 0.25, + 0.3125, + 0.375, + 0.4375, + 0.5, + 0.5625, + 0.625, + 0.6875 + ], + "_values": [ + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@fc016", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@02d71", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@ff9bf", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@a8015", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@a7059", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@a10b0", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@77fc8", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@2d428", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@7c34c", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@2903b", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@7f9b0", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@25229", + "__expectedType__": "cc.SpriteFrame" + } + ] + }, + { + "__type__": "cc.AnimationClipAdditiveSettings", + "enabled": false, + "refClip": null + } +] \ No newline at end of file diff --git a/assets/resources/game/monster/boss/boss4/animtor/move.anim.meta b/assets/resources/game/monster/boss/boss4/animtor/move.anim.meta new file mode 100644 index 00000000..93ada01d --- /dev/null +++ b/assets/resources/game/monster/boss/boss4/animtor/move.anim.meta @@ -0,0 +1 @@ +{"ver":"2.0.3","importer":"animation-clip","imported":true,"uuid":"e7d29c2b-877f-460f-b3d5-8991322c6791","files":[".cconb"],"subMetas":{},"userData":{"name":"move"}} diff --git a/assets/resources/game/monster/boos1.prefab b/assets/resources/game/monster/boss1.prefab similarity index 63% rename from assets/resources/game/monster/boos1.prefab rename to assets/resources/game/monster/boss1.prefab index f289ec88..6757d0d7 100644 --- a/assets/resources/game/monster/boos1.prefab +++ b/assets/resources/game/monster/boss1.prefab @@ -1,7 +1,7 @@ [ { "__type__": "cc.Prefab", - "_name": "boos1", + "_name": "boss1", "_objFlags": 0, "__editorExtras__": {}, "_native": "", @@ -13,7 +13,7 @@ }, { "__type__": "cc.Node", - "_name": "boos1", + "_name": "boss1", "_objFlags": 0, "__editorExtras__": {}, "_parent": null, @@ -22,26 +22,23 @@ "__id__": 2 }, { - "__id__": 8 + "__id__": 10 }, { - "__id__": 18 + "__id__": 26 }, { - "__id__": 22 + "__id__": 36 }, { - "__id__": 30 - }, - { - "__id__": 38 - }, - { - "__id__": 47 + "__id__": 45 } ], "_active": true, "_components": [ + { + "__id__": 53 + }, { "__id__": 55 }, @@ -53,13 +50,10 @@ }, { "__id__": 61 - }, - { - "__id__": 63 } ], "_prefab": { - "__id__": 65 + "__id__": 63 }, "_lpos": { "__type__": "cc.Vec3", @@ -92,7 +86,7 @@ }, { "__type__": "cc.Node", - "_name": "shadow", + "_name": "anm", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -106,425 +100,18 @@ }, { "__id__": 5 + }, + { + "__id__": 7 } ], "_prefab": { - "__id__": 7 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 2.998, - "y": 5.996, - "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": 32, - "height": 12 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "56QOSNp6dNEZoqXQX1jgaP" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": true, - "__prefab": { - "__id__": 6 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@34d88", - "__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": "24sK9Bye1ODIrR6XHIm7H3" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "54bmzjmbZBCqwB7GRMpjtG", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "range_box", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 9 - }, - { - "__id__": 11 - }, - { - "__id__": 13 - }, - { - "__id__": 15 - } - ], - "_prefab": { - "__id__": 17 + "__id__": 9 }, "_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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 10 - }, - "_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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 12 - }, - "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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 14 - }, - "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__": "14659+HEzNG4Jt9acNpxvhS", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 16 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "96NAs0hL1BFrp1Uh40Q0qV" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "efBGnhxpVAs6aCGcg6inWm", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "buff_icons", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 19 - } - ], - "_prefab": { - "__id__": 21 - }, - "_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__": 18 - }, - "_enabled": true, - "__prefab": { - "__id__": 20 - }, - "_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": "anm", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 23 - }, - { - "__id__": 25 - }, - { - "__id__": 27 - } - ], - "_prefab": { - "__id__": 29 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, + "y": 69.272, "z": 0 }, "_lrot": { @@ -556,27 +143,27 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 2 }, "_enabled": true, "__prefab": { - "__id__": 24 + "__id__": 4 }, "_contentSize": { "__type__": "cc.Size", - "width": 84, - "height": 72 + "width": 256, + "height": 256 }, "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, - "y": 0 + "y": 0.5 }, "_id": "" }, { "__type__": "cc.CompPrefabInfo", - "fileId": "9eaEPPEkdKYYfWIxgJ1KbU" + "fileId": "5bdf3e3vREPJcnBLAgaSk/" }, { "__type__": "cc.Sprite", @@ -584,11 +171,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 2 }, "_enabled": true, "__prefab": { - "__id__": 26 + "__id__": 6 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -601,7 +188,7 @@ "a": 255 }, "_spriteFrame": { - "__uuid__": "c8898036-6fa8-4a34-ac67-29fa7a1eb4b8@9a470", + "__uuid__": "5c2f2d7e-fe72-430f-a56f-70280b5a0f49@49348", "__expectedType__": "cc.SpriteFrame" }, "_type": 0, @@ -621,7 +208,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "b8HXPqPhZMN71qxUdeHMKv" + "fileId": "f4lHhYobVKko3gjRgM2aLz" }, { "__type__": "cc.Animation", @@ -629,32 +216,32 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 2 }, "_enabled": true, "__prefab": { - "__id__": 28 + "__id__": 8 }, - "playOnLoad": true, + "playOnLoad": false, "_clips": [ { - "__uuid__": "4307478d-c25a-4ab6-85a8-c0c3fa54120c", + "__uuid__": "6f518925-6001-4d96-9911-ebd1d3b45b0d", "__expectedType__": "cc.AnimationClip" }, { - "__uuid__": "95f7b025-4a70-490a-9943-b098f23e524a", + "__uuid__": "e7d29c2b-877f-460f-b3d5-8991322c6791", "__expectedType__": "cc.AnimationClip" } ], "_defaultClip": { - "__uuid__": "95f7b025-4a70-490a-9943-b098f23e524a", + "__uuid__": "e7d29c2b-877f-460f-b3d5-8991322c6791", "__expectedType__": "cc.AnimationClip" }, "_id": "" }, { "__type__": "cc.CompPrefabInfo", - "fileId": "cc+VbiPudF9b+0zbBwUuPW" + "fileId": "7aR4G12k1JmLHSMg9Rf5kb" }, { "__type__": "cc.PrefabInfo", @@ -664,7 +251,7 @@ "asset": { "__id__": 0 }, - "fileId": "4aKyovCOhDJpr23Of35+5a", + "fileId": "056lIDPcRGA7Y7XD1Auf2C", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -676,14 +263,229 @@ "__id__": 1 }, "_prefab": { - "__id__": 31 + "__id__": 11 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 30 + "__id__": 10 + }, + "asset": { + "__uuid__": "e1b8a315-ece3-41a2-941e-a66861753f1b", + "__expectedType__": "cc.Prefab" + }, + "fileId": "c46/YsCPVOJYA4mWEpNYRx", + "instance": { + "__id__": 12 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "31fHh8RZRIgI+UjTD/71S9", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [], + "propertyOverrides": [ + { + "__id__": 13 + }, + { + "__id__": 15 + }, + { + "__id__": 16 + }, + { + "__id__": 17 + }, + { + "__id__": 18 + }, + { + "__id__": 19 + }, + { + "__id__": 20 + }, + { + "__id__": 22 + }, + { + "__id__": 24 + } + ], + "removedComponents": [] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 14 + }, + "propertyPath": [ + "_name" + ], + "value": "shielded" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "c46/YsCPVOJYA4mWEpNYRx" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 14 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 16.461, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 14 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 14 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 14 + }, + "propertyPath": [ + "_active" + ], + "value": false + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 14 + }, + "propertyPath": [ + "_lscale" + ], + "value": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 21 + }, + "propertyPath": [ + "_color" + ], + "value": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 192 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "9a+65VIghBm4HQxuHPQ/mg" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 23 + }, + "propertyPath": [ + "_lscale" + ], + "value": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "7a5LvbdlxEc6FKa7cun2oB" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 25 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 100, + "height": 110 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "b4sNQPJWFKha7x75SWXmRj" + ] + }, + { + "__type__": "cc.Node", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_prefab": { + "__id__": 27 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 26 }, "asset": { "__uuid__": "8e737767-609b-487c-bd47-8ef02f00e7ec", @@ -691,7 +493,7 @@ }, "fileId": "a3sRCQG4NNNK+lnXyMRQ9U", "instance": { - "__id__": 32 + "__id__": 28 }, "targetOverrides": null }, @@ -704,17 +506,20 @@ "mountedChildren": [], "mountedComponents": [], "propertyOverrides": [ + { + "__id__": 29 + }, + { + "__id__": 31 + }, + { + "__id__": 32 + }, { "__id__": 33 }, { - "__id__": 35 - }, - { - "__id__": 36 - }, - { - "__id__": 37 + "__id__": 34 } ], "removedComponents": [] @@ -722,7 +527,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 30 }, "propertyPath": [ "_name" @@ -738,7 +543,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 30 }, "propertyPath": [ "_lpos" @@ -746,14 +551,14 @@ "value": { "__type__": "cc.Vec3", "x": 0, - "y": 66.342, + "y": 151.256, "z": 0 } }, { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 30 }, "propertyPath": [ "_lrot" @@ -769,7 +574,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 30 }, "propertyPath": [ "_euler" @@ -781,6 +586,27 @@ "z": 0 } }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 35 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0.442, + "z": 0 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "bftbvGzZtHhIvb7hTSBu66" + ] + }, { "__type__": "cc.Node", "_objFlags": 0, @@ -788,14 +614,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 39 + "__id__": 37 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 38 + "__id__": 36 }, "asset": { "__uuid__": "bde94193-50e9-4505-a862-504f90c3ede3", @@ -803,7 +629,7 @@ }, "fileId": "ecbSjcDtdLKp/1HOuhFkWY", "instance": { - "__id__": 40 + "__id__": 38 }, "targetOverrides": null }, @@ -816,20 +642,20 @@ "mountedChildren": [], "mountedComponents": [], "propertyOverrides": [ + { + "__id__": 39 + }, { "__id__": 41 }, + { + "__id__": 42 + }, { "__id__": 43 }, { "__id__": 44 - }, - { - "__id__": 45 - }, - { - "__id__": 46 } ], "removedComponents": [] @@ -837,7 +663,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 40 }, "propertyPath": [ "_name" @@ -853,7 +679,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 40 }, "propertyPath": [ "_lpos" @@ -868,7 +694,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 40 }, "propertyPath": [ "_lrot" @@ -884,7 +710,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 40 }, "propertyPath": [ "_euler" @@ -899,7 +725,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 40 }, "propertyPath": [ "_active" @@ -913,14 +739,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 48 + "__id__": 46 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 47 + "__id__": 45 }, "asset": { "__uuid__": "3e8ca50b-1db9-4996-affc-9d57af3a12d7", @@ -928,7 +754,7 @@ }, "fileId": "c46/YsCPVOJYA4mWEpNYRx", "instance": { - "__id__": 49 + "__id__": 47 }, "targetOverrides": null }, @@ -941,17 +767,17 @@ "mountedChildren": [], "mountedComponents": [], "propertyOverrides": [ + { + "__id__": 48 + }, { "__id__": 50 }, + { + "__id__": 51 + }, { "__id__": 52 - }, - { - "__id__": 53 - }, - { - "__id__": 54 } ], "removedComponents": [] @@ -959,7 +785,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 49 }, "propertyPath": [ "_name" @@ -975,7 +801,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 49 }, "propertyPath": [ "_lpos" @@ -990,7 +816,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 49 }, "propertyPath": [ "_lrot" @@ -1006,7 +832,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 49 }, "propertyPath": [ "_euler" @@ -1028,7 +854,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 56 + "__id__": 54 }, "_contentSize": { "__type__": "cc.Size", @@ -1056,7 +882,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 58 + "__id__": 56 }, "enabledContactListener": true, "bullet": true, @@ -1090,7 +916,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 60 + "__id__": 58 }, "tag": 0, "_group": 2, @@ -1100,13 +926,13 @@ "_restitution": 0, "_offset": { "__type__": "cc.Vec2", - "x": 8.4, - "y": 29.4 + "x": -2.3, + "y": 73.8 }, "_size": { "__type__": "cc.Size", - "width": 43.9, - "height": 56.8 + "width": 75.1, + "height": 147.9 }, "_id": "" }, @@ -1115,7 +941,25 @@ "fileId": "b2Dt9lJI9FyJCDezkDBPBl" }, { - "__type__": "0ca2fcqDIxB14VyZzQopxU3", + "__type__": "2e4e58F+3lAG5N2fgBrnIJH", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 60 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "37/lO+NhhNiaJvfSyFL27u" + }, + { + "__type__": "3a589UqXExPOKZc6CVT/3/N", "_name": "", "_objFlags": 0, "__editorExtras__": {}, @@ -1126,39 +970,11 @@ "__prefab": { "__id__": 62 }, - "animator": { - "__id__": 27 - }, "_id": "" }, { "__type__": "cc.CompPrefabInfo", - "fileId": "8aSWuwkXhCZZjecJq8Mi8K" - }, - { - "__type__": "18359yeEjJKe669XNSeiC2G", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 64 - }, - "hitFlashMaterial": { - "__uuid__": "a8f34051-ccff-4050-b9d9-234f62977264", - "__expectedType__": "cc.Material" - }, - "BoxRang": { - "__id__": 8 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "91VJfYuZRBl76Iu3sucOsm" + "fileId": "65vFH4sfxPwptursCRTIYz" }, { "__type__": "cc.PrefabInfo", @@ -1173,13 +989,16 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": [ { - "__id__": 47 + "__id__": 45 }, { - "__id__": 38 + "__id__": 36 }, { - "__id__": 30 + "__id__": 26 + }, + { + "__id__": 10 } ] } diff --git a/assets/resources/game/monster/boos1.prefab.meta b/assets/resources/game/monster/boss1.prefab.meta similarity index 86% rename from assets/resources/game/monster/boos1.prefab.meta rename to assets/resources/game/monster/boss1.prefab.meta index 89cba49b..f15339d4 100644 --- a/assets/resources/game/monster/boos1.prefab.meta +++ b/assets/resources/game/monster/boss1.prefab.meta @@ -8,6 +8,6 @@ ], "subMetas": {}, "userData": { - "syncNodeName": "boos1" + "syncNodeName": "boss1" } } diff --git a/assets/resources/game/monster/du1.prefab b/assets/resources/game/monster/du1.prefab index 565f27d9..53ee966e 100644 --- a/assets/resources/game/monster/du1.prefab +++ b/assets/resources/game/monster/du1.prefab @@ -25,41 +25,38 @@ "__id__": 8 }, { - "__id__": 18 + "__id__": 12 }, { - "__id__": 22 + "__id__": 20 }, { - "__id__": 30 + "__id__": 28 }, { - "__id__": 38 - }, - { - "__id__": 47 + "__id__": 37 } ], "_active": true, "_components": [ { - "__id__": 55 + "__id__": 45 }, { - "__id__": 57 + "__id__": 47 }, { - "__id__": 59 + "__id__": 49 }, { - "__id__": 61 + "__id__": 51 }, { - "__id__": 63 + "__id__": 53 } ], "_prefab": { - "__id__": 65 + "__id__": 55 }, "_lpos": { "__type__": "cc.Vec3", @@ -228,7 +225,7 @@ }, { "__type__": "cc.Node", - "_name": "range_box", + "_name": "buff_icons", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -239,24 +236,15 @@ "_components": [ { "__id__": 9 - }, - { - "__id__": 11 - }, - { - "__id__": 13 - }, - { - "__id__": 15 } ], "_prefab": { - "__id__": 17 + "__id__": 11 }, "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 50, + "y": 0, "z": 0 }, "_lrot": { @@ -294,180 +282,6 @@ "__prefab": { "__id__": 10 }, - "_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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 12 - }, - "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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 14 - }, - "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__": "14659+HEzNG4Jt9acNpxvhS", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 16 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "96NAs0hL1BFrp1Uh40Q0qV" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "efBGnhxpVAs6aCGcg6inWm", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "buff_icons", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 19 - } - ], - "_prefab": { - "__id__": 21 - }, - "_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__": 18 - }, - "_enabled": true, - "__prefab": { - "__id__": 20 - }, "_contentSize": { "__type__": "cc.Size", "width": 100, @@ -509,17 +323,17 @@ "_active": true, "_components": [ { - "__id__": 23 + "__id__": 13 }, { - "__id__": 25 + "__id__": 15 }, { - "__id__": 27 + "__id__": 17 } ], "_prefab": { - "__id__": 29 + "__id__": 19 }, "_lpos": { "__type__": "cc.Vec3", @@ -556,11 +370,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 12 }, "_enabled": true, "__prefab": { - "__id__": 24 + "__id__": 14 }, "_contentSize": { "__type__": "cc.Size", @@ -584,11 +398,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 12 }, "_enabled": true, "__prefab": { - "__id__": 26 + "__id__": 16 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -629,11 +443,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 12 }, "_enabled": true, "__prefab": { - "__id__": 28 + "__id__": 18 }, "playOnLoad": true, "_clips": [ @@ -676,14 +490,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 31 + "__id__": 21 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 30 + "__id__": 20 }, "asset": { "__uuid__": "8e737767-609b-487c-bd47-8ef02f00e7ec", @@ -691,7 +505,7 @@ }, "fileId": "a3sRCQG4NNNK+lnXyMRQ9U", "instance": { - "__id__": 32 + "__id__": 22 }, "targetOverrides": null }, @@ -705,16 +519,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 33 + "__id__": 23 }, { - "__id__": 35 + "__id__": 25 }, { - "__id__": 36 + "__id__": 26 }, { - "__id__": 37 + "__id__": 27 } ], "removedComponents": [] @@ -722,7 +536,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 24 }, "propertyPath": [ "_name" @@ -738,7 +552,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 24 }, "propertyPath": [ "_lpos" @@ -753,7 +567,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 24 }, "propertyPath": [ "_lrot" @@ -769,7 +583,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 24 }, "propertyPath": [ "_euler" @@ -788,14 +602,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 39 + "__id__": 29 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 38 + "__id__": 28 }, "asset": { "__uuid__": "bde94193-50e9-4505-a862-504f90c3ede3", @@ -803,7 +617,7 @@ }, "fileId": "ecbSjcDtdLKp/1HOuhFkWY", "instance": { - "__id__": 40 + "__id__": 30 }, "targetOverrides": null }, @@ -817,19 +631,19 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 41 + "__id__": 31 }, { - "__id__": 43 + "__id__": 33 }, { - "__id__": 44 + "__id__": 34 }, { - "__id__": 45 + "__id__": 35 }, { - "__id__": 46 + "__id__": 36 } ], "removedComponents": [] @@ -837,7 +651,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_name" @@ -853,7 +667,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_lpos" @@ -868,7 +682,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_lrot" @@ -884,7 +698,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_euler" @@ -899,7 +713,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_active" @@ -913,14 +727,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 48 + "__id__": 38 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 47 + "__id__": 37 }, "asset": { "__uuid__": "3e8ca50b-1db9-4996-affc-9d57af3a12d7", @@ -928,7 +742,7 @@ }, "fileId": "c46/YsCPVOJYA4mWEpNYRx", "instance": { - "__id__": 49 + "__id__": 39 }, "targetOverrides": null }, @@ -942,16 +756,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 50 + "__id__": 40 }, { - "__id__": 52 + "__id__": 42 }, { - "__id__": 53 + "__id__": 43 }, { - "__id__": 54 + "__id__": 44 } ], "removedComponents": [] @@ -959,7 +773,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 41 }, "propertyPath": [ "_name" @@ -975,7 +789,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 41 }, "propertyPath": [ "_lpos" @@ -990,7 +804,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 41 }, "propertyPath": [ "_lrot" @@ -1006,7 +820,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 41 }, "propertyPath": [ "_euler" @@ -1028,7 +842,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 56 + "__id__": 46 }, "_contentSize": { "__type__": "cc.Size", @@ -1056,7 +870,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 58 + "__id__": 48 }, "enabledContactListener": true, "bullet": true, @@ -1090,7 +904,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 60 + "__id__": 50 }, "tag": 0, "_group": 2, @@ -1124,10 +938,10 @@ }, "_enabled": true, "__prefab": { - "__id__": 62 + "__id__": 52 }, "animator": { - "__id__": 27 + "__id__": 17 }, "_id": "" }, @@ -1145,15 +959,13 @@ }, "_enabled": true, "__prefab": { - "__id__": 64 + "__id__": 54 }, "hitFlashMaterial": { "__uuid__": "a8f34051-ccff-4050-b9d9-234f62977264", "__expectedType__": "cc.Material" }, - "BoxRang": { - "__id__": 8 - }, + "BoxRang": null, "_id": "" }, { @@ -1173,13 +985,13 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": [ { - "__id__": 47 + "__id__": 37 }, { - "__id__": 38 + "__id__": 28 }, { - "__id__": 30 + "__id__": 20 } ] } diff --git a/assets/resources/game/monster/du2.prefab b/assets/resources/game/monster/du2.prefab index 2f492a5b..dbc97533 100644 --- a/assets/resources/game/monster/du2.prefab +++ b/assets/resources/game/monster/du2.prefab @@ -25,41 +25,38 @@ "__id__": 8 }, { - "__id__": 18 + "__id__": 12 }, { - "__id__": 22 + "__id__": 20 }, { - "__id__": 30 + "__id__": 28 }, { - "__id__": 38 - }, - { - "__id__": 47 + "__id__": 37 } ], "_active": true, "_components": [ { - "__id__": 55 + "__id__": 45 }, { - "__id__": 57 + "__id__": 47 }, { - "__id__": 59 + "__id__": 49 }, { - "__id__": 61 + "__id__": 51 }, { - "__id__": 63 + "__id__": 53 } ], "_prefab": { - "__id__": 65 + "__id__": 55 }, "_lpos": { "__type__": "cc.Vec3", @@ -228,7 +225,7 @@ }, { "__type__": "cc.Node", - "_name": "range_box", + "_name": "buff_icons", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -239,24 +236,15 @@ "_components": [ { "__id__": 9 - }, - { - "__id__": 11 - }, - { - "__id__": 13 - }, - { - "__id__": 15 } ], "_prefab": { - "__id__": 17 + "__id__": 11 }, "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 50, + "y": 0, "z": 0 }, "_lrot": { @@ -294,180 +282,6 @@ "__prefab": { "__id__": 10 }, - "_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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 12 - }, - "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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 14 - }, - "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__": "14659+HEzNG4Jt9acNpxvhS", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 16 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "96NAs0hL1BFrp1Uh40Q0qV" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "efBGnhxpVAs6aCGcg6inWm", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "buff_icons", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 19 - } - ], - "_prefab": { - "__id__": 21 - }, - "_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__": 18 - }, - "_enabled": true, - "__prefab": { - "__id__": 20 - }, "_contentSize": { "__type__": "cc.Size", "width": 100, @@ -509,17 +323,17 @@ "_active": true, "_components": [ { - "__id__": 23 + "__id__": 13 }, { - "__id__": 25 + "__id__": 15 }, { - "__id__": 27 + "__id__": 17 } ], "_prefab": { - "__id__": 29 + "__id__": 19 }, "_lpos": { "__type__": "cc.Vec3", @@ -556,11 +370,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 12 }, "_enabled": true, "__prefab": { - "__id__": 24 + "__id__": 14 }, "_contentSize": { "__type__": "cc.Size", @@ -584,11 +398,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 12 }, "_enabled": true, "__prefab": { - "__id__": 26 + "__id__": 16 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -629,11 +443,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 12 }, "_enabled": true, "__prefab": { - "__id__": 28 + "__id__": 18 }, "playOnLoad": true, "_clips": [ @@ -676,14 +490,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 31 + "__id__": 21 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 30 + "__id__": 20 }, "asset": { "__uuid__": "8e737767-609b-487c-bd47-8ef02f00e7ec", @@ -691,7 +505,7 @@ }, "fileId": "a3sRCQG4NNNK+lnXyMRQ9U", "instance": { - "__id__": 32 + "__id__": 22 }, "targetOverrides": null }, @@ -705,16 +519,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 33 + "__id__": 23 }, { - "__id__": 35 + "__id__": 25 }, { - "__id__": 36 + "__id__": 26 }, { - "__id__": 37 + "__id__": 27 } ], "removedComponents": [] @@ -722,7 +536,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 24 }, "propertyPath": [ "_name" @@ -738,7 +552,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 24 }, "propertyPath": [ "_lpos" @@ -753,7 +567,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 24 }, "propertyPath": [ "_lrot" @@ -769,7 +583,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 24 }, "propertyPath": [ "_euler" @@ -788,14 +602,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 39 + "__id__": 29 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 38 + "__id__": 28 }, "asset": { "__uuid__": "bde94193-50e9-4505-a862-504f90c3ede3", @@ -803,7 +617,7 @@ }, "fileId": "ecbSjcDtdLKp/1HOuhFkWY", "instance": { - "__id__": 40 + "__id__": 30 }, "targetOverrides": null }, @@ -817,19 +631,19 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 41 + "__id__": 31 }, { - "__id__": 43 + "__id__": 33 }, { - "__id__": 44 + "__id__": 34 }, { - "__id__": 45 + "__id__": 35 }, { - "__id__": 46 + "__id__": 36 } ], "removedComponents": [] @@ -837,7 +651,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_name" @@ -853,7 +667,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_lpos" @@ -868,7 +682,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_lrot" @@ -884,7 +698,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_euler" @@ -899,7 +713,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_active" @@ -913,14 +727,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 48 + "__id__": 38 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 47 + "__id__": 37 }, "asset": { "__uuid__": "3e8ca50b-1db9-4996-affc-9d57af3a12d7", @@ -928,7 +742,7 @@ }, "fileId": "c46/YsCPVOJYA4mWEpNYRx", "instance": { - "__id__": 49 + "__id__": 39 }, "targetOverrides": null }, @@ -942,16 +756,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 50 + "__id__": 40 }, { - "__id__": 52 + "__id__": 42 }, { - "__id__": 53 + "__id__": 43 }, { - "__id__": 54 + "__id__": 44 } ], "removedComponents": [] @@ -959,7 +773,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 41 }, "propertyPath": [ "_name" @@ -975,7 +789,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 41 }, "propertyPath": [ "_lpos" @@ -990,7 +804,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 41 }, "propertyPath": [ "_lrot" @@ -1006,7 +820,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 41 }, "propertyPath": [ "_euler" @@ -1028,7 +842,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 56 + "__id__": 46 }, "_contentSize": { "__type__": "cc.Size", @@ -1056,7 +870,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 58 + "__id__": 48 }, "enabledContactListener": true, "bullet": true, @@ -1090,7 +904,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 60 + "__id__": 50 }, "tag": 0, "_group": 2, @@ -1124,10 +938,10 @@ }, "_enabled": true, "__prefab": { - "__id__": 62 + "__id__": 52 }, "animator": { - "__id__": 27 + "__id__": 17 }, "_id": "" }, @@ -1145,15 +959,13 @@ }, "_enabled": true, "__prefab": { - "__id__": 64 + "__id__": 54 }, "hitFlashMaterial": { "__uuid__": "a8f34051-ccff-4050-b9d9-234f62977264", "__expectedType__": "cc.Material" }, - "BoxRang": { - "__id__": 8 - }, + "BoxRang": null, "_id": "" }, { @@ -1173,13 +985,13 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": [ { - "__id__": 47 + "__id__": 37 }, { - "__id__": 38 + "__id__": 28 }, { - "__id__": 30 + "__id__": 20 } ] } diff --git a/assets/resources/game/monster/du3.prefab b/assets/resources/game/monster/du3.prefab index 4f043467..e1f37a8e 100644 --- a/assets/resources/game/monster/du3.prefab +++ b/assets/resources/game/monster/du3.prefab @@ -25,41 +25,38 @@ "__id__": 8 }, { - "__id__": 18 + "__id__": 12 }, { - "__id__": 22 + "__id__": 20 }, { - "__id__": 30 + "__id__": 28 }, { - "__id__": 38 - }, - { - "__id__": 47 + "__id__": 37 } ], "_active": true, "_components": [ { - "__id__": 55 + "__id__": 45 }, { - "__id__": 57 + "__id__": 47 }, { - "__id__": 59 + "__id__": 49 }, { - "__id__": 61 + "__id__": 51 }, { - "__id__": 63 + "__id__": 53 } ], "_prefab": { - "__id__": 65 + "__id__": 55 }, "_lpos": { "__type__": "cc.Vec3", @@ -228,7 +225,7 @@ }, { "__type__": "cc.Node", - "_name": "range_box", + "_name": "buff_icons", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -239,24 +236,15 @@ "_components": [ { "__id__": 9 - }, - { - "__id__": 11 - }, - { - "__id__": 13 - }, - { - "__id__": 15 } ], "_prefab": { - "__id__": 17 + "__id__": 11 }, "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 50, + "y": 0, "z": 0 }, "_lrot": { @@ -294,180 +282,6 @@ "__prefab": { "__id__": 10 }, - "_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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 12 - }, - "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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 14 - }, - "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__": "14659+HEzNG4Jt9acNpxvhS", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 16 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "96NAs0hL1BFrp1Uh40Q0qV" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "efBGnhxpVAs6aCGcg6inWm", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "buff_icons", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 19 - } - ], - "_prefab": { - "__id__": 21 - }, - "_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__": 18 - }, - "_enabled": true, - "__prefab": { - "__id__": 20 - }, "_contentSize": { "__type__": "cc.Size", "width": 100, @@ -509,17 +323,17 @@ "_active": true, "_components": [ { - "__id__": 23 + "__id__": 13 }, { - "__id__": 25 + "__id__": 15 }, { - "__id__": 27 + "__id__": 17 } ], "_prefab": { - "__id__": 29 + "__id__": 19 }, "_lpos": { "__type__": "cc.Vec3", @@ -556,11 +370,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 12 }, "_enabled": true, "__prefab": { - "__id__": 24 + "__id__": 14 }, "_contentSize": { "__type__": "cc.Size", @@ -584,11 +398,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 12 }, "_enabled": true, "__prefab": { - "__id__": 26 + "__id__": 16 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -629,11 +443,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 12 }, "_enabled": true, "__prefab": { - "__id__": 28 + "__id__": 18 }, "playOnLoad": true, "_clips": [ @@ -676,14 +490,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 31 + "__id__": 21 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 30 + "__id__": 20 }, "asset": { "__uuid__": "8e737767-609b-487c-bd47-8ef02f00e7ec", @@ -691,7 +505,7 @@ }, "fileId": "a3sRCQG4NNNK+lnXyMRQ9U", "instance": { - "__id__": 32 + "__id__": 22 }, "targetOverrides": null }, @@ -705,16 +519,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 33 + "__id__": 23 }, { - "__id__": 35 + "__id__": 25 }, { - "__id__": 36 + "__id__": 26 }, { - "__id__": 37 + "__id__": 27 } ], "removedComponents": [] @@ -722,7 +536,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 24 }, "propertyPath": [ "_name" @@ -738,7 +552,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 24 }, "propertyPath": [ "_lpos" @@ -753,7 +567,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 24 }, "propertyPath": [ "_lrot" @@ -769,7 +583,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 24 }, "propertyPath": [ "_euler" @@ -788,14 +602,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 39 + "__id__": 29 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 38 + "__id__": 28 }, "asset": { "__uuid__": "bde94193-50e9-4505-a862-504f90c3ede3", @@ -803,7 +617,7 @@ }, "fileId": "ecbSjcDtdLKp/1HOuhFkWY", "instance": { - "__id__": 40 + "__id__": 30 }, "targetOverrides": null }, @@ -817,19 +631,19 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 41 + "__id__": 31 }, { - "__id__": 43 + "__id__": 33 }, { - "__id__": 44 + "__id__": 34 }, { - "__id__": 45 + "__id__": 35 }, { - "__id__": 46 + "__id__": 36 } ], "removedComponents": [] @@ -837,7 +651,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_name" @@ -853,7 +667,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_lpos" @@ -868,7 +682,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_lrot" @@ -884,7 +698,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_euler" @@ -899,7 +713,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 32 }, "propertyPath": [ "_active" @@ -913,14 +727,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 48 + "__id__": 38 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 47 + "__id__": 37 }, "asset": { "__uuid__": "3e8ca50b-1db9-4996-affc-9d57af3a12d7", @@ -928,7 +742,7 @@ }, "fileId": "c46/YsCPVOJYA4mWEpNYRx", "instance": { - "__id__": 49 + "__id__": 39 }, "targetOverrides": null }, @@ -942,16 +756,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 50 + "__id__": 40 }, { - "__id__": 52 + "__id__": 42 }, { - "__id__": 53 + "__id__": 43 }, { - "__id__": 54 + "__id__": 44 } ], "removedComponents": [] @@ -959,7 +773,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 41 }, "propertyPath": [ "_name" @@ -975,7 +789,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 41 }, "propertyPath": [ "_lpos" @@ -990,7 +804,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 41 }, "propertyPath": [ "_lrot" @@ -1006,7 +820,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 41 }, "propertyPath": [ "_euler" @@ -1028,7 +842,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 56 + "__id__": 46 }, "_contentSize": { "__type__": "cc.Size", @@ -1056,7 +870,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 58 + "__id__": 48 }, "enabledContactListener": true, "bullet": true, @@ -1090,7 +904,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 60 + "__id__": 50 }, "tag": 0, "_group": 2, @@ -1124,10 +938,10 @@ }, "_enabled": true, "__prefab": { - "__id__": 62 + "__id__": 52 }, "animator": { - "__id__": 27 + "__id__": 17 }, "_id": "" }, @@ -1145,15 +959,13 @@ }, "_enabled": true, "__prefab": { - "__id__": 64 + "__id__": 54 }, "hitFlashMaterial": { "__uuid__": "a8f34051-ccff-4050-b9d9-234f62977264", "__expectedType__": "cc.Material" }, - "BoxRang": { - "__id__": 8 - }, + "BoxRang": null, "_id": "" }, { @@ -1173,13 +985,13 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": [ { - "__id__": 47 + "__id__": 37 }, { - "__id__": 38 + "__id__": 28 }, { - "__id__": 30 + "__id__": 20 } ] } diff --git a/assets/resources/game/monster/mon.prefab b/assets/resources/game/monster/mon.prefab index 283a15e4..4d96aa21 100644 --- a/assets/resources/game/monster/mon.prefab +++ b/assets/resources/game/monster/mon.prefab @@ -25,38 +25,35 @@ "__id__": 8 }, { - "__id__": 18 + "__id__": 16 }, { - "__id__": 26 + "__id__": 24 }, { - "__id__": 34 - }, - { - "__id__": 43 + "__id__": 33 } ], "_active": true, "_components": [ { - "__id__": 51 + "__id__": 41 }, { - "__id__": 53 + "__id__": 43 }, { - "__id__": 55 + "__id__": 45 }, { - "__id__": 57 + "__id__": 47 }, { - "__id__": 59 + "__id__": 49 } ], "_prefab": { - "__id__": 61 + "__id__": 51 }, "_lpos": { "__type__": "cc.Vec3", @@ -225,7 +222,7 @@ }, { "__type__": "cc.Node", - "_name": "range_box", + "_name": "anm", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -242,193 +239,10 @@ }, { "__id__": 13 - }, - { - "__id__": 15 } ], "_prefab": { - "__id__": 17 - }, - "_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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 10 - }, - "_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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 12 - }, - "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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 14 - }, - "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__": "14659+HEzNG4Jt9acNpxvhS", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 16 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "96NAs0hL1BFrp1Uh40Q0qV" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "efBGnhxpVAs6aCGcg6inWm", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "anm", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 19 - }, - { - "__id__": 21 - }, - { - "__id__": 23 - } - ], - "_prefab": { - "__id__": 25 + "__id__": 15 }, "_lpos": { "__type__": "cc.Vec3", @@ -465,11 +279,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 18 + "__id__": 8 }, "_enabled": true, "__prefab": { - "__id__": 20 + "__id__": 10 }, "_contentSize": { "__type__": "cc.Size", @@ -493,11 +307,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 18 + "__id__": 8 }, "_enabled": true, "__prefab": { - "__id__": 22 + "__id__": 12 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -535,11 +349,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 18 + "__id__": 8 }, "_enabled": true, "__prefab": { - "__id__": 24 + "__id__": 14 }, "playOnLoad": true, "_clips": [ @@ -573,14 +387,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 27 + "__id__": 17 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 26 + "__id__": 16 }, "asset": { "__uuid__": "8e737767-609b-487c-bd47-8ef02f00e7ec", @@ -588,7 +402,7 @@ }, "fileId": "a3sRCQG4NNNK+lnXyMRQ9U", "instance": { - "__id__": 28 + "__id__": 18 }, "targetOverrides": null }, @@ -602,16 +416,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 29 + "__id__": 19 }, { - "__id__": 31 + "__id__": 21 }, { - "__id__": 32 + "__id__": 22 }, { - "__id__": 33 + "__id__": 23 } ], "removedComponents": [] @@ -619,7 +433,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 30 + "__id__": 20 }, "propertyPath": [ "_name" @@ -635,7 +449,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 30 + "__id__": 20 }, "propertyPath": [ "_lpos" @@ -650,7 +464,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 30 + "__id__": 20 }, "propertyPath": [ "_lrot" @@ -666,7 +480,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 30 + "__id__": 20 }, "propertyPath": [ "_euler" @@ -685,14 +499,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 35 + "__id__": 25 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 34 + "__id__": 24 }, "asset": { "__uuid__": "bde94193-50e9-4505-a862-504f90c3ede3", @@ -700,7 +514,7 @@ }, "fileId": "ecbSjcDtdLKp/1HOuhFkWY", "instance": { - "__id__": 36 + "__id__": 26 }, "targetOverrides": null }, @@ -714,19 +528,19 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 37 + "__id__": 27 }, { - "__id__": 39 + "__id__": 29 }, { - "__id__": 40 + "__id__": 30 }, { - "__id__": 41 + "__id__": 31 }, { - "__id__": 42 + "__id__": 32 } ], "removedComponents": [] @@ -734,7 +548,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 38 + "__id__": 28 }, "propertyPath": [ "_name" @@ -750,7 +564,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 38 + "__id__": 28 }, "propertyPath": [ "_lpos" @@ -765,7 +579,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 38 + "__id__": 28 }, "propertyPath": [ "_lrot" @@ -781,7 +595,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 38 + "__id__": 28 }, "propertyPath": [ "_euler" @@ -796,7 +610,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 38 + "__id__": 28 }, "propertyPath": [ "_active" @@ -810,14 +624,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 44 + "__id__": 34 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 43 + "__id__": 33 }, "asset": { "__uuid__": "3e8ca50b-1db9-4996-affc-9d57af3a12d7", @@ -825,7 +639,7 @@ }, "fileId": "c46/YsCPVOJYA4mWEpNYRx", "instance": { - "__id__": 45 + "__id__": 35 }, "targetOverrides": null }, @@ -839,16 +653,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 46 + "__id__": 36 }, { - "__id__": 48 + "__id__": 38 }, { - "__id__": 49 + "__id__": 39 }, { - "__id__": 50 + "__id__": 40 } ], "removedComponents": [] @@ -856,7 +670,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 47 + "__id__": 37 }, "propertyPath": [ "_name" @@ -872,7 +686,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 47 + "__id__": 37 }, "propertyPath": [ "_lpos" @@ -887,7 +701,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 47 + "__id__": 37 }, "propertyPath": [ "_lrot" @@ -903,7 +717,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 47 + "__id__": 37 }, "propertyPath": [ "_euler" @@ -925,7 +739,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 52 + "__id__": 42 }, "_contentSize": { "__type__": "cc.Size", @@ -953,7 +767,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 54 + "__id__": 44 }, "enabledContactListener": true, "bullet": true, @@ -987,7 +801,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 56 + "__id__": 46 }, "tag": 0, "_group": 2, @@ -1021,10 +835,10 @@ }, "_enabled": true, "__prefab": { - "__id__": 58 + "__id__": 48 }, "animator": { - "__id__": 23 + "__id__": 13 }, "_id": "" }, @@ -1042,15 +856,13 @@ }, "_enabled": true, "__prefab": { - "__id__": 60 + "__id__": 50 }, "hitFlashMaterial": { "__uuid__": "a8f34051-ccff-4050-b9d9-234f62977264", "__expectedType__": "cc.Material" }, - "BoxRang": { - "__id__": 8 - }, + "BoxRang": null, "_id": "" }, { @@ -1070,13 +882,13 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": [ { - "__id__": 43 + "__id__": 33 }, { - "__id__": 34 + "__id__": 24 }, { - "__id__": 26 + "__id__": 16 } ] } diff --git a/assets/resources/game/monster/orc1.prefab b/assets/resources/game/monster/orc1.prefab index a626b38a..3d2bebb5 100644 --- a/assets/resources/game/monster/orc1.prefab +++ b/assets/resources/game/monster/orc1.prefab @@ -25,41 +25,35 @@ "__id__": 8 }, { - "__id__": 18 + "__id__": 16 }, { - "__id__": 22 + "__id__": 24 }, { - "__id__": 30 - }, - { - "__id__": 38 - }, - { - "__id__": 47 + "__id__": 33 } ], "_active": true, "_components": [ { - "__id__": 55 + "__id__": 41 }, { - "__id__": 57 + "__id__": 43 }, { - "__id__": 59 + "__id__": 45 }, { - "__id__": 61 + "__id__": 47 }, { - "__id__": 63 + "__id__": 49 } ], "_prefab": { - "__id__": 65 + "__id__": 51 }, "_lpos": { "__type__": "cc.Vec3", @@ -228,7 +222,7 @@ }, { "__type__": "cc.Node", - "_name": "range_box", + "_name": "anm", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -245,281 +239,10 @@ }, { "__id__": 13 - }, - { - "__id__": 15 } ], "_prefab": { - "__id__": 17 - }, - "_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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 10 - }, - "_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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 12 - }, - "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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 14 - }, - "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__": "14659+HEzNG4Jt9acNpxvhS", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 16 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "96NAs0hL1BFrp1Uh40Q0qV" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "efBGnhxpVAs6aCGcg6inWm", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "buff_icons", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 19 - } - ], - "_prefab": { - "__id__": 21 - }, - "_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__": 18 - }, - "_enabled": true, - "__prefab": { - "__id__": 20 - }, - "_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": "anm", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 23 - }, - { - "__id__": 25 - }, - { - "__id__": 27 - } - ], - "_prefab": { - "__id__": 29 + "__id__": 15 }, "_lpos": { "__type__": "cc.Vec3", @@ -556,11 +279,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 8 }, "_enabled": true, "__prefab": { - "__id__": 24 + "__id__": 10 }, "_contentSize": { "__type__": "cc.Size", @@ -584,11 +307,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 8 }, "_enabled": true, "__prefab": { - "__id__": 26 + "__id__": 12 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -629,11 +352,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 8 }, "_enabled": true, "__prefab": { - "__id__": 28 + "__id__": 14 }, "playOnLoad": true, "_clips": [ @@ -676,14 +399,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 31 + "__id__": 17 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 30 + "__id__": 16 }, "asset": { "__uuid__": "8e737767-609b-487c-bd47-8ef02f00e7ec", @@ -691,7 +414,7 @@ }, "fileId": "a3sRCQG4NNNK+lnXyMRQ9U", "instance": { - "__id__": 32 + "__id__": 18 }, "targetOverrides": null }, @@ -705,16 +428,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 33 + "__id__": 19 }, { - "__id__": 35 + "__id__": 21 }, { - "__id__": 36 + "__id__": 22 }, { - "__id__": 37 + "__id__": 23 } ], "removedComponents": [] @@ -722,7 +445,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 20 }, "propertyPath": [ "_name" @@ -738,7 +461,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 20 }, "propertyPath": [ "_lpos" @@ -753,7 +476,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 20 }, "propertyPath": [ "_lrot" @@ -769,7 +492,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 20 }, "propertyPath": [ "_euler" @@ -788,14 +511,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 39 + "__id__": 25 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 38 + "__id__": 24 }, "asset": { "__uuid__": "bde94193-50e9-4505-a862-504f90c3ede3", @@ -803,7 +526,7 @@ }, "fileId": "ecbSjcDtdLKp/1HOuhFkWY", "instance": { - "__id__": 40 + "__id__": 26 }, "targetOverrides": null }, @@ -817,19 +540,19 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 41 + "__id__": 27 }, { - "__id__": 43 + "__id__": 29 }, { - "__id__": 44 + "__id__": 30 }, { - "__id__": 45 + "__id__": 31 }, { - "__id__": 46 + "__id__": 32 } ], "removedComponents": [] @@ -837,7 +560,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_name" @@ -853,7 +576,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_lpos" @@ -868,7 +591,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_lrot" @@ -884,7 +607,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_euler" @@ -899,7 +622,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_active" @@ -913,14 +636,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 48 + "__id__": 34 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 47 + "__id__": 33 }, "asset": { "__uuid__": "3e8ca50b-1db9-4996-affc-9d57af3a12d7", @@ -928,7 +651,7 @@ }, "fileId": "c46/YsCPVOJYA4mWEpNYRx", "instance": { - "__id__": 49 + "__id__": 35 }, "targetOverrides": null }, @@ -942,16 +665,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 50 + "__id__": 36 }, { - "__id__": 52 + "__id__": 38 }, { - "__id__": 53 + "__id__": 39 }, { - "__id__": 54 + "__id__": 40 } ], "removedComponents": [] @@ -959,7 +682,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 37 }, "propertyPath": [ "_name" @@ -975,7 +698,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 37 }, "propertyPath": [ "_lpos" @@ -990,7 +713,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 37 }, "propertyPath": [ "_lrot" @@ -1006,7 +729,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 37 }, "propertyPath": [ "_euler" @@ -1028,7 +751,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 56 + "__id__": 42 }, "_contentSize": { "__type__": "cc.Size", @@ -1056,7 +779,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 58 + "__id__": 44 }, "enabledContactListener": true, "bullet": true, @@ -1090,7 +813,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 60 + "__id__": 46 }, "tag": 0, "_group": 2, @@ -1124,10 +847,10 @@ }, "_enabled": true, "__prefab": { - "__id__": 62 + "__id__": 48 }, "animator": { - "__id__": 27 + "__id__": 13 }, "_id": "" }, @@ -1145,15 +868,13 @@ }, "_enabled": true, "__prefab": { - "__id__": 64 + "__id__": 50 }, "hitFlashMaterial": { "__uuid__": "a8f34051-ccff-4050-b9d9-234f62977264", "__expectedType__": "cc.Material" }, - "BoxRang": { - "__id__": 8 - }, + "BoxRang": null, "_id": "" }, { @@ -1173,13 +894,13 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": [ { - "__id__": 47 + "__id__": 33 }, { - "__id__": 38 + "__id__": 24 }, { - "__id__": 30 + "__id__": 16 } ] } diff --git a/assets/resources/game/monster/orc2.prefab b/assets/resources/game/monster/orc2.prefab index e5ef2157..19e95f12 100644 --- a/assets/resources/game/monster/orc2.prefab +++ b/assets/resources/game/monster/orc2.prefab @@ -25,41 +25,35 @@ "__id__": 8 }, { - "__id__": 18 + "__id__": 16 }, { - "__id__": 22 + "__id__": 24 }, { - "__id__": 30 - }, - { - "__id__": 38 - }, - { - "__id__": 47 + "__id__": 33 } ], "_active": true, "_components": [ { - "__id__": 55 + "__id__": 41 }, { - "__id__": 57 + "__id__": 43 }, { - "__id__": 59 + "__id__": 45 }, { - "__id__": 61 + "__id__": 47 }, { - "__id__": 63 + "__id__": 49 } ], "_prefab": { - "__id__": 65 + "__id__": 51 }, "_lpos": { "__type__": "cc.Vec3", @@ -228,7 +222,7 @@ }, { "__type__": "cc.Node", - "_name": "range_box", + "_name": "anm", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -245,281 +239,10 @@ }, { "__id__": 13 - }, - { - "__id__": 15 } ], "_prefab": { - "__id__": 17 - }, - "_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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 10 - }, - "_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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 12 - }, - "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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 14 - }, - "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__": "14659+HEzNG4Jt9acNpxvhS", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 16 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "96NAs0hL1BFrp1Uh40Q0qV" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "efBGnhxpVAs6aCGcg6inWm", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "buff_icons", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 19 - } - ], - "_prefab": { - "__id__": 21 - }, - "_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__": 18 - }, - "_enabled": true, - "__prefab": { - "__id__": 20 - }, - "_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": "anm", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 23 - }, - { - "__id__": 25 - }, - { - "__id__": 27 - } - ], - "_prefab": { - "__id__": 29 + "__id__": 15 }, "_lpos": { "__type__": "cc.Vec3", @@ -556,11 +279,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 8 }, "_enabled": true, "__prefab": { - "__id__": 24 + "__id__": 10 }, "_contentSize": { "__type__": "cc.Size", @@ -584,11 +307,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 8 }, "_enabled": true, "__prefab": { - "__id__": 26 + "__id__": 12 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -629,11 +352,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 8 }, "_enabled": true, "__prefab": { - "__id__": 28 + "__id__": 14 }, "playOnLoad": false, "_clips": [ @@ -676,14 +399,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 31 + "__id__": 17 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 30 + "__id__": 16 }, "asset": { "__uuid__": "8e737767-609b-487c-bd47-8ef02f00e7ec", @@ -691,7 +414,7 @@ }, "fileId": "a3sRCQG4NNNK+lnXyMRQ9U", "instance": { - "__id__": 32 + "__id__": 18 }, "targetOverrides": null }, @@ -705,16 +428,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 33 + "__id__": 19 }, { - "__id__": 35 + "__id__": 21 }, { - "__id__": 36 + "__id__": 22 }, { - "__id__": 37 + "__id__": 23 } ], "removedComponents": [] @@ -722,7 +445,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 20 }, "propertyPath": [ "_name" @@ -738,7 +461,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 20 }, "propertyPath": [ "_lpos" @@ -753,7 +476,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 20 }, "propertyPath": [ "_lrot" @@ -769,7 +492,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 20 }, "propertyPath": [ "_euler" @@ -788,14 +511,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 39 + "__id__": 25 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 38 + "__id__": 24 }, "asset": { "__uuid__": "bde94193-50e9-4505-a862-504f90c3ede3", @@ -803,7 +526,7 @@ }, "fileId": "ecbSjcDtdLKp/1HOuhFkWY", "instance": { - "__id__": 40 + "__id__": 26 }, "targetOverrides": null }, @@ -817,19 +540,19 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 41 + "__id__": 27 }, { - "__id__": 43 + "__id__": 29 }, { - "__id__": 44 + "__id__": 30 }, { - "__id__": 45 + "__id__": 31 }, { - "__id__": 46 + "__id__": 32 } ], "removedComponents": [] @@ -837,7 +560,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_name" @@ -853,7 +576,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_lpos" @@ -868,7 +591,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_lrot" @@ -884,7 +607,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_euler" @@ -899,7 +622,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_active" @@ -913,14 +636,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 48 + "__id__": 34 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 47 + "__id__": 33 }, "asset": { "__uuid__": "3e8ca50b-1db9-4996-affc-9d57af3a12d7", @@ -928,7 +651,7 @@ }, "fileId": "c46/YsCPVOJYA4mWEpNYRx", "instance": { - "__id__": 49 + "__id__": 35 }, "targetOverrides": null }, @@ -942,16 +665,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 50 + "__id__": 36 }, { - "__id__": 52 + "__id__": 38 }, { - "__id__": 53 + "__id__": 39 }, { - "__id__": 54 + "__id__": 40 } ], "removedComponents": [] @@ -959,7 +682,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 37 }, "propertyPath": [ "_name" @@ -975,7 +698,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 37 }, "propertyPath": [ "_lpos" @@ -990,7 +713,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 37 }, "propertyPath": [ "_lrot" @@ -1006,7 +729,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 37 }, "propertyPath": [ "_euler" @@ -1028,7 +751,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 56 + "__id__": 42 }, "_contentSize": { "__type__": "cc.Size", @@ -1056,7 +779,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 58 + "__id__": 44 }, "enabledContactListener": true, "bullet": true, @@ -1090,7 +813,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 60 + "__id__": 46 }, "tag": 0, "_group": 2, @@ -1124,10 +847,10 @@ }, "_enabled": true, "__prefab": { - "__id__": 62 + "__id__": 48 }, "animator": { - "__id__": 27 + "__id__": 13 }, "_id": "" }, @@ -1145,15 +868,13 @@ }, "_enabled": true, "__prefab": { - "__id__": 64 + "__id__": 50 }, "hitFlashMaterial": { "__uuid__": "a8f34051-ccff-4050-b9d9-234f62977264", "__expectedType__": "cc.Material" }, - "BoxRang": { - "__id__": 8 - }, + "BoxRang": null, "_id": "" }, { @@ -1173,13 +894,13 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": [ { - "__id__": 47 + "__id__": 33 }, { - "__id__": 38 + "__id__": 24 }, { - "__id__": 30 + "__id__": 16 } ] } diff --git a/assets/resources/game/monster/orc3.prefab b/assets/resources/game/monster/orc3.prefab index 0337717a..6e0815bc 100644 --- a/assets/resources/game/monster/orc3.prefab +++ b/assets/resources/game/monster/orc3.prefab @@ -25,41 +25,35 @@ "__id__": 8 }, { - "__id__": 18 + "__id__": 16 }, { - "__id__": 22 + "__id__": 24 }, { - "__id__": 30 - }, - { - "__id__": 38 - }, - { - "__id__": 47 + "__id__": 33 } ], "_active": true, "_components": [ { - "__id__": 55 + "__id__": 41 }, { - "__id__": 57 + "__id__": 43 }, { - "__id__": 59 + "__id__": 45 }, { - "__id__": 61 + "__id__": 47 }, { - "__id__": 63 + "__id__": 49 } ], "_prefab": { - "__id__": 65 + "__id__": 51 }, "_lpos": { "__type__": "cc.Vec3", @@ -228,7 +222,7 @@ }, { "__type__": "cc.Node", - "_name": "range_box", + "_name": "anm", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -245,281 +239,10 @@ }, { "__id__": 13 - }, - { - "__id__": 15 } ], "_prefab": { - "__id__": 17 - }, - "_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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 10 - }, - "_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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 12 - }, - "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__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 14 - }, - "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__": "14659+HEzNG4Jt9acNpxvhS", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 16 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "96NAs0hL1BFrp1Uh40Q0qV" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "efBGnhxpVAs6aCGcg6inWm", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "buff_icons", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 19 - } - ], - "_prefab": { - "__id__": 21 - }, - "_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__": 18 - }, - "_enabled": true, - "__prefab": { - "__id__": 20 - }, - "_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": "anm", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 23 - }, - { - "__id__": 25 - }, - { - "__id__": 27 - } - ], - "_prefab": { - "__id__": 29 + "__id__": 15 }, "_lpos": { "__type__": "cc.Vec3", @@ -556,11 +279,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 8 }, "_enabled": true, "__prefab": { - "__id__": 24 + "__id__": 10 }, "_contentSize": { "__type__": "cc.Size", @@ -584,11 +307,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 8 }, "_enabled": true, "__prefab": { - "__id__": 26 + "__id__": 12 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -629,11 +352,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 8 }, "_enabled": true, "__prefab": { - "__id__": 28 + "__id__": 14 }, "playOnLoad": true, "_clips": [ @@ -676,14 +399,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 31 + "__id__": 17 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 30 + "__id__": 16 }, "asset": { "__uuid__": "8e737767-609b-487c-bd47-8ef02f00e7ec", @@ -691,7 +414,7 @@ }, "fileId": "a3sRCQG4NNNK+lnXyMRQ9U", "instance": { - "__id__": 32 + "__id__": 18 }, "targetOverrides": null }, @@ -705,16 +428,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 33 + "__id__": 19 }, { - "__id__": 35 + "__id__": 21 }, { - "__id__": 36 + "__id__": 22 }, { - "__id__": 37 + "__id__": 23 } ], "removedComponents": [] @@ -722,7 +445,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 20 }, "propertyPath": [ "_name" @@ -738,7 +461,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 20 }, "propertyPath": [ "_lpos" @@ -753,7 +476,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 20 }, "propertyPath": [ "_lrot" @@ -769,7 +492,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 34 + "__id__": 20 }, "propertyPath": [ "_euler" @@ -788,14 +511,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 39 + "__id__": 25 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 38 + "__id__": 24 }, "asset": { "__uuid__": "bde94193-50e9-4505-a862-504f90c3ede3", @@ -803,7 +526,7 @@ }, "fileId": "ecbSjcDtdLKp/1HOuhFkWY", "instance": { - "__id__": 40 + "__id__": 26 }, "targetOverrides": null }, @@ -817,19 +540,19 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 41 + "__id__": 27 }, { - "__id__": 43 + "__id__": 29 }, { - "__id__": 44 + "__id__": 30 }, { - "__id__": 45 + "__id__": 31 }, { - "__id__": 46 + "__id__": 32 } ], "removedComponents": [] @@ -837,7 +560,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_name" @@ -853,7 +576,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_lpos" @@ -868,7 +591,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_lrot" @@ -884,7 +607,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_euler" @@ -899,7 +622,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 42 + "__id__": 28 }, "propertyPath": [ "_active" @@ -913,14 +636,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 48 + "__id__": 34 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 47 + "__id__": 33 }, "asset": { "__uuid__": "3e8ca50b-1db9-4996-affc-9d57af3a12d7", @@ -928,7 +651,7 @@ }, "fileId": "c46/YsCPVOJYA4mWEpNYRx", "instance": { - "__id__": 49 + "__id__": 35 }, "targetOverrides": null }, @@ -942,16 +665,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 50 + "__id__": 36 }, { - "__id__": 52 + "__id__": 38 }, { - "__id__": 53 + "__id__": 39 }, { - "__id__": 54 + "__id__": 40 } ], "removedComponents": [] @@ -959,7 +682,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 37 }, "propertyPath": [ "_name" @@ -975,7 +698,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 37 }, "propertyPath": [ "_lpos" @@ -990,7 +713,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 37 }, "propertyPath": [ "_lrot" @@ -1006,7 +729,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 51 + "__id__": 37 }, "propertyPath": [ "_euler" @@ -1028,7 +751,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 56 + "__id__": 42 }, "_contentSize": { "__type__": "cc.Size", @@ -1056,7 +779,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 58 + "__id__": 44 }, "enabledContactListener": true, "bullet": true, @@ -1090,7 +813,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 60 + "__id__": 46 }, "tag": 0, "_group": 2, @@ -1124,10 +847,10 @@ }, "_enabled": true, "__prefab": { - "__id__": 62 + "__id__": 48 }, "animator": { - "__id__": 27 + "__id__": 13 }, "_id": "" }, @@ -1145,15 +868,13 @@ }, "_enabled": true, "__prefab": { - "__id__": 64 + "__id__": 50 }, "hitFlashMaterial": { "__uuid__": "a8f34051-ccff-4050-b9d9-234f62977264", "__expectedType__": "cc.Material" }, - "BoxRang": { - "__id__": 8 - }, + "BoxRang": null, "_id": "" }, { @@ -1173,13 +894,13 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": [ { - "__id__": 47 + "__id__": 33 }, { - "__id__": 38 + "__id__": 24 }, { - "__id__": 30 + "__id__": 16 } ] } diff --git a/assets/resources/game/monster/range_box.prefab b/assets/resources/game/monster/range_box.prefab new file mode 100644 index 00000000..f6ede669 --- /dev/null +++ b/assets/resources/game/monster/range_box.prefab @@ -0,0 +1,193 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "range_box", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "range_box", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 2 + }, + { + "__id__": 4 + }, + { + "__id__": 6 + }, + { + "__id__": 8 + } + ], + "_prefab": { + "__id__": 10 + }, + "_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__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 3 + }, + "_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__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 5 + }, + "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__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 7 + }, + "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__": "14659+HEzNG4Jt9acNpxvhS", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 9 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "96NAs0hL1BFrp1Uh40Q0qV" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "efBGnhxpVAs6aCGcg6inWm", + "targetOverrides": null + } +] \ No newline at end of file diff --git a/assets/resources/game/monster/range_box.prefab.meta b/assets/resources/game/monster/range_box.prefab.meta new file mode 100644 index 00000000..d01aed84 --- /dev/null +++ b/assets/resources/game/monster/range_box.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "9ac92a22-c016-425f-a2e1-58d75073c437", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "range_box" + } +} diff --git a/assets/script/game/Boss.meta b/assets/script/game/Boss.meta new file mode 100644 index 00000000..5db0ecf1 --- /dev/null +++ b/assets/script/game/Boss.meta @@ -0,0 +1 @@ +{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"59681a02-4a5e-464a-a391-21c0ad9a20e7","files":[],"subMetas":{},"userData":{}} diff --git a/assets/script/game/Boss/Boss.ts b/assets/script/game/Boss/Boss.ts new file mode 100644 index 00000000..6205d3e7 --- /dev/null +++ b/assets/script/game/Boss/Boss.ts @@ -0,0 +1,94 @@ + +/* + * @Author: dgflash + * @Date: 2021-11-18 17:47:56 + * @LastEditors: dgflash + * @LastEditTime: 2022-08-04 15:43:04 + */ +import { instantiate, Node, Prefab, tween, Vec3,Label,resources ,SpriteAtlas,Sprite,v3} 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 { BossModelComp } from "./BossModelComp"; +import { BossSpine } from "./BossSpine"; +import { MoveToComp } from "../common/ecs/position/MoveTo"; +import { BossViewComp } from "./BossViewComp"; +import { BoxSet } from "../common/config/BoxSet"; +import { MonSet } from "../common/config/heroSet"; +/** 角色实体 */ +@ecs.register(`Boss`) +export class Boss extends ecs.Entity { + // 数据层 + BossModel!: BossModelComp; + BossMoveTo!: MoveToComp; // 移动 + + // 视图层 + BossView!: BossViewComp; + + protected init() { + this.addComponents( + BossModelComp); + } + + destroy(): void { + this.remove(BossViewComp); + 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/"+MonSet[uuid].path; + var prefab: Prefab = oops.res.get(path, Prefab)!; + var node = instantiate(prefab); + node.parent=layer + // var as = node.getComponent(MonSpine); + // let ratio=this.set_ratio(uuid); + // node.setScale(node.scale.x*scale*ratio, node.scale.y*ratio, 0); + node.setPosition(pos) + this.hero_init(uuid,node) + oops.message.dispatchEvent("mon_load",this) + } + set_ratio(uuid:number){ + let ratio=1; + switch (MonSet[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 bs = node.getComponent(BossViewComp)!; + // console.log("hero_init",buff) + bs.speed =bs.ospeed = smc.monsters[uuid].speed; + bs.hero_name= smc.monsters[uuid].name; + bs.hp= bs.hp_max = smc.monsters[uuid].hp; + bs.level = smc.monsters[uuid].level; + bs.atk = smc.monsters[uuid].atk; + bs.atk_cd = smc.monsters[uuid].atk_cd; + bs.atk_dis = smc.monsters[uuid].atk_dis; + bs.power = smc.monsters[uuid].power; + bs.power_max = smc.monsters[uuid].power_max; + + bs.type = smc.monsters[uuid].type; + bs.scale = -1; + bs.Tpos = v3(0,0,0); + this.add(bs); + } + + + +} \ No newline at end of file diff --git a/assets/script/game/Boss/Boss.ts.meta b/assets/script/game/Boss/Boss.ts.meta new file mode 100644 index 00000000..6f10ed55 --- /dev/null +++ b/assets/script/game/Boss/Boss.ts.meta @@ -0,0 +1 @@ +{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"dc2a1db4-c531-4d4b-8de4-318efb5dbf58","files":[],"subMetas":{},"userData":{}} diff --git a/assets/script/game/Boss/BossModelComp.ts b/assets/script/game/Boss/BossModelComp.ts new file mode 100644 index 00000000..0e20aa3d --- /dev/null +++ b/assets/script/game/Boss/BossModelComp.ts @@ -0,0 +1,27 @@ +/* + * @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('BossModel') +export class BossModelComp extends ecs.Comp { + /** 角色编号 */ + id: number = -1; + + /** 角色名 */ + name: string = "Boss"; + + /** 动画名资源 */ + anim: string = "Boss"; + + reset() { + this.id = -1; + this.name = ""; + } +} diff --git a/assets/script/game/Boss/BossModelComp.ts.meta b/assets/script/game/Boss/BossModelComp.ts.meta new file mode 100644 index 00000000..172fb175 --- /dev/null +++ b/assets/script/game/Boss/BossModelComp.ts.meta @@ -0,0 +1 @@ +{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"258ce138-d7ba-4393-ad1c-fc037fb912e1","files":[],"subMetas":{},"userData":{}} diff --git a/assets/script/game/Boss/BossSpine.ts b/assets/script/game/Boss/BossSpine.ts new file mode 100644 index 00000000..b8e0eb58 --- /dev/null +++ b/assets/script/game/Boss/BossSpine.ts @@ -0,0 +1,56 @@ +/* + * @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 ,Animation, AnimationClip, AnimationState} from "cc"; +import { LayerUtil } from "../../../../extensions/oops-plugin-framework/assets/core/utils/LayerUtil"; +import { smc } from "../common/SingletonModuleComp"; + +const { ccclass, property } = _decorator; + +/** + * RPG SPINE角色模型 + */ +@ccclass('BossSpine') +export class BossSpine extends Component { + private loop: boolean = true; + private spine!: sp.Skeleton; + private default:string = "idle"; + private atk_name: string = "atk"; + private move_name: string = "move"; + private max_name: string = "max"; + private idel_name: string = "idle"; + start() { + this.spine.setAnimation(0, this.default, true); + } + mixTime:number= 0.2; + + onLoad() { + this.spine = this.node.getChildByName("anm")!.getComponent(sp.Skeleton); + this.spine.setEndListener(trackEntry => { + var animationName = trackEntry.animation ? trackEntry.animation.name : ""; + // console.log("[track %s][animation %s] end.", trackEntry.trackIndex, animationName); + if (animationName == "atk" || animationName== "max" ) { + this.spine.setAnimation(0, this.default, true); + } + }); + } + protected play(animName: string, loop: boolean) { + + } + atk(){ + this.spine.setAnimation(0, this.atk_name, false); + } + idle(){ + this.spine.setAnimation(0, this.idel_name, true); + } + move(){ + this.spine.setAnimation(0, this.move_name, true); + } + max(){ + this.spine.setAnimation(0, this.max_name, false); + } + +} diff --git a/assets/script/game/Boss/BossSpine.ts.meta b/assets/script/game/Boss/BossSpine.ts.meta new file mode 100644 index 00000000..09f0cf0c --- /dev/null +++ b/assets/script/game/Boss/BossSpine.ts.meta @@ -0,0 +1 @@ +{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"3a58952a-5c4c-4f38-a65c-e82553ff7fcd","files":[],"subMetas":{},"userData":{}} diff --git a/assets/script/game/Boss/BossViewComp.ts b/assets/script/game/Boss/BossViewComp.ts new file mode 100644 index 00000000..e2ee6dd0 --- /dev/null +++ b/assets/script/game/Boss/BossViewComp.ts @@ -0,0 +1,454 @@ +/* + * @Author: dgflash + * @Date: 2021-11-18 17:42:59 + * @LastEditors: dgflash + * @LastEditTime: 2022-08-17 12:36:18 + */ + +import { Vec3, v3,_decorator ,Collider2D,Contact2DType,Label,Node,Prefab,instantiate,ProgressBar, Component, Material, Sprite,Animation, director, Vertex} 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 { BossSpine } from "./BossSpine"; +import {BoxSet} from "../common/config/BoxSet" +import { smc } from "../common/SingletonModuleComp"; +import { SkillCom } from "../skills/SkillCom"; +import { Skill } from "../skills/Skill"; +import { SkillSet } from "../common/config/SkillSet"; +import { Timer } from "../../../../extensions/oops-plugin-framework/assets/core/common/timer/Timer"; +import { RandomManager } from "../../../../extensions/oops-plugin-framework/assets/core/common/random/RandomManager"; +import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; +import { MoveToComp } from "../common/ecs/position/MoveTo"; +import { Tooltip } from "../skills/Tooltip"; +import { MonViewComp } from "../mon/MonViewComp"; +const { ccclass, property } = _decorator; + +/** 角色显示组件 */ +@ccclass('BossViewComp') // 定义为 Cocos Creator 组件 +@ecs.register('BossView', false) // 定义为 ECS 组件 +export class BossViewComp extends CCComp { + @property(Material) + hitFlashMaterial: Material; + orginalFlashMaterial: Material; + @property(Material) + atkMaterial: Material; + sprite: Sprite; + /** 角色动画 */ + + + as:BossSpine =null!; + is_role:boolean = false; + enemy_pos:Vec3=null!; + enemy:any=null!; + atk_enemy:any=null!; + neraster_enemy:any=null!; + /** 角色动画 */ + hero_uuid:number = 1001; + hero_name : string = "role"; + level:number =1; + scale: number = 1; /** 角色阵营 1:hero -1 :monster */ + 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:8001; + skills:{ + 1:{uuid:8001,cd:2,alive:true }, + 2:{uuid:8001,cd:2,alive:false}, + 3:{uuid:8001,cd:2,alive:false}, + 4:{uuid:8001,cd:2,alive:false}, + 5:{uuid:8001,cd:2,alive:false}, + } + buff_atks:any = []; + buff_atk:number = 0; + + atk: number = 10; /**攻击力 */ + mission_atk:number = 0;//局内攻击 + // atk_speed: number = 1; + atk_cd: number = 1.3; /**攻击速度 攻击间隔 */ + atk_dis: number = 800; + 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 = BoxSet.HERO; + atk_range:number = 150; + private timer:Timer = new Timer(0.1); //计时器 + is_dead:boolean = false; //是否摧毁 + is_stop:boolean = false; + is_atking:boolean = false; + type:number = 0; + onLoad() { + // this.BoxRang = this.node.getChildByName("range_box"); + this.as = this.node.getComponent(BossSpine); + + } + start () { + // this.sprite = this.node.getChildByName("hero").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.node.setSiblingIndex(100) + + + // 注册单个碰撞体的回调函数 + 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); + } + } + 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&&selfCollider.tag==otherCollider.tag){ + + if(selfCollider.node.position.y < otherCollider.node.position.y){ + if(selfCollider.node.getSiblingIndex() < otherCollider.node.getSiblingIndex()){ + + selfCollider.node.setSiblingIndex(otherCollider.node.getSiblingIndex()+1) + // console.log("onPreSolve b:"+selfCollider.node.uuid+":"+selfCollider.node.getSiblingIndex()+"/"+otherCollider.node.uuid+":"+otherCollider.node.getSiblingIndex()); + } + + } + } + + } + 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.in_destroy(); + this.check_buff_atks(dt) + this.in_shield(dt); + this.in_stop(dt); + this.atk_time += dt; + this.in_atk(); + // this.move(); + this.check_enemys() + } + check_enemys(){ + let enemys=ecs.query(ecs.allOf(MonViewComp)); + if(enemys.length > 0){ + let x= 720 + for (let i = 0; i < enemys.length; i++) { + let enemy:any = enemys[i]; + if(!enemy.MonView) continue + let node=enemy.MonView.node + if(node.isValid){ + if(node.position.x < x){ + x=node.position.x + this.enemy = node.position; + } + } + } + }else{ + this.enemy = v3(720,this.node.position.y); + } + } + move(){ + if(this.stop_cd > 0){ + return + } + if(this.enemy){ + this.move_to(this.enemy.position) + }else{ + this.move_to(v3(0,0)); + } + } + move_to(enemy:Vec3){ + // console.log("move to ",enemy); + var move = this.ent.get(MoveToComp) || this.ent.add(MoveToComp); + move.target = v3(enemy.x-100,enemy.y); + move.node = this.node; + move.speed = this.ospeed; + if(enemy.x < this.node.position.x){ + this.node.setScale(-1,1); + }else{ + this.node.setScale(1,1); + } + } + shoot(skill_uuid:number,y:number=0,x:number=0){ + // console.log("mon shoot"); + let skill = ecs.getEntity(Skill); + let atk = smc.skills[skill_uuid].atk+this.atk+this.buff_atk+this.mission_atk; + let {pos,t_pos}=this.get_enemy_pos() + pos.y=pos.y + y + pos.x=pos.x + x + skill.load(pos,BoxSet.HERO,this.node,skill_uuid,atk,t_pos); + // this.tooltip(3,smc.skills[skill_uuid].name,this.skill_uuid); + } + //使用max_skill + + get_enemy_pos(){ + let pos = v3(0,50) + let t_pos:Vec3 = v3(0,0) + if(this.enemy){ + t_pos = v3(this.enemy.x-this.node.position.x,this.enemy.y-this.node.position.y) + }else{ + t_pos=v3(720,0) + } + return {pos,t_pos} + } + check_enemy_alive(){ + if(this.enemy){ + if(!this.enemy.isValid){ + return false + } + return true + }else{ + return false + } + } + in_atk() { + if(this.atk_time >= this.atk_cd){ + // if(this.is_atking&&this.check_enemy_alive()){ + // this.atk_time = 0; + // // console.log("atk_cd:"+this.atk_cd); + // this.as.atk(); + // this.scheduleOnce(()=>{ + // this.shoot(this.skill,-30); + // },0.4) + // } + this.atk_time = 0; + this.as.atk(); + this.scheduleOnce(()=>{ + this.shoot(this.skill,-30); + },0.2) + } + } + + 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.is_dead = true; + this.ent.remove(MoveToComp) + smc.vm_data.game_over = true; + setTimeout(() => { + this.ent.destroy(); + }, 15); + } + } + heathed(){ + this.node.getChildByName("heathed").active=true + } + add_hp(hp: number=0){ + this.heathed(); + this.tooltip(2,hp.toString()); + let hp_progress= this.hp/this.hp_max; + this.node.getChildByName("top").getChildByName("hp").getComponent(ProgressBar)!.progress = hp_progress; + } + add_atk(atk: number,time:number=0){ + if(time > 0){ + this.buff_atk=0 + let buff={atk:atk,time:time} + this.buff_atks.push(buff); + this.buff_atks.forEach((element: { atk: number; }) => { + this.buff_atk += element.atk + }); + }else{ + this.mission_atk += atk; + } + // this.sprite.setSharedMaterial(this.atkMaterial, 0); + // this.scheduleOnce(() => { + // this.sprite.setSharedMaterial(this.orginalFlashMaterial, 0); + // }, 0.3); + } + + check_buff_atks(dt: number){ + for(let i=0;i 0){ + this.shield_time -= dt; + if(this.shield_time <= 0){ + this.shield_time = 0; + this.shield = this.shield_max=0; + // this.node.getChildByName("top").getChildByName("shield").active=false + } + // let shield_progress= this.shield/this.shield_max; + // this.node.getChildByName("top").getChildByName("shield").getComponent(ProgressBar)!.progress = shield_progress; + } + } + 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() { + + 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; + + + // 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; + // director.pause(); + this.node.destroy(); + } + +} \ No newline at end of file diff --git a/assets/script/game/Boss/BossViewComp.ts.meta b/assets/script/game/Boss/BossViewComp.ts.meta new file mode 100644 index 00000000..9af94be3 --- /dev/null +++ b/assets/script/game/Boss/BossViewComp.ts.meta @@ -0,0 +1 @@ +{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"2e4e5f05-fb79-401b-9376-7e006b9c8247","files":[],"subMetas":{},"userData":{}} diff --git a/assets/script/game/Boss/Player.ts.meta b/assets/script/game/Boss/Player.ts.meta new file mode 100644 index 00000000..7d5e25da --- /dev/null +++ b/assets/script/game/Boss/Player.ts.meta @@ -0,0 +1 @@ +{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"d07463ae-fffe-4c3b-af60-c40a1253e9a3","files":[],"subMetas":{},"userData":{}} diff --git a/assets/script/game/Boss/PlayerModelComp.ts.meta b/assets/script/game/Boss/PlayerModelComp.ts.meta new file mode 100644 index 00000000..3491bde2 --- /dev/null +++ b/assets/script/game/Boss/PlayerModelComp.ts.meta @@ -0,0 +1 @@ +{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"34c56beb-469d-4134-a4bb-e0e79fef03e3","files":[],"subMetas":{},"userData":{}} diff --git a/assets/script/game/Boss/PlayerSpine.ts.meta b/assets/script/game/Boss/PlayerSpine.ts.meta new file mode 100644 index 00000000..19daefff --- /dev/null +++ b/assets/script/game/Boss/PlayerSpine.ts.meta @@ -0,0 +1 @@ +{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"16ff69cd-f95d-4898-acdf-8d53e61e2f89","files":[],"subMetas":{},"userData":{}} diff --git a/assets/script/game/Boss/PlayerSpineAnimator.ts.meta b/assets/script/game/Boss/PlayerSpineAnimator.ts.meta new file mode 100644 index 00000000..ff10f0d4 --- /dev/null +++ b/assets/script/game/Boss/PlayerSpineAnimator.ts.meta @@ -0,0 +1 @@ +{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"243e34fa-bcfe-4b88-83c4-bda211a7abaf","files":[],"subMetas":{},"userData":{}} diff --git a/assets/script/game/Boss/PlayerViewComp.ts.meta b/assets/script/game/Boss/PlayerViewComp.ts.meta new file mode 100644 index 00000000..7fb8bda3 --- /dev/null +++ b/assets/script/game/Boss/PlayerViewComp.ts.meta @@ -0,0 +1 @@ +{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"880fb02e-7bb2-4ee8-9a8a-f7c161eca401","files":[],"subMetas":{},"userData":{}} diff --git a/assets/script/game/Role/Role.ts b/assets/script/game/Role/Role.ts index a268cf34..398b1ce2 100644 --- a/assets/script/game/Role/Role.ts +++ b/assets/script/game/Role/Role.ts @@ -13,10 +13,8 @@ import { UIID } from "../common/config/GameUIConfig"; import { smc } from "../common/SingletonModuleComp"; import { RoleModelComp } from "./RoleModelComp"; import { RoleSpine } from "./RoleSpine"; -import { RoleSet } from "../common/config/RoleSet"; import { MoveToComp } from "../common/ecs/position/MoveTo"; import { RoleViewComp } from "./RoleViewComp"; -import { RoleBuffComp } from "./RoleBuffComp"; import { BoxSet } from "../common/config/BoxSet"; /** 角色实体 */ @ecs.register(`Role`) diff --git a/assets/script/game/Role/RoleViewComp.ts b/assets/script/game/Role/RoleViewComp.ts index 4cdc2866..6add1623 100644 --- a/assets/script/game/Role/RoleViewComp.ts +++ b/assets/script/game/Role/RoleViewComp.ts @@ -35,8 +35,7 @@ export class RoleViewComp extends CCComp { atkMaterial: Material; sprite: Sprite; /** 角色动画 */ - @property(Node) - BoxRang:Node =null! + as:RoleSpine =null!; is_role:boolean = false; @@ -103,18 +102,8 @@ export class RoleViewComp extends CCComp { // 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.node.getChildByName("hp_max").getComponent(Label).string=this.hp_max.toString(); // this.orginalFlashMaterial = this.sprite.getRenderMaterial(0); - - - - // this.BoxRang.getComponent(RoleRangComp).box_group = this.box_group; - // this.BoxRang.getComponent(RoleRangComp).atk_range = this.atk_range - // this.BoxRang.getComponent(RoleRangComp).offset_x = this.scale*smc.skills[this.skill_uuid].dis/3; - // console.log("monseter ",this.BoxRang); - // 注册单个碰撞体的回调函数 let collider = this.getComponent(Collider2D); collider.group = this.box_group; diff --git a/assets/script/game/common/config/BoxSet.ts b/assets/script/game/common/config/BoxSet.ts index 5b2314b6..99bae6a5 100644 --- a/assets/script/game/common/config/BoxSet.ts +++ b/assets/script/game/common/config/BoxSet.ts @@ -38,20 +38,12 @@ export enum BoxSet { MAX_SKILL_BY = 80, ATK_Y = 20, - ROLE_FUX=80, - ROLE_FUY=40, - ROLE_FDX=80, - ROLE_FDY=-40, - - ROLE_BUX=-80, - ROLE_BUY=40, - - ROLE_BDX=-80, - ROLE_BDY=-40, } export enum GameSet { ATK_TO_ATK_RATIO=0.1, ATK_TO_HP_RATIO=0.2, - ATK_TO_SHIELD_RATIO=2 + ATK_TO_SHIELD_RATIO=2, + + ATK_LINES = 3, } \ No newline at end of file diff --git a/assets/script/game/common/config/MissionSet.ts b/assets/script/game/common/config/MissionSet.ts index 898b3c23..89795699 100644 --- a/assets/script/game/common/config/MissionSet.ts +++ b/assets/script/game/common/config/MissionSet.ts @@ -5,7 +5,12 @@ export const MonsetList = { } } - +export const BossList = { + 1:{ + 1:[5001], + } + +} export const MissionSet = { 1:{ lv1_num:10, diff --git a/assets/script/game/common/config/SkillSet.ts b/assets/script/game/common/config/SkillSet.ts index 17771a5b..2832b02d 100644 --- a/assets/script/game/common/config/SkillSet.ts +++ b/assets/script/game/common/config/SkillSet.ts @@ -36,9 +36,9 @@ export const SkillSet={ 2001:{uuid: 2001,path: "2001",type: 91,tg:1,angle:false,level: 1,name: "治愈术",sp_name:"heath",info:"释放一个寒冰箭攻击敌人", dis:1,count:1,in:0,run:1,atk:0,hp:30,shield:0,sd:10,cd:1,bsd:0,bcd:0,sk_uuid:1001,sk_count:0,speed:450, }, 2002:{uuid: 2002,path: "2002",type: 91,tg:0,angle:false,level: 1,name: "魔法盾",sp_name:"shield",info:"释放一个寒冰箭攻击敌人", - dis:1,count:1,in:0.2,run:2,atk:0,hp:0,shield:50,sd:0,cd:0,bsd:30,bcd:0,sk_uuid:1001,sk_count:0,speed:450, }, + dis:1,count:1,in:0.2,run:2,atk:0,hp:0,shield:50,sd:0,cd:0,bsd:8,bcd:0,sk_uuid:1001,sk_count:0,speed:450, }, 2003:{uuid: 2003,path: "2003",type: 91,tg:0,angle:false,level: 1,name: "狂暴",sp_name:"atkup",info:"释放一个寒冰箭攻击敌人", - dis:1,count:1,in:0.2,run:2,atk:10,hp:0,shield:0,sd:0,cd:0,bsd:30,bcd:0,sk_uuid:1001,sk_count:0,speed:450, }, + dis:1,count:1,in:0.2,run:2,atk:10,hp:0,shield:0,sd:0,cd:0,bsd:8,bcd:0,sk_uuid:1001,sk_count:0,speed:450, }, 3001:{uuid: 3001,path: "3001",type: 1,tg:3,angle:true,level: 1,name: "三连击",sp_name:"patk",info:"释放一个魔法球攻击敌人", diff --git a/assets/script/game/common/config/heroSet.ts b/assets/script/game/common/config/heroSet.ts index f06e0ff4..40c498e9 100644 --- a/assets/script/game/common/config/heroSet.ts +++ b/assets/script/game/common/config/heroSet.ts @@ -1,31 +1,31 @@ export const HeroSet = { 9001: { - uuid: 9001, path: "k3", type: 1, level: 1,cost:2, name: "骑士", atk: 4, hp: 60, atk_dis: 40, atk_cd: 1, power: 0, power_max: 10, speed: 30, + uuid: 9001, path: "k3", type: 1, level: 1,cost:2, name: "骑士", atk: 4, hp: 60, atk_dis: 40, atk_cd: 1, power: 0, power_max: 20, speed: 30, max_skill: "精准打击", skill_uuid: 9001, max_skill_uuid: 2002, word: "守护", info: "自身护盾", atktype: 1, }, 9002: { - uuid: 9002, path: "k1", type: 1, level: 1,cost:2, name: "战士", atk: 8, hp: 30, atk_dis: 40, atk_cd: 1, power: 0, power_max: 10, speed: 30, + uuid: 9002, path: "k1", type: 1, level: 1,cost:2, name: "战士", atk: 8, hp: 30, atk_dis: 40, atk_cd: 1, power: 0, power_max: 20, speed: 30, max_skill: "精准打击", skill_uuid: 9001, max_skill_uuid: 2003, word: "守护", info: "自身护盾", atktype: 1, }, 9011: { - uuid: 9004, path: "m1", type: 3, level: 1,cost:2, name: "冰法", atk: 15, hp: 20, atk_dis: 260, atk_cd: 2.5, power: 0, power_max: 10, speed: 30, + uuid: 9004, path: "m1", type: 3, level: 1,cost:2, name: "冰法", atk: 15, hp: 20, atk_dis: 260, atk_cd: 2.5, power: 0, power_max: 20, speed: 30, max_skill: "寒冰箭", skill_uuid: 9002, max_skill_uuid: 1002, word: "守护", info: "自身护盾", atktype: 1, }, 9021: { - uuid: 9006, path: "m3", type: 3, level: 1,cost:2, name: "火法", atk: 10, hp: 20, atk_dis: 260, atk_cd: 2, power: 0, power_max: 10, speed: 30, + uuid: 9006, path: "m3", type: 3, level: 1,cost:2, name: "火法", atk: 10, hp: 20, atk_dis: 260, atk_cd: 2, power: 0, power_max: 20, speed: 30, max_skill: "火球术", skill_uuid: 9002, max_skill_uuid: 1001, word: "守护", info: "自身护盾", atktype: 2 }, 9031: { - uuid: 9005, path: "m2", type: 3, level: 1,cost:2, name: "牧师", atk: 3, hp: 20, atk_dis: 260, atk_cd: 2, power: 0, power_max: 10, speed: 30, + uuid: 9005, path: "m2", type: 3, level: 1,cost:2, name: "牧师", atk: 3, hp: 20, atk_dis: 260, atk_cd: 2, power: 0, power_max: 20, speed: 30, max_skill: "治愈术", skill_uuid: 9002, max_skill_uuid: 2001, word: "守护", info: "自身护盾", atktype: 2 }, 9041: { - uuid: 9009, path: "arc1", type: 2, level: 1,cost:2, name: "弓箭手", atk: 5, hp: 30, atk_dis: 200, atk_cd: 1.5, power: 0, power_max: 10, speed: 30, + uuid: 9009, path: "arc1", type: 2, level: 1,cost:2, name: "弓箭手", atk: 5, hp: 30, atk_dis: 200, atk_cd: 1.5, power: 0, power_max: 20, speed: 30, max_skill: "精准射击", skill_uuid: 9003, max_skill_uuid: 1003, word: "狂暴", info: "全体攻击", atktype: 2 }, @@ -34,15 +34,15 @@ export const HeroSet = { export const MonSet = { 1011: { - uuid: 1011, path: "orc1", type: 1, level: 1,cost:2, name: "森林兽人", atk: 8, hp: 30, atk_dis: 40, atk_cd: 2, power: 0, power_max: 10, speed: 30, + uuid: 1011, path: "orc1", type: 1, level: 1,cost:2, name: "森林兽人", atk: 8, hp: 30, atk_dis: 40, atk_cd: 2, power: 0, power_max: 20, speed: 30, max_skill: "精准打击", skill_uuid: 9001, max_skill_uuid: 0, word: "守护", info: "自身护盾", atktype: 1 }, 1012: { - uuid: 1012, path: "orc2", type: 1, level: 1,cost:2, name: "荒野兽人", atk: 8, hp: 40, atk_dis: 40, atk_cd: 2, power: 0, power_max: 10, speed: 30, + uuid: 1012, path: "orc2", type: 1, level: 1,cost:2, name: "荒野兽人", atk: 8, hp: 40, atk_dis: 40, atk_cd: 2, power: 0, power_max: 20, speed: 30, max_skill: "精准打击", skill_uuid: 9001, max_skill_uuid: 0, word: "守护", info: "自身护盾", atktype: 1 }, 1013: { - uuid: 1013, path: "orc3", type: 1, level: 1,cost:2, name: "兽人战士", atk: 8, hp: 60, atk_dis: 40, atk_cd: 2, power: 0, power_max: 10, speed: 30, + uuid: 1013, path: "orc3", type: 1, level: 1,cost:2, name: "兽人战士", atk: 8, hp: 60, atk_dis: 40, atk_cd: 2, power: 0, power_max: 20, speed: 30, max_skill: "精准打击", skill_uuid: 9001, max_skill_uuid: 0, word: "守护", info: "自身护盾", atktype: 1 }, @@ -59,4 +59,10 @@ export const MonSet = { max_skill: "精准打击", skill_uuid: 9001, max_skill_uuid: 0, word: "守护", info: "自身护盾", atktype: 1 }, + + 5001: { + uuid: 5001, path: "boss1", type: 1, level: 1,cost:2, name: "骷髅王", atk: 20, hp: 1000, atk_dis: 200, atk_cd: 2, power: 0, power_max: 10, speed: 7, + max_skill: "精准打击", skill_uuid: 1001, max_skill_uuid: 1002, word: "守护", info: "自身护盾", atktype: 1 + }, + } \ No newline at end of file diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index 95aaa7ad..40cf3726 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -11,7 +11,7 @@ import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/modu import { HeroSpine } from "./HeroSpine"; import { Hero } from "./Hero"; import { HeroModelComp } from "./HeroModelComp"; -import { BoxSet } from "../common/config/BoxSet"; +import { BoxSet, GameSet } from "../common/config/BoxSet"; import { smc } from "../common/SingletonModuleComp"; import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; import { Skill } from "../skills/Skill"; @@ -192,7 +192,26 @@ export class HeroViewComp extends CCComp { // this.move_to() // } } - + check_enemy_alive(){ + let dir = 320 + for (let i = 0; i < GameSet.ATK_LINES; i++) { + let mon:any = smc.enemy_pos[i]; + let x=Math.abs(mon.x-this.node.position.x) + let y = Math.abs(mon.y-this.node.position.y) + let squaredDistance =x*x+y*y + let distance = Math.sqrt(squaredDistance); + if(distance < dir){ + dir = distance + this.enemy = mon + } + + } + if(dir < this.atk_dis){ + this.is_atking=true + }else{ + this.is_atking=false + } + } move(dt: number){ if(this.stop_cd > 0){ return @@ -356,24 +375,7 @@ export class HeroViewComp extends CCComp { } } - check_enemy_alive(){ - let dir = 320 - for (let i = 0; i <= 2; i++) { - let mon:any = smc.enemy_pos[i]; - let squaredDistance =mon.x*mon.x+mon.y*mon.y - let distance = Math.sqrt(squaredDistance); - if(distance < dir){ - dir = distance - this.enemy = mon - } - - } - if(dir < this.atk_dis){ - this.is_atking=true - }else{ - this.is_atking=false - } - } + in_atk(dt: number) { if(this.atk_time >= this.atk_cd){ if(this.is_atking){ @@ -437,10 +439,6 @@ export class HeroViewComp extends CCComp { }else{ this.atk += atk; } - this.sprite.setSharedMaterial(this.atkMaterial, 0); - this.scheduleOnce(() => { - this.sprite.setSharedMaterial(this.orginalFlashMaterial, 0); - }, 0.3); // console.log(this.buff_atks) } @@ -455,15 +453,17 @@ export class HeroViewComp extends CCComp { } if(this.buff_atks.length <= 0){ this.buff_atk = 0 - this.buff_icon_change("atk",false) + // this.buff_icon_change("atk",false) + this.sprite.setSharedMaterial(this.orginalFlashMaterial, 0); }else{ - this.buff_icon_change("atk",true) + // this.buff_icon_change("atk",true) + this.sprite.setSharedMaterial(this.atkMaterial, 0); } } buff_icon_change(icon:string,value:boolean){ - this.node.getChildByName("top").getChildByName("buff").getChildByName(icon).active=value + // this.node.getChildByName("top").getChildByName("buff").getChildByName(icon).active=value } diff --git a/assets/script/game/map/MapMonsterComp.ts b/assets/script/game/map/MapMonsterComp.ts index 069509c4..fb6e729f 100644 --- a/assets/script/game/map/MapMonsterComp.ts +++ b/assets/script/game/map/MapMonsterComp.ts @@ -6,13 +6,14 @@ import { BoxSet } from "../common/config/BoxSet"; import { smc } from "../common/SingletonModuleComp"; import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; import { MapViewScene } from "./view/MapViewScene"; -import { MissionSet,MissionNum,MonsetList } from "../common/config/MissionSet"; +import { MissionSet,MissionNum,MonsetList, BossList } from "../common/config/MissionSet"; import { RandomManager } from "../../../../extensions/oops-plugin-framework/assets/core/common/random/RandomManager"; import { Role } from "../Role/Role"; import { Hero } from "../hero/Hero"; import { HeroModelComp } from "../hero/HeroModelComp"; import { Mon } from "../mon/Mon"; import { MonModelComp } from "../mon/MonModelComp"; +import { Boss} from "../Boss/Boss"; const { ccclass, property } = _decorator; /** 视图层对象 */ @@ -32,6 +33,7 @@ export class MapMonsterComp extends CCComp { mission_up_timer: Timer = new Timer(30); //波次增加 cur_mission:number = 1; //当前关卡方案 mission_list:any = [] + boss_list:any = [] setp_timer: Timer = new Timer(0.3); target_timer: Timer = new Timer(0.1); setp_num:number = 6; @@ -60,10 +62,12 @@ export class MapMonsterComp extends CCComp { let num =RandomManager.instance.getRandomByObjectList(MissionNum,1) this.cur_mission = num[0] this.mission_list = MonsetList[this.cur_mission] + this.boss_list = BossList[this.cur_mission] // console.log("当前关卡方案",this.cur_mission,this.mission_list) this.refresh_timer= new Timer(smc.vm_data.gold.cd*5); this.monster_refresh() this.load_role() + // this.load_boss() } @@ -175,7 +179,7 @@ export class MapMonsterComp extends CCComp { if (this.setp_num <= 0){ return } - let m:any = RandomManager.instance.getRandomByObjectList(this.mission_list[this.monster_level],3) + let m:any = RandomManager.instance.getRandomByObjectList(this.mission_list[this.monster_level],1) var scene = smc.map.MapView.scene; let pos:Vec3 = v3(BoxSet.MONSTER_START,BoxSet.GAME_LINE+this.start_ys[this.mon_index]) let monster_layer = scene.entityLayer!.node! @@ -198,6 +202,15 @@ export class MapMonsterComp extends CCComp { let monster_layer = scene.entityLayer!.node! this.addMonster(args.uuid,monster_layer,pos) } + load_boss(){ + let bs:any = RandomManager.instance.getRandomByObjectList(this.boss_list[this.monster_level],1) + var scene = smc.map.MapView.scene; + let pos:Vec3 = v3(400,BoxSet.GAME_LINE-50) + let layer = scene.entityLayer!.node! + let b = ecs.getEntity(Boss); + let scale = -1 + b.load(pos,scale,bs[0],layer); + }0 /** 视图层逻辑代码分离演示 */ /** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */ diff --git a/assets/script/game/mon/MonViewComp.ts b/assets/script/game/mon/MonViewComp.ts index d1d5ff63..2d23f9e6 100644 --- a/assets/script/game/mon/MonViewComp.ts +++ b/assets/script/game/mon/MonViewComp.ts @@ -11,7 +11,7 @@ import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/modu import { MonSpine } from "./MonSpine"; import { Mon } from "./Mon"; import { MonModelComp } from "./MonModelComp"; -import { BoxSet } from "../common/config/BoxSet"; +import { BoxSet, GameSet } from "../common/config/BoxSet"; import { smc } from "../common/SingletonModuleComp"; import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; import { Skill } from "../skills/Skill"; @@ -32,8 +32,8 @@ export class MonViewComp extends CCComp { orginalFlashMaterial: Material; sprite: Sprite; - @property(Node) - BoxRang:Node =null! + // @property(Node) + // BoxRang:Node =null! is_role:boolean = false; enemy_pos:Vec3=null!; @@ -100,8 +100,8 @@ export class MonViewComp extends CCComp { // 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).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); @@ -119,7 +119,6 @@ export class MonViewComp extends CCComp { // 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) { @@ -138,19 +137,21 @@ export class MonViewComp extends CCComp { } onEndContact (selfCollider: Collider2D, otherCollider: Collider2D) { } onPreSolve (selfCollider: Collider2D, otherCollider: Collider2D) { - if(selfCollider.group == otherCollider.group&&selfCollider.tag==otherCollider.tag){ - if(selfCollider.node.position.y < otherCollider.node.position.y){ - if(selfCollider.node.getSiblingIndex() < otherCollider.node.getSiblingIndex()){ - selfCollider.node.setSiblingIndex(otherCollider.node.getSiblingIndex()+1) - // console.log("onPreSolve b:"+selfCollider.node.uuid+":"+selfCollider.node.getSiblingIndex()+"/"+otherCollider.node.uuid+":"+otherCollider.node.getSiblingIndex()); - } + // if(selfCollider.group == otherCollider.group&&selfCollider.tag==otherCollider.tag){ + // if(selfCollider.node.position.y < otherCollider.node.position.y){ + // if(selfCollider.node.getSiblingIndex() < otherCollider.node.getSiblingIndex()){ + // selfCollider.node.setSiblingIndex(otherCollider.node.getSiblingIndex()+1) + // // console.log("onPreSolve b:"+selfCollider.node.uuid+":"+selfCollider.node.getSiblingIndex()+"/"+otherCollider.node.uuid+":"+otherCollider.node.getSiblingIndex()); + // } - } + // } + // } + if(selfCollider.group != otherCollider.group&&otherCollider.tag == 0){ + this.stop_cd = 0.1; + this.is_atking=true } } - onPostSolve (selfCollider: Collider2D, otherCollider: Collider2D) { - - } + onPostSolve (selfCollider: Collider2D, otherCollider: Collider2D) {} update(dt: number){ @@ -161,13 +162,36 @@ export class MonViewComp extends CCComp { this.in_speek(dt); this.in_shield(dt); this.in_stop(dt); + this.check_enemy_alive() + this.atk_time += dt; this.in_atk(dt); this.hp_show() this.move(dt); + // if(this.m_timer.update(dt)){ // this.move_to() // } } + check_enemy_alive(){ + let dir = 320 + for (let i = 0; i < GameSet.ATK_LINES; i++) { + let hero:any = smc.hero_pos[i]; + let x=Math.abs(hero.x-this.node.position.x) + let y = Math.abs(hero.y-this.node.position.y) + let squaredDistance =x*x+y*y + let distance = Math.sqrt(squaredDistance); + if(distance < dir){ + dir = distance + this.enemy = hero + } + + } + if(dir < this.atk_dis){ + this.is_atking=true + }else{ + this.is_atking=false + } + } hp_show(){ if(this.hp == this.hp_max){ this.node.getChildByName("top").getChildByName("hp").active = false; @@ -199,9 +223,9 @@ export class MonViewComp extends CCComp { return } this.power += power; - if(this.power >= this.power_max&&this.check_enemy_alive()){ + if(this.power >= this.power_max){ this.as.atk() - this.to_speek(smc.skills[this.max_skill_uuid].name) + // this.to_speek(smc.skills[this.max_skill_uuid].name) this.scheduleOnce(()=>{ this.do_max_skill(); },0.5) @@ -214,7 +238,7 @@ export class MonViewComp extends CCComp { // console.log("mon shoot"); let skill = ecs.getEntity(Skill); let atk = smc.skills[skill_uuid].atk+this.atk; - let {pos,angle,t_pos}=this.get_enemy_pos() + let {pos,t_pos}=this.get_enemy_pos() pos.y=pos.y + y pos.x=pos.x + x skill.load(pos,BoxSet.MONSTER,this.node,skill_uuid,atk,t_pos); @@ -242,33 +266,16 @@ export class MonViewComp extends CCComp { } get_enemy_pos(){ let pos = v3(35*this.scale,25) - let angle=0 - let t_pos:Vec3 = v3(0,0) + let t_pos:Vec3 = v3(-720,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+pos.x)*1.1,(this.enemy.position.y-(this.node.position.y+pos.y)+BoxSet.ATK_Y)*1.1) - }else{ - t_pos=v3(-720,BoxSet.GAME_LINE) - } - return {pos,t_pos,angle} - } - check_enemy_alive(){ - if(this.enemy){ - if(!this.enemy.isValid){ - return false - } - if(Math.abs(this.enemy.position.x-this.node.position.x) < this.atk_dis) return true; - return false - }else{ - return false + t_pos = v3(this.enemy.x-this.node.position.x,this.enemy.y-this.node.position.y) } + return {pos,t_pos} } + in_atk(dt: number) { if(this.atk_time >= this.atk_cd){ - if(this.is_atking&&this.check_enemy_alive()){ + if(this.is_atking){ this.atk_time = 0; // console.log("atk_cd:"+this.atk_cd); this.as.atk();