refactor: continue working on ghost house implementation, other stuff

This commit is contained in:
2025-07-27 12:15:11 -05:00
parent 4f87a116d5
commit 413f9f156f
7 changed files with 334 additions and 163 deletions

View File

@@ -1,4 +1,3 @@
pub mod blinky;
pub mod direction;
pub mod edible;
pub mod ghost;
@@ -23,8 +22,8 @@ pub trait Entity {
/// Returns true if the entity is colliding with the other entity.
fn is_colliding(&self, other: &dyn Entity) -> bool {
let a = self.base().pixel_position;
let b = other.base().pixel_position;
let a = self.base().cell_position;
let b = other.base().cell_position;
a == b
}
}