Cleaned up the maze placement so that I can have mazes without rooms and with other features.
This commit is contained in:
parent
37715f05a5
commit
20f03731e5
6 changed files with 34 additions and 25 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue