Fix a bug where hp recovery when at full health still applied passive hp recovery effects. Fix bug with volume transitions not respecting the user's set volume controls when adjusting audio events. Add debris spawning for second bonus boss. Release Build 9522.
This commit is contained in:
@@ -46,14 +46,18 @@ INCLUDE_game
|
||||
Debris::Debris(const vf2d pos,const vf2d vel,const int damage,const float radius,const float knockbackAmt,const float rotSpd,const float lifetime,bool upperLevel,bool friendly,Pixel col,const vf2d scale)
|
||||
:Bullet(pos,vel,radius,damage,"commercial_assets/wind_solid_objects.png",upperLevel,false,lifetime,false,friendly,col,scale),knockbackAmt(knockbackAmt),rotatingSpd(rotSpd),randomFrame(util::random(GFX["commercial_assets/wind_solid_objects.png"].Sprite()->Size().x/24)){}
|
||||
void Debris::Update(float fElapsedTime){
|
||||
image_angle+=rotatingSpd;
|
||||
image_angle+=rotatingSpd*fElapsedTime;
|
||||
}
|
||||
bool Debris::PlayerHit(Player*player){
|
||||
player->Knockback(vel.norm()*knockbackAmt);
|
||||
deactivated=true;
|
||||
fadeOutTime=0.5f;
|
||||
return true;
|
||||
}
|
||||
bool Debris::MonsterHit(Monster&monster){
|
||||
monster.Knockback(vel.norm()*knockbackAmt);
|
||||
deactivated=true;
|
||||
fadeOutTime=0.5f;
|
||||
return true;
|
||||
}
|
||||
void Debris::Draw(const Pixel blendCol)const{
|
||||
|
||||
Reference in New Issue
Block a user