添加了几个英雄

This commit is contained in:
2024-09-09 10:48:52 +08:00
parent 3c2bf955a6
commit 0129c63bb9
279 changed files with 25842 additions and 6672 deletions

View File

@@ -75,7 +75,7 @@ export class MonViewComp extends CCComp {
shield_max:number = 200;
shield_time:number = 0; //护盾持续时间
box_group:number = 2;
box_group:number = BoxSet.MONSTER;
atk_range:number = 150;
private timer:Timer = new Timer(1); //计时器
private m_timer:Timer = new Timer(0.1);
@@ -91,7 +91,7 @@ export class MonViewComp extends CCComp {
} /** 视图层逻辑代码分离演示 */
start () {
this.as.move()
this.sprite = this.node.getChildByName("mon").getComponent(Sprite);
this.sprite = this.node.getChildByName("anm").getComponent(Sprite);
// this.node.getChildByName("top").setScale(this.scale,1);
// this.node.getChildByName("atk").setScale(this.scale,1);
// this.node.getChildByName("atk").getComponent(Label).string = this.atk.toString();