diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-24 10:35:56 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2021-02-24 16:00:53 -0500 |
commit | df093323e48426e8d54a504aeae4155fa3c8e605 (patch) | |
tree | ec8f5d4abb898a69607e3f29e7572ae7841675a5 /src/sprite.h | |
parent | bf39e32f2ec9008e48b0dd3ad53d640434e0738a (diff) | |
download | tanetane-df093323e48426e8d54a504aeae4155fa3c8e605.tar.gz tanetane-df093323e48426e8d54a504aeae4155fa3c8e605.tar.bz2 tanetane-df093323e48426e8d54a504aeae4155fa3c8e605.zip |
Added variable animation frame rates
Lucas's climbing animation now accurately uses 60fps and looks correct finally!
Diffstat (limited to 'src/sprite.h')
-rw-r--r-- | src/sprite.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 { | |||
24 | struct Animation { | 24 | struct Animation { |
25 | bool looping = true; | 25 | bool looping = true; |
26 | std::vector<int> frameIndices; | 26 | std::vector<int> frameIndices; |
27 | int timerNum = 0; | ||
27 | }; | 28 | }; |
28 | 29 | ||
29 | enum class CharacterState { | 30 | enum class CharacterState { |