| 1 | #include "Player/PlayerCounterForceRun.h" |
|---|---|
| 2 | |
| 3 | #include "Library/Math/MathUtil.h" |
| 4 | |
| 5 | PlayerCounterForceRun::PlayerCounterForceRun() {} |
| 6 | |
| 7 | void PlayerCounterForceRun::setupForceRun(s32 frames, f32 speed) { |
| 8 | mCounter = frames; |
| 9 | mSpeed = speed; |
| 10 | } |
| 11 | |
| 12 | void PlayerCounterForceRun::update() { |
| 13 | mCounter = al::converge(mCounter, 0, 1); |
| 14 | } |
| 15 |