let x = this.x, y = this.y; //发射位置为当前位置
let radius = this.playground.height*0.01; //火球半径...this, x, y, radius, vx, vy, this.color, speed, move_length, this.playground.height*0.01); //当前对象存活才可发射火球...this.x = x;
this.y = y;
//火球半径
this.radius = radius;
//火球速度方向...(player); //调用击中函数
}
}
//调用渲染函数
this.render();
}
//获取火球和该...false;
}
//击中之后的逻辑
attack(player) {
if(player.life > 0) this.destory(); //击中后销毁火球