From 651eed888fecbcede1d07800ac80fb637c7d8a33 Mon Sep 17 00:00:00 2001 From: Ryan Symons <47405201+rsymons22@users.noreply.github.com> Date: Fri, 7 Nov 2025 17:54:11 -0500 Subject: Basic enemy pathfinding/ai added --- dungeon/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dungeon/src/lib.rs') diff --git a/dungeon/src/lib.rs b/dungeon/src/lib.rs index ee61632..cb57bf0 100644 --- a/dungeon/src/lib.rs +++ b/dungeon/src/lib.rs @@ -1,6 +1,7 @@ //! The `dungon` crate contains the core functionality for //! interacting with a `Dungeon` and its components. +pub mod astar; pub mod bsp; pub mod enemy; pub mod entity; @@ -69,8 +70,7 @@ impl From for Dungeon { // TODO: initalize rest of game state - // TODO: How will we randomize enemy type/number per floor? - // For now, just create one enemy a few tiles to the right of the player + // TODO: Randomize enemy positions/types let enemies = vec![Enemy::new( EnemyType::Zombie, Pos::new(player.entity.pos.x() + 4, player.entity.pos.y()) -- cgit v1.2.3-freya