mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -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({
|
||||
|
Reference in New Issue
Block a user