FillEdges builder, and a welcome message

This commit is contained in:
Llywelwyn 2023-07-24 19:16:20 +01:00
parent 0fe866c048
commit b80c3ac9d1
5 changed files with 54 additions and 11 deletions

View file

@ -83,6 +83,10 @@ impl PrefabBuilder {
build_data.map.tiles[idx] = TileType::Floor;
build_data.starting_position = Some(Position { x: x as i32, y: y as i32 });
}
'+' => {
build_data.map.tiles[idx] = TileType::Floor;
build_data.spawn_list.push((idx, "door".to_string()));
}
'g' => {
build_data.map.tiles[idx] = TileType::Floor;
build_data.spawn_list.push((idx, "goblin".to_string()));