From a7e87c18a3cae2870e086f16d9e1c5a6e29bb82d Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 11 Sep 2023 00:22:07 -0500 Subject: [PATCH] feat: pacman next cell debug func --- src/game.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game.rs b/src/game.rs index 4b16874..b4e95a7 100644 --- a/src/game.rs +++ b/src/game.rs @@ -101,6 +101,10 @@ impl Game<'_> { } } } + + // Draw the next cell + let next_cell = self.pacman.next_cell(None); + self.draw_cell((next_cell.0 as u32, next_cell.1 as u32), Color::YELLOW); } self.canvas.present();