Now can do a SLIDE motion that is a linear move to an x/y.
This commit is contained in:
parent
f1f4cbc80f
commit
222c66a1f2
6 changed files with 58 additions and 48 deletions
|
|
@ -81,7 +81,7 @@ namespace boss {
|
|||
$view_texture.setView(zoom);
|
||||
} else if($zoom_anim.playing) {
|
||||
auto& cell = $arena.$ui.cell_for(cell_name);
|
||||
sf::Vector2f pos{float(cell.x), float(cell.y)};
|
||||
sf::Vector2f pos{float(cell.x/2), float(cell.y/2)};
|
||||
sf::View zoom;
|
||||
$zoom_anim.apply(zoom, pos, {BOSS_VIEW_WIDTH/2, BOSS_VIEW_HEIGHT/2});
|
||||
$view_texture.setView(zoom);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue