10#include <SFML/Graphics/Rect.hpp>
File : Ammo.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue.hajjar-llauquen@epitech...
Component representing an animation.
int frameWidth
Width of the current frame.
bool loop
Whether the animation should loop.
float elapsedTime
Time elapsed since the animation started.
int frameHeight
Height of the current frame.
int frameTop
Top position of the current frame.
int totalFrames
Total frames including all animations.
float frameDuration
Duration of each frame in seconds.
int frameLeft
Left position of the current frame.
int currentFrame
Index of the currently displayed frame (0 to totalFrames - 1)