aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Animator.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-06 15:27:44 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-06 15:27:44 +0100
commitceb41b7ae7e2734af954364b319fc0b6f2a86c2f (patch)
treef7544f5f68236be02eb96a7d381bce9ad41845dc /src/crepe/api/Animator.h
parente9cba1baee564d835b8a3473a9cb146825f56732 (diff)
parent77d02bf2e2d5d04e8cacb3c783446541517e8e76 (diff)
Merge branch 'master' of https://github.com/lonkaars/crepe into wouter/enemyAI
Diffstat (limited to 'src/crepe/api/Animator.h')
-rw-r--r--src/crepe/api/Animator.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/crepe/api/Animator.h b/src/crepe/api/Animator.h
index 102894d..95539d3 100644
--- a/src/crepe/api/Animator.h
+++ b/src/crepe/api/Animator.h
@@ -1,5 +1,6 @@
#pragma once
+#include "../manager/LoopTimerManager.h"
#include "../types.h"
#include "Component.h"
@@ -99,6 +100,12 @@ private:
//! The maximum number of rows and columns inside the spritesheet
const uvec2 grid_size;
+ // the time elapsed from a frame duration
+ duration_t elapsed_time = {};
+
+ // frame counter
+ unsigned int frame = 0;
+
//! Uses the spritesheet
friend AnimatorSystem;
};