Fire Bolt implemented.

This commit is contained in:
2023-07-06 04:35:40 -05:00
parent 78b6113d8e
commit 3939ee5693
12 changed files with 113 additions and 9 deletions
+3
View File
@@ -288,6 +288,9 @@ 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})));
return true;
}