aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-06 11:17:34 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-06 11:17:34 +0100
commit2c4494e371881361e5c883e8fe6952af3400cadc (patch)
treef674900ae50fe6549db346e00322ca06955a8025 /src/crepe/api
parent2b187c58f192cad0f2f22d5f7733e54d53f34e19 (diff)
parentf693119c9e102a9b51a1015168ee2a56f2309dd1 (diff)
script speed fix
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..efc2f6e 100644
--- a/src/crepe/api/Animator.h
+++ b/src/crepe/api/Animator.h
@@ -1,6 +1,7 @@
#pragma once
#include "../types.h"
+#include "../manager/LoopTimerManager.h"
#include "Component.h"
#include "Sprite.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;
};