mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-10 02:07:55 -06:00
feat: smooth back-forth sprite frame ticks, sprite rotation
This commit is contained in:
@@ -5,4 +5,6 @@ pub trait Entity {
|
||||
fn position(&self) -> (i32, i32);
|
||||
// Returns the cell position of the entity (XY position within the grid)
|
||||
fn cell_position(&self) -> (u32, u32);
|
||||
// Tick the entity (move it, perform collision checks, etc)
|
||||
fn tick(&mut self);
|
||||
}
|
||||
Reference in New Issue
Block a user