aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-06 12:06:25 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-06 12:06:25 +0100
commitc40514053e39019ce988cc7961c68fbf7aa5dbe3 (patch)
tree39a33ec1bdc3140572c3c80330efeecc6b0cd0b0 /src/crepe/api
parent20ae1e9dc2043ef3c190f77dd5f9de74bcd533de (diff)
parent79df1f88c41e5e6872b5502dfba776048dbc593e (diff)
Merge remote-tracking branch 'origin/master' into max/game
Diffstat (limited to 'src/crepe/api')
-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;
};