Tried to get camera to have a reset but couldn't figure out.

This commit is contained in:
Zed A. Shaw 2025-11-09 12:54:38 -05:00
parent 29409c54ce
commit de7f9f3445
4 changed files with 37 additions and 34 deletions

View file

@ -75,11 +75,7 @@ namespace boss {
void UI::zoom(const std::string &cell_name) {
auto& cell = $arena.$ui.cell_for(cell_name);
$camera.resize({BOSS_VIEW_WIDTH/2, BOSS_VIEW_HEIGHT/2});
$camera.move($view_texture,
{float(cell.x/2), float(cell.y/2)});
// BUG: do I need this?
// $view_sprite.setPosition({BOSS_VIEW_X, BOSS_VIEW_Y});
$camera.resize(BOSS_VIEW_WIDTH/2, BOSS_VIEW_HEIGHT/2);
$camera.move(float(cell.mid_x), float(cell.mid_y));
}
}