Firebolt bullet speed increased, added slight screen shake on impact and added cooldown timer numbers next to cooldown bars.

This commit is contained in:
2023-07-06 18:03:35 +00:00
parent 3939ee5693
commit d08b3848b8
5 changed files with 93 additions and 3 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ bool Wizard::AutoAttack(){
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)*200,sin(angleToCursor)*200},12,p.GetAttack(),true,{240,120,60})));
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})));
return true;
}