Animations are working better in the raycaster but still need refinement.

This commit is contained in:
Zed A. Shaw 2026-02-24 13:42:29 -05:00
parent 81a282d544
commit cded8a937e
3 changed files with 39 additions and 36 deletions

View file

@ -50,6 +50,7 @@ namespace animation {
dbc::check(sequence.current < $frame_rects.size(), "current frame past $frame_rects");
// NOTE: pos is not updated yet
auto& rect = $frame_rects.at(sequence.current);
fmt::println("setting texture rect: {},{}", rect.position.x, rect.position.y);
sprite.setTextureRect(rect);
}