Add energy bolt splash effect and fade out.

This commit is contained in:
2023-07-05 05:34:21 -05:00
parent 8c34640e52
commit ba6bc74f1f
11 changed files with 95 additions and 35 deletions
+3 -1
View File
@@ -3,6 +3,8 @@
struct EnergyBolt:public Bullet{
float lastParticleSpawn=0;
EnergyBolt(vf2d pos,vf2d vel,float radius,int damage,Pixel col=WHITE);
EnergyBolt(vf2d pos,vf2d vel,float radius,int damage,bool friendly=false,Pixel col=WHITE);
void Update(float fElapsedTime)override;
bool PlayerHit(Player&player)override;
bool MonsterHit(Monster&monster)override;
};