From 87a445c22557db7fadf418edac36d0a7c71e7c00 Mon Sep 17 00:00:00 2001 From: walkpan Date: Tue, 20 Aug 2024 13:35:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8A=80=E8=83=BD=E5=8A=A8?= =?UTF-8?q?=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/resources/game/heros/hero.prefab | 117 +++++- assets/resources/game/map/map_rpg.prefab | 2 +- assets/resources/game/skills/base.prefab | 11 +- .../game/skills/{Fx01.meta => dead.meta} | 0 .../game/skills/{Fx01 => dead}/deaded.plist | 0 .../skills/{Fx01 => dead}/deaded.plist.meta | 0 .../game/skills/{Fx01 => dead}/deaded.png | Bin .../skills/{Fx01 => dead}/deaded.png.meta | 0 assets/resources/game/skills/fire.prefab | 334 +++++++++++++++++ assets/resources/game/skills/fire.prefab.meta | 13 + assets/resources/game/skills/heath.meta | 9 + assets/resources/game/skills/heath.prefab | 168 +++++++++ .../resources/game/skills/heath.prefab.meta | 13 + .../resources/game/skills/heath/1106112.atlas | 20 ++ .../game/skills/heath/1106112.atlas.meta | 12 + .../resources/game/skills/heath/1106112.json | 336 ++++++++++++++++++ .../game/skills/heath/1106112.json.meta | 11 + .../resources/game/skills/heath/1106112.png | Bin 0 -> 1675 bytes .../game/skills/heath/1106112.png.meta | 42 +++ assets/resources/game/skills/ice.prefab | 334 +++++++++++++++++ assets/resources/game/skills/ice.prefab.meta | 13 + assets/resources/game/skills/light.meta | 9 + assets/resources/game/skills/light.prefab | 168 +++++++++ .../resources/game/skills/light.prefab.meta | 13 + .../resources/game/skills/light/1106112.atlas | 13 + .../game/skills/light/1106112.atlas.meta | 12 + .../resources/game/skills/light/1106112.json | 134 +++++++ .../game/skills/light/1106112.json.meta | 11 + .../resources/game/skills/light/1106112.png | Bin 0 -> 234 bytes .../game/skills/light/1106112.png.meta | 42 +++ assets/script/game/map/view/MapViewComp.ts | 6 +- .../game/map/view/map/layer/SkillLayer.ts | 12 +- assets/script/game/map/view/map/layer/once.ts | 23 ++ .../game/map/view/map/layer/once.ts.meta | 1 + 34 files changed, 1849 insertions(+), 30 deletions(-) rename assets/resources/game/skills/{Fx01.meta => dead.meta} (100%) rename assets/resources/game/skills/{Fx01 => dead}/deaded.plist (100%) rename assets/resources/game/skills/{Fx01 => dead}/deaded.plist.meta (100%) rename assets/resources/game/skills/{Fx01 => dead}/deaded.png (100%) rename assets/resources/game/skills/{Fx01 => dead}/deaded.png.meta (100%) create mode 100644 assets/resources/game/skills/fire.prefab create mode 100644 assets/resources/game/skills/fire.prefab.meta create mode 100644 assets/resources/game/skills/heath.meta create mode 100644 assets/resources/game/skills/heath.prefab create mode 100644 assets/resources/game/skills/heath.prefab.meta create mode 100644 assets/resources/game/skills/heath/1106112.atlas create mode 100644 assets/resources/game/skills/heath/1106112.atlas.meta create mode 100644 assets/resources/game/skills/heath/1106112.json create mode 100644 assets/resources/game/skills/heath/1106112.json.meta create mode 100644 assets/resources/game/skills/heath/1106112.png create mode 100644 assets/resources/game/skills/heath/1106112.png.meta create mode 100644 assets/resources/game/skills/ice.prefab create mode 100644 assets/resources/game/skills/ice.prefab.meta create mode 100644 assets/resources/game/skills/light.meta create mode 100644 assets/resources/game/skills/light.prefab create mode 100644 assets/resources/game/skills/light.prefab.meta create mode 100644 assets/resources/game/skills/light/1106112.atlas create mode 100644 assets/resources/game/skills/light/1106112.atlas.meta create mode 100644 assets/resources/game/skills/light/1106112.json create mode 100644 assets/resources/game/skills/light/1106112.json.meta create mode 100644 assets/resources/game/skills/light/1106112.png create mode 100644 assets/resources/game/skills/light/1106112.png.meta create mode 100644 assets/script/game/map/view/map/layer/once.ts create mode 100644 assets/script/game/map/view/map/layer/once.ts.meta diff --git a/assets/resources/game/heros/hero.prefab b/assets/resources/game/heros/hero.prefab index 46b3bbdd..40d85b69 100644 --- a/assets/resources/game/heros/hero.prefab +++ b/assets/resources/game/heros/hero.prefab @@ -35,16 +35,13 @@ }, { "__id__": 63 + }, + { + "__id__": 75 } ], "_active": true, "_components": [ - { - "__id__": 75 - }, - { - "__id__": 77 - }, { "__id__": 79 }, @@ -56,10 +53,16 @@ }, { "__id__": 85 + }, + { + "__id__": 87 + }, + { + "__id__": 89 } ], "_prefab": { - "__id__": 87 + "__id__": 91 }, "_lpos": { "__type__": "cc.Vec3", @@ -1713,6 +1716,94 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, + { + "__type__": "cc.Node", + "_name": "buff", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 76 + } + ], + "_prefab": { + "__id__": 78 + }, + "_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__": 75 + }, + "_enabled": true, + "__prefab": { + "__id__": 77 + }, + "_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.UITransform", "_name": "", @@ -1723,7 +1814,7 @@ }, "_enabled": false, "__prefab": { - "__id__": 76 + "__id__": 80 }, "_contentSize": { "__type__": "cc.Size", @@ -1751,7 +1842,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 78 + "__id__": 82 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1793,7 +1884,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 80 + "__id__": 84 }, "animator": { "__id__": 24 @@ -1814,7 +1905,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 82 + "__id__": 86 }, "_id": "" }, @@ -1832,7 +1923,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 84 + "__id__": 88 }, "tag": 0, "_group": 2, @@ -1866,7 +1957,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 86 + "__id__": 90 }, "enabledContactListener": true, "bullet": true, diff --git a/assets/resources/game/map/map_rpg.prefab b/assets/resources/game/map/map_rpg.prefab index 5795ac4e..510d9004 100644 --- a/assets/resources/game/map/map_rpg.prefab +++ b/assets/resources/game/map/map_rpg.prefab @@ -1273,7 +1273,7 @@ "__id__": 58 }, "light": { - "__uuid__": "683fa094-5032-4f8d-a8c6-63a962c9bdd5", + "__uuid__": "319c7eb8-9826-48b6-81e4-82559dbf82a8", "__expectedType__": "cc.Prefab" }, "_id": "" diff --git a/assets/resources/game/skills/base.prefab b/assets/resources/game/skills/base.prefab index 05ec3cfc..0726ee1c 100644 --- a/assets/resources/game/skills/base.prefab +++ b/assets/resources/game/skills/base.prefab @@ -322,13 +322,13 @@ "_restitution": 0, "_offset": { "__type__": "cc.Vec2", - "x": 28.9, - "y": 6.8 + "x": 14.3, + "y": -0.9 }, "_size": { "__type__": "cc.Size", - "width": 57.9, - "height": 13.6 + "width": 27.2, + "height": 44.7 }, "_id": "" }, @@ -363,7 +363,6 @@ "__id__": 0 }, "fileId": "c46/YsCPVOJYA4mWEpNYRx", - "instance": null, - "targetOverrides": null + "instance": null } ] \ No newline at end of file diff --git a/assets/resources/game/skills/Fx01.meta b/assets/resources/game/skills/dead.meta similarity index 100% rename from assets/resources/game/skills/Fx01.meta rename to assets/resources/game/skills/dead.meta diff --git a/assets/resources/game/skills/Fx01/deaded.plist b/assets/resources/game/skills/dead/deaded.plist similarity index 100% rename from assets/resources/game/skills/Fx01/deaded.plist rename to assets/resources/game/skills/dead/deaded.plist diff --git a/assets/resources/game/skills/Fx01/deaded.plist.meta b/assets/resources/game/skills/dead/deaded.plist.meta similarity index 100% rename from assets/resources/game/skills/Fx01/deaded.plist.meta rename to assets/resources/game/skills/dead/deaded.plist.meta diff --git a/assets/resources/game/skills/Fx01/deaded.png b/assets/resources/game/skills/dead/deaded.png similarity index 100% rename from assets/resources/game/skills/Fx01/deaded.png rename to assets/resources/game/skills/dead/deaded.png diff --git a/assets/resources/game/skills/Fx01/deaded.png.meta b/assets/resources/game/skills/dead/deaded.png.meta similarity index 100% rename from assets/resources/game/skills/Fx01/deaded.png.meta rename to assets/resources/game/skills/dead/deaded.png.meta diff --git a/assets/resources/game/skills/fire.prefab b/assets/resources/game/skills/fire.prefab new file mode 100644 index 00000000..b6bc0cb6 --- /dev/null +++ b/assets/resources/game/skills/fire.prefab @@ -0,0 +1,334 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "fire", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "fire", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_components": [ + { + "__id__": 8 + }, + { + "__id__": 10 + }, + { + "__id__": 12 + }, + { + "__id__": 14 + } + ], + "_prefab": { + "__id__": 16 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "skill", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 3 + }, + { + "__id__": 5 + } + ], + "_prefab": { + "__id__": 7 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -52.535, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": -1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 4 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 286, + "height": 90 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.49367133720771417, + "y": 0.5723333146837023 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "43ucwKXvZIjpuRMb6AMdcx" + }, + { + "__type__": "sp.Skeleton", + "_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 + }, + "_skeletonData": { + "__uuid__": "e0945cf8-8c31-4008-bcdd-25ec8045d0a4", + "__expectedType__": "sp.SkeletonData" + }, + "defaultSkin": "default", + "defaultAnimation": "animation", + "_premultipliedAlpha": true, + "_timeScale": 1, + "_preCacheMode": 0, + "_cacheMode": 0, + "_sockets": [], + "_useTint": false, + "_debugMesh": false, + "_debugBones": false, + "_debugSlots": false, + "_enableBatch": false, + "loop": true, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f3C1ldL9lDar8/kq/F6KPh" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "b05wpkPXFJqK6/PzoIxCfr", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 9 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 286, + "height": 90 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.49664333316829656, + "y": 0.5156666649712457 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "63NP9yq3hEUKD/OZZZ5t7x" + }, + { + "__type__": "cc.RigidBody2D", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 11 + }, + "enabledContactListener": true, + "bullet": true, + "awakeOnLoad": true, + "_group": 16, + "_type": 2, + "_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": "f1VxV09PdOkofzgGv1tsZE" + }, + { + "__type__": "cc.BoxCollider2D", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 13 + }, + "tag": 0, + "_group": 16, + "_density": 1, + "_sensor": false, + "_friction": 0.2, + "_restitution": 0, + "_offset": { + "__type__": "cc.Vec2", + "x": 15.2, + "y": 0.3 + }, + "_size": { + "__type__": "cc.Size", + "width": 28.9, + "height": 86.1 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "23eik112JPZYGiI8mJalTK" + }, + { + "__type__": "45646oIyIdA24W+0c5rdELD", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 15 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "8ahZv91itPcYJm8S0veHYl" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "c46/YsCPVOJYA4mWEpNYRx", + "instance": null, + "targetOverrides": null + } +] \ No newline at end of file diff --git a/assets/resources/game/skills/fire.prefab.meta b/assets/resources/game/skills/fire.prefab.meta new file mode 100644 index 00000000..f65408a6 --- /dev/null +++ b/assets/resources/game/skills/fire.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "f9a7ccb6-d45d-452f-81b7-5bf3cb9920b7", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "fire" + } +} diff --git a/assets/resources/game/skills/heath.meta b/assets/resources/game/skills/heath.meta new file mode 100644 index 00000000..bdc8ddb5 --- /dev/null +++ b/assets/resources/game/skills/heath.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "7810d5f5-b6e3-4def-b385-8f799545c339", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/resources/game/skills/heath.prefab b/assets/resources/game/skills/heath.prefab new file mode 100644 index 00000000..4da7ba42 --- /dev/null +++ b/assets/resources/game/skills/heath.prefab @@ -0,0 +1,168 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "heath", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "heath", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 2 + }, + { + "__id__": 4 + }, + { + "__id__": 6 + } + ], + "_prefab": { + "__id__": 8 + }, + "_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__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 3 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "1f9Mgg45BA/oJ5ce63JFCc" + }, + { + "__type__": "sp.Skeleton", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 5 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_skeletonData": { + "__uuid__": "2b3e4b0f-2c6b-4e36-b35e-6a1e5564c1ef", + "__expectedType__": "sp.SkeletonData" + }, + "defaultSkin": "default", + "defaultAnimation": "animation", + "_premultipliedAlpha": true, + "_timeScale": 1, + "_preCacheMode": 0, + "_cacheMode": 0, + "_sockets": [], + "_useTint": false, + "_debugMesh": false, + "_debugBones": false, + "_debugSlots": false, + "_enableBatch": false, + "loop": true, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "a0vHaUuSJOT6AKEMhXPATV" + }, + { + "__type__": "6e0a9ldFsFFVI+AKTlPJCE7", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 7 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "64RsTrRAVDrouO4RjTVp0i" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "b2Bs8P+sdAvqQjqC/qlAVM", + "instance": null, + "targetOverrides": null + } +] \ No newline at end of file diff --git a/assets/resources/game/skills/heath.prefab.meta b/assets/resources/game/skills/heath.prefab.meta new file mode 100644 index 00000000..b8b86aa0 --- /dev/null +++ b/assets/resources/game/skills/heath.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "46e1c00e-3643-4b51-8d67-a22d08671473", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "heath" + } +} diff --git a/assets/resources/game/skills/heath/1106112.atlas b/assets/resources/game/skills/heath/1106112.atlas new file mode 100644 index 00000000..f858c90b --- /dev/null +++ b/assets/resources/game/skills/heath/1106112.atlas @@ -0,0 +1,20 @@ + +1106112.png +size: 76,42 +format: RGBA8888 +filter: Linear,Linear +repeat: none +jia_a1 + rotate: false + xy: 2, 2 + size: 38, 38 + orig: 39, 39 + offset: 0, 1 + index: -1 +lizi + rotate: false + xy: 42, 8 + size: 32, 32 + orig: 42, 42 + offset: 5, 5 + index: -1 diff --git a/assets/resources/game/skills/heath/1106112.atlas.meta b/assets/resources/game/skills/heath/1106112.atlas.meta new file mode 100644 index 00000000..dfe4f3fc --- /dev/null +++ b/assets/resources/game/skills/heath/1106112.atlas.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.0.1", + "importer": "*", + "imported": true, + "uuid": "ea2923d7-2d23-460d-915a-d411ae72b6ec", + "files": [ + ".atlas", + ".json" + ], + "subMetas": {}, + "userData": {} +} diff --git a/assets/resources/game/skills/heath/1106112.json b/assets/resources/game/skills/heath/1106112.json new file mode 100644 index 00000000..2962708f --- /dev/null +++ b/assets/resources/game/skills/heath/1106112.json @@ -0,0 +1,336 @@ +{ +"skeleton": { "hash": "wjdHPaDqeT5S9WEFh/8QZbNRzRQ", "spine": "3.8.99", "images": "D:/BaiduNetdiskDownload/1010-Q版日式手游SPINE特效300套/Q版日式手游SPINE特效300套/Q版日式手游SPINE特效300套/010-1106112/0/", "audio": "D:/BaiduNetdiskDownload/1010-Q版日式手游SPINE特效300套/Q版日式手游SPINE特效300套/Q版日式手游SPINE特效300套/010-1106112" }, +"bones": [ + { "name": "root" }, + { "name": "zl", "parent": "root" }, + { "name": "zllizi", "parent": "zl" }, + { "name": "zllizi_a1", "parent": "zllizi" }, + { "name": "zllizi_b1", "parent": "zllizi" }, + { "name": "zllizi_c1", "parent": "zllizi" }, + { "name": "zllizi_d1", "parent": "zllizi" }, + { "name": "zllizi_e1", "parent": "zllizi" }, + { "name": "zllizi_f1", "parent": "zllizi" }, + { "name": "zllizi_g1", "parent": "zllizi" }, + { "name": "jia", "parent": "zl" }, + { "name": "jia_a1", "parent": "jia" }, + { "name": "jia_b1", "parent": "jia" }, + { "name": "jia_c1", "parent": "jia" } +], +"slots": [ + { "name": "zllizi_a1", "bone": "zllizi_a1", "blend": "additive" }, + { "name": "zllizi_d1", "bone": "zllizi_d1", "blend": "additive" }, + { "name": "zllizi_g1", "bone": "zllizi_g1", "blend": "additive" }, + { "name": "zllizi_e1", "bone": "zllizi_e1", "blend": "additive" }, + { "name": "zllizi_f1", "bone": "zllizi_f1", "blend": "additive" }, + { "name": "zllizi_b1", "bone": "zllizi_b1", "blend": "additive" }, + { "name": "zllizi_c1", "bone": "zllizi_c1", "blend": "additive" }, + { "name": "jia_a1", "bone": "jia_a1", "blend": "additive" }, + { "name": "jia_b1", "bone": "jia_b1", "blend": "additive" }, + { "name": "jia_c1", "bone": "jia_c1", "blend": "additive" } +], +"skins": [ + { + "name": "default", + "attachments": { + "jia_a1": { + "jia_a1": { "width": 39, "height": 39 } + }, + "jia_b1": { + "jia_a1": { "width": 39, "height": 39 } + }, + "jia_c1": { + "jia_a1": { "width": 39, "height": 39 } + }, + "zllizi_a1": { + "lizi": { "scaleX": 0.5, "scaleY": 0.5, "width": 42, "height": 42 } + }, + "zllizi_b1": { + "lizi": { "scaleX": 0.7, "scaleY": 0.7, "width": 42, "height": 42 } + }, + "zllizi_c1": { + "lizi": { "scaleX": 0.35, "scaleY": 0.35, "width": 42, "height": 42 } + }, + "zllizi_d1": { + "lizi": { "scaleX": 0.6, "scaleY": 0.6, "width": 42, "height": 42 } + }, + "zllizi_e1": { + "lizi": { "scaleX": 0.3, "scaleY": 0.3, "width": 42, "height": 42 } + }, + "zllizi_f1": { + "lizi": { "scaleX": 0.3, "scaleY": 0.3, "width": 42, "height": 42 } + }, + "zllizi_g1": { + "lizi": { "scaleX": 0.6, "scaleY": 0.6, "width": 42, "height": 42 } + } + } + } +], +"events": { + "OnCreateMagicHarm": {}, + "Skill_Complete": {} +}, +"animations": { + "animation": { + "slots": { + "jia_a1": { + "color": [ + { "color": "11ff1f00" }, + { "time": 0.1667, "color": "4aff55ff", "curve": "stepped" }, + { "time": 0.3333, "color": "4aff55ff" }, + { "time": 0.6667, "color": "49ff5500" } + ], + "attachment": [ + { "name": "jia_a1" }, + { "time": 0.6667, "name": null } + ] + }, + "jia_b1": { + "color": [ + { "color": "ffffffff", "curve": "stepped" }, + { "time": 0.0667, "color": "11ff1f00" }, + { "time": 0.2333, "color": "4aff55ff", "curve": "stepped" }, + { "time": 0.4, "color": "4aff55ff" }, + { "time": 0.7333, "color": "49ff5500" } + ], + "attachment": [ + { "time": 0.0667, "name": "jia_a1" }, + { "time": 0.7333, "name": null } + ] + }, + "jia_c1": { + "color": [ + { "color": "ffffffff", "curve": "stepped" }, + { "time": 0.0333, "color": "11ff1f00" }, + { "time": 0.2, "color": "4aff55ff", "curve": "stepped" }, + { "time": 0.3333, "color": "4aff55ff" }, + { "time": 0.6333, "color": "49ff5500" } + ], + "attachment": [ + { "time": 0.0333, "name": "jia_a1" }, + { "time": 0.6333, "name": null } + ] + }, + "zllizi_a1": { + "color": [ + { "time": 0.5333, "color": "ffffffff" }, + { "time": 0.9, "color": "ffffff00" } + ], + "attachment": [ + { "time": 0.2, "name": "lizi" }, + { "time": 0.9, "name": null } + ] + }, + "zllizi_b1": { + "color": [ + { "time": 0.4, "color": "ffffffff" }, + { "time": 0.7667, "color": "ffffff00" } + ], + "attachment": [ + { "time": 0.0667, "name": "lizi" }, + { "time": 0.7667, "name": null } + ] + }, + "zllizi_c1": { + "color": [ + { "time": 0.4, "color": "ffffffff" }, + { "time": 0.7667, "color": "ffffff00" } + ], + "attachment": [ + { "time": 0.0667, "name": "lizi" }, + { "time": 0.7667, "name": null } + ] + }, + "zllizi_d1": { + "color": [ + { "time": 0.6333, "color": "ffffffff" }, + { "time": 1.0333, "color": "ffffff00" } + ], + "attachment": [ + { "time": 0.2, "name": "lizi" }, + { "time": 1.0333, "name": null } + ] + }, + "zllizi_e1": { + "color": [ + { "time": 0.5333, "color": "ffffffff" }, + { "time": 1.0333, "color": "ffffff00" } + ], + "attachment": [ + { "time": 0.0667, "name": "lizi" }, + { "time": 1.0333, "name": null } + ] + }, + "zllizi_f1": { + "color": [ + { "color": "ffffffff", "curve": "stepped" }, + { "time": 0.0667, "color": "ffffff00" }, + { "time": 0.2333, "color": "ffffffff", "curve": "stepped" }, + { "time": 0.5333, "color": "ffffffff" }, + { "time": 1.0333, "color": "ffffff00" } + ], + "attachment": [ + { "time": 0.0667, "name": "lizi" }, + { "time": 1.0333, "name": null } + ] + }, + "zllizi_g1": { + "color": [ + { "color": "ffffffff", "curve": "stepped" }, + { "time": 0.2, "color": "ffffff00" }, + { "time": 0.3667, "color": "ffffffff", "curve": "stepped" }, + { "time": 0.6333, "color": "ffffffff" }, + { "time": 1.0333, "color": "ffffff00" } + ], + "attachment": [ + { "time": 0.2, "name": "lizi" }, + { "time": 1.0333, "name": null } + ] + } + }, + "bones": { + "jia_a1": { + "translate": [ + { "x": -11.35, "y": 13.52 }, + { "time": 0.6667, "x": -12.35, "y": 37.32 } + ], + "scale": [ + { "x": 0.575, "y": 0.575 } + ] + }, + "jia_b1": { + "translate": [ + { "curve": "stepped" }, + { "time": 0.0667, "x": 7.96, "y": 4.61 }, + { "time": 0.7333, "x": 15.57, "y": 25.15 } + ], + "scale": [ + { "curve": "stepped" }, + { "time": 0.0667, "x": 0.575, "y": 0.575 }, + { "time": 0.7333, "x": 0.8, "y": 0.8 } + ] + }, + "jia_c1": { + "translate": [ + { "curve": "stepped" }, + { "time": 0.0333, "x": 0.97, "y": 20.65 }, + { "time": 0.6333, "x": 1.17, "y": 42.01 } + ], + "scale": [ + { "curve": "stepped" }, + { "time": 0.0333, "x": 0.2, "y": 0.2 }, + { "time": 0.6333, "x": 0.4, "y": 0.4 } + ] + }, + "zllizi_a1": { + "translate": [ + { "curve": "stepped" }, + { "time": 0.2, "x": -14.85, "y": 8.53 }, + { "time": 0.9, "x": -16.58, "y": 28.91 } + ], + "scale": [ + { "curve": "stepped" }, + { "time": 0.2, "x": 0.687, "y": 0.687 }, + { "time": 0.3333, "x": 0.598, "y": 0.598 }, + { "time": 0.4667, "x": 0.823, "y": 0.823 }, + { "time": 0.6333, "x": 0.56, "y": 0.56 }, + { "time": 0.9, "x": 0.194, "y": 0.194 } + ] + }, + "zllizi_b1": { + "translate": [ + { "curve": "stepped" }, + { "time": 0.0667, "x": 10.42, "y": 7.49 }, + { "time": 0.7667, "x": 11.28, "y": 17.48 } + ], + "scale": [ + { "curve": "stepped" }, + { "time": 0.0667, "x": 0.687, "y": 0.687 }, + { "time": 0.2, "x": 0.598, "y": 0.598 }, + { "time": 0.3333, "x": 0.823, "y": 0.823 }, + { "time": 0.4667, "x": 0.56, "y": 0.56 }, + { "time": 0.7667, "x": 0.194, "y": 0.194 } + ] + }, + "zllizi_c1": { + "translate": [ + { "curve": "stepped" }, + { "time": 0.0667, "x": 2.11, "y": 20.3 }, + { "time": 0.7667, "x": 1.93, "y": 43.1 } + ], + "scale": [ + { "curve": "stepped" }, + { "time": 0.0667, "x": 0.687, "y": 0.687 }, + { "time": 0.2, "x": 0.598, "y": 0.598 }, + { "time": 0.3333, "x": 0.823, "y": 0.823 }, + { "time": 0.4667, "x": 0.56, "y": 0.56 }, + { "time": 0.7667, "x": 0.194, "y": 0.194 } + ] + }, + "zllizi_d1": { + "translate": [ + { "curve": "stepped" }, + { "time": 0.2, "x": 2.81, "y": 7.15 }, + { "time": 1.0333, "x": -2.05, "y": 38.77 } + ], + "scale": [ + { "curve": "stepped" }, + { "time": 0.2, "x": 0.687, "y": 0.687 }, + { "time": 0.3333, "x": 0.598, "y": 0.598 }, + { "time": 0.5333, "x": 0.823, "y": 0.823 }, + { "time": 0.7, "x": 0.56, "y": 0.56 }, + { "time": 1.0333, "x": 0.194, "y": 0.194 } + ] + }, + "zllizi_e1": { + "translate": [ + { "curve": "stepped" }, + { "time": 0.0667, "x": -7.28, "y": 28.51 }, + { "time": 1.0333, "x": -8.09, "y": 50.46 } + ], + "scale": [ + { "curve": "stepped" }, + { "time": 0.0667, "x": 0.687, "y": 0.687 }, + { "time": 0.2, "x": 0.598, "y": 0.598 }, + { "time": 0.4, "x": 0.823, "y": 0.823 }, + { "time": 0.6333, "x": 0.56, "y": 0.56 }, + { "time": 1.0333, "x": 0.194, "y": 0.194 } + ] + }, + "zllizi_f1": { + "translate": [ + { "curve": "stepped" }, + { "time": 0.0667, "x": 5.78, "y": 41.57 }, + { "time": 1.0333, "x": 10.18, "y": 71.87 } + ], + "scale": [ + { "curve": "stepped" }, + { "time": 0.0667, "x": 0.687, "y": 0.687 }, + { "time": 0.2, "x": 0.598, "y": 0.598 }, + { "time": 0.4, "x": 0.823, "y": 0.823 }, + { "time": 0.6333, "x": 0.56, "y": 0.56 }, + { "time": 1.0333, "x": 0.194, "y": 0.194 } + ] + }, + "zllizi_g1": { + "translate": [ + { "curve": "stepped" }, + { "time": 0.2, "x": 0.34, "y": 43.96 }, + { "time": 1.0333, "x": -3.06, "y": 61.32 } + ], + "scale": [ + { "curve": "stepped" }, + { "time": 0.2, "x": 0.687, "y": 0.687 }, + { "time": 0.3333, "x": 0.598, "y": 0.598 }, + { "time": 0.5333, "x": 0.823, "y": 0.823 }, + { "time": 0.7, "x": 0.56, "y": 0.56 }, + { "time": 1.0333, "x": 0.194, "y": 0.194 } + ] + } + }, + "events": [ + { "time": 0.3333, "name": "OnCreateMagicHarm" }, + { "time": 1.0333, "name": "Skill_Complete" } + ] + } +} +} \ No newline at end of file diff --git a/assets/resources/game/skills/heath/1106112.json.meta b/assets/resources/game/skills/heath/1106112.json.meta new file mode 100644 index 00000000..5f7e83d4 --- /dev/null +++ b/assets/resources/game/skills/heath/1106112.json.meta @@ -0,0 +1,11 @@ +{ + "ver": "1.2.6", + "importer": "spine-data", + "imported": true, + "uuid": "2b3e4b0f-2c6b-4e36-b35e-6a1e5564c1ef", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": {} +} diff --git a/assets/resources/game/skills/heath/1106112.png b/assets/resources/game/skills/heath/1106112.png new file mode 100644 index 0000000000000000000000000000000000000000..c912478482453f03d3720fd828e23a9e0271b105 GIT binary patch literal 1675 zcmV;626Xv}P)%=Bc*{Na&FcU4dI zuitz1x@v@IsG&12D-!7(8XEd=et!Okg@uI`vf0_$@3YzL8+MZf?{l6No0^)sRV)?{ z|1)T3XXjpDU*9#moy9wzOQqB4mpCM@jg5`pBauj&_dS>D@9%$)12QQZjrQ=q=Ta2_ z>*amVr5eC0)ENU75pr^YMQv-g?LvT2JM;-pX9O5-x=9&e#BEF3)?zRm$9WjqQonG( z)fpIh6uc=WWWATdjBH!0V?sP`|IIiiKjS#gW7Y;h0*7nV-s9>Bj9?+`0P8UgP`k1Y z6xF)nm^#-+0MS=n1J|l8v^oK!5QJAquaY<4rhq(QS=J>RP|mh4X1ONI%A$>Gi$3r` zcpSo&!n8Kf>HtjlEZiVGE8}>OWnBae7mj81*#AGN8;&`q;5l%m=K&hLEhW53q59A& z09LKS)rEx{RG!tLg94bSW#ywy)>B5a&pGhC_UNla!-JskJXVQ#JpOEJYwIf~v5}FH zc@D><&d$zJ-Z#jao161Oh6NXeVhkZfp5?-_J%>QWE%8h_ccs5V^|d zRREG`63>-09b6e`mE+;e?`0*2q6d;w7+JqT({FwOPEZ z8yydVh6fPAENX|kC>NTEL}C!0#RpwaVU0~2A_gtX2bH$~i-#e>0-TPRc->?K&Iip4 zPh9h&dLZOwrNC0DRAFsx?KeK?dTMxhcvc%Cc^7gQ>L_@Z48;Ig*`#=LpiNxAd?_*m z!)F{bL8F}J^D;RBpls1ogA{k;rU$p9lg}?NFaOL3T~8GXg^#o$V$dzP2?eYq9Lc*7e()v$ zx_|%Ue;*vKAHnb$$8Zj9bT2c6CGuEC$U+u*%r88->FMdO`Jn45)Na}k0nB*?B4B#5 zr*MSlAnbm;GyJy)tEfyu!#T7;+cLoPJXQ(}LW8-vxjU$tu&HsJ?d|P7JUBQw;x}s2 z{{H?$-rr=nCUWWM=;)_Ht|X9LV3hE~049P$k_0zwZ*PCCySw}Co}QkGa)vgOlapU@ zI3^7a4&LDXP1e=bHI95L{IH-Cd)TYJ)+dy|9vt3wKuNoOM0pHt$^pYeIT5f*g)KA= z$0W>Zyl;i#z+}N{$YGcTZ@!hj3s0gvM)?cJa892o14;|ZVbujz!OM3q?^~fNDl6bY zH?L;y!kYjIhR+M{WLC(#(2kcCZpDAxEO}am3{0+2*rDRQLmH}lUbG@tp~SfHV&Yq> z!2*j{Ue0%orCPpc4t(K?t@i@9FL zl0Og6AVV7yEGN{}iUqz)c#DbEQHa23c?Ywnx4dI`0oS3Kj6nGkJ-rfnFW&Gje3yB( z;pFSevDwbuR{_RE$zU&s=p}`A~49mi0Fl;lg|Ln$!Q8&StC$> z&qCfpDAF!c^*2L81_t4Yd!Z?z`IoBcJ(E0+nFdPctWsD=^wkYT5|)xV9FwXD%omzM z<})WeBUn`AJ4dnzrClP|&?e&T7&&{CxR$zR?RJf@jLhM1VcAF}(P~MDhR~7QZQ9+|ydM%I+R&w)BIGPu!>?-O9{d&?KUvp^ 0 ){ this.addMonster(smc.monsters[0].uuid) } - } gold_add(dt: number) { smc.vm_data.gold.time += dt; @@ -102,7 +103,4 @@ export class MapViewComp extends CCComp { smc.monsters.splice(0,1) } - - - } diff --git a/assets/script/game/map/view/map/layer/SkillLayer.ts b/assets/script/game/map/view/map/layer/SkillLayer.ts index b05e2c81..e445880a 100644 --- a/assets/script/game/map/view/map/layer/SkillLayer.ts +++ b/assets/script/game/map/view/map/layer/SkillLayer.ts @@ -7,6 +7,7 @@ import { Component, Node, Prefab, _decorator ,instantiate} from 'cc'; import { Timer } from '../../../../../../../extensions/oops-plugin-framework/assets/core/common/timer/Timer'; import {oops} from "../../../../../../../extensions/oops-plugin-framework/assets/core/Oops"; +import { BoxSet } from '../../../../common/config/BoxSet'; const { ccclass, property } = _decorator; /** @@ -21,9 +22,8 @@ export default class SkillLayer extends Component { @property(Prefab) light: Prefab = null; onLoad(){ - // 监听全局事件 - // oops.message.on("monster_load", this.onMonsterLoaded, this); - // oops.message.on("hero_load", this.onHeroLoaded, this); + oops.message.on("monster_load", this.onMonsterLoaded, this); + oops.message.on("hero_load", this.onHeroLoaded, this); } onMonsterLoaded(){ @@ -32,9 +32,9 @@ export default class SkillLayer extends Component { // this.node.addChild(light); } onHeroLoaded(){ - // const light = instantiate(this.light); - // light.setPosition(-300,-30,0); - // this.node.addChild(light); + const light = instantiate(this.light); + light.setPosition(BoxSet.HERO_START,BoxSet.GAME_LINE,0); + this.node.addChild(light); } update(dt: number) { // this.timer.update(dt) diff --git a/assets/script/game/map/view/map/layer/once.ts b/assets/script/game/map/view/map/layer/once.ts new file mode 100644 index 00000000..a85c31d3 --- /dev/null +++ b/assets/script/game/map/view/map/layer/once.ts @@ -0,0 +1,23 @@ +import { _decorator, Component, Node, sp } from 'cc'; +const { ccclass, property ,} = _decorator; + +@ccclass('once') +export class once extends Component { + private spine!: sp.Skeleton; + + start() { + + } + protected onLoad(): void { + this.spine = this.getComponent(sp.Skeleton)!; + this.spine.setCompleteListener(trackEntry => { + this.node.destroy() + }); + + } + update(deltaTime: number) { + + } +} + + diff --git a/assets/script/game/map/view/map/layer/once.ts.meta b/assets/script/game/map/view/map/layer/once.ts.meta new file mode 100644 index 00000000..c8388bc4 --- /dev/null +++ b/assets/script/game/map/view/map/layer/once.ts.meta @@ -0,0 +1 @@ +{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"6e0a995d-16c1-4554-8f80-29394f24213b","files":[],"subMetas":{},"userData":{}}