Fix std::less comparison for Monster attributes. Cleaned up list deletion for bullets, emitters, and effects. Bullet ring implementation for slime king.

This commit is contained in:
2023-09-09 04:43:52 -05:00
parent 3ee066bb88
commit 244ac80d2a
14 changed files with 62 additions and 43 deletions
+4
View File
@@ -4,6 +4,7 @@
#include "olcUTIL_Animate2D.h"
struct Effect{
friend class Crawler;
vf2d pos={0,0};
float lifetime=0;
float fadeout=0;
@@ -13,6 +14,9 @@ struct Effect{
float rotation=0;
float rotationSpd=0;
bool additiveBlending=false;
private:
bool dead=false;
public:
Effect(vf2d pos,float lifetime,std::string animation,bool upperLevel,float size=1.0f,float fadeout=0.0f,vf2d spd={},Pixel col=WHITE,float rotation=0,float rotationSpd=0,bool additiveBlending=false);
Effect(vf2d pos,float lifetime,std::string animation,bool upperLevel,vf2d size={1,1},float fadeout=0.0f,vf2d spd={},Pixel col=WHITE,float rotation=0,float rotationSpd=0,bool additiveBlending=false);
virtual bool Update(float fElapsedTime);