diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-24 11:35:02 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2021-02-24 16:00:53 -0500 |
commit | 6f9e11252a6688248d0fcc7ae86947b67dce48f7 (patch) | |
tree | a71ca282383d17fec8d8eb4da211a2168d2d50af | |
parent | 76b770247f335aa445c4762396820715e983f2ab (diff) | |
download | tanetane-6f9e11252a6688248d0fcc7ae86947b67dce48f7.tar.gz tanetane-6f9e11252a6688248d0fcc7ae86947b67dce48f7.tar.bz2 tanetane-6f9e11252a6688248d0fcc7ae86947b67dce48f7.zip |
Removed more manual animation stuff
-rw-r--r-- | src/character_system.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/character_system.cpp b/src/character_system.cpp index d5aaf81..8a2034a 100644 --- a/src/character_system.cpp +++ b/src/character_system.cpp | |||
@@ -128,10 +128,6 @@ void CharacterSystem::tick(double dt) { | |||
128 | speed *= 2; | 128 | speed *= 2; |
129 | } | 129 | } |
130 | 130 | ||
131 | if (sprite.characterMedium == CharacterMedium::Ladder) { | ||
132 | //game_.getSystem<AnimationSystem>().advanceAnimation(spriteId); | ||
133 | } | ||
134 | |||
135 | pLoc += (unitVecInDirection(sprite.movementDir) * speed); | 131 | pLoc += (unitVecInDirection(sprite.movementDir) * speed); |
136 | 132 | ||
137 | // Check collision. | 133 | // Check collision. |
@@ -191,10 +187,6 @@ void CharacterSystem::tick(double dt) { | |||
191 | 187 | ||
192 | for (int followerId : sprite.followers) { | 188 | for (int followerId : sprite.followers) { |
193 | Sprite& pNext = game_.getSprite(followerId); | 189 | Sprite& pNext = game_.getSprite(followerId); |
194 | if (pNext.characterMedium == CharacterMedium::Ladder) { | ||
195 | //game_.getSystem<AnimationSystem>().advanceAnimation(followerId); | ||
196 | } | ||
197 | |||
198 | const Movement& posdir = pNext.trail.front(); | 190 | const Movement& posdir = pNext.trail.front(); |
199 | game_.getSystem<TransformSystem>().moveSprite(followerId, posdir.pos); | 191 | game_.getSystem<TransformSystem>().moveSprite(followerId, posdir.pos); |
200 | game_.getSystem<AnimationSystem>().setSpriteDirection(followerId, posdir.dir); | 192 | game_.getSystem<AnimationSystem>().setSpriteDirection(followerId, posdir.dir); |