Animation API getting better but now need to resolve how it works with the frames.
This commit is contained in:
parent
785d0240da
commit
d4e79f1d3d
7 changed files with 70 additions and 45 deletions
|
|
@ -69,11 +69,11 @@ namespace ease2 {
|
|||
}
|
||||
|
||||
void scale_squeeze(Transform &tr, sf::Vector2f& pos_out, sf::Vector2f& scale_out, float tick) {
|
||||
scale_out.x *= std::lerp(tr.min_x, tr.max_x, tick);
|
||||
scale_out.x = std::lerp(tr.min_x, tr.max_x, tick);
|
||||
}
|
||||
|
||||
void scale_squash(Transform &tr, sf::Vector2f& pos_out, sf::Vector2f& scale_out, float tick) {
|
||||
scale_out.y *= std::lerp(tr.min_y, tr.max_y, tick);
|
||||
scale_out.y = std::lerp(tr.min_y, tr.max_y, tick);
|
||||
}
|
||||
|
||||
void scale_stretch(Transform &tr, sf::Vector2f& pos_out, sf::Vector2f& scale_out, float tick) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue