The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'!
https://forums.lestoria.net
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
450 B
18 lines
450 B
#pragma once
|
|
#include "olcPixelGameEngine.h"
|
|
#include "Animation.h"
|
|
#include "olcUTIL_Animate2D.h"
|
|
|
|
struct Effect{
|
|
vf2d pos;
|
|
float lifetime;
|
|
float fadeout;
|
|
Effect(vf2d pos,float lifetime,AnimationState animation,float fadeout=0.0f);
|
|
bool Update(float fElapsedTime);
|
|
Animate2D::Frame GetFrame();
|
|
void Draw();
|
|
private:
|
|
Animate2D::Animation<AnimationState>animation;
|
|
Animate2D::AnimationState internal_animState;
|
|
float original_fadeoutTime;
|
|
}; |