SeasonI/animation.h
sigonasr2 12bf5a5876 Setup subanimation system
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2022-10-27 21:38:54 -05:00

18 lines
309 B
C++

#ifndef ANIMATION_H
#define ANIMATION_H
#include "pixelGameEngine.h"
using namespace olc;
class Animation{
public:
Decal*spr;
int frames=1;
vi2d sprSize={0,0};
Animation(Decal*spr,vi2d sprSize){
this->frames=spr->sprite->width/sprSize.x;
this->sprSize=sprSize;
this->spr=spr;
}
};
#endif