mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 12:33:43 +00:00
28 lines
233 B
C
28 lines
233 B
C
#pragma once
|
|
|
|
struct Animation
|
|
{
|
|
int index;
|
|
int frames;
|
|
int speed;
|
|
|
|
Animation() {}
|
|
|
|
Animation(int i, int f, int s)
|
|
{
|
|
index = i;
|
|
frames = f;
|
|
speed = s;
|
|
}
|
|
};
|
|
|
|
enum AnimationType
|
|
{
|
|
IDLE = 0,
|
|
WALK_R = 1,
|
|
WALK_L = 2
|
|
};
|
|
|
|
|
|
|