feat: stage sequence, ghost collisions & energizer logic, text color method, scheduler ordering

This commit is contained in:
Ryan Walters
2025-08-28 12:40:02 -05:00
parent f14b3d38a4
commit 80ebf08dd3
12 changed files with 624 additions and 64 deletions

View File

@@ -174,6 +174,17 @@ impl Map {
})
}
/// Returns the `MapTile` at a given node id.
pub fn tile_at_node(&self, node_id: NodeId) -> Option<MapTile> {
// reverse lookup: node -> grid
for (grid_pos, id) in &self.grid_to_node {
if *id == node_id {
return Some(self.tiles[grid_pos.x as usize][grid_pos.y as usize]);
}
}
None
}
/// Constructs the ghost house area with restricted access and internal navigation.
///
/// Creates a multi-level ghost house with entrance control, internal movement