Animations are working better in the raycaster but still need refinement.
This commit is contained in:
parent
81a282d544
commit
cded8a937e
3 changed files with 39 additions and 36 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue