feat: smooth back-forth sprite frame ticks, sprite rotation

This commit is contained in:
2023-09-08 23:38:57 -05:00
parent ffc21c8622
commit 83d665123c
4 changed files with 73 additions and 10 deletions

View File

@@ -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);
}