Add some missing resources to activating level

This commit is contained in:
Daniel Lynn 2021-07-10 21:35:59 -05:00
parent 5c6f7c76ab
commit 5d22e4d1dc

View File

@ -188,6 +188,15 @@ impl State {
let exit_idx = map_builder.map.point2d_to_index(map_builder.amulet_start);
map_builder.map.tiles[exit_idx] = TileType::Exit;
}
map_builder
.monster_spawns
.iter()
.for_each(|pos| spawn_entity(&mut self.ecs, &mut rng, *pos));
self.resources.insert(map_builder.map);
self.resources.insert(Camera::new(map_builder.player_start));
self.resources.insert(TurnState::AwaitingInput);
self.resources.insert(map_builder.theme);
}
}