Fix bug with missing return value for effect updating.

This commit is contained in:
2023-06-16 02:33:12 -05:00
parent 9db2565060
commit 2f95e71114
10 changed files with 14 additions and 9 deletions
+4 -4
View File
@@ -4,10 +4,10 @@
#include "olcUTIL_Animate2D.h"
struct Effect{
vf2d pos;
float lifetime;
float fadeout;
float size;
vf2d pos={0,0};
float lifetime=0;
float fadeout=0;
float size=1;
Effect(vf2d pos,float lifetime,AnimationState animation,float size=1.0f,float fadeout=0.0f);
bool Update(float fElapsedTime);
Animate2D::Frame GetFrame();