This commit is contained in:
2024-09-23 08:14:39 +08:00
parent 96c96da552
commit 618a6e3f7b
65 changed files with 38950 additions and 8530 deletions

View File

@@ -34,7 +34,7 @@ export class BossViewComp extends CCComp {
atkMaterial: Material;
sprite: Sprite;
/** 角色动画 */
as:BossSpine =null!;
is_role:boolean = false;
@@ -43,8 +43,8 @@ export class BossViewComp extends CCComp {
atk_enemy:any=null!;
neraster_enemy:any=null!;
/** 角色动画 */
hero_uuid:number = 1001;
hero_name : string = "role";
boos_uuid:number = 1001;
boos_name : string = "role";
level:number =1;
scale: number = 1; /** 角色阵营 1hero -1 :monster */
state: number = 1; /** 状态 1move ,2: act 3: stop */
@@ -168,6 +168,9 @@ export class BossViewComp extends CCComp {
update(dt: number){
if(smc.vm_data.game_over||smc.vm_data.game_pause){
return
}
if (this.timer.update(dt)) {
}
@@ -229,7 +232,7 @@ export class BossViewComp extends CCComp {
let {pos,t_pos}=this.get_enemy_pos()
pos.y=pos.y + y
pos.x=pos.x + x
skill.load(pos,BoxSet.HERO,this.node,skill_uuid,atk,t_pos);
skill.load(pos,this.box_group,this.node,skill_uuid,atk,t_pos);
// this.tooltip(3,smc.skills[skill_uuid].name,this.skill_uuid);
}
//使用max_skill
@@ -282,7 +285,6 @@ export class BossViewComp extends CCComp {
this.dead();
this.is_dead = true;
this.ent.remove(MoveToComp)
smc.vm_data.game_over = true;
setTimeout(() => {
this.ent.destroy();
}, 15);