Layering rendering now proper.
This commit is contained in:
+5
-6
@@ -5,8 +5,7 @@
|
||||
|
||||
INCLUDE_game
|
||||
INCLUDE_MONSTER_LIST
|
||||
INCLUDE_PLAYER_BULLET_LIST
|
||||
|
||||
INCLUDE_BULLET_LIST
|
||||
|
||||
std::map<Class,std::unique_ptr<ClassData>>CLASS_DATA;
|
||||
|
||||
@@ -147,7 +146,7 @@ bool Warrior::Ability3(){
|
||||
p.UpdateAnimation(AnimationState::WARRIOR_SWINGSONICSWORD_S);
|
||||
}break;
|
||||
}
|
||||
PLAYER_BULLET_LIST.push_back(std::make_unique<Bullet>(p.pos,bulletVel,30,p.GetAttack()*8,AnimationState::SONICSLASH,true,2.25,true,true,WHITE));
|
||||
BULLET_LIST.push_back(std::make_unique<Bullet>(p.pos,bulletVel,30,p.GetAttack()*8,AnimationState::SONICSLASH,p.upperLevel,true,2.25,true,true,WHITE));
|
||||
game->SetupWorldShake(0.5);
|
||||
return true;
|
||||
}
|
||||
@@ -283,14 +282,14 @@ bool Wizard::AutoAttack(){
|
||||
ACCESS_PLAYER
|
||||
p.attack_cooldown_timer=p.MAGIC_ATTACK_COOLDOWN;
|
||||
float angleToCursor=atan2(game->GetWorldMousePos().y-p.pos.y,game->GetWorldMousePos().x-p.pos.x);
|
||||
PLAYER_BULLET_LIST.push_back(std::make_unique<EnergyBolt>(EnergyBolt(p.pos,{cos(angleToCursor)*200,sin(angleToCursor)*200},12,p.GetAttack(),true,WHITE)));
|
||||
BULLET_LIST.push_back(std::make_unique<EnergyBolt>(EnergyBolt(p.pos,{cos(angleToCursor)*200,sin(angleToCursor)*200},12,p.GetAttack(),p.upperLevel,true,WHITE)));
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Wizard::Ability1(){
|
||||
ACCESS_PLAYER
|
||||
float angleToCursor=atan2(game->GetWorldMousePos().y-p.pos.y,game->GetWorldMousePos().x-p.pos.x);
|
||||
PLAYER_BULLET_LIST.push_back(std::make_unique<FireBolt>(FireBolt(p.pos,{cos(angleToCursor)*275,sin(angleToCursor)*275},12,p.GetAttack(),true,{240,120,60})));
|
||||
BULLET_LIST.push_back(std::make_unique<FireBolt>(FireBolt(p.pos,{cos(angleToCursor)*275,sin(angleToCursor)*275},12,p.GetAttack(),p.upperLevel,true,{240,120,60})));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -320,7 +319,7 @@ bool Wizard::RightClickAbility(){
|
||||
p.teleportStartPosition=p.GetPos();
|
||||
p.iframe_time=0.35;
|
||||
for(int i=0;i<16;i++){
|
||||
game->AddEffect(Effect(p.GetPos()+vf2d{(rand()%160-80)/10.f,(rand()%160-80)/10.f},float(rand()%300)/1000,AnimationState::DOT_PARTICLE,0.3,0.2,{float(rand()%1000-500)/100,float(rand()%1000-500)/100},BLACK));
|
||||
game->AddEffect(Effect(p.GetPos()+vf2d{(rand()%160-80)/10.f,(rand()%160-80)/10.f},float(rand()%300)/1000,AnimationState::DOT_PARTICLE,p.upperLevel,0.3,0.2,{float(rand()%1000-500)/100,float(rand()%1000-500)/100},BLACK));
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user