旋风斩 螺旋丸 完成

This commit is contained in:
panw
2025-01-09 15:51:00 +08:00
parent b1e50d0721
commit 2903e06ed4
17 changed files with 1199 additions and 117 deletions

View File

@@ -146,11 +146,6 @@ export class HeroViewComp extends CCComp {
// this.node.getChildByName("atk").getComponent(Label).string = this.ap.toString();
// this.node.getChildByName("hp_max").setScale(this.scale,1);
// this.node.getChildByName("hp_max").getComponent(Label).string=this.hp_max.toString();
// this.BoxRang.getComponent(BoxRangComp).box_group = this.box_group;
// this.BoxRang.getComponent(BoxRangComp).atk_range = this.ap_range
// this.BoxRang.getComponent(BoxRangComp).offset_x = 300;
// console.log("monseter ",this.BoxRang);
// console.log("monseter ",this.BoxRang);
// 注册单个碰撞体的回调函数
@@ -378,6 +373,7 @@ export class HeroViewComp extends CCComp {
break;
case 8:
if(num > skill.depb) return
if(this.node.position.x > 300||this.node.position.x < -300) return
tween(this.node).to( 0.1,
{ position: new Vec3(this.node.position.x-this.scale*50,this.node.position.y) },
{ }
@@ -695,9 +691,9 @@ export class HeroViewComp extends CCComp {
}
do_all_buff(sk:number){
let skill = ecs.getEntity<Skill>(Skill);
let t_pos=v3(-320,0)
if(this.box_group==BoxSet.MONSTER) t_pos=v3(320,0)
let pos = t_pos
let pos=v3(-320,0)
if(this.box_group==BoxSet.MONSTER) pos=v3(320,0)
let t_pos = pos
this.to_console("to_all_buff:"+sk)
let is_crit=this.check_crit()
skill.load(pos,this.box_group,this.node,sk,this.ap_max,t_pos,is_crit,this.crit_add);