Torches are now flipped, but next is that same crash.
This commit is contained in:
parent
0e8b661273
commit
2484802d93
7 changed files with 23 additions and 32 deletions
|
|
@ -70,8 +70,7 @@ namespace animate2 {
|
|||
}
|
||||
}
|
||||
|
||||
// replaces step
|
||||
void Animate2::update_frame() {
|
||||
void Animate2::update() {
|
||||
dbc::check(playing, "attempt to update animation that's not playing");
|
||||
dbc::check(sequence.frame_count == sequence.frames.size(), "frame_count doesn't match frame.size()");
|
||||
|
||||
|
|
@ -106,10 +105,6 @@ namespace animate2 {
|
|||
dbc::check(sequence.current < sequence.frame_count, "onLoop fail: current frame out of frames.size()");
|
||||
}
|
||||
|
||||
void Animate2::update() {
|
||||
update_frame();
|
||||
}
|
||||
|
||||
void Animate2::motion(sf::Sprite& sprite, sf::Vector2f pos, sf::Vector2f scale) {
|
||||
transform.lerp(sequence, pos, scale);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue