mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 10:13:42 +00:00
28 lines
338 B
C
28 lines
338 B
C
#pragma once
|
|
#include <stdint.h>
|
|
struct Animation
|
|
{
|
|
uint8_t index;
|
|
uint8_t frames;
|
|
uint8_t speed;
|
|
|
|
Animation() {}
|
|
|
|
Animation(uint8_t index, uint8_t frames, uint8_t speed)
|
|
{
|
|
this->index = index;
|
|
this->frames = frames;
|
|
this->speed = speed;
|
|
}
|
|
};
|
|
|
|
enum AnimationType //TODO enum class
|
|
{
|
|
IDLE = 0,
|
|
WALK_R = 1,
|
|
WALK_L = 2
|
|
};
|
|
|
|
|
|
|