feat(map): 新增分段刷怪机制并调整教程波次怪物数量

1.  调整教程专用蓝图模板的近战怪生成数量从5个改为2个,并同步更新文档说明
2.  为刷怪组件添加三段式分段刷怪逻辑,每阶段间添加延迟,优化刷怪节奏
3.  重构波次初始化逻辑,提取为setupWaveData方法减少重复代码
This commit is contained in:
walkpan
2026-05-15 23:23:19 +08:00
parent f515feda7b
commit 437982c06f
4 changed files with 192 additions and 109 deletions

View File

@@ -22,26 +22,26 @@
"__id__": 2
},
{
"__id__": 272
"__id__": 276
},
{
"__id__": 281
"__id__": 285
}
],
"_active": true,
"_components": [
{
"__id__": 293
},
{
"__id__": 295
},
{
"__id__": 297
},
{
"__id__": 299
},
{
"__id__": 301
}
],
"_prefab": {
"__id__": 299
"__id__": 303
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -93,18 +93,18 @@
],
"_active": true,
"_components": [
{
"__id__": 265
},
{
"__id__": 267
},
{
"__id__": 269
},
{
"__id__": 271
},
{
"__id__": 273
}
],
"_prefab": {
"__id__": 271
"__id__": 275
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6095,28 +6095,89 @@
"__id__": 1
},
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
"mountedComponents": [
{
"__id__": 260
},
{
"__id__": 262
},
{
"__id__": 263
},
}
],
"propertyOverrides": [
{
"__id__": 264
},
{
"__id__": 266
},
{
"__id__": 267
},
{
"__id__": 268
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"__type__": "cc.MountedComponentsInfo",
"targetInfo": {
"__id__": 261
},
"components": [
{
"__id__": 262
}
]
},
{
"__type__": "cc.TargetInfo",
"localID": [
"f1ya2LoYBB547vP13Ydezp"
]
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {
"mountedRoot": {
"__id__": 257
}
},
"node": {
"__id__": 257
},
"_enabled": true,
"__prefab": {
"__id__": 263
},
"_alignFlags": 2,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bcCrVWMRBOaLOq1wdUZD1Y"
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 265
},
"propertyPath": [
"_name"
],
@@ -6131,7 +6192,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 261
"__id__": 265
},
"propertyPath": [
"_lpos"
@@ -6139,14 +6200,14 @@
"value": {
"__type__": "cc.Vec3",
"x": -143.895,
"y": 622.066,
"y": 640,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 261
"__id__": 265
},
"propertyPath": [
"_lrot"
@@ -6162,7 +6223,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 261
"__id__": 265
},
"propertyPath": [
"_euler"
@@ -6184,7 +6245,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 266
"__id__": 270
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6212,7 +6273,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 268
"__id__": 272
},
"_alignFlags": 21,
"_target": null,
@@ -6248,7 +6309,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 270
"__id__": 274
},
"home_btn": {
"__id__": 45
@@ -6285,14 +6346,14 @@
"__id__": 1
},
"_prefab": {
"__id__": 273
"__id__": 277
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 272
"__id__": 276
},
"asset": {
"__uuid__": "26bff847-cd29-48a5-bbfa-c3e2dbda688d",
@@ -6300,7 +6361,7 @@
},
"fileId": "5a9CMsVQhKP5Y+UJfTKPbx",
"instance": {
"__id__": 274
"__id__": 278
},
"targetOverrides": null
},
@@ -6313,20 +6374,20 @@
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 275
},
{
"__id__": 277
},
{
"__id__": 278
},
{
"__id__": 279
},
{
"__id__": 280
"__id__": 281
},
{
"__id__": 282
},
{
"__id__": 283
},
{
"__id__": 284
}
],
"removedComponents": []
@@ -6334,7 +6395,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 276
"__id__": 280
},
"propertyPath": [
"_name"
@@ -6350,7 +6411,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 276
"__id__": 280
},
"propertyPath": [
"_lpos"
@@ -6365,7 +6426,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 276
"__id__": 280
},
"propertyPath": [
"_lrot"
@@ -6381,7 +6442,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 276
"__id__": 280
},
"propertyPath": [
"_euler"
@@ -6396,7 +6457,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 276
"__id__": 280
},
"propertyPath": [
"_active"
@@ -6410,14 +6471,14 @@
"__id__": 1
},
"_prefab": {
"__id__": 282
"__id__": 286
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 281
"__id__": 285
},
"asset": {
"__uuid__": "56aee962-4a5e-45ae-a779-999444d06d18",
@@ -6425,7 +6486,7 @@
},
"fileId": "cboM54s0hM07XCtrpFp0/b",
"instance": {
"__id__": 283
"__id__": 287
},
"targetOverrides": null
},
@@ -6438,26 +6499,26 @@
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 284
},
{
"__id__": 286
},
{
"__id__": 287
},
{
"__id__": 288
},
{
"__id__": 289
"__id__": 290
},
{
"__id__": 291
},
{
"__id__": 292
},
{
"__id__": 293
},
{
"__id__": 295
},
{
"__id__": 296
}
],
"removedComponents": []
@@ -6465,7 +6526,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 285
"__id__": 289
},
"propertyPath": [
"_name"
@@ -6481,7 +6542,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 285
"__id__": 289
},
"propertyPath": [
"_lpos"
@@ -6496,7 +6557,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 285
"__id__": 289
},
"propertyPath": [
"_lrot"
@@ -6512,7 +6573,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 285
"__id__": 289
},
"propertyPath": [
"_euler"
@@ -6527,7 +6588,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 290
"__id__": 294
},
"propertyPath": [
"_top"
@@ -6543,7 +6604,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 290
"__id__": 294
},
"propertyPath": [
"_alignFlags"
@@ -6553,7 +6614,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 290
"__id__": 294
},
"propertyPath": [
"_bottom"
@@ -6570,7 +6631,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 294
"__id__": 298
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6598,7 +6659,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 296
"__id__": 300
},
"_alignFlags": 45,
"_target": null,
@@ -6634,7 +6695,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 298
"__id__": 302
},
"debugMode": false,
"_id": ""
@@ -6656,10 +6717,10 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": [
{
"__id__": 281
"__id__": 285
},
{
"__id__": 272
"__id__": 276
},
{
"__id__": 257