From df093323e48426e8d54a504aeae4155fa3c8e605 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 24 Feb 2021 10:35:56 -0500 Subject: Added variable animation frame rates Lucas's climbing animation now accurately uses 60fps and looks correct finally! --- src/sprite.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sprite.h') diff --git a/src/sprite.h b/src/sprite.h index 5750308..2bbc4ea 100644 --- a/src/sprite.h +++ b/src/sprite.h @@ -24,6 +24,7 @@ struct SpriteFrame { struct Animation { bool looping = true; std::vector frameIndices; + int timerNum = 0; }; enum class CharacterState { -- cgit 1.4.1