Camera for the storyboard can now do pan, bounce, dolly, and shake.
This commit is contained in:
parent
0d326089f7
commit
29409c54ce
5 changed files with 23 additions and 15 deletions
|
|
@ -39,7 +39,7 @@ namespace storyboard {
|
|||
|
||||
bool UI::mouse(float x, float y, guecs::Modifiers mods) {
|
||||
auto& cell = $ui.cell_for($zoom_target);
|
||||
$camera.position(cell.mid_x, cell.mid_y);
|
||||
$camera.focus(cell.mid_x, cell.mid_y);
|
||||
|
||||
$zoom_target = *$ui.$parser.hit(x, y);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue