mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-14 16:12:25 -06:00
refactor: unify ghost state management and animation handling, use integers for texture animation
This commit is contained in:
@@ -57,7 +57,8 @@ pub fn directional_render_system(
|
||||
|
||||
if let Some(texture) = texture {
|
||||
if !stopped {
|
||||
texture.tick(dt.0);
|
||||
let ticks = (dt.0 * 60.0).round() as u16; // Convert from seconds to ticks at 60 ticks/sec
|
||||
texture.tick(ticks);
|
||||
}
|
||||
let new_tile = *texture.current_tile();
|
||||
if renderable.sprite != new_tile {
|
||||
|
||||
Reference in New Issue
Block a user