feat(skill): add multi-summon positioning and interval configuration
1. 新增技能召唤物XY轴步进偏移与召唤间隔可配置项 2. 重构召唤逻辑,支持按配置对称排布召唤物 3. 替换全局固定间隔为技能预制体可配置的错峰召唤间隔 4. 优化召唤参数缓存与解析逻辑,统一参数获取流程 5. 调整maxm3技能预制体的缩放与尺寸配置作为示例
This commit is contained in:
@@ -54,6 +54,18 @@ export class SkillView extends CCComp {
|
||||
@property({ type: CCInteger, slide: true, range: [1, 8, 1], tooltip: "单次施法召唤的技能实体个数" })
|
||||
summon_count: number = 1;
|
||||
|
||||
/** 召唤物 X 轴步进偏移(像素):summon_count>1 时以出生点/目标点为中心对称交替铺开(第1个=0,之后按 +1,-1,+2,-2... 档 × 该值,正=右) */
|
||||
@property({ type: CCFloat, slide: true, range: [-200, 200, 5], tooltip: "召唤物X轴步进偏移:以中心对称交替铺开(0,+1,-1,+2,-2...档×该值)" })
|
||||
summon_x_offset: number = 0;
|
||||
|
||||
/** 召唤物 Y 轴步进偏移(像素):summon_count>1 时与 X 同档位对称交替铺开(正=上) */
|
||||
@property({ type: CCFloat, slide: true, range: [-200, 200, 5], tooltip: "召唤物Y轴步进偏移:与X同档位对称交替(0,+1,-1,+2,-2...档×该值)" })
|
||||
summon_y_offset: number = 0;
|
||||
|
||||
/** 召唤间隔(秒):summon_count>1 时相邻两个实体的生成时间间隔(<=0 回退全局 FightSet.SUMMON_INTERVAL) */
|
||||
@property({ type: CCFloat, slide: true, range: [0, 2, 0.05], tooltip: "召唤间隔(秒):相邻实体生成间隔,0=用全局默认" })
|
||||
summon_interval: number = 0;
|
||||
|
||||
/** 抛射物高度增量(像素),贝塞尔弹道时叠加到 bezierMidHeight,控制抛物线顶点抬高 */
|
||||
@property({ type: CCFloat, slide: true, range: [0, 500, 5], tooltip: "抛射物高度增量(叠加到贝塞尔弹道中点高度)" })
|
||||
height_offset: number = 0;
|
||||
|
||||
Reference in New Issue
Block a user