Cleaned up the maze placement so that I can have mazes without rooms and with other features.

This commit is contained in:
Zed A. Shaw 2025-05-20 12:53:03 -04:00
parent 37715f05a5
commit 20f03731e5
6 changed files with 34 additions and 25 deletions

View file

@ -61,7 +61,7 @@ DinkyECS::Entity LevelManager::spawn_enemy(std::string named) {
WorldBuilder builder(*level.map, $components);
auto entity_id = builder.configure_entity_in_map(*level.world, entity_data, 0);
auto entity_id = builder.configure_entity_in_room(*level.world, entity_data, 0);
auto& entity_pos = level.world->get<Position>(entity_id);
auto player_pos = level.world->get<Position>(level.player);