refactor: remove dead code, move direction & graph into 'map' module

This commit is contained in:
2025-08-16 14:37:14 -05:00
parent 313ca4f3e6
commit d47d70ff5b
27 changed files with 31 additions and 1003 deletions

View File

@@ -2,7 +2,7 @@ use bevy_ecs::{bundle::Bundle, component::Component, resource::Resource};
use bitflags::bitflags;
use crate::{
entity::graph::TraversalFlags,
map::graph::TraversalFlags,
systems::movement::{BufferedDirection, Position, Velocity},
texture::{animated::AnimatedTexture, sprite::AtlasTile},
};
@@ -41,6 +41,7 @@ impl Ghost {
}
/// Returns the ghost's color for debug rendering.
#[allow(dead_code)]
pub fn debug_color(&self) -> sdl2::pixels::Color {
match self {
Ghost::Blinky => sdl2::pixels::Color::RGB(255, 0, 0), // Red