This commit is contained in:
PC-20230316NUNE\Administrator
2023-12-18 10:03:28 +08:00
parent 9a3f666df1
commit 68d06ca612
8 changed files with 153 additions and 98 deletions

View File

@@ -30,9 +30,9 @@ export enum GCampGuardianEnum{
export default class GCampGuardianMode extends GBaseMode<{},{}>{
//玩家水晶位置
playerPos: Vec2 = new Vec2(-800,-100);
playerPos: Vec2 = new Vec2(-800,-50);
//敌方水晶位置
enemyPos: Vec2 = new Vec2(800,-100);
enemyPos: Vec2 = new Vec2(800,-50);
//我方水晶
@@ -62,7 +62,7 @@ export default class GCampGuardianMode extends GBaseMode<{},{}>{
let max = TD.TbGRole.getDataList().length;
this.onGenRole(GCampGuardianEnum.PLAYER,TD.TbGRole.getDataList()[Math.floor(this.getSync().SyncRandomInt(0,max - 1))]);
this.onGenRole(GCampGuardianEnum.ENEMY,TD.TbGRole.getDataList()[Math.floor(this.getSync().SyncRandomInt(0,max - 1))]);
},1000)
},2000)
}
@@ -114,7 +114,7 @@ export default class GCampGuardianMode extends GBaseMode<{},{}>{
}
//绑定死亡回调
// entity.addKillBackEvent(this.onRoleKillBack.bind(this))
entity.addKillBackEvent(this.onRoleKillBack.bind(this))
//添加宠物属性
entity.onEffectiveValue(new GPetAttribute({