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.
19 lines
502 B
19 lines
502 B
1 year ago
|
#pragma once
|
||
|
#include "olcPixelGameEngine.h"
|
||
|
#include "Constant.h"
|
||
|
#include "olcPGEX_TransformedView.h"
|
||
|
|
||
|
class DeathAnimation{
|
||
|
vf2d pos;
|
||
|
Renderable img;
|
||
|
Renderable&originalImg;
|
||
|
Renderable&matrixImg;
|
||
|
vf2d randomOffset;
|
||
|
float fadeTimer=CONSTANT::DEATH_FADE_TIME;
|
||
|
bool friendly;
|
||
|
public:
|
||
|
DeathAnimation(PixelGameEngine*pge,vf2d pos,Renderable&unitImg,Renderable&matrixImg,bool friendly);
|
||
|
void Update(float fElapsedTime);
|
||
|
void Draw(TileTransformedView&game,PixelGameEngine*pge);
|
||
|
bool IsDone();
|
||
|
};
|