Skip to content

Instantly share code, notes, and snippets.

View Hellzbellz123's full-sized avatar
💭
vibing

hellzbellz Hellzbellz123

💭
vibing
View GitHub Profile
// TODO: rethink this code too only spawn 1 hallway per room
// maybe try this apporach again now that the room ids are
pub fn plan_hallways_two(
mut cmds: Commands,
mut dungeon_root: Query<&mut DungeonSettings, With<DungeonContainerTag>>,
room_query: Query<(&GlobalTransform, &mut PlacedRoom), With<DungeonRoomTag>>,
mut exit_query: Query<(&GlobalTransform, &mut RoomExit)>,
) {
let mut settings = dungeon_root.single_mut();
let mut hallways: Vec<PlacedHallWay> = Vec::new();