From 8886377977fbc79bb30310543e2978ff0c7febfe Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Fri, 5 Sep 2025 08:55:43 +0300 Subject: Player module refactor - Also changed the background to something cozier --- include/utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/utils.h') diff --git a/include/utils.h b/include/utils.h index cb1770e..7437860 100644 --- a/include/utils.h +++ b/include/utils.h @@ -76,5 +76,11 @@ static inline Rectangle GetEntityHurtboxGlobal(const Entity* e, int hbIndex) { return hurtBoxGlobal; } +static inline void ResetAnimation(Animation* animation) { + animation->currentFrame = 0; + animation->currentFrameTimer = 0; + animation->isComplete = false; +} + #endif // UTILS_H_ -- cgit v1.2.3