Camera for the storyboard can now do pan, bounce, dolly, and shake.

This commit is contained in:
Zed A. Shaw 2025-11-09 11:41:11 -05:00
parent 0d326089f7
commit 29409c54ce
5 changed files with 23 additions and 15 deletions

View file

@ -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);