去掉了 技能系统,技能由单个精灵独立处理

This commit is contained in:
panfudan
2025-06-02 20:25:23 +08:00
parent c9a499e38b
commit 3fbfc2ea09
68 changed files with 3923 additions and 11907 deletions

View File

@@ -19,7 +19,7 @@ export class MissionMonCompComp extends CCComp {
// 添加刷怪队列
private monsterQueue: Array<{uuid: number, position: number, isBoss: boolean}> = [];
private isSpawning: boolean = false;// 是否正在生成怪物
private spawnInterval: number = 0.5; // 每个怪物生成间隔时间
private spawnInterval: number = 1; // 每个怪物生成间隔时间
private spawnTimer: number = 0; // 生成计时器
/** 视图层逻辑代码分离演示 */
@@ -49,7 +49,7 @@ export class MissionMonCompComp extends CCComp {
mon_refresh(){
let positions = [0, 1, 2, 3];
let positions = [0, 1, 2];
positions.forEach(pos => {
let x = RandomManager.instance.getRandomInt(0, Missions[0].length, 1);
this.addToSpawnQueue(Missions[0][x], pos, false);