mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 12:33:43 +00:00
dehardcoded Animations and moved ECS implementation + moved select screen function to chickengame
21 lines
258 B
C++
21 lines
258 B
C++
#pragma once
|
|
#include <cstdint>
|
|
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;
|
|
}
|
|
};
|
|
|
|
|
|
|