mirror of
https://github.com/zeldaret/ss
synced 2026-09-10 03:52:24 -04:00
Sword somewhat ok, though not well understood
This commit is contained in:
@@ -94,6 +94,11 @@ public:
|
||||
setFrame(actualEnd * ratio);
|
||||
}
|
||||
|
||||
inline f32 getRatio() const {
|
||||
f32 actualEnd = mEndFrame - 1.0f;
|
||||
return mCurrFrame / actualEnd;
|
||||
}
|
||||
|
||||
inline void setBackwardsRatio(f32 ratio) {
|
||||
f32 actualEnd = mEndFrame - 1.0f;
|
||||
setFrame(actualEnd - (ratio * actualEnd));
|
||||
|
||||
Reference in New Issue
Block a user