0
0
mirror of https://github.com/Nimac0/SDL_Minigame synced 2026-01-12 05:43:43 +00:00
SDL_Minigame/include/AnimationHandler.h
Nimac0 70080681e0
Some checks failed
/ deploy (push) Failing after 33s
Docs: Formatting and more content
2025-05-02 13:45:07 +02:00

25 lines
515 B
C++

#pragma once
#include <cstdint>
//! \brief Animation struct to hold animation data
//! \param index The row in the sprite sheet (every 32 pixels on the y-axis is a new row)
//! \param frames The number of frames in the animation
//! \param speed The speed of the animation in milliseconds
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;
}
};