feat: direction propagation, change direction at precise times

This commit is contained in:
2023-09-09 21:10:41 -05:00
parent 0120abe806
commit 422535c00d
3 changed files with 24 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ 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);
fn internal_position(&self) -> (u32, u32);
// Tick the entity (move it, perform collision checks, etc)
fn tick(&mut self);
}