generated from sigonasr2/CPlusPlusProjectTemplate
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
291 B
18 lines
291 B
2 years ago
|
#ifndef ANIMATION_H
|
||
|
#define ANIMATION_H
|
||
|
#include "pixelGameEngine.h"
|
||
|
|
||
|
using namespace olc;
|
||
|
|
||
|
class Animation{
|
||
|
public:
|
||
|
Decal*spr;
|
||
|
int frames=1;
|
||
|
int width=0;
|
||
|
Animation(Decal*spr,int width){
|
||
|
this->frames=spr->sprite->width/width;
|
||
|
this->width=width;
|
||
|
this->spr=spr;
|
||
|
}
|
||
|
};
|
||
|
#endif
|