From d3cdbff3d9881a527dd1171e209ea7725c595720 Mon Sep 17 00:00:00 2001 From: panw Date: Tue, 22 Apr 2025 16:19:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E7=A4=BA=E4=BD=8D=E7=BD=AE=E5=8F=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/resources/game/map/map_rpg.prefab | 1443 +++++++-------------- assets/script/game/hero/Hero.ts | 2 +- assets/script/game/map/MissionComp.ts | 12 +- assets/script/game/map/MissionHeroComp.ts | 9 +- 4 files changed, 489 insertions(+), 977 deletions(-) diff --git a/assets/resources/game/map/map_rpg.prefab b/assets/resources/game/map/map_rpg.prefab index 82ca4715..2adbe6da 100644 --- a/assets/resources/game/map/map_rpg.prefab +++ b/assets/resources/game/map/map_rpg.prefab @@ -28,17 +28,17 @@ "_active": true, "_components": [ { - "__id__": 346 + "__id__": 328 }, { - "__id__": 348 + "__id__": 330 }, { - "__id__": 350 + "__id__": 332 } ], "_prefab": { - "__id__": 352 + "__id__": 334 }, "_lpos": { "__type__": "cc.Vec3", @@ -197,17 +197,17 @@ "_active": true, "_components": [ { - "__id__": 339 + "__id__": 321 }, { - "__id__": 341 + "__id__": 323 }, { - "__id__": 343 + "__id__": 325 } ], "_prefab": { - "__id__": 345 + "__id__": 327 }, "_lpos": { "__type__": "cc.Vec3", @@ -251,23 +251,23 @@ "__id__": 8 }, { - "__id__": 320 + "__id__": 302 }, { - "__id__": 324 + "__id__": 306 }, { - "__id__": 330 + "__id__": 312 } ], "_active": true, "_components": [ { - "__id__": 336 + "__id__": 318 } ], "_prefab": { - "__id__": 338 + "__id__": 320 }, "_lpos": { "__type__": "cc.Vec3", @@ -314,14 +314,14 @@ "_active": true, "_components": [ { - "__id__": 315 + "__id__": 297 }, { - "__id__": 317 + "__id__": 299 } ], "_prefab": { - "__id__": 319 + "__id__": 301 }, "_lpos": { "__type__": "cc.Vec3", @@ -369,19 +369,28 @@ }, { "__id__": 210 + }, + { + "__id__": 274 + }, + { + "__id__": 280 + }, + { + "__id__": 286 } ], "_active": true, "_components": [ { - "__id__": 310 + "__id__": 292 }, { - "__id__": 312 + "__id__": 294 } ], "_prefab": { - "__id__": 314 + "__id__": 296 }, "_lpos": { "__type__": "cc.Vec3", @@ -5070,25 +5079,16 @@ }, { "__id__": 265 - }, - { - "__id__": 271 - }, - { - "__id__": 283 - }, - { - "__id__": 295 } ], "_active": true, "_components": [ { - "__id__": 307 + "__id__": 271 } ], "_prefab": { - "__id__": 309 + "__id__": 273 }, "_lpos": { "__type__": "cc.Vec3", @@ -6487,915 +6487,18 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, - { - "__type__": "cc.Node", - "_name": "BubbleFrame01_Hexagon_Bg_Blue", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 210 - }, - "_children": [ - { - "__id__": 272 - } - ], - "_active": true, - "_components": [ - { - "__id__": 278 - }, - { - "__id__": 280 - } - ], - "_prefab": { - "__id__": 282 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -140, - "y": 45, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": -0.0008726645152351496, - "w": 0.9999996192282494 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.6, - "y": 0.5, - "z": 1 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": -0.1 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "Label", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 271 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 273 - }, - { - "__id__": 275 - } - ], - "_prefab": { - "__id__": 277 - }, - "_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__": 210 + }, + "_enabled": true, + "__prefab": { "__id__": 272 }, - "_enabled": true, - "__prefab": { - "__id__": 274 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 38.9306640625, - "height": 88.2 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "f3t93aOORAB7BxYnpMozbH" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 272 - }, - "_enabled": true, - "__prefab": { - "__id__": 276 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 177 - }, - "_string": "1", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 70, - "_fontSize": 70, - "_fontFamily": "Arial", - "_lineHeight": 70, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": true, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": false, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 2, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "94vS3gQmxB95UxVOuQjhmB" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "3bX1e/BUVNd53voJEaWPoH", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 271 - }, - "_enabled": true, - "__prefab": { - "__id__": 279 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 125, - "height": 122 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "acetKWfbBNi6dJnK40KQwG" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 271 - }, - "_enabled": true, - "__prefab": { - "__id__": 281 - }, - "_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@bd51c", - "__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": "02gUYFh3NESa4QiPYBcHUM" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "38/gM3zuxOtouRdtK+gT/F", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "BubbleFrame01_Hexagon_Bg_Green", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 210 - }, - "_children": [ - { - "__id__": 284 - } - ], - "_active": true, - "_components": [ - { - "__id__": 290 - }, - { - "__id__": 292 - } - ], - "_prefab": { - "__id__": 294 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -220, - "y": 45, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": -0.0008726645152351496, - "w": 0.9999996192282494 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.6, - "y": 0.5, - "z": 1 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": -0.1 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "Label-001", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 283 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 285 - }, - { - "__id__": 287 - } - ], - "_prefab": { - "__id__": 289 - }, - "_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__": 284 - }, - "_enabled": true, - "__prefab": { - "__id__": 286 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 38.9306640625, - "height": 88.2 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "b8VZiPS8JCCYNAWpkPtLZa" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 284 - }, - "_enabled": true, - "__prefab": { - "__id__": 288 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 177 - }, - "_string": "2", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 70, - "_fontSize": 70, - "_fontFamily": "Arial", - "_lineHeight": 70, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": true, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": false, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 2, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "4aBvvdMhNC1bSyYStag8uX" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "ce8MlKWzJE/7gD4BJnGKjc", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 283 - }, - "_enabled": true, - "__prefab": { - "__id__": 291 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 125, - "height": 122 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "b0dWkj+WZNSaxq08vS+3wk" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 283 - }, - "_enabled": true, - "__prefab": { - "__id__": 293 - }, - "_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@bd51c", - "__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": "b6P4bRsKZDopAAWWzYrCpO" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "a0kOUf+ZBFyp5IAWCsRhMO", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "BubbleFrame01_Hexagon_Bg_Yellow", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 210 - }, - "_children": [ - { - "__id__": 296 - } - ], - "_active": true, - "_components": [ - { - "__id__": 302 - }, - { - "__id__": 304 - } - ], - "_prefab": { - "__id__": 306 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -300, - "y": 45, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": -0.0008726645152351496, - "w": 0.9999996192282494 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.6, - "y": 0.5, - "z": 1 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": -0.1 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "Label-001", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 295 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 297 - }, - { - "__id__": 299 - } - ], - "_prefab": { - "__id__": 301 - }, - "_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__": 296 - }, - "_enabled": true, - "__prefab": { - "__id__": 298 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 38.9306640625, - "height": 88.2 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "c58oruSE5KUZi1uvIn+8vb" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 296 - }, - "_enabled": true, - "__prefab": { - "__id__": 300 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 177 - }, - "_string": "3", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 70, - "_fontSize": 70, - "_fontFamily": "Arial", - "_lineHeight": 70, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": true, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": false, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 2, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "30If9z1h1CSKEM0xkiXjb0" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "72AJpPqwlOZZykeskdtijy", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 295 - }, - "_enabled": true, - "__prefab": { - "__id__": 303 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 125, - "height": 122 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "2elMCjg+FOB5ZF5Tu4AZ5c" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 295 - }, - "_enabled": true, - "__prefab": { - "__id__": 305 - }, - "_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@bd51c", - "__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": "63mXEmhGBFkL6alAxmg2YB" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "e5CODbpzVND5WRKWSWtBNG", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 210 - }, - "_enabled": true, - "__prefab": { - "__id__": 308 - }, "_contentSize": { "__type__": "cc.Size", "width": 100, @@ -7425,6 +6528,414 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, + { + "__type__": "cc.Node", + "_name": "BubbleFrame01_Hexagon_Bg_Blue", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 9 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 275 + }, + { + "__id__": 277 + } + ], + "_prefab": { + "__id__": 279 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -270, + "y": 65, + "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__": 274 + }, + "_enabled": true, + "__prefab": { + "__id__": 276 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 125, + "height": 122 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "58dPX3GZxL0K2FSBQxI61Q" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 274 + }, + "_enabled": true, + "__prefab": { + "__id__": 278 + }, + "_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@62d7f", + "__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": "8fbJU5d6tMw5dErXumn0kM" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "46fzULVGFDzbaJnmjgPD/B", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "BubbleFrame01_Hexagon_Bg_Green", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 9 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 281 + }, + { + "__id__": 283 + } + ], + "_prefab": { + "__id__": 285 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -270, + "y": 205, + "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__": 280 + }, + "_enabled": true, + "__prefab": { + "__id__": 282 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 125, + "height": 122 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "29g3YRNF1Pkp3vZBGP5fLl" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 280 + }, + "_enabled": true, + "__prefab": { + "__id__": 284 + }, + "_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@9bff3", + "__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": "0dkAUR1RZDVo8FnUkg7/T3" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "2amAPXO8dJnbCelfDSf8iM", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "BubbleFrame01_Hexagon_Bg_Yellow", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 9 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 287 + }, + { + "__id__": 289 + } + ], + "_prefab": { + "__id__": 291 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -140, + "y": 135, + "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__": 286 + }, + "_enabled": true, + "__prefab": { + "__id__": 288 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 125, + "height": 122 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "13KKLVA4pLu7uqLbrXcvNS" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 286 + }, + "_enabled": true, + "__prefab": { + "__id__": 290 + }, + "_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@bd51c", + "__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": "baPnu00gtIr4tvnUy5I9Ax" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "baTTPVmVBGFJxID97+K+ur", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, { "__type__": "cc.UITransform", "_name": "", @@ -7435,7 +6946,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 311 + "__id__": 293 }, "_contentSize": { "__type__": "cc.Size", @@ -7463,7 +6974,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 313 + "__id__": 295 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -7521,7 +7032,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 316 + "__id__": 298 }, "_contentSize": { "__type__": "cc.Size", @@ -7549,10 +7060,10 @@ }, "_enabled": true, "__prefab": { - "__id__": 318 + "__id__": 300 }, "bgImg": { - "__id__": 312 + "__id__": 294 }, "_id": "" }, @@ -7585,11 +7096,11 @@ "_active": true, "_components": [ { - "__id__": 321 + "__id__": 303 } ], "_prefab": { - "__id__": 323 + "__id__": 305 }, "_lpos": { "__type__": "cc.Vec3", @@ -7626,11 +7137,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 320 + "__id__": 302 }, "_enabled": true, "__prefab": { - "__id__": 322 + "__id__": 304 }, "_contentSize": { "__type__": "cc.Size", @@ -7664,7 +7175,7 @@ { "__type__": "cc.Node", "_name": "EntityLayer", - "_objFlags": 512, + "_objFlags": 0, "__editorExtras__": {}, "_parent": { "__id__": 7 @@ -7673,14 +7184,14 @@ "_active": true, "_components": [ { - "__id__": 325 + "__id__": 307 }, { - "__id__": 327 + "__id__": 309 } ], "_prefab": { - "__id__": 329 + "__id__": 311 }, "_lpos": { "__type__": "cc.Vec3", @@ -7717,11 +7228,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 324 + "__id__": 306 }, "_enabled": true, "__prefab": { - "__id__": 326 + "__id__": 308 }, "_contentSize": { "__type__": "cc.Size", @@ -7745,11 +7256,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 324 + "__id__": 306 }, "_enabled": true, "__prefab": { - "__id__": 328 + "__id__": 310 }, "_id": "" }, @@ -7782,14 +7293,14 @@ "_active": true, "_components": [ { - "__id__": 331 + "__id__": 313 }, { - "__id__": 333 + "__id__": 315 } ], "_prefab": { - "__id__": 335 + "__id__": 317 }, "_lpos": { "__type__": "cc.Vec3", @@ -7826,11 +7337,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 330 + "__id__": 312 }, "_enabled": true, "__prefab": { - "__id__": 332 + "__id__": 314 }, "_contentSize": { "__type__": "cc.Size", @@ -7854,11 +7365,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 330 + "__id__": 312 }, "_enabled": true, "__prefab": { - "__id__": 334 + "__id__": 316 }, "light": { "__uuid__": "319c7eb8-9826-48b6-81e4-82559dbf82a8", @@ -7893,7 +7404,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 337 + "__id__": 319 }, "_contentSize": { "__type__": "cc.Size", @@ -7934,7 +7445,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 340 + "__id__": 322 }, "_contentSize": { "__type__": "cc.Size", @@ -7962,7 +7473,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 342 + "__id__": 324 }, "camera": { "__id__": 3 @@ -7971,16 +7482,16 @@ "__id__": 7 }, "mapLayer": { - "__id__": 317 + "__id__": 299 }, "floorLayer": { - "__id__": 320 + "__id__": 302 }, "entityLayer": { - "__id__": 327 + "__id__": 309 }, "SkillLayer": { - "__id__": 333 + "__id__": 315 }, "isFollowPlayer": true, "_id": "" @@ -7999,7 +7510,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 344 + "__id__": 326 }, "_id": "" }, @@ -8030,7 +7541,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 347 + "__id__": 329 }, "_contentSize": { "__type__": "cc.Size", @@ -8058,7 +7569,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 349 + "__id__": 331 }, "_cameraComponent": { "__id__": 3 @@ -8080,7 +7591,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 351 + "__id__": 333 }, "_alignFlags": 45, "_target": null, diff --git a/assets/script/game/hero/Hero.ts b/assets/script/game/hero/Hero.ts index 8e96a144..d637f70f 100644 --- a/assets/script/game/hero/Hero.ts +++ b/assets/script/game/hero/Hero.ts @@ -39,7 +39,7 @@ export class Hero extends ecs.Entity { var scene = smc.map.MapView.scene; node.parent = scene.entityLayer!.node! node.setPosition(pos) - + console.log("hero load",pos) var hv = node.getComponent(HeroViewComp)!; let hero= HeroInfo[uuid] // 共用英雄数据 hv.scale = scale; diff --git a/assets/script/game/map/MissionComp.ts b/assets/script/game/map/MissionComp.ts index 4f4550df..5d9a1977 100644 --- a/assets/script/game/map/MissionComp.ts +++ b/assets/script/game/map/MissionComp.ts @@ -48,9 +48,9 @@ export class MissionComp extends CCComp { } start() { this.heros_node=this.node.getChildByName("heros") - this.herosc_node=this.node.getChildByName("herosc") - this.herosc_node.active=false - this.node.getChildByName('hbg').active=false + // this.herosc_node=this.node.getChildByName("herosc") + // this.herosc_node.active=false + // this.node.getChildByName('hbg').active=false this.heros_node_pos=v3(this.heros_node.position.x,this.heros_node.position.y,this.heros_node.position.z) // this.VictoryComp=this.node.getChildByName("victory").getComponent(VictoryComp) } @@ -65,7 +65,7 @@ export class MissionComp extends CCComp { // } } show_herosc(event: string, args: any){ - this.node.getChildByName('hbg').active=true + // this.node.getChildByName('hbg').active=true const screenSize = this.node.getComponent(UITransform).contentSize; const centerY = screenSize.height / 2; tween(this.heros_node).to(0.1,{position:v3(this.heros_node.position.x,centerY,0)}, // 这里以node的位置信息坐标缓动的目标 @@ -81,11 +81,11 @@ export class MissionComp extends CCComp { call_hero(event: string, args: any){ console.log("call_hero",args) oops.message.dispatchEvent(GameEvent.CallHero,{uuid:this.hero_args.uuid,pos:args}) - this.herosc_node.active=false + // this.herosc_node.active=false this.heros_node.active=true this.heros_node.position=this.heros_node_pos this.hero_args=null - this.node.getChildByName('hbg').active=false + // this.node.getChildByName('hbg').active=false } mission_start(){ /* todo 关卡设定完善*/ diff --git a/assets/script/game/map/MissionHeroComp.ts b/assets/script/game/map/MissionHeroComp.ts index dcf45d25..918482f4 100644 --- a/assets/script/game/map/MissionHeroComp.ts +++ b/assets/script/game/map/MissionHeroComp.ts @@ -19,9 +19,9 @@ const { ccclass, property } = _decorator; export class MissionHeroCompComp extends CCComp { timer:Timer=new Timer(2) start_pos:any={ - 0:{pos:v3(-140,130,0),has:false}, - 1:{pos:v3(-220,130,0),has:false}, - 2:{pos:v3(-300,130,0),has:false}, + 0:{pos:v3(-140,135,0),has:false}, + 1:{pos:v3(-270,205,0),has:false}, + 2:{pos:v3(-270,65,0),has:false}, } onLoad(){ this.on(GameEvent.UserHeroCard,this.call_hero,this) @@ -58,7 +58,8 @@ export class MissionHeroCompComp extends CCComp { } let hero = ecs.getEntity(Hero); let scale = 1 - let pos:Vec3 = v3(HeroPos[HeroInfo[uuid].type].pos); + let pos:Vec3 = this.start_pos[HeroInfo[uuid].type].pos; + console.log("hero load0",pos,this.start_pos) hero.load(pos,scale,uuid,info); this.start_pos[HeroInfo[uuid].type].has=true }